@azure/communication-react 1.19.0-alpha-202408230014 → 1.19.0-alpha-202408240014
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/communication-react.d.ts +8 -0
- package/dist/dist-cjs/communication-react/{ChatMessageComponentAsRichTextEditBox-pRNZJbdQ.js → ChatMessageComponentAsRichTextEditBox-CX6IgjBk.js} +2 -2
- package/dist/dist-cjs/communication-react/{ChatMessageComponentAsRichTextEditBox-pRNZJbdQ.js.map → ChatMessageComponentAsRichTextEditBox-CX6IgjBk.js.map} +1 -1
- package/dist/dist-cjs/communication-react/{RichTextSendBoxWrapper-Bz_KlOv9.js → RichTextSendBoxWrapper-D_wPKYPO.js} +2 -2
- package/dist/dist-cjs/communication-react/{RichTextSendBoxWrapper-Bz_KlOv9.js.map → RichTextSendBoxWrapper-D_wPKYPO.js.map} +1 -1
- package/dist/dist-cjs/communication-react/{index-C6b4-4lG.js → index-Ddmt8bbA.js} +551 -363
- package/dist/dist-cjs/communication-react/{index-C6b4-4lG.js.map → index-Ddmt8bbA.js.map} +1 -1
- package/dist/dist-cjs/communication-react/index.js +1 -1
- package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js +1 -1
- package/dist/dist-esm/acs-ui-common/src/telemetryVersion.js.map +1 -1
- package/dist/dist-esm/chat-component-bindings/src/baseSelectors.d.ts +1 -1
- package/dist/dist-esm/chat-component-bindings/src/baseSelectors.js.map +1 -1
- package/dist/dist-esm/chat-component-bindings/src/messageThreadSelector.js +1 -1
- package/dist/dist-esm/chat-component-bindings/src/messageThreadSelector.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.d.ts +1 -0
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js +92 -73
- package/dist/dist-esm/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.js +31 -3
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/CallWithChatComposite.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/Strings.d.ts +8 -0
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/Strings.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.d.ts +7 -0
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js +116 -2
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/adapter/AzureCommunicationCallWithChatAdapter.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/styles/CallWithChatCompositeStyles.d.ts +5 -0
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/styles/CallWithChatCompositeStyles.js +14 -0
- package/dist/dist-esm/react-composites/src/composites/CallWithChatComposite/styles/CallWithChatCompositeStyles.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/common/utils.d.ts +4 -0
- package/dist/dist-esm/react-composites/src/composites/common/utils.js +23 -0
- package/dist/dist-esm/react-composites/src/composites/common/utils.js.map +1 -1
- package/dist/dist-esm/react-composites/src/composites/localization/locales/en-US/strings.json +2 -1
- package/package.json +1 -1
@@ -189,7 +189,7 @@ function getDefaultExportFromCjs (x) {
|
|
189
189
|
// Copyright (c) Microsoft Corporation.
|
190
190
|
// Licensed under the MIT License.
|
191
191
|
// GENERATED FILE. DO NOT EDIT MANUALLY.
|
192
|
-
var telemetryVersion = '1.19.0-alpha-
|
192
|
+
var telemetryVersion = '1.19.0-alpha-202408240014';
|
193
193
|
|
194
194
|
|
195
195
|
var telemetryVersion$1 = /*@__PURE__*/getDefaultExportFromCjs(telemetryVersion);
|
@@ -485,7 +485,7 @@ const Constants = {
|
|
485
485
|
*/
|
486
486
|
const chatStatefulLogger = logger.createClientLogger('communication-react:chat-stateful');
|
487
487
|
|
488
|
-
var __awaiter
|
488
|
+
var __awaiter$10 = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
489
489
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
490
490
|
return new (P || (P = Promise))(function (resolve, reject) {
|
491
491
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -527,7 +527,7 @@ class ResourceDownloadQueue {
|
|
527
527
|
this._messagesNeedingResourceRetrieval.push(copy);
|
528
528
|
}
|
529
529
|
startQueue(threadId, operation, options) {
|
530
|
-
return __awaiter
|
530
|
+
return __awaiter$10(this, void 0, void 0, function* () {
|
531
531
|
if (this.isActive) {
|
532
532
|
return;
|
533
533
|
}
|
@@ -563,7 +563,7 @@ class ResourceDownloadQueue {
|
|
563
563
|
}
|
564
564
|
}
|
565
565
|
downloadSingleUrl(message, resourceUrl, operation) {
|
566
|
-
return __awaiter
|
566
|
+
return __awaiter$10(this, void 0, void 0, function* () {
|
567
567
|
const response = { sourceUrl: '' };
|
568
568
|
try {
|
569
569
|
const abortController = new AbortController();
|
@@ -579,7 +579,7 @@ class ResourceDownloadQueue {
|
|
579
579
|
});
|
580
580
|
}
|
581
581
|
downloadAllPreviewUrls(message, operation) {
|
582
|
-
return __awaiter
|
582
|
+
return __awaiter$10(this, void 0, void 0, function* () {
|
583
583
|
var _a;
|
584
584
|
const attachments = (_a = message.content) === null || _a === void 0 ? void 0 : _a.attachments;
|
585
585
|
if (message.type === 'html' && attachments) {
|
@@ -606,7 +606,7 @@ class ResourceDownloadQueue {
|
|
606
606
|
});
|
607
607
|
}
|
608
608
|
downloadResource(operation, url, abortController) {
|
609
|
-
return __awaiter
|
609
|
+
return __awaiter$10(this, void 0, void 0, function* () {
|
610
610
|
this._requestsToCancel[url] = { src: url, abortController };
|
611
611
|
const blobUrl = yield operation(url, { credential: this._credential, endpoint: this._endpoint }, { abortController });
|
612
612
|
delete this._requestsToCancel[url];
|
@@ -617,9 +617,9 @@ class ResourceDownloadQueue {
|
|
617
617
|
/**
|
618
618
|
* @private
|
619
619
|
*/
|
620
|
-
const fetchImageSource = (src, authentication, options) => __awaiter
|
620
|
+
const fetchImageSource = (src, authentication, options) => __awaiter$10(void 0, void 0, void 0, function* () {
|
621
621
|
function fetchWithAuthentication(url, token, options) {
|
622
|
-
return __awaiter
|
622
|
+
return __awaiter$10(this, void 0, void 0, function* () {
|
623
623
|
const headers = new Headers();
|
624
624
|
headers.append('Authorization', `Bearer ${token}`);
|
625
625
|
return yield fetchWithTimeout(url, {
|
@@ -630,7 +630,7 @@ const fetchImageSource = (src, authentication, options) => __awaiter$$(void 0, v
|
|
630
630
|
});
|
631
631
|
}
|
632
632
|
function fetchWithTimeout(resource, options) {
|
633
|
-
return __awaiter
|
633
|
+
return __awaiter$10(this, void 0, void 0, function* () {
|
634
634
|
// default timeout is 30 seconds
|
635
635
|
const { timeout = 30000, abortController } = options;
|
636
636
|
const id = setTimeout(() => {
|
@@ -657,7 +657,7 @@ const fetchImageSource = (src, authentication, options) => __awaiter$$(void 0, v
|
|
657
657
|
|
658
658
|
// Copyright (c) Microsoft Corporation.
|
659
659
|
// Licensed under the MIT License.
|
660
|
-
var __awaiter
|
660
|
+
var __awaiter$$ = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
661
661
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
662
662
|
return new (P || (P = Promise))(function (resolve, reject) {
|
663
663
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -733,7 +733,7 @@ let ChatContext$1 = class ChatContext {
|
|
733
733
|
// Any item in queue should be removed.
|
734
734
|
}
|
735
735
|
downloadResourceToCache(threadId, messageId, resourceUrl) {
|
736
|
-
return __awaiter
|
736
|
+
return __awaiter$$(this, void 0, void 0, function* () {
|
737
737
|
var _a;
|
738
738
|
let message = (_a = this.getState().threads[threadId]) === null || _a === void 0 ? void 0 : _a.chatMessages[messageId];
|
739
739
|
if (message && this._fullsizeImageQueue) {
|
@@ -1012,7 +1012,7 @@ let ChatContext$1 = class ChatContext {
|
|
1012
1012
|
* @throws ChatError. Exceptions thrown from `f` are tagged with the failed `target.
|
1013
1013
|
*/
|
1014
1014
|
withAsyncErrorTeedToState(f, target) {
|
1015
|
-
return (...args) => __awaiter
|
1015
|
+
return (...args) => __awaiter$$(this, void 0, void 0, function* () {
|
1016
1016
|
try {
|
1017
1017
|
return yield f(...args);
|
1018
1018
|
}
|
@@ -1119,7 +1119,7 @@ const convertChatMessage = (message, status = 'delivered', clientMessageId) => {
|
|
1119
1119
|
|
1120
1120
|
// Copyright (c) Microsoft Corporation.
|
1121
1121
|
// Licensed under the MIT License.
|
1122
|
-
var __awaiter$
|
1122
|
+
var __awaiter$_ = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
1123
1123
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
1124
1124
|
return new (P || (P = Promise))(function (resolve, reject) {
|
1125
1125
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -1209,7 +1209,7 @@ class EventSubscriber {
|
|
1209
1209
|
};
|
1210
1210
|
// This is a temporary fix that no participant message is received for onChatMessageReceived event, which should be handled by JS SDK.
|
1211
1211
|
// Without the temporary fix, there are missing 'participant joined' and 'participant left' system messages in the chat thread.
|
1212
|
-
this.fetchLastParticipantMessage = (threadId, actionType) => __awaiter$
|
1212
|
+
this.fetchLastParticipantMessage = (threadId, actionType) => __awaiter$_(this, void 0, void 0, function* () {
|
1213
1213
|
var _a, e_1, _b, _c;
|
1214
1214
|
try {
|
1215
1215
|
for (var _d = true, _e = __asyncValues$1(this.chatClient
|
@@ -1303,7 +1303,7 @@ class EventSubscriber {
|
|
1303
1303
|
|
1304
1304
|
// Copyright (c) Microsoft Corporation.
|
1305
1305
|
// Licensed under the MIT License.
|
1306
|
-
var __awaiter$
|
1306
|
+
var __awaiter$Z = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
1307
1307
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
1308
1308
|
return new (P || (P = Promise))(function (resolve, reject) {
|
1309
1309
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -1325,7 +1325,7 @@ const createDecoratedIterator = (iteratorCreator, context, decorateFn) => {
|
|
1325
1325
|
const threadsIterator = iteratorCreator(...args);
|
1326
1326
|
return {
|
1327
1327
|
next() {
|
1328
|
-
return __awaiter$
|
1328
|
+
return __awaiter$Z(this, void 0, void 0, function* () {
|
1329
1329
|
const result = yield threadsIterator.next();
|
1330
1330
|
if (!result.done && result.value) {
|
1331
1331
|
decorateFn(result.value, context);
|
@@ -1340,7 +1340,7 @@ const createDecoratedIterator = (iteratorCreator, context, decorateFn) => {
|
|
1340
1340
|
const pages = threadsIterator.byPage(settings);
|
1341
1341
|
return {
|
1342
1342
|
next() {
|
1343
|
-
return __awaiter$
|
1343
|
+
return __awaiter$Z(this, void 0, void 0, function* () {
|
1344
1344
|
const result = yield pages.next();
|
1345
1345
|
const page = result.value;
|
1346
1346
|
if (!result.done && result.value) {
|
@@ -1427,7 +1427,7 @@ const createDecoratedListParticipants = (chatThreadClient, context) => {
|
|
1427
1427
|
|
1428
1428
|
// Copyright (c) Microsoft Corporation.
|
1429
1429
|
// Licensed under the MIT License.
|
1430
|
-
var __awaiter$
|
1430
|
+
var __awaiter$Y = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
1431
1431
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
1432
1432
|
return new (P || (P = Promise))(function (resolve, reject) {
|
1433
1433
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -1446,14 +1446,14 @@ class ProxyChatThreadClient {
|
|
1446
1446
|
return createDecoratedListMessages(chatThreadClient, this._context);
|
1447
1447
|
}
|
1448
1448
|
case 'getMessage': {
|
1449
|
-
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$
|
1449
|
+
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$Y(this, void 0, void 0, function* () {
|
1450
1450
|
const message = yield chatThreadClient.getMessage(...args);
|
1451
1451
|
this._context.setChatMessage(chatThreadClient.threadId, convertChatMessage(message));
|
1452
1452
|
return message;
|
1453
1453
|
}), 'ChatThreadClient.getMessage');
|
1454
1454
|
}
|
1455
1455
|
case 'sendMessage': {
|
1456
|
-
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$
|
1456
|
+
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$Y(this, void 0, void 0, function* () {
|
1457
1457
|
var _a;
|
1458
1458
|
// Retry logic?
|
1459
1459
|
const [request, options] = args;
|
@@ -1494,7 +1494,7 @@ class ProxyChatThreadClient {
|
|
1494
1494
|
}), 'ChatThreadClient.sendMessage');
|
1495
1495
|
}
|
1496
1496
|
case 'addParticipants': {
|
1497
|
-
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$
|
1497
|
+
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$Y(this, void 0, void 0, function* () {
|
1498
1498
|
const result = yield chatThreadClient.addParticipants(...args);
|
1499
1499
|
const [addRequest] = args;
|
1500
1500
|
const participantsToAdd = addRequest.participants;
|
@@ -1503,7 +1503,7 @@ class ProxyChatThreadClient {
|
|
1503
1503
|
}), 'ChatThreadClient.addParticipants');
|
1504
1504
|
}
|
1505
1505
|
case 'deleteMessage': {
|
1506
|
-
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$
|
1506
|
+
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$Y(this, void 0, void 0, function* () {
|
1507
1507
|
// DeleteMessage is able to either delete local one(for failed message) or synced message
|
1508
1508
|
const [messageId] = args;
|
1509
1509
|
if (this._context.deleteLocalMessage(chatThreadClient.threadId, messageId)) {
|
@@ -1521,12 +1521,12 @@ class ProxyChatThreadClient {
|
|
1521
1521
|
return createDecoratedListReadReceipts(chatThreadClient, this._context);
|
1522
1522
|
}
|
1523
1523
|
case 'sendTypingNotification': {
|
1524
|
-
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$
|
1524
|
+
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$Y(this, void 0, void 0, function* () {
|
1525
1525
|
return yield chatThreadClient.sendTypingNotification(...args);
|
1526
1526
|
}), 'ChatThreadClient.sendTypingNotification');
|
1527
1527
|
}
|
1528
1528
|
case 'removeParticipant': {
|
1529
|
-
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$
|
1529
|
+
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$Y(this, void 0, void 0, function* () {
|
1530
1530
|
const result = yield chatThreadClient.removeParticipant(...args);
|
1531
1531
|
const [removeIdentifier] = args;
|
1532
1532
|
this._context.deleteParticipant(chatThreadClient.threadId, communicationCommon.getIdentifierKind(removeIdentifier));
|
@@ -1534,7 +1534,7 @@ class ProxyChatThreadClient {
|
|
1534
1534
|
}), 'ChatThreadClient.removeParticipant');
|
1535
1535
|
}
|
1536
1536
|
case 'updateMessage': {
|
1537
|
-
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$
|
1537
|
+
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$Y(this, void 0, void 0, function* () {
|
1538
1538
|
const result = yield chatThreadClient.updateMessage(...args);
|
1539
1539
|
const [messageId, updateOption] = args;
|
1540
1540
|
this._context.updateChatMessageContent(chatThreadClient.threadId, messageId, updateOption === null || updateOption === void 0 ? void 0 : updateOption.content);
|
@@ -1542,7 +1542,7 @@ class ProxyChatThreadClient {
|
|
1542
1542
|
}), 'ChatThreadClient.updateMessage');
|
1543
1543
|
}
|
1544
1544
|
case 'updateTopic': {
|
1545
|
-
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$
|
1545
|
+
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$Y(this, void 0, void 0, function* () {
|
1546
1546
|
const result = yield chatThreadClient.updateTopic(...args);
|
1547
1547
|
const [topic] = args;
|
1548
1548
|
this._context.updateThreadTopic(chatThreadClient.threadId, topic);
|
@@ -1550,7 +1550,7 @@ class ProxyChatThreadClient {
|
|
1550
1550
|
}), 'ChatThreadClient.updateTopic');
|
1551
1551
|
}
|
1552
1552
|
case 'getProperties': {
|
1553
|
-
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$
|
1553
|
+
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$Y(this, void 0, void 0, function* () {
|
1554
1554
|
const result = yield chatThreadClient.getProperties(...args);
|
1555
1555
|
this._context.updateThread(chatThreadClient.threadId, result);
|
1556
1556
|
return result;
|
@@ -1588,7 +1588,7 @@ const createDecoratedListThreads = (chatClient, context) => {
|
|
1588
1588
|
|
1589
1589
|
// Copyright (c) Microsoft Corporation.
|
1590
1590
|
// Licensed under the MIT License.
|
1591
|
-
var __awaiter$
|
1591
|
+
var __awaiter$X = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
1592
1592
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
1593
1593
|
return new (P || (P = Promise))(function (resolve, reject) {
|
1594
1594
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -1607,7 +1607,7 @@ const proxyChatClient = {
|
|
1607
1607
|
switch (prop) {
|
1608
1608
|
case 'createChatThread': {
|
1609
1609
|
return context.withAsyncErrorTeedToState(function (...args) {
|
1610
|
-
return __awaiter$
|
1610
|
+
return __awaiter$X(this, void 0, void 0, function* () {
|
1611
1611
|
const result = yield chatClient.createChatThread(...args);
|
1612
1612
|
const thread = result.chatThread;
|
1613
1613
|
if (thread) {
|
@@ -1620,7 +1620,7 @@ const proxyChatClient = {
|
|
1620
1620
|
}
|
1621
1621
|
case 'deleteChatThread': {
|
1622
1622
|
return context.withAsyncErrorTeedToState(function (...args) {
|
1623
|
-
return __awaiter$
|
1623
|
+
return __awaiter$X(this, void 0, void 0, function* () {
|
1624
1624
|
const result = yield chatClient.deleteChatThread(...args);
|
1625
1625
|
context.deleteThread(args[0]);
|
1626
1626
|
return result;
|
@@ -1640,7 +1640,7 @@ const proxyChatClient = {
|
|
1640
1640
|
}
|
1641
1641
|
case 'startRealtimeNotifications': {
|
1642
1642
|
return context.withAsyncErrorTeedToState(function (...args) {
|
1643
|
-
return __awaiter$
|
1643
|
+
return __awaiter$X(this, void 0, void 0, function* () {
|
1644
1644
|
const ret = yield chatClient.startRealtimeNotifications(...args);
|
1645
1645
|
if (!receiver.eventSubscriber) {
|
1646
1646
|
receiver.eventSubscriber = new EventSubscriber(chatClient, context);
|
@@ -1651,7 +1651,7 @@ const proxyChatClient = {
|
|
1651
1651
|
}
|
1652
1652
|
case 'stopRealtimeNotifications': {
|
1653
1653
|
return context.withAsyncErrorTeedToState(function (...args) {
|
1654
|
-
return __awaiter$
|
1654
|
+
return __awaiter$X(this, void 0, void 0, function* () {
|
1655
1655
|
const ret = yield chatClient.stopRealtimeNotifications(...args);
|
1656
1656
|
if (receiver.eventSubscriber) {
|
1657
1657
|
receiver.eventSubscriber.unsubscribe();
|
@@ -1760,7 +1760,7 @@ const getImageAttachmentsFromHTMLContent = (content) => {
|
|
1760
1760
|
|
1761
1761
|
// Copyright (c) Microsoft Corporation.
|
1762
1762
|
// Licensed under the MIT License.
|
1763
|
-
var __awaiter$
|
1763
|
+
var __awaiter$W = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
1764
1764
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
1765
1765
|
return new (P || (P = Promise))(function (resolve, reject) {
|
1766
1766
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -1786,7 +1786,7 @@ const createDefaultChatHandlers = memoizeOne((chatClient, chatThreadClient) => {
|
|
1786
1786
|
// due to a bug in babel, we can't use arrow function here
|
1787
1787
|
// affecting conditional-compile-remove(attachment-upload)
|
1788
1788
|
onSendMessage: function (content, options) {
|
1789
|
-
return __awaiter$
|
1789
|
+
return __awaiter$W(this, void 0, void 0, function* () {
|
1790
1790
|
const sendMessageRequest = {
|
1791
1791
|
content,
|
1792
1792
|
senderDisplayName: chatClient.getState().displayName
|
@@ -1822,14 +1822,14 @@ const createDefaultChatHandlers = memoizeOne((chatClient, chatThreadClient) => {
|
|
1822
1822
|
},
|
1823
1823
|
/* @conditional-compile-remove(rich-text-editor-image-upload) */
|
1824
1824
|
onUploadImage: function (image, imageFilename) {
|
1825
|
-
return __awaiter$
|
1825
|
+
return __awaiter$W(this, void 0, void 0, function* () {
|
1826
1826
|
const imageResult = yield chatThreadClient.uploadImage(image, imageFilename);
|
1827
1827
|
return imageResult;
|
1828
1828
|
});
|
1829
1829
|
},
|
1830
1830
|
/* @conditional-compile-remove(rich-text-editor-image-upload) */
|
1831
1831
|
onDeleteImage: function (imageId) {
|
1832
|
-
return __awaiter$
|
1832
|
+
return __awaiter$W(this, void 0, void 0, function* () {
|
1833
1833
|
try {
|
1834
1834
|
yield chatThreadClient.deleteImage(imageId);
|
1835
1835
|
}
|
@@ -1844,7 +1844,7 @@ const createDefaultChatHandlers = memoizeOne((chatClient, chatThreadClient) => {
|
|
1844
1844
|
onUpdateMessage: function (messageId, content,
|
1845
1845
|
/* @conditional-compile-remove(file-sharing-acs) */
|
1846
1846
|
options) {
|
1847
|
-
return __awaiter$
|
1847
|
+
return __awaiter$W(this, void 0, void 0, function* () {
|
1848
1848
|
/* @conditional-compile-remove(rich-text-editor-image-upload) */
|
1849
1849
|
const imageAttachments = getImageAttachmentsFromHTMLContent(content);
|
1850
1850
|
const updateMessageOptions = {
|
@@ -1857,23 +1857,23 @@ const createDefaultChatHandlers = memoizeOne((chatClient, chatThreadClient) => {
|
|
1857
1857
|
yield chatThreadClient.updateMessage(messageId, updateMessageOptions);
|
1858
1858
|
});
|
1859
1859
|
},
|
1860
|
-
onDeleteMessage: (messageId) => __awaiter$
|
1860
|
+
onDeleteMessage: (messageId) => __awaiter$W(void 0, void 0, void 0, function* () {
|
1861
1861
|
yield chatThreadClient.deleteMessage(messageId);
|
1862
1862
|
}),
|
1863
1863
|
// This handler is designed for chatThread to consume
|
1864
|
-
onMessageSeen: (chatMessageId) => __awaiter$
|
1864
|
+
onMessageSeen: (chatMessageId) => __awaiter$W(void 0, void 0, void 0, function* () {
|
1865
1865
|
yield chatThreadClient.sendReadReceipt({ chatMessageId });
|
1866
1866
|
}),
|
1867
|
-
onTyping: () => __awaiter$
|
1867
|
+
onTyping: () => __awaiter$W(void 0, void 0, void 0, function* () {
|
1868
1868
|
yield chatThreadClient.sendTypingNotification();
|
1869
1869
|
}),
|
1870
|
-
onRemoveParticipant: (userId) => __awaiter$
|
1870
|
+
onRemoveParticipant: (userId) => __awaiter$W(void 0, void 0, void 0, function* () {
|
1871
1871
|
yield chatThreadClient.removeParticipant(fromFlatCommunicationIdentifier(userId));
|
1872
1872
|
}),
|
1873
|
-
updateThreadTopicName: (topicName) => __awaiter$
|
1873
|
+
updateThreadTopicName: (topicName) => __awaiter$W(void 0, void 0, void 0, function* () {
|
1874
1874
|
yield chatThreadClient.updateTopic(topicName);
|
1875
1875
|
}),
|
1876
|
-
onLoadPreviousChatMessages: (messagesToLoad) => __awaiter$
|
1876
|
+
onLoadPreviousChatMessages: (messagesToLoad) => __awaiter$W(void 0, void 0, void 0, function* () {
|
1877
1877
|
var _a, _b, _c;
|
1878
1878
|
if (messageIterator === undefined) {
|
1879
1879
|
// Lazy definition so that errors in the method call are reported correctly.
|
@@ -4492,7 +4492,7 @@ const _MentionPopover = (props) => {
|
|
4492
4492
|
|
4493
4493
|
// Copyright (c) Microsoft Corporation.
|
4494
4494
|
// Licensed under the MIT License.
|
4495
|
-
var __awaiter$
|
4495
|
+
var __awaiter$V = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
4496
4496
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
4497
4497
|
return new (P || (P = Promise))(function (resolve, reject) {
|
4498
4498
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -4678,7 +4678,7 @@ const TextFieldWithMention = (props) => {
|
|
4678
4678
|
onSuggestionSelected,
|
4679
4679
|
updateMentionSuggestions
|
4680
4680
|
]);
|
4681
|
-
const debouncedQueryUpdate = useDebounce.useDebouncedCallback((query) => __awaiter$
|
4681
|
+
const debouncedQueryUpdate = useDebounce.useDebouncedCallback((query) => __awaiter$V(void 0, void 0, void 0, function* () {
|
4682
4682
|
var _a;
|
4683
4683
|
let suggestions = (_a = (yield (mentionLookupOptions === null || mentionLookupOptions === void 0 ? void 0 : mentionLookupOptions.onQueryUpdated(query)))) !== null && _a !== void 0 ? _a : [];
|
4684
4684
|
suggestions = suggestions.filter((suggestion) => suggestion.displayText.trim() !== '');
|
@@ -4855,7 +4855,7 @@ const TextFieldWithMention = (props) => {
|
|
4855
4855
|
});
|
4856
4856
|
}
|
4857
4857
|
}, [updateSelectionIndexesWithMentionIfNeeded, setSelectionStartValue, setSelectionEndValue]);
|
4858
|
-
const handleOnChange = React.useCallback((_b) => __awaiter$
|
4858
|
+
const handleOnChange = React.useCallback((_b) => __awaiter$V(void 0, [_b], void 0, function* ({ currentSelectionEnd, currentSelectionStart, currentTriggerStartIndex, event, htmlTextValue, inputTextValue, previousSelectionEnd, previousSelectionStart, tagsValue, updatedValue }) {
|
4859
4859
|
var _c;
|
4860
4860
|
debouncedQueryUpdate.cancel();
|
4861
4861
|
if (event.currentTarget === null) {
|
@@ -5408,7 +5408,7 @@ const ATTACHMENT_CARD_MIN_PROGRESS = 0.05;
|
|
5408
5408
|
|
5409
5409
|
// Copyright (c) Microsoft Corporation.
|
5410
5410
|
// Licensed under the MIT License.
|
5411
|
-
var __awaiter$
|
5411
|
+
var __awaiter$U = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
5412
5412
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
5413
5413
|
return new (P || (P = Promise))(function (resolve, reject) {
|
5414
5414
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -5496,7 +5496,7 @@ const MappedMenuItems = (menuActions, attachment, handleOnClickError) => {
|
|
5496
5496
|
React.createElement(reactComponents.MenuTrigger, null,
|
5497
5497
|
React.createElement(reactComponents.ToolbarButton, { "aria-label": localeStrings.attachmentMoreMenu, role: "button", icon: React.createElement(react.Icon, { iconName: "AttachmentMoreMenu" }) }))),
|
5498
5498
|
React.createElement(reactComponents.MenuPopover, null,
|
5499
|
-
React.createElement(reactComponents.MenuList, null, menuActions.map((menuItem, index) => (React.createElement(reactComponents.MenuItem, { "aria-label": menuItem.name, key: index, icon: menuItem.icon, onClick: () => __awaiter$
|
5499
|
+
React.createElement(reactComponents.MenuList, null, menuActions.map((menuItem, index) => (React.createElement(reactComponents.MenuItem, { "aria-label": menuItem.name, key: index, icon: menuItem.icon, onClick: () => __awaiter$U(void 0, void 0, void 0, function* () {
|
5500
5500
|
try {
|
5501
5501
|
yield menuItem.onClick(attachment);
|
5502
5502
|
}
|
@@ -5631,7 +5631,7 @@ const _AttachmentUploadCards = (props) => {
|
|
5631
5631
|
|
5632
5632
|
// Copyright (c) Microsoft Corporation.
|
5633
5633
|
// Licensed under the MIT License.
|
5634
|
-
var __awaiter$
|
5634
|
+
var __awaiter$T = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
5635
5635
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
5636
5636
|
return new (P || (P = Promise))(function (resolve, reject) {
|
5637
5637
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -5680,7 +5680,7 @@ const hasInlineImageContent = (content) => {
|
|
5680
5680
|
*
|
5681
5681
|
* @returns The updated message content.
|
5682
5682
|
*/
|
5683
|
-
const updateStylesOfInlineImages = (message, initialInlineImages) => __awaiter$
|
5683
|
+
const updateStylesOfInlineImages = (message, initialInlineImages) => __awaiter$T(void 0, void 0, void 0, function* () {
|
5684
5684
|
if (message === '') {
|
5685
5685
|
return message;
|
5686
5686
|
}
|
@@ -5772,7 +5772,7 @@ const toAttachmentMetadata = (attachmentsWithProgress) => {
|
|
5772
5772
|
/**
|
5773
5773
|
* @internal
|
5774
5774
|
*/
|
5775
|
-
const modifyInlineImagesInContentString = (content, initialInlineImages, onCompleted) => __awaiter$
|
5775
|
+
const modifyInlineImagesInContentString = (content, initialInlineImages, onCompleted) => __awaiter$T(void 0, void 0, void 0, function* () {
|
5776
5776
|
let newContent = content;
|
5777
5777
|
/* @conditional-compile-remove(rich-text-editor-image-upload) */
|
5778
5778
|
try {
|
@@ -7058,7 +7058,7 @@ const removeSingleLocalBlob = (currentLocalBlobMap, imageId) => {
|
|
7058
7058
|
}
|
7059
7059
|
};
|
7060
7060
|
|
7061
|
-
var __awaiter$
|
7061
|
+
var __awaiter$S = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
7062
7062
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
7063
7063
|
return new (P || (P = Promise))(function (resolve, reject) {
|
7064
7064
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -7113,7 +7113,7 @@ class CopyPastePlugin {
|
|
7113
7113
|
onPluginEvent(event) {
|
7114
7114
|
/* @conditional-compile-remove(rich-text-editor-image-upload) */
|
7115
7115
|
if (event.eventType === PluginEventType.BeforeCutCopy) {
|
7116
|
-
event.clonedRoot.querySelectorAll('img').forEach((image) => __awaiter$
|
7116
|
+
event.clonedRoot.querySelectorAll('img').forEach((image) => __awaiter$S(this, void 0, void 0, function* () {
|
7117
7117
|
if (image.src.startsWith('blob:')) {
|
7118
7118
|
const base64Data = this.imageBase64DataMap[image.id];
|
7119
7119
|
image.src = base64Data || image.src;
|
@@ -10753,7 +10753,7 @@ class _ErrorBoundary extends React.Component {
|
|
10753
10753
|
// Copyright (c) Microsoft Corporation.
|
10754
10754
|
// Licensed under the MIT License.
|
10755
10755
|
/* @conditional-compile-remove(rich-text-editor) */
|
10756
|
-
const ChatMessageComponentAsRichTextEditBox = React.lazy(() => Promise.resolve().then(function () { return require('./ChatMessageComponentAsRichTextEditBox-
|
10756
|
+
const ChatMessageComponentAsRichTextEditBox = React.lazy(() => Promise.resolve().then(function () { return require('./ChatMessageComponentAsRichTextEditBox-CX6IgjBk.js'); }));
|
10757
10757
|
/**
|
10758
10758
|
* @private
|
10759
10759
|
* Use this function to load RoosterJS dependencies early in the lifecycle.
|
@@ -10761,7 +10761,7 @@ const ChatMessageComponentAsRichTextEditBox = React.lazy(() => Promise.resolve()
|
|
10761
10761
|
*
|
10762
10762
|
* @conditional-compile-remove(rich-text-editor)
|
10763
10763
|
*/
|
10764
|
-
const loadChatMessageComponentAsRichTextEditBox = () => Promise.resolve().then(function () { return require('./ChatMessageComponentAsRichTextEditBox-
|
10764
|
+
const loadChatMessageComponentAsRichTextEditBox = () => Promise.resolve().then(function () { return require('./ChatMessageComponentAsRichTextEditBox-CX6IgjBk.js'); });
|
10765
10765
|
/**
|
10766
10766
|
* @private
|
10767
10767
|
*/
|
@@ -10780,7 +10780,7 @@ const ChatMessageComponentAsEditBoxPicker = (props) => {
|
|
10780
10780
|
|
10781
10781
|
// Copyright (c) Microsoft Corporation.
|
10782
10782
|
// Licensed under the MIT License.
|
10783
|
-
var __awaiter$
|
10783
|
+
var __awaiter$R = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
10784
10784
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
10785
10785
|
return new (P || (P = Promise))(function (resolve, reject) {
|
10786
10786
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -10836,7 +10836,7 @@ const ChatMyMessageComponent = (props) => {
|
|
10836
10836
|
function (text,
|
10837
10837
|
/* @conditional-compile-remove(file-sharing-acs) */
|
10838
10838
|
attachments) {
|
10839
|
-
return __awaiter$
|
10839
|
+
return __awaiter$R(this, void 0, void 0, function* () {
|
10840
10840
|
/* @conditional-compile-remove(file-sharing-acs) */
|
10841
10841
|
if (`attachments` in message && attachments) {
|
10842
10842
|
message.attachments = attachments;
|
@@ -11274,7 +11274,7 @@ const fluentChatComponent = (props) => {
|
|
11274
11274
|
|
11275
11275
|
// Copyright (c) Microsoft Corporation.
|
11276
11276
|
// Licensed under the MIT License.
|
11277
|
-
var __awaiter$
|
11277
|
+
var __awaiter$Q = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
11278
11278
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
11279
11279
|
return new (P || (P = Promise))(function (resolve, reject) {
|
11280
11280
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -11470,7 +11470,7 @@ const MessageThreadWrapper = (props) => {
|
|
11470
11470
|
loadChatMessageComponentAsRichTextEditBox();
|
11471
11471
|
}
|
11472
11472
|
}, [richTextEditorOptions]);
|
11473
|
-
const onDeleteMessageCallback = React.useCallback((messageId) => __awaiter$
|
11473
|
+
const onDeleteMessageCallback = React.useCallback((messageId) => __awaiter$Q(void 0, void 0, void 0, function* () {
|
11474
11474
|
if (!onDeleteMessage) {
|
11475
11475
|
return;
|
11476
11476
|
}
|
@@ -11551,7 +11551,7 @@ const MessageThreadWrapper = (props) => {
|
|
11551
11551
|
*/
|
11552
11552
|
const clientHeight = (_a = chatThreadRef.current) === null || _a === void 0 ? void 0 : _a.clientHeight;
|
11553
11553
|
// we try to only send those message status if user is scrolled to the bottom.
|
11554
|
-
const sendMessageStatusIfAtBottom = React.useCallback(() => __awaiter$
|
11554
|
+
const sendMessageStatusIfAtBottom = React.useCallback(() => __awaiter$Q(void 0, void 0, void 0, function* () {
|
11555
11555
|
if (!isAtBottomOfScrollRef.current ||
|
11556
11556
|
!document.hasFocus() ||
|
11557
11557
|
!messagesRef.current ||
|
@@ -11602,7 +11602,7 @@ const MessageThreadWrapper = (props) => {
|
|
11602
11602
|
setIsAtBottomOfScrollRef(atBottom);
|
11603
11603
|
}, [scrollToBottom, sendMessageStatusIfAtBottom]);
|
11604
11604
|
// Infinite scrolling + threadInitialize function
|
11605
|
-
const fetchNewMessageWhenAtTop = React.useCallback(() => __awaiter$
|
11605
|
+
const fetchNewMessageWhenAtTop = React.useCallback(() => __awaiter$Q(void 0, void 0, void 0, function* () {
|
11606
11606
|
if (!isLoadingChatMessagesRef.current) {
|
11607
11607
|
if (onLoadPreviousChatMessages) {
|
11608
11608
|
isLoadingChatMessagesRef.current = true;
|
@@ -14607,7 +14607,7 @@ const localVideoTileContainerStyles = {
|
|
14607
14607
|
|
14608
14608
|
// Copyright (c) Microsoft Corporation.
|
14609
14609
|
// Licensed under the MIT License.
|
14610
|
-
var __awaiter$
|
14610
|
+
var __awaiter$P = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
14611
14611
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
14612
14612
|
return new (P || (P = Promise))(function (resolve, reject) {
|
14613
14613
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -14624,7 +14624,7 @@ const LocalVideoCameraCycleButton = (props) => {
|
|
14624
14624
|
const { cameras, selectedCamera, onSelectCamera, label, ariaDescription, size } = props;
|
14625
14625
|
const theme = react.useTheme();
|
14626
14626
|
const [waitForCamera, setWaitForCamera] = React.useState(false);
|
14627
|
-
const onChangeCameraClick = React.useCallback((device) => __awaiter$
|
14627
|
+
const onChangeCameraClick = React.useCallback((device) => __awaiter$P(void 0, void 0, void 0, function* () {
|
14628
14628
|
// Throttle changing camera to prevent too many callbacks
|
14629
14629
|
if (onSelectCamera) {
|
14630
14630
|
setWaitForCamera(true);
|
@@ -17408,7 +17408,7 @@ const DevicesButton = (props) => {
|
|
17408
17408
|
|
17409
17409
|
// Copyright (c) Microsoft Corporation.
|
17410
17410
|
// Licensed under the MIT License.
|
17411
|
-
var __awaiter$
|
17411
|
+
var __awaiter$O = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
17412
17412
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
17413
17413
|
return new (P || (P = Promise))(function (resolve, reject) {
|
17414
17414
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -17446,7 +17446,7 @@ const CameraButton = (props) => {
|
|
17446
17446
|
const toggleAnnouncerString = React.useCallback((isCameraOn) => {
|
17447
17447
|
setAnnouncerString(!isCameraOn ? strings.cameraActionTurnedOffAnnouncement : strings.cameraActionTurnedOnAnnouncement);
|
17448
17448
|
}, [strings.cameraActionTurnedOffAnnouncement, strings.cameraActionTurnedOnAnnouncement]);
|
17449
|
-
const onToggleClick = React.useCallback(() => __awaiter$
|
17449
|
+
const onToggleClick = React.useCallback(() => __awaiter$O(void 0, void 0, void 0, function* () {
|
17450
17450
|
// Throttle click on camera, need to await onToggleCamera then allow another click
|
17451
17451
|
if (onToggleCamera) {
|
17452
17452
|
setWaitForCamera(true);
|
@@ -17460,7 +17460,7 @@ const CameraButton = (props) => {
|
|
17460
17460
|
}
|
17461
17461
|
}
|
17462
17462
|
}), [cameraOn, localVideoViewOptions, onToggleCamera, toggleAnnouncerString]);
|
17463
|
-
const onChangeCameraClick = React.useCallback((device) => __awaiter$
|
17463
|
+
const onChangeCameraClick = React.useCallback((device) => __awaiter$O(void 0, void 0, void 0, function* () {
|
17464
17464
|
// Throttle changing camera to prevent too many callbacks
|
17465
17465
|
if (onSelectCamera) {
|
17466
17466
|
setWaitForCamera(true);
|
@@ -17681,7 +17681,7 @@ const menupButtonPadding = {
|
|
17681
17681
|
|
17682
17682
|
// Copyright (c) Microsoft Corporation.
|
17683
17683
|
// Licensed under the MIT License.
|
17684
|
-
var __awaiter$
|
17684
|
+
var __awaiter$N = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
17685
17685
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
17686
17686
|
return new (P || (P = Promise))(function (resolve, reject) {
|
17687
17687
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -17722,7 +17722,7 @@ const MicrophoneButton = (props) => {
|
|
17722
17722
|
const toggleAnnouncerString = React.useCallback((isMicOn) => {
|
17723
17723
|
setAnnouncerString(!isMicOn ? strings.microphoneActionTurnedOffAnnouncement : strings.microphoneActionTurnedOnAnnouncement);
|
17724
17724
|
}, [strings.microphoneActionTurnedOffAnnouncement, strings.microphoneActionTurnedOnAnnouncement]);
|
17725
|
-
const onToggleClick = React.useCallback(() => __awaiter$
|
17725
|
+
const onToggleClick = React.useCallback(() => __awaiter$N(void 0, void 0, void 0, function* () {
|
17726
17726
|
if (onToggleMicrophone) {
|
17727
17727
|
try {
|
17728
17728
|
yield onToggleMicrophone();
|
@@ -18588,7 +18588,7 @@ const dtmfFrequencies = {
|
|
18588
18588
|
|
18589
18589
|
// Copyright (c) Microsoft Corporation.
|
18590
18590
|
// Licensed under the MIT License.
|
18591
|
-
var __awaiter$
|
18591
|
+
var __awaiter$M = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
18592
18592
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
18593
18593
|
return new (P || (P = Promise))(function (resolve, reject) {
|
18594
18594
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -18632,10 +18632,10 @@ const DialpadButton = (props) => {
|
|
18632
18632
|
const [buttonPressed, setButtonPressed] = React.useState(false);
|
18633
18633
|
const dtmfToneSound = React.useRef(new Tone(dtmfToneAudioContext, dtmfFrequencies[digit].f1, dtmfFrequencies[digit].f2));
|
18634
18634
|
const useLongPressProps = React.useMemo(() => ({
|
18635
|
-
onClick: () => __awaiter$
|
18635
|
+
onClick: () => __awaiter$M(void 0, void 0, void 0, function* () {
|
18636
18636
|
onClick(digit, index);
|
18637
18637
|
}),
|
18638
|
-
onLongPress: () => __awaiter$
|
18638
|
+
onLongPress: () => __awaiter$M(void 0, void 0, void 0, function* () {
|
18639
18639
|
onLongPress(digit, index);
|
18640
18640
|
}),
|
18641
18641
|
touchEventsOnly: longPressTrigger === 'touch'
|
@@ -19773,7 +19773,7 @@ const _spokenLanguageToCaptionLanguage = {
|
|
19773
19773
|
|
19774
19774
|
// Copyright (c) Microsoft Corporation.
|
19775
19775
|
// Licensed under the MIT License.
|
19776
|
-
var __awaiter$
|
19776
|
+
var __awaiter$L = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
19777
19777
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
19778
19778
|
return new (P || (P = Promise))(function (resolve, reject) {
|
19779
19779
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -19812,7 +19812,7 @@ const _CaptionsSettingsModal = (props) => {
|
|
19812
19812
|
onDismissCaptionsSettings();
|
19813
19813
|
}
|
19814
19814
|
}, [onDismissCaptionsSettings]);
|
19815
|
-
const onConfirm = React.useCallback(() => __awaiter$
|
19815
|
+
const onConfirm = React.useCallback(() => __awaiter$L(void 0, void 0, void 0, function* () {
|
19816
19816
|
const spokenLanguageCode = selectedSpokenLanguage.key;
|
19817
19817
|
const captionLanguageCode = selectedCaptionLanguage.key;
|
19818
19818
|
if (isCaptionsFeatureActive) {
|
@@ -21120,7 +21120,7 @@ const hasValidParticipant = (chatMessage) => { var _a; return !!((_a = chatMessa
|
|
21120
21120
|
*
|
21121
21121
|
* @private
|
21122
21122
|
*/
|
21123
|
-
const messageThreadSelectorWithThread = () => reselect.createSelector([getUserId, getChatMessages, getLatestReadTime, getIsLargeGroup, getReadReceipts, getParticipants], (userId, chatMessages, latestReadTime, isLargeGroup, readReceipts, participants) => {
|
21123
|
+
const messageThreadSelectorWithThread = () => reselect.createSelector([getUserId, getChatMessages, getLatestReadTime, getIsLargeGroup, getReadReceipts, getParticipants], (userId, chatMessages, latestReadTime, isLargeGroup, readReceipts = [], participants) => {
|
21124
21124
|
// We can't get displayName in teams meeting interop for now, disable rr feature when it is teams interop
|
21125
21125
|
const isTeamsInterop = Object.values(participants).find((p) => 'microsoftTeamsUserId' in p.id) !== undefined;
|
21126
21126
|
// get number of participants
|
@@ -21486,7 +21486,7 @@ const _DEFAULT_INLINE_IMAGE_FILE_NAME = 'image.png';
|
|
21486
21486
|
|
21487
21487
|
// Copyright (c) Microsoft Corporation.
|
21488
21488
|
// Licensed under the MIT License.
|
21489
|
-
var __awaiter$
|
21489
|
+
var __awaiter$K = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
21490
21490
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
21491
21491
|
return new (P || (P = Promise))(function (resolve, reject) {
|
21492
21492
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -21603,9 +21603,9 @@ class AzureCommunicationChatAdapter {
|
|
21603
21603
|
this.chatClient.dispose();
|
21604
21604
|
}
|
21605
21605
|
fetchInitialData() {
|
21606
|
-
return __awaiter$
|
21606
|
+
return __awaiter$K(this, void 0, void 0, function* () {
|
21607
21607
|
// If get properties fails we dont want to try to get the participants after.
|
21608
|
-
yield this.asyncTeeErrorToEventEmitter(() => __awaiter$
|
21608
|
+
yield this.asyncTeeErrorToEventEmitter(() => __awaiter$K(this, void 0, void 0, function* () {
|
21609
21609
|
var _a, e_1, _b, _c;
|
21610
21610
|
yield this.chatThreadClient.getProperties();
|
21611
21611
|
try {
|
@@ -21641,66 +21641,66 @@ class AzureCommunicationChatAdapter {
|
|
21641
21641
|
this.context.offStateChange(handler);
|
21642
21642
|
}
|
21643
21643
|
sendMessage(content, options) {
|
21644
|
-
return __awaiter$
|
21645
|
-
yield this.asyncTeeErrorToEventEmitter(() => __awaiter$
|
21644
|
+
return __awaiter$K(this, void 0, void 0, function* () {
|
21645
|
+
yield this.asyncTeeErrorToEventEmitter(() => __awaiter$K(this, void 0, void 0, function* () {
|
21646
21646
|
return yield this.handlers.onSendMessage(content, options);
|
21647
21647
|
}));
|
21648
21648
|
});
|
21649
21649
|
}
|
21650
21650
|
/* @conditional-compile-remove(rich-text-editor-image-upload) */
|
21651
21651
|
uploadImage(image, imageFilename) {
|
21652
|
-
return __awaiter$
|
21653
|
-
return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$
|
21652
|
+
return __awaiter$K(this, void 0, void 0, function* () {
|
21653
|
+
return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$K(this, void 0, void 0, function* () {
|
21654
21654
|
return yield this.handlers.onUploadImage(image, imageFilename);
|
21655
21655
|
}));
|
21656
21656
|
});
|
21657
21657
|
}
|
21658
21658
|
/* @conditional-compile-remove(rich-text-editor-image-upload) */
|
21659
21659
|
deleteImage(imageId) {
|
21660
|
-
return __awaiter$
|
21661
|
-
return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$
|
21660
|
+
return __awaiter$K(this, void 0, void 0, function* () {
|
21661
|
+
return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$K(this, void 0, void 0, function* () {
|
21662
21662
|
return yield this.handlers.onDeleteImage(imageId);
|
21663
21663
|
}));
|
21664
21664
|
});
|
21665
21665
|
}
|
21666
21666
|
sendReadReceipt(chatMessageId) {
|
21667
|
-
return __awaiter$
|
21668
|
-
yield this.asyncTeeErrorToEventEmitter(() => __awaiter$
|
21667
|
+
return __awaiter$K(this, void 0, void 0, function* () {
|
21668
|
+
yield this.asyncTeeErrorToEventEmitter(() => __awaiter$K(this, void 0, void 0, function* () {
|
21669
21669
|
yield this.handlers.onMessageSeen(chatMessageId);
|
21670
21670
|
}));
|
21671
21671
|
});
|
21672
21672
|
}
|
21673
21673
|
sendTypingIndicator() {
|
21674
|
-
return __awaiter$
|
21675
|
-
yield this.asyncTeeErrorToEventEmitter(() => __awaiter$
|
21674
|
+
return __awaiter$K(this, void 0, void 0, function* () {
|
21675
|
+
yield this.asyncTeeErrorToEventEmitter(() => __awaiter$K(this, void 0, void 0, function* () {
|
21676
21676
|
yield this.handlers.onTyping();
|
21677
21677
|
}));
|
21678
21678
|
});
|
21679
21679
|
}
|
21680
21680
|
removeParticipant(userId) {
|
21681
|
-
return __awaiter$
|
21682
|
-
yield this.asyncTeeErrorToEventEmitter(() => __awaiter$
|
21681
|
+
return __awaiter$K(this, void 0, void 0, function* () {
|
21682
|
+
yield this.asyncTeeErrorToEventEmitter(() => __awaiter$K(this, void 0, void 0, function* () {
|
21683
21683
|
yield this.handlers.onRemoveParticipant(userId);
|
21684
21684
|
}));
|
21685
21685
|
});
|
21686
21686
|
}
|
21687
21687
|
setTopic(topicName) {
|
21688
|
-
return __awaiter$
|
21689
|
-
yield this.asyncTeeErrorToEventEmitter(() => __awaiter$
|
21688
|
+
return __awaiter$K(this, void 0, void 0, function* () {
|
21689
|
+
yield this.asyncTeeErrorToEventEmitter(() => __awaiter$K(this, void 0, void 0, function* () {
|
21690
21690
|
yield this.handlers.updateThreadTopicName(topicName);
|
21691
21691
|
}));
|
21692
21692
|
});
|
21693
21693
|
}
|
21694
21694
|
loadPreviousChatMessages(messagesToLoad) {
|
21695
|
-
return __awaiter$
|
21696
|
-
return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$
|
21695
|
+
return __awaiter$K(this, void 0, void 0, function* () {
|
21696
|
+
return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$K(this, void 0, void 0, function* () {
|
21697
21697
|
return yield this.handlers.onLoadPreviousChatMessages(messagesToLoad);
|
21698
21698
|
}));
|
21699
21699
|
});
|
21700
21700
|
}
|
21701
21701
|
updateMessage(messageId, content, options) {
|
21702
|
-
return __awaiter$
|
21703
|
-
return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$
|
21702
|
+
return __awaiter$K(this, void 0, void 0, function* () {
|
21703
|
+
return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$K(this, void 0, void 0, function* () {
|
21704
21704
|
var _a;
|
21705
21705
|
/* @conditional-compile-remove(file-sharing-acs) */
|
21706
21706
|
const messageOptions = {};
|
@@ -21731,14 +21731,14 @@ class AzureCommunicationChatAdapter {
|
|
21731
21731
|
});
|
21732
21732
|
}
|
21733
21733
|
deleteMessage(messageId) {
|
21734
|
-
return __awaiter$
|
21735
|
-
return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$
|
21734
|
+
return __awaiter$K(this, void 0, void 0, function* () {
|
21735
|
+
return yield this.asyncTeeErrorToEventEmitter(() => __awaiter$K(this, void 0, void 0, function* () {
|
21736
21736
|
return yield this.handlers.onDeleteMessage(messageId);
|
21737
21737
|
}));
|
21738
21738
|
});
|
21739
21739
|
}
|
21740
21740
|
downloadResourceToCache(resourceDetails) {
|
21741
|
-
return __awaiter$
|
21741
|
+
return __awaiter$K(this, void 0, void 0, function* () {
|
21742
21742
|
this.chatClient.downloadResourceToCache(resourceDetails.threadId, resourceDetails.messageId, resourceDetails.resourceUrl);
|
21743
21743
|
});
|
21744
21744
|
}
|
@@ -21817,7 +21817,7 @@ class AzureCommunicationChatAdapter {
|
|
21817
21817
|
this.emitter.off(event, listener);
|
21818
21818
|
}
|
21819
21819
|
asyncTeeErrorToEventEmitter(f) {
|
21820
|
-
return __awaiter$
|
21820
|
+
return __awaiter$K(this, void 0, void 0, function* () {
|
21821
21821
|
try {
|
21822
21822
|
return yield f();
|
21823
21823
|
}
|
@@ -21867,7 +21867,7 @@ const convertEventType = (type) => {
|
|
21867
21867
|
*
|
21868
21868
|
* @public
|
21869
21869
|
*/
|
21870
|
-
const createAzureCommunicationChatAdapter = (_a) => __awaiter$
|
21870
|
+
const createAzureCommunicationChatAdapter = (_a) => __awaiter$K(void 0, [_a], void 0, function* ({ endpoint: endpointUrl, userId, displayName, credential, threadId }) {
|
21871
21871
|
return _createAzureCommunicationChatAdapterInner(endpointUrl, userId, displayName, credential, threadId);
|
21872
21872
|
});
|
21873
21873
|
/**
|
@@ -21875,7 +21875,7 @@ const createAzureCommunicationChatAdapter = (_a) => __awaiter$J(void 0, [_a], vo
|
|
21875
21875
|
*
|
21876
21876
|
* @internal
|
21877
21877
|
*/
|
21878
|
-
const _createAzureCommunicationChatAdapterInner = (endpoint_1, userId_1, displayName_1, credential_1, threadId_1, ...args_1) => __awaiter$
|
21878
|
+
const _createAzureCommunicationChatAdapterInner = (endpoint_1, userId_1, displayName_1, credential_1, threadId_1, ...args_1) => __awaiter$K(void 0, [endpoint_1, userId_1, displayName_1, credential_1, threadId_1, ...args_1], void 0, function* (endpoint, userId, displayName, credential, threadId, telemetryImplementationHint = 'Chat') {
|
21879
21879
|
if (!_isValidIdentifier(userId)) {
|
21880
21880
|
throw new Error('Provided userId is invalid. Please provide valid identifier object.');
|
21881
21881
|
}
|
@@ -21895,7 +21895,7 @@ const _createAzureCommunicationChatAdapterInner = (endpoint_1, userId_1, display
|
|
21895
21895
|
* ThreadId is a promise to allow for lazy initialization of the adapter.
|
21896
21896
|
* @internal
|
21897
21897
|
*/
|
21898
|
-
const _createLazyAzureCommunicationChatAdapterInner = (endpoint_2, userId_2, displayName_2, credential_2, threadId_2, ...args_2) => __awaiter$
|
21898
|
+
const _createLazyAzureCommunicationChatAdapterInner = (endpoint_2, userId_2, displayName_2, credential_2, threadId_2, ...args_2) => __awaiter$K(void 0, [endpoint_2, userId_2, displayName_2, credential_2, threadId_2, ...args_2], void 0, function* (endpoint, userId, displayName, credential, threadId, telemetryImplementationHint = 'Chat') {
|
21899
21899
|
if (!_isValidIdentifier(userId)) {
|
21900
21900
|
throw new Error('Provided userId is invalid. Please provide valid identifier object.');
|
21901
21901
|
}
|
@@ -21905,7 +21905,7 @@ const _createLazyAzureCommunicationChatAdapterInner = (endpoint_2, userId_2, dis
|
|
21905
21905
|
endpoint,
|
21906
21906
|
credential
|
21907
21907
|
}, undefined, telemetryImplementationHint);
|
21908
|
-
return threadId.then((threadId) => __awaiter$
|
21908
|
+
return threadId.then((threadId) => __awaiter$K(void 0, void 0, void 0, function* () {
|
21909
21909
|
if (UNSUPPORTED_CHAT_THREAD_TYPE.some((t) => threadId.includes(t))) {
|
21910
21910
|
console.error(`Invalid Chat ThreadId: ${threadId}. Please note with Teams Channel Meetings, only Calling is supported and Chat is not currently supported. Read more: ${TEAMS_LIMITATION_LEARN_MORE}.`);
|
21911
21911
|
}
|
@@ -21966,7 +21966,7 @@ beforeDispose) => {
|
|
21966
21966
|
if (!credential || !displayName || !endpoint || !threadId || !userId) {
|
21967
21967
|
return;
|
21968
21968
|
}
|
21969
|
-
(() => __awaiter$
|
21969
|
+
(() => __awaiter$K(void 0, void 0, void 0, function* () {
|
21970
21970
|
if (adapterRef.current) {
|
21971
21971
|
// Dispose the old adapter when a new one is created.
|
21972
21972
|
//
|
@@ -21998,7 +21998,7 @@ beforeDispose) => {
|
|
21998
21998
|
// Dispose any existing adapter when the component unmounts.
|
21999
21999
|
React.useEffect(() => {
|
22000
22000
|
return () => {
|
22001
|
-
(() => __awaiter$
|
22001
|
+
(() => __awaiter$K(void 0, void 0, void 0, function* () {
|
22002
22002
|
if (adapterRef.current) {
|
22003
22003
|
if (beforeDisposeRef.current) {
|
22004
22004
|
yield beforeDisposeRef.current(adapterRef.current);
|
@@ -22020,7 +22020,7 @@ beforeDispose) => {
|
|
22020
22020
|
* @public
|
22021
22021
|
*/
|
22022
22022
|
function createAzureCommunicationChatAdapterFromClient(chatClient, chatThreadClient) {
|
22023
|
-
return __awaiter$
|
22023
|
+
return __awaiter$K(this, void 0, void 0, function* () {
|
22024
22024
|
return new AzureCommunicationChatAdapter(chatClient, chatThreadClient);
|
22025
22025
|
});
|
22026
22026
|
}
|
@@ -22028,7 +22028,7 @@ const isChatError = (e) => {
|
|
22028
22028
|
return 'target' in e && e['target'] !== undefined && 'innerError' in e && e['innerError'] !== undefined;
|
22029
22029
|
};
|
22030
22030
|
|
22031
|
-
var call$k={cameraLabel:"Camera",noCamerasLabel:"No cameras found",cameraPermissionDenied:"Your browser is blocking access to your camera",cameraTurnedOff:"Your camera is turned off",chatButtonLabel:"Chat",close:"Close",complianceBannerNowOnlyRecording:"You are now only recording this meeting.",complianceBannerNowOnlyTranscription:"You are now only transcribing this meeting.",complianceBannerRecordingAndTranscriptionSaved:"Recording and transcription are being saved.",complianceBannerRecordingAndTranscriptionStarted:"Recording and transcription have started.",complianceBannerRecordingAndTranscriptionStopped:"Recording and transcription have stopped.",complianceBannerRecordingSaving:"Recording is being saved.",complianceBannerRecordingStarted:"Recording has started.",complianceBannerRecordingStopped:"Recording has stopped.",complianceBannerTranscriptionStarted:"Transcription has started.",complianceBannerTranscriptionConsent:"By joining, you are giving consent for this meeting to be transcribed.",complianceBannerTranscriptionSaving:"Transcription is being saved.",complianceBannerTranscriptionStopped:"Transcription has stopped.",configurationPageTitle:"Start a call",copyInviteLinkButtonLabel:"Copy invite link",copyInviteLinkButtonActionedLabel:"Link copied",copyInviteLinkActionedAriaLabel:"Invite link copied",defaultPlaceHolder:"Select an option",dismissSidePaneButtonLabel:"Close",videoEffectsPaneTitle:"Effects",videoEffectsPaneBackgroundSelectionTitle:"Background",configurationPageVideoEffectsButtonLabel:"Effects",unableToStartVideoEffect:"Unable to apply video effect.",blurBackgroundEffectButtonLabel:"Blur",blurBackgroundTooltip:"Blur Background",removeBackgroundEffectButtonLabel:"None",removeBackgroundTooltip:"Remove Background",cameraOffBackgroundEffectWarningText:"Your camera is off. Turn on camera to see video effect.",failedToJoinCallDueToNoNetworkMoreDetails:"Call was disconnected due to a network issue. Check your connection and join again.",failedToJoinCallDueToNoNetworkTitle:"Call disconnected",failedToJoinTeamsMeetingReasonAccessDeniedMoreDetails:"You were not granted entry in the call. If this was a mistake, re-join the call.",failedToJoinTeamsMeetingReasonAccessDeniedTitle:"Dismissed from lobby",learnMore:"Learn more",leavingCallTitle:"Leaving...",leftCallMoreDetails:"If this was a mistake, re-join the call.",leftCallTitle:"You left the call",lobbyScreenConnectingToCallTitle:"Joining call",lobbyScreenWaitingToBeAdmittedTitle:"Waiting to be admitted",microphonePermissionDenied:"Your browser is blocking access to your microphone",microphoneToggleInLobbyNotAllowed:"Cannot mute or unmute while in lobby.",mutedMessage:"You're muted",networkReconnectMoreDetails:"Looks like something went wrong. We're trying to get back into the call.",networkReconnectTitle:"Hold on",notInvitedToRoomDetails:"You are not able to join this room because you do not have an invite.",notInvitedToRoomTitle:"Not invited to room",peopleButtonLabel:"People",selectedPeopleButtonLabel:"People Button Selected",peoplePaneTitle:"People",peoplePaneMoreButtonAriaLabel:"More",peopleButtonTooltipOpen:"Show participants",peopleButtonTooltipClose:"Hide participants",peoplePaneSubTitle:"In this call {numberOfPeople}",privacyPolicy:"Privacy policy",rejoinCallButtonLabel:"Re-join call",removedFromCallMoreDetails:"Another participant removed you from the call.",removedFromCallTitle:"You were removed",removeMenuLabel:"Remove",startSpotlightMenuLabel:"Spotlight for everyone",addSpotlightMenuLabel:"Add spotlight",stopSpotlightMenuLabel:"Stop spotlighting",stopSpotlightOnSelfMenuLabel:"Exit spotlight",spotlightLimitReachedMenuTitle:"Spotlight limit reached",stopAllSpotlightMenuLabel:"Stop all spotlights",returnToCallButtonAriaDescription:"Return to Call",returnToCallButtonAriaLabel:"Back",roomNotFoundDetails:"The room ID provided could not be found.",roomNotFoundTitle:"Room not found",roomNotValidDetails:"This room is not valid at this current time.",roomNotValidTitle:"Room not valid",inviteToRoomRemovedDetails:"Your invite to join this room was removed.",inviteToRoomRemovedTitle:"Invite to room removed",soundLabel:"Sound",noMicrophonesLabel:"No microphones found",noSpeakersLabel:"No speakers found",startCallButtonLabel:"Start call",openDialpadButtonLabel:"Dial phone number",peoplePaneAddPeopleButtonLabel:"Add People",dialpadStartCallButtonLabel:"Call",dialpadModalTitle:"Dial Phone Number",dialpadModalAriaLabel:"Dialpad",dialpadCloseModalButtonAriaLabel:"Close dialpad",moreButtonCallingLabel:"More",resumeCallButtonLabel:"Resume",resumingCallButtonLabel:"Resuming...",resumeCallButtonAriaLabel:"Resume call",resumingCallButtonAriaLabel:"Resume call",holdScreenLabel:"You're on hold",openDtmfDialpadLabel:"Show dialpad",dtmfDialpadPlaceholderText:"Enter number",outboundCallingNoticeString:"Calling...",participantJoinedNoticeString:"{displayName} joined",twoParticipantJoinedNoticeString:"{displayName1} and {displayName2} have joined",threeParticipantJoinedNoticeString:"{displayName1}, {displayName2} and {displayName3} have joined",participantLeftNoticeString:"{displayName} left",twoParticipantLeftNoticeString:"{displayName1} and {displayName2} have left",threeParticipantLeftNoticeString:"{displayName1}, {displayName2} and {displayName3} have left",unnamedParticipantString:"unnamed participant",manyUnnamedParticipantsJoined:"unnamed participant and {numOfParticipants} other participants joined",manyUnnamedParticipantsLeft:"unnamed participant and {numOfParticipants} other participants left",manyParticipantsJoined:"{displayName1}, {displayName2}, {displayName3} and {numOfParticipants} other participants joined",manyParticipantsLeft:"{displayName1}, {displayName2}, {displayName3} and {numOfParticipants} other participants left",liveCaptionsLabel:"Live captions",captionsSettingsLabel:"Caption settings",startCaptionsButtonOnLabel:"Turn on captions",startCaptionsButtonOffLabel:"Turn off captions",startCaptionsButtonTooltipOnContent:"Turn off captions",startCaptionsButtonTooltipOffContent:"Turn on captions",captionsSettingsModalTitle:"Captions Settings",captionsSettingsSpokenLanguageDropdownLabel:"Spoken language",captionsSettingsCaptionLanguageDropdownLabel:"Captions language",captionsSettingsSpokenLanguageDropdownInfoText:"Language that everyone on this call is speaking.",captionsSettingsCaptionLanguageDropdownInfoText:"Captions will appear in this langugage.",captionsSettingsConfirmButtonLabel:"Confirm",captionsSettingsCancelButtonLabel:"Cancel",captionsSettingsModalAriaLabel:"Captions Setting Modal",captionsSettingsCloseModalButtonAriaLabel:"Close Captions Setting",captionsBannerMoreButtonCallingLabel:"More",captionsBannerMoreButtonTooltip:"More options",dismissModalAriaLabel:"Local and remote picture and picture, press enter to return to call",callRejectedTitle:"The call could not be completed",callRejectedMoreDetails:"The person you are trying to reach is unavailable. Please try again later.",callTimeoutTitle:"The call could not be completed",callTimeoutDetails:"The person you are trying to reach is unavailable. Please try again later.",callTimeoutBotTitle:"The call could not be completed",callTimeoutBotDetails:"The service that you are trying to reach is unavailable. Please try again later.",dtmfDialerButtonLabel:"Dialpad",dtmfDialerButtonTooltipOn:"Show dialpad",dtmfDialerButtonTooltipOff:"Hide dialpad",dtmfDialerMoreButtonLabelOn:"Show dialpad",dtmfDialerMoreButtonLabelOff:"Hide dialpad",phoneCallMoreButtonLabel:"Phone Call",spokenLanguageStrings:{"ar-ae":"Arabic - U.A.E.","ar-sa":"Arabic - Saudi Arabia","da-dk":"Danish","de-de":"German - Germany","en-au":"English - Australia","en-ca":"English - Canada","en-gb":"English - United Kingdom","en-in":"English - India","en-nz":"English - New Zealand","en-us":"English - United States","es-es":"Spanish - Spain (Modern Sort)","es-mx":"Spanish - Mexico","fi-fi":"Finnish","fr-ca":"French - Canada","fr-fr":"French - France","hi-in":"Hindi","it-it":"Italian - Italy","ja-jp":"Japanese","ko-kr":"Korean","nb-no":"Norwegian (Bokmål)","nl-be":"Dutch - Belgium","nl-nl":"Dutch - Netherlands","pl-pl":"Polish","pt-br":"Portuguese - Brazil","ru-ru":"Russian","sv-se":"Swedish","zh-cn":"Chinese - People's Republic of China","zh-hk":"Chinese - Hong Kong SAR","cs-cz":"Czech","pt-pt":"Portuguese - Portugal","tr-tr":"Turkish","vi-vn":"Vietnamese","th-th":"Thai","he-il":"Hebrew","cy-gb":"Welsh","uk-ua":"Ukrainian","el-gr":"Greek","hu-hu":"Hungarian","ro-ro":"Romanian","sk-sk":"Slovak","zh-tw":"Chinese - Taiwan"},captionLanguageStrings:{ar:"Arabic",da:"Danish",de:"German",en:"English",es:"Spanish",fi:"Finnish","fr-ca":"French - Canada",fr:"French - France",hi:"Hindi",it:"Italian",ja:"Japanese",ko:"Korean",nb:"Norwegian (Bokmål)",nl:"Dutch",pl:"Polish",pt:"Portuguese - Brazil",ru:"Russian",sv:"Swedish","zh-Hans":"Chinese (Simplified)","zh-Hant":"Chinese (Traditional)",cs:"Czech","pt-pt":"Portuguese - Portugal",tr:"Turkish",vi:"Vietnamese",th:"Thai",he:"Hebrew",cy:"Welsh",uk:"Ukrainian",el:"Greek",hu:"Hungarian",ro:"Romanian",sk:"Slovak"},captionsBannerSpinnerText:"Starting captions...",transferPageTransferorText:"Transferring...",transferPageTransferTargetText:"Connecting...",transferPageUnknownTransferorDisplayName:"Unknown",transferPageUnknownTransferTargetDisplayName:"Unknown",transferPageNoticeString:"You are being transferred",participantCouldNotBeReachedTitle:"Target participant is currently not available",participantCouldNotBeReachedMoreDetails:"Please contact participant when they are available",permissionToReachTargetParticipantNotAllowedTitle:"Permission to reach target participant is not allowed",permissionToReachTargetParticipantNotAllowedMoreDetails:"Please check that the target participant is in the same tenant",unableToResolveTenantTitle:"Unable to resolve tenant id for the target participant",unableToResolveTenantMoreDetails:"Please check the participant id is entered correctly",participantIdIsMalformedTitle:"Participant id is not in the correct format",participantIdIsMalformedMoreDetails:"Please check that the participant id is in the correct format",moreButtonGalleryControlLabel:"View",moreButtonGalleryPositionToggleLabel:"Move gallery to top",moreButtonGallerySpeakerLayoutLabel:"Speaker",moreButtonGalleryFloatingLocalLayoutLabel:"Dynamic",moreButtonGalleryDefaultLayoutLabel:"Gallery view",moreButtonGalleryFocusedContentLayoutLabel:"Focus on content",moreButtonLargeGalleryDefaultLayoutLabel:"Large Gallery",capabilityChangedNotification:{turnVideoOn:{lostDueToMeetingOption:"Your camera has been disabled. You can no longer share video.",grantedDueToMeetingOption:"Your camera has been enabled. Turn it on if you'd like to share video."},unmuteMic:{lostDueToMeetingOption:"Your mic has been disabled. You can no longer unmute.",grantedDueToMeetingOption:"Your mic has been enabled. Unmute if you'd like to speak."},shareScreen:{lostDueToRoleChangeToAttendee:"Your role has been changed. Some actions, like sharing content, won't be available to you.",grantedDueToRoleChangeToPresenter:"You're a presenter. You can share content and facilitate the meeting."},hideAttendeeNames:{hideAttendeeNameAttendee:"Your name is hidden from other attendees. Organizers and presenters can see your real name.",hideAttendeeNamePresenter:"Attendee names are hidden. Only organizers and presenters can see names to protect attendee privacy."}},surveyTitle:"Help us improve",starSurveyHelperText:"How was the quality of the call?",starSurveyOneStarText:"The quality was bad.",starSurveyTwoStarText:"The quality was poor.",starSurveyThreeStarText:"The quality was good.",starSurveyFourStarText:"The quality was great.",starSurveyFiveStarText:"The quality was excellent.",surveyConfirmButtonLabel:"Send Feedback",starRatingAriaLabel:"Select {0} of {1} stars",surveySkipButtonLabel:"Skip",tagsSurveyQuestion:"What could have been better?",tagsSurveyTextFieldDefaultText:"Other, please specify",tagsSurveyHelperText:"Check any issues you experienced",endOfSurveyText:"Thank you for your feedback!",surveyIssues:{overallRating:{callCannotJoin:"I could not join call",callCannotInvite:"I could not invite others into the call",hadToRejoin:"I had to rejoin the call",callEndedUnexpectedly:"Call ended for me unexpectedly",otherIssues:"I was having other issues with the call"},audioRating:{noLocalAudio:"The other side could not hear any sound",noRemoteAudio:"I could not hear any sound",echo:"I heard echos on the call",audioNoise:"I heard noise on the call",lowVolume:"Volume was low",audioStoppedUnexpectedly:"Audio stopped unexpectedly",distortedSpeech:"Audio was distorted",audioInterruption:"Audio was interrupted",otherIssues:"I was having other audio issues in this call"},videoRating:{noVideoReceived:"I could not see any video",noVideoSent:"Others could not see me",lowQuality:"Video quality was low",freezes:"Video frozen",stoppedUnexpectedly:"Video stopped unexpectedly",darkVideoReceived:"I can only see dark screens when others turn on their camera",audioVideoOutOfSync:"Audio and Video was out of sync",otherIssues:"I was having other video issues in this call"},screenshareRating:{noContentLocal:"Other people could not see my screenshare",noContentRemote:"I could not see other people's screenshare",cannotPresent:"I could not present my screen",lowQuality:"Screen share quality was low",freezes:"Screen share frozen",stoppedUnexpectedly:"Screen share stopped unexpectedly",largeDelay:"Screen share has a large delay",otherIssues:"I was having other screen share issues in this call"}},surveyIssuesHeadingStrings:{overallRating:"Overall",audioRating:"Audio",videoRating:"Video",screenshareRating:"Presenting"},spotlightPrompt:{startSpotlightHeading:"Spotlight for everyone?",startSpotlightText:"You'll highlight this video for everyone in the meeting.",startSpotlightOnSelfText:"You'll highlight your video for everyone in the meeting.",startSpotlightConfirmButtonLabel:"Spotlight for everyone",startSpotlightCancelButtonLabel:"Cancel",stopSpotlightHeading:"Stop spotlighting this video?",stopSpotlightOnSelfHeading:"Exit spotlight?",stopAllSpotlightHeading:"Stop spotlighting all videos?",stopSpotlightText:"This video will no longer be highlighted for everyone in the meeting.",stopSpotlightOnSelfText:"Your video will no longer be highlighted for everyone in the meeting.",stopAllSpotlightText:"The videos will no longer be highlighted for everyone in the meeting.",stopSpotlightConfirmButtonLabel:"Stop spotlighting",stopSpotlightOnSelfConfirmButtonLabel:"Exit spotlight",stopSpotlightCancelButtonLabel:"Cancel"},exitSpotlightButtonLabel:"Exit spotlight",exitSpotlightButtonTooltip:"Exit spotlight",leaveConfirmButtonLabel:"Leave",endCallConfirmButtonLabel:"End call",hangUpCancelButtonLabel:"Cancel",leaveConfirmDialogTitle:"Leave the call?",leaveConfirmDialogContent:"Are you sure you want to leave the call?",endCallConfirmDialogTitle:"End the call?",endCallConfirmDialogContent:"You'll end the call for everyone.",invalidMeetingIdentifier:"Invalid meeting ID or passcode",pinParticipantMenuLabel:"Pin for me",pinParticipantLimitReachedMenuLabel:"Pin (limit reached)",unpinParticipantMenuLabel:"Unpin",pinParticipantMenuItemAriaLabel:"Pin",unpinParticipantMenuItemAriaLabel:"Unpin",muteAllMenuLabel:"Mute all",muteAllDialogTitle:"Mute everyone?",muteAllDialogContent:"This will mute everyone in the meeting but you.",muteAllConfirmButtonLabel:"Mute all",muteAllCancelButtonLabel:"Cancel",joinBreakoutRoomButtonLabel:"Join breakout room",returnFromBreakoutRoomButtonLabel:"Leave room",leaveBreakoutRoomAndMeetingButtonLabel:"Leave meeting",breakoutRoomJoinedNotificationTitle:"You've joined Breakout room '{roomName}'",joinBreakoutRoomBannerTitle:"Breakout room '{roomName}' is open",joinBreakoutRoomBannerButtonLabel:"Join",returnFromBreakoutRoomBannerTitle:"Return to main meeting",returnFromBreakoutRoomBannerButtonLabel:"Rejoin"};var chat$k={chatListHeader:"In this chat",uploadAttachment:"Upload Attachment",uploadImageDataNotProvided:"Image data is not provided.",uploadImageIsTooLarge:"Image is too large. Choose one that's less than {maxImageSize} MB.",uploadImageExtensionIsNotAllowed:"Uploading .{imageExtension} image is not allowed.",uploadImageFailed:"Unable to upload image. Please try again later."};var callWithChat$k={chatButtonLabel:"Chat",chatButtonNewMessageNotificationLabel:"New Message",chatButtonTooltipClosedWithMessageCount:"Show chat ({unreadMessagesCount} unread)",chatButtonTooltipClose:"Hide chat",chatButtonTooltipOpen:"Show chat",chatPaneTitle:"Chat",copyInviteLinkButtonLabel:"Copy invite link",copyInviteLinkButtonActionedLabel:"Link copied",copyInviteLinkActionedAriaLabel:"Invite link copied",dismissSidePaneButtonLabel:"Close",moreDrawerAudioDeviceMenuTitle:"Audio Device",moreDrawerButtonLabel:"More options",moreDrawerButtonTooltip:"More options",moreDrawerMicrophoneMenuTitle:"Microphone",moreDrawerSpeakerMenuTitle:"Speaker",moreDrawerCaptionsMenuTitle:"Live captions",moreDrawerSpokenLanguageMenuTitle:"Spoken language",moreDrawerCaptionLanguageMenuTitle:"Caption language",moreDrawerGalleryOptionsMenuTitle:"Gallery options",peopleButtonLabel:"People",selectedPeopleButtonLabel:"People Button Selected",peopleButtonTooltipOpen:"Show participants",peopleButtonTooltipClose:"Hide participants",peopleButtonTooltipOpenAriaLabel:"People button, Show participants",peopleButtonTooltipCloseAriaLabel:"People button, Hide participants",peoplePaneSubTitle:"In this call",peoplePaneTitle:"People",pictureInPictureTileAriaLabel:"Video Feeds. Click to return to call screen.",removeMenuLabel:"Remove",openDialpadButtonLabel:"Dial phone number",returnToCallButtonAriaDescription:"Return to Call",returnToCallButtonAriaLabel:"Back",peoplePaneAddPeopleButtonLabel:"Add People",dialpadStartCallButtonLabel:"Call",dialpadModalTitle:"Dial Phone Number",dialpadModalAriaLabel:"Dialpad",dialpadCloseModalButtonAriaLabel:"Close dialpad",openDtmfDialpadLabel:"Show dialpad",dtmfDialpadPlaceholderText:"Enter number",breakoutRoomChatPaneTitle:"Breakout Room Chat"};var en_US = {call:call$k,chat:chat$k,callWithChat:callWithChat$k};
|
22031
|
+
var call$k={cameraLabel:"Camera",noCamerasLabel:"No cameras found",cameraPermissionDenied:"Your browser is blocking access to your camera",cameraTurnedOff:"Your camera is turned off",chatButtonLabel:"Chat",close:"Close",complianceBannerNowOnlyRecording:"You are now only recording this meeting.",complianceBannerNowOnlyTranscription:"You are now only transcribing this meeting.",complianceBannerRecordingAndTranscriptionSaved:"Recording and transcription are being saved.",complianceBannerRecordingAndTranscriptionStarted:"Recording and transcription have started.",complianceBannerRecordingAndTranscriptionStopped:"Recording and transcription have stopped.",complianceBannerRecordingSaving:"Recording is being saved.",complianceBannerRecordingStarted:"Recording has started.",complianceBannerRecordingStopped:"Recording has stopped.",complianceBannerTranscriptionStarted:"Transcription has started.",complianceBannerTranscriptionConsent:"By joining, you are giving consent for this meeting to be transcribed.",complianceBannerTranscriptionSaving:"Transcription is being saved.",complianceBannerTranscriptionStopped:"Transcription has stopped.",configurationPageTitle:"Start a call",copyInviteLinkButtonLabel:"Copy invite link",copyInviteLinkButtonActionedLabel:"Link copied",copyInviteLinkActionedAriaLabel:"Invite link copied",defaultPlaceHolder:"Select an option",dismissSidePaneButtonLabel:"Close",videoEffectsPaneTitle:"Effects",videoEffectsPaneBackgroundSelectionTitle:"Background",configurationPageVideoEffectsButtonLabel:"Effects",unableToStartVideoEffect:"Unable to apply video effect.",blurBackgroundEffectButtonLabel:"Blur",blurBackgroundTooltip:"Blur Background",removeBackgroundEffectButtonLabel:"None",removeBackgroundTooltip:"Remove Background",cameraOffBackgroundEffectWarningText:"Your camera is off. Turn on camera to see video effect.",failedToJoinCallDueToNoNetworkMoreDetails:"Call was disconnected due to a network issue. Check your connection and join again.",failedToJoinCallDueToNoNetworkTitle:"Call disconnected",failedToJoinTeamsMeetingReasonAccessDeniedMoreDetails:"You were not granted entry in the call. If this was a mistake, re-join the call.",failedToJoinTeamsMeetingReasonAccessDeniedTitle:"Dismissed from lobby",learnMore:"Learn more",leavingCallTitle:"Leaving...",leftCallMoreDetails:"If this was a mistake, re-join the call.",leftCallTitle:"You left the call",lobbyScreenConnectingToCallTitle:"Joining call",lobbyScreenWaitingToBeAdmittedTitle:"Waiting to be admitted",microphonePermissionDenied:"Your browser is blocking access to your microphone",microphoneToggleInLobbyNotAllowed:"Cannot mute or unmute while in lobby.",mutedMessage:"You're muted",networkReconnectMoreDetails:"Looks like something went wrong. We're trying to get back into the call.",networkReconnectTitle:"Hold on",notInvitedToRoomDetails:"You are not able to join this room because you do not have an invite.",notInvitedToRoomTitle:"Not invited to room",peopleButtonLabel:"People",selectedPeopleButtonLabel:"People Button Selected",peoplePaneTitle:"People",peoplePaneMoreButtonAriaLabel:"More",peopleButtonTooltipOpen:"Show participants",peopleButtonTooltipClose:"Hide participants",peoplePaneSubTitle:"In this call {numberOfPeople}",privacyPolicy:"Privacy policy",rejoinCallButtonLabel:"Re-join call",removedFromCallMoreDetails:"Another participant removed you from the call.",removedFromCallTitle:"You were removed",removeMenuLabel:"Remove",startSpotlightMenuLabel:"Spotlight for everyone",addSpotlightMenuLabel:"Add spotlight",stopSpotlightMenuLabel:"Stop spotlighting",stopSpotlightOnSelfMenuLabel:"Exit spotlight",spotlightLimitReachedMenuTitle:"Spotlight limit reached",stopAllSpotlightMenuLabel:"Stop all spotlights",returnToCallButtonAriaDescription:"Return to Call",returnToCallButtonAriaLabel:"Back",roomNotFoundDetails:"The room ID provided could not be found.",roomNotFoundTitle:"Room not found",roomNotValidDetails:"This room is not valid at this current time.",roomNotValidTitle:"Room not valid",inviteToRoomRemovedDetails:"Your invite to join this room was removed.",inviteToRoomRemovedTitle:"Invite to room removed",soundLabel:"Sound",noMicrophonesLabel:"No microphones found",noSpeakersLabel:"No speakers found",startCallButtonLabel:"Start call",openDialpadButtonLabel:"Dial phone number",peoplePaneAddPeopleButtonLabel:"Add People",dialpadStartCallButtonLabel:"Call",dialpadModalTitle:"Dial Phone Number",dialpadModalAriaLabel:"Dialpad",dialpadCloseModalButtonAriaLabel:"Close dialpad",moreButtonCallingLabel:"More",resumeCallButtonLabel:"Resume",resumingCallButtonLabel:"Resuming...",resumeCallButtonAriaLabel:"Resume call",resumingCallButtonAriaLabel:"Resume call",holdScreenLabel:"You're on hold",openDtmfDialpadLabel:"Show dialpad",dtmfDialpadPlaceholderText:"Enter number",outboundCallingNoticeString:"Calling...",participantJoinedNoticeString:"{displayName} joined",twoParticipantJoinedNoticeString:"{displayName1} and {displayName2} have joined",threeParticipantJoinedNoticeString:"{displayName1}, {displayName2} and {displayName3} have joined",participantLeftNoticeString:"{displayName} left",twoParticipantLeftNoticeString:"{displayName1} and {displayName2} have left",threeParticipantLeftNoticeString:"{displayName1}, {displayName2} and {displayName3} have left",unnamedParticipantString:"unnamed participant",manyUnnamedParticipantsJoined:"unnamed participant and {numOfParticipants} other participants joined",manyUnnamedParticipantsLeft:"unnamed participant and {numOfParticipants} other participants left",manyParticipantsJoined:"{displayName1}, {displayName2}, {displayName3} and {numOfParticipants} other participants joined",manyParticipantsLeft:"{displayName1}, {displayName2}, {displayName3} and {numOfParticipants} other participants left",liveCaptionsLabel:"Live captions",captionsSettingsLabel:"Caption settings",startCaptionsButtonOnLabel:"Turn on captions",startCaptionsButtonOffLabel:"Turn off captions",startCaptionsButtonTooltipOnContent:"Turn off captions",startCaptionsButtonTooltipOffContent:"Turn on captions",captionsSettingsModalTitle:"Captions Settings",captionsSettingsSpokenLanguageDropdownLabel:"Spoken language",captionsSettingsCaptionLanguageDropdownLabel:"Captions language",captionsSettingsSpokenLanguageDropdownInfoText:"Language that everyone on this call is speaking.",captionsSettingsCaptionLanguageDropdownInfoText:"Captions will appear in this langugage.",captionsSettingsConfirmButtonLabel:"Confirm",captionsSettingsCancelButtonLabel:"Cancel",captionsSettingsModalAriaLabel:"Captions Setting Modal",captionsSettingsCloseModalButtonAriaLabel:"Close Captions Setting",captionsBannerMoreButtonCallingLabel:"More",captionsBannerMoreButtonTooltip:"More options",dismissModalAriaLabel:"Local and remote picture and picture, press enter to return to call",callRejectedTitle:"The call could not be completed",callRejectedMoreDetails:"The person you are trying to reach is unavailable. Please try again later.",callTimeoutTitle:"The call could not be completed",callTimeoutDetails:"The person you are trying to reach is unavailable. Please try again later.",callTimeoutBotTitle:"The call could not be completed",callTimeoutBotDetails:"The service that you are trying to reach is unavailable. Please try again later.",dtmfDialerButtonLabel:"Dialpad",dtmfDialerButtonTooltipOn:"Show dialpad",dtmfDialerButtonTooltipOff:"Hide dialpad",dtmfDialerMoreButtonLabelOn:"Show dialpad",dtmfDialerMoreButtonLabelOff:"Hide dialpad",phoneCallMoreButtonLabel:"Phone Call",spokenLanguageStrings:{"ar-ae":"Arabic - U.A.E.","ar-sa":"Arabic - Saudi Arabia","da-dk":"Danish","de-de":"German - Germany","en-au":"English - Australia","en-ca":"English - Canada","en-gb":"English - United Kingdom","en-in":"English - India","en-nz":"English - New Zealand","en-us":"English - United States","es-es":"Spanish - Spain (Modern Sort)","es-mx":"Spanish - Mexico","fi-fi":"Finnish","fr-ca":"French - Canada","fr-fr":"French - France","hi-in":"Hindi","it-it":"Italian - Italy","ja-jp":"Japanese","ko-kr":"Korean","nb-no":"Norwegian (Bokmål)","nl-be":"Dutch - Belgium","nl-nl":"Dutch - Netherlands","pl-pl":"Polish","pt-br":"Portuguese - Brazil","ru-ru":"Russian","sv-se":"Swedish","zh-cn":"Chinese - People's Republic of China","zh-hk":"Chinese - Hong Kong SAR","cs-cz":"Czech","pt-pt":"Portuguese - Portugal","tr-tr":"Turkish","vi-vn":"Vietnamese","th-th":"Thai","he-il":"Hebrew","cy-gb":"Welsh","uk-ua":"Ukrainian","el-gr":"Greek","hu-hu":"Hungarian","ro-ro":"Romanian","sk-sk":"Slovak","zh-tw":"Chinese - Taiwan"},captionLanguageStrings:{ar:"Arabic",da:"Danish",de:"German",en:"English",es:"Spanish",fi:"Finnish","fr-ca":"French - Canada",fr:"French - France",hi:"Hindi",it:"Italian",ja:"Japanese",ko:"Korean",nb:"Norwegian (Bokmål)",nl:"Dutch",pl:"Polish",pt:"Portuguese - Brazil",ru:"Russian",sv:"Swedish","zh-Hans":"Chinese (Simplified)","zh-Hant":"Chinese (Traditional)",cs:"Czech","pt-pt":"Portuguese - Portugal",tr:"Turkish",vi:"Vietnamese",th:"Thai",he:"Hebrew",cy:"Welsh",uk:"Ukrainian",el:"Greek",hu:"Hungarian",ro:"Romanian",sk:"Slovak"},captionsBannerSpinnerText:"Starting captions...",transferPageTransferorText:"Transferring...",transferPageTransferTargetText:"Connecting...",transferPageUnknownTransferorDisplayName:"Unknown",transferPageUnknownTransferTargetDisplayName:"Unknown",transferPageNoticeString:"You are being transferred",participantCouldNotBeReachedTitle:"Target participant is currently not available",participantCouldNotBeReachedMoreDetails:"Please contact participant when they are available",permissionToReachTargetParticipantNotAllowedTitle:"Permission to reach target participant is not allowed",permissionToReachTargetParticipantNotAllowedMoreDetails:"Please check that the target participant is in the same tenant",unableToResolveTenantTitle:"Unable to resolve tenant id for the target participant",unableToResolveTenantMoreDetails:"Please check the participant id is entered correctly",participantIdIsMalformedTitle:"Participant id is not in the correct format",participantIdIsMalformedMoreDetails:"Please check that the participant id is in the correct format",moreButtonGalleryControlLabel:"View",moreButtonGalleryPositionToggleLabel:"Move gallery to top",moreButtonGallerySpeakerLayoutLabel:"Speaker",moreButtonGalleryFloatingLocalLayoutLabel:"Dynamic",moreButtonGalleryDefaultLayoutLabel:"Gallery view",moreButtonGalleryFocusedContentLayoutLabel:"Focus on content",moreButtonLargeGalleryDefaultLayoutLabel:"Large Gallery",capabilityChangedNotification:{turnVideoOn:{lostDueToMeetingOption:"Your camera has been disabled. You can no longer share video.",grantedDueToMeetingOption:"Your camera has been enabled. Turn it on if you'd like to share video."},unmuteMic:{lostDueToMeetingOption:"Your mic has been disabled. You can no longer unmute.",grantedDueToMeetingOption:"Your mic has been enabled. Unmute if you'd like to speak."},shareScreen:{lostDueToRoleChangeToAttendee:"Your role has been changed. Some actions, like sharing content, won't be available to you.",grantedDueToRoleChangeToPresenter:"You're a presenter. You can share content and facilitate the meeting."},hideAttendeeNames:{hideAttendeeNameAttendee:"Your name is hidden from other attendees. Organizers and presenters can see your real name.",hideAttendeeNamePresenter:"Attendee names are hidden. Only organizers and presenters can see names to protect attendee privacy."}},surveyTitle:"Help us improve",starSurveyHelperText:"How was the quality of the call?",starSurveyOneStarText:"The quality was bad.",starSurveyTwoStarText:"The quality was poor.",starSurveyThreeStarText:"The quality was good.",starSurveyFourStarText:"The quality was great.",starSurveyFiveStarText:"The quality was excellent.",surveyConfirmButtonLabel:"Send Feedback",starRatingAriaLabel:"Select {0} of {1} stars",surveySkipButtonLabel:"Skip",tagsSurveyQuestion:"What could have been better?",tagsSurveyTextFieldDefaultText:"Other, please specify",tagsSurveyHelperText:"Check any issues you experienced",endOfSurveyText:"Thank you for your feedback!",surveyIssues:{overallRating:{callCannotJoin:"I could not join call",callCannotInvite:"I could not invite others into the call",hadToRejoin:"I had to rejoin the call",callEndedUnexpectedly:"Call ended for me unexpectedly",otherIssues:"I was having other issues with the call"},audioRating:{noLocalAudio:"The other side could not hear any sound",noRemoteAudio:"I could not hear any sound",echo:"I heard echos on the call",audioNoise:"I heard noise on the call",lowVolume:"Volume was low",audioStoppedUnexpectedly:"Audio stopped unexpectedly",distortedSpeech:"Audio was distorted",audioInterruption:"Audio was interrupted",otherIssues:"I was having other audio issues in this call"},videoRating:{noVideoReceived:"I could not see any video",noVideoSent:"Others could not see me",lowQuality:"Video quality was low",freezes:"Video frozen",stoppedUnexpectedly:"Video stopped unexpectedly",darkVideoReceived:"I can only see dark screens when others turn on their camera",audioVideoOutOfSync:"Audio and Video was out of sync",otherIssues:"I was having other video issues in this call"},screenshareRating:{noContentLocal:"Other people could not see my screenshare",noContentRemote:"I could not see other people's screenshare",cannotPresent:"I could not present my screen",lowQuality:"Screen share quality was low",freezes:"Screen share frozen",stoppedUnexpectedly:"Screen share stopped unexpectedly",largeDelay:"Screen share has a large delay",otherIssues:"I was having other screen share issues in this call"}},surveyIssuesHeadingStrings:{overallRating:"Overall",audioRating:"Audio",videoRating:"Video",screenshareRating:"Presenting"},spotlightPrompt:{startSpotlightHeading:"Spotlight for everyone?",startSpotlightText:"You'll highlight this video for everyone in the meeting.",startSpotlightOnSelfText:"You'll highlight your video for everyone in the meeting.",startSpotlightConfirmButtonLabel:"Spotlight for everyone",startSpotlightCancelButtonLabel:"Cancel",stopSpotlightHeading:"Stop spotlighting this video?",stopSpotlightOnSelfHeading:"Exit spotlight?",stopAllSpotlightHeading:"Stop spotlighting all videos?",stopSpotlightText:"This video will no longer be highlighted for everyone in the meeting.",stopSpotlightOnSelfText:"Your video will no longer be highlighted for everyone in the meeting.",stopAllSpotlightText:"The videos will no longer be highlighted for everyone in the meeting.",stopSpotlightConfirmButtonLabel:"Stop spotlighting",stopSpotlightOnSelfConfirmButtonLabel:"Exit spotlight",stopSpotlightCancelButtonLabel:"Cancel"},exitSpotlightButtonLabel:"Exit spotlight",exitSpotlightButtonTooltip:"Exit spotlight",leaveConfirmButtonLabel:"Leave",endCallConfirmButtonLabel:"End call",hangUpCancelButtonLabel:"Cancel",leaveConfirmDialogTitle:"Leave the call?",leaveConfirmDialogContent:"Are you sure you want to leave the call?",endCallConfirmDialogTitle:"End the call?",endCallConfirmDialogContent:"You'll end the call for everyone.",invalidMeetingIdentifier:"Invalid meeting ID or passcode",pinParticipantMenuLabel:"Pin for me",pinParticipantLimitReachedMenuLabel:"Pin (limit reached)",unpinParticipantMenuLabel:"Unpin",pinParticipantMenuItemAriaLabel:"Pin",unpinParticipantMenuItemAriaLabel:"Unpin",muteAllMenuLabel:"Mute all",muteAllDialogTitle:"Mute everyone?",muteAllDialogContent:"This will mute everyone in the meeting but you.",muteAllConfirmButtonLabel:"Mute all",muteAllCancelButtonLabel:"Cancel",joinBreakoutRoomButtonLabel:"Join breakout room",returnFromBreakoutRoomButtonLabel:"Leave room",leaveBreakoutRoomAndMeetingButtonLabel:"Leave meeting",breakoutRoomJoinedNotificationTitle:"You've joined Breakout room '{roomName}'",joinBreakoutRoomBannerTitle:"Breakout room '{roomName}' is open",joinBreakoutRoomBannerButtonLabel:"Join",returnFromBreakoutRoomBannerTitle:"Return to main meeting",returnFromBreakoutRoomBannerButtonLabel:"Rejoin"};var chat$k={chatListHeader:"In this chat",uploadAttachment:"Upload Attachment",uploadImageDataNotProvided:"Image data is not provided.",uploadImageIsTooLarge:"Image is too large. Choose one that's less than {maxImageSize} MB.",uploadImageExtensionIsNotAllowed:"Uploading .{imageExtension} image is not allowed.",uploadImageFailed:"Unable to upload image. Please try again later."};var callWithChat$k={chatButtonLabel:"Chat",chatButtonNewMessageNotificationLabel:"New Message",chatButtonTooltipClosedWithMessageCount:"Show chat ({unreadMessagesCount} unread)",chatButtonTooltipClose:"Hide chat",chatButtonTooltipOpen:"Show chat",chatPaneTitle:"Chat",copyInviteLinkButtonLabel:"Copy invite link",copyInviteLinkButtonActionedLabel:"Link copied",copyInviteLinkActionedAriaLabel:"Invite link copied",dismissSidePaneButtonLabel:"Close",moreDrawerAudioDeviceMenuTitle:"Audio Device",moreDrawerButtonLabel:"More options",moreDrawerButtonTooltip:"More options",moreDrawerMicrophoneMenuTitle:"Microphone",moreDrawerSpeakerMenuTitle:"Speaker",moreDrawerCaptionsMenuTitle:"Live captions",moreDrawerSpokenLanguageMenuTitle:"Spoken language",moreDrawerCaptionLanguageMenuTitle:"Caption language",moreDrawerGalleryOptionsMenuTitle:"Gallery options",peopleButtonLabel:"People",selectedPeopleButtonLabel:"People Button Selected",peopleButtonTooltipOpen:"Show participants",peopleButtonTooltipClose:"Hide participants",peopleButtonTooltipOpenAriaLabel:"People button, Show participants",peopleButtonTooltipCloseAriaLabel:"People button, Hide participants",peoplePaneSubTitle:"In this call",peoplePaneTitle:"People",pictureInPictureTileAriaLabel:"Video Feeds. Click to return to call screen.",removeMenuLabel:"Remove",openDialpadButtonLabel:"Dial phone number",returnToCallButtonAriaDescription:"Return to Call",returnToCallButtonAriaLabel:"Back",peoplePaneAddPeopleButtonLabel:"Add People",dialpadStartCallButtonLabel:"Call",dialpadModalTitle:"Dial Phone Number",dialpadModalAriaLabel:"Dialpad",dialpadCloseModalButtonAriaLabel:"Close dialpad",openDtmfDialpadLabel:"Show dialpad",dtmfDialpadPlaceholderText:"Enter number",breakoutRoomChatPaneTitle:"Breakout Room Chat",chatContentSpinnerLabel:"Loading..."};var en_US = {call:call$k,chat:chat$k,callWithChat:callWithChat$k};
|
22032
22032
|
|
22033
22033
|
// Copyright (c) Microsoft Corporation.
|
22034
22034
|
// Licensed under the MIT License.
|
@@ -22405,7 +22405,7 @@ const sendboxContainerStyles = {
|
|
22405
22405
|
|
22406
22406
|
// Copyright (c) Microsoft Corporation.
|
22407
22407
|
// Licensed under the MIT License.
|
22408
|
-
var __awaiter$
|
22408
|
+
var __awaiter$J = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
22409
22409
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
22410
22410
|
return new (P || (P = Promise))(function (resolve, reject) {
|
22411
22411
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -22426,7 +22426,7 @@ const AvatarPersona = (props) => {
|
|
22426
22426
|
const { userId, dataProvider, text, imageUrl, imageInitials, initialsColor, initialsTextColor, showOverflowTooltip } = props;
|
22427
22427
|
const [data, setData] = React.useState();
|
22428
22428
|
React.useEffect(() => {
|
22429
|
-
(() => __awaiter$
|
22429
|
+
(() => __awaiter$J(void 0, void 0, void 0, function* () {
|
22430
22430
|
if (dataProvider && userId) {
|
22431
22431
|
const newData = yield dataProvider(userId);
|
22432
22432
|
if (avatarDeepDifferenceCheck(data, newData)) {
|
@@ -22982,7 +22982,7 @@ const AttachmentDownloadErrorBar = (props) => {
|
|
22982
22982
|
/**
|
22983
22983
|
* Wrapper for RichTextSendBox component to allow us to use usePropsFor with richTextSendBox with lazy loading
|
22984
22984
|
*/
|
22985
|
-
const RichTextSendBoxWrapper = React.lazy(() => Promise.resolve().then(function () { return require('./RichTextSendBoxWrapper-
|
22985
|
+
const RichTextSendBoxWrapper = React.lazy(() => Promise.resolve().then(function () { return require('./RichTextSendBoxWrapper-D_wPKYPO.js'); }).then((module) => ({ default: module.RichTextSendBoxWrapper })));
|
22986
22986
|
/**
|
22987
22987
|
* @private
|
22988
22988
|
* Use this function to load RoosterJS dependencies early in the lifecycle.
|
@@ -22990,7 +22990,7 @@ const RichTextSendBoxWrapper = React.lazy(() => Promise.resolve().then(function
|
|
22990
22990
|
*
|
22991
22991
|
/* @conditional-compile-remove(rich-text-editor-composite-support)
|
22992
22992
|
*/
|
22993
|
-
const loadRichTextSendBox = () => Promise.resolve().then(function () { return require('./RichTextSendBoxWrapper-
|
22993
|
+
const loadRichTextSendBox = () => Promise.resolve().then(function () { return require('./RichTextSendBoxWrapper-D_wPKYPO.js'); }).then((module) => ({ default: module.RichTextSendBoxWrapper }));
|
22994
22994
|
/**
|
22995
22995
|
* @private
|
22996
22996
|
*/
|
@@ -23024,7 +23024,7 @@ const SendBoxPicker = (props) => {
|
|
23024
23024
|
|
23025
23025
|
// Copyright (c) Microsoft Corporation.
|
23026
23026
|
// Licensed under the MIT License.
|
23027
|
-
var __awaiter$
|
23027
|
+
var __awaiter$I = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
23028
23028
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
23029
23029
|
return new (P || (P = Promise))(function (resolve, reject) {
|
23030
23030
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -23036,7 +23036,7 @@ var __awaiter$H = (window && window.__awaiter) || function (thisArg, _arguments,
|
|
23036
23036
|
/* @conditional-compile-remove(rich-text-editor-image-upload) */
|
23037
23037
|
const MAX_INLINE_IMAGE_UPLOAD_SIZE_MB = 20;
|
23038
23038
|
/* @conditional-compile-remove(rich-text-editor-image-upload) */
|
23039
|
-
const fetchBlobData = (resource, options) => __awaiter$
|
23039
|
+
const fetchBlobData = (resource, options) => __awaiter$I(void 0, void 0, void 0, function* () {
|
23040
23040
|
// default timeout is 30 seconds
|
23041
23041
|
const { timeout = 30000, abortController } = options;
|
23042
23042
|
const id = setTimeout(() => {
|
@@ -23050,7 +23050,7 @@ const fetchBlobData = (resource, options) => __awaiter$H(void 0, void 0, void 0,
|
|
23050
23050
|
/**
|
23051
23051
|
* @private
|
23052
23052
|
*/
|
23053
|
-
const getInlineImageData = (image) => __awaiter$
|
23053
|
+
const getInlineImageData = (image) => __awaiter$I(void 0, void 0, void 0, function* () {
|
23054
23054
|
if (image.startsWith('blob') || image.startsWith('http')) {
|
23055
23055
|
try {
|
23056
23056
|
const res = yield fetchBlobData(image, { abortController: new AbortController() });
|
@@ -23094,7 +23094,7 @@ const getSendBoxInlineImages = (sendBoxInlineImageUploads) => {
|
|
23094
23094
|
return (_a = sendBoxInlineImageUploads[SEND_BOX_UPLOADS_KEY_VALUE]) === null || _a === void 0 ? void 0 : _a.map((upload) => upload.metadata);
|
23095
23095
|
};
|
23096
23096
|
/* @conditional-compile-remove(rich-text-editor-image-upload) */
|
23097
|
-
const inlineImageUploadHandler = (uploadTasks, adapter, strings) => __awaiter$
|
23097
|
+
const inlineImageUploadHandler = (uploadTasks, adapter, strings) => __awaiter$I(void 0, void 0, void 0, function* () {
|
23098
23098
|
var _a, _b, _c;
|
23099
23099
|
for (const task of uploadTasks) {
|
23100
23100
|
const uploadTask = task;
|
@@ -23127,7 +23127,7 @@ const inlineImageUploadHandler = (uploadTasks, adapter, strings) => __awaiter$H(
|
|
23127
23127
|
}
|
23128
23128
|
});
|
23129
23129
|
/* @conditional-compile-remove(rich-text-editor-image-upload) */
|
23130
|
-
const generateUploadTask = (imageAttributes, fileName, messageId, inlineImageUploadActionHandler) => __awaiter$
|
23130
|
+
const generateUploadTask = (imageAttributes, fileName, messageId, inlineImageUploadActionHandler) => __awaiter$I(void 0, void 0, void 0, function* () {
|
23131
23131
|
const imageData = yield getInlineImageData(imageAttributes.src);
|
23132
23132
|
if (!imageData) {
|
23133
23133
|
return;
|
@@ -23174,7 +23174,7 @@ const generateUploadTask = (imageAttributes, fileName, messageId, inlineImageUpl
|
|
23174
23174
|
/**
|
23175
23175
|
* @internal
|
23176
23176
|
*/
|
23177
|
-
const onInsertInlineImageForEditBox = (imageAttributes, fileName, messageId, adapter, handleEditBoxInlineImageUploadAction, chatCompositeStrings) => __awaiter$
|
23177
|
+
const onInsertInlineImageForEditBox = (imageAttributes, fileName, messageId, adapter, handleEditBoxInlineImageUploadAction, chatCompositeStrings) => __awaiter$I(void 0, void 0, void 0, function* () {
|
23178
23178
|
const uploadTask = yield generateUploadTask(imageAttributes, fileName, messageId, handleEditBoxInlineImageUploadAction);
|
23179
23179
|
if (!uploadTask) {
|
23180
23180
|
return;
|
@@ -23190,7 +23190,7 @@ const onInsertInlineImageForEditBox = (imageAttributes, fileName, messageId, ada
|
|
23190
23190
|
/**
|
23191
23191
|
* @internal
|
23192
23192
|
*/
|
23193
|
-
const onInsertInlineImageForSendBox = (imageAttributes, fileName, adapter, handleSendBoxInlineImageUploadAction, chatCompositeStrings) => __awaiter$
|
23193
|
+
const onInsertInlineImageForSendBox = (imageAttributes, fileName, adapter, handleSendBoxInlineImageUploadAction, chatCompositeStrings) => __awaiter$I(void 0, void 0, void 0, function* () {
|
23194
23194
|
const uploadTask = yield generateUploadTask(imageAttributes, fileName, SEND_BOX_UPLOADS_KEY_VALUE, handleSendBoxInlineImageUploadAction);
|
23195
23195
|
if (!uploadTask) {
|
23196
23196
|
return;
|
@@ -23324,7 +23324,7 @@ const ImageUploadReducer = (state, action) => {
|
|
23324
23324
|
|
23325
23325
|
// Copyright (c) Microsoft Corporation.
|
23326
23326
|
// Licensed under the MIT License.
|
23327
|
-
var __awaiter$
|
23327
|
+
var __awaiter$H = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
23328
23328
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
23329
23329
|
return new (P || (P = Promise))(function (resolve, reject) {
|
23330
23330
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -23378,7 +23378,7 @@ const ChatScreen = (props) => {
|
|
23378
23378
|
}, [adapter]);
|
23379
23379
|
React.useEffect(() => {
|
23380
23380
|
// Initial data should be always fetched by the composite(or external caller) instead of the adapter
|
23381
|
-
const fetchData = () => __awaiter$
|
23381
|
+
const fetchData = () => __awaiter$H(void 0, void 0, void 0, function* () {
|
23382
23382
|
// Fetch initial data for adapter
|
23383
23383
|
yield adapter.fetchInitialData();
|
23384
23384
|
// Fetch initial set of messages. Without fetching messages here, if the Composite's adapter is changed the message thread does not load new messages.
|
@@ -23615,7 +23615,7 @@ const ChatScreen = (props) => {
|
|
23615
23615
|
}, [uploads]);
|
23616
23616
|
const onSendMessageHandler = React.useCallback(function (content,
|
23617
23617
|
/* @conditional-compile-remove(file-sharing-acs) */ /* @conditional-compile-remove(rich-text-editor-composite-support) */ options) {
|
23618
|
-
return __awaiter$
|
23618
|
+
return __awaiter$H(this, void 0, void 0, function* () {
|
23619
23619
|
var _a;
|
23620
23620
|
/* @conditional-compile-remove(rich-text-editor-image-upload) */
|
23621
23621
|
content = updateContentStringWithUploadedInlineImages(content, sendBoxInlineImageUploads);
|
@@ -23644,7 +23644,7 @@ const ChatScreen = (props) => {
|
|
23644
23644
|
]);
|
23645
23645
|
const onUpdateMessageHandler = React.useCallback(function (messageId, content,
|
23646
23646
|
/* @conditional-compile-remove(file-sharing-acs) */ options) {
|
23647
|
-
return __awaiter$
|
23647
|
+
return __awaiter$H(this, void 0, void 0, function* () {
|
23648
23648
|
/* @conditional-compile-remove(rich-text-editor-image-upload) */
|
23649
23649
|
content = updateContentStringWithUploadedInlineImages(content, editBoxInlineImageUploads, messageId);
|
23650
23650
|
yield messageThreadProps.onUpdateMessage(messageId, content,
|
@@ -24003,7 +24003,7 @@ const getAssignedBreakoutRoom$1 = (state, props) => {
|
|
24003
24003
|
|
24004
24004
|
// Copyright (c) Microsoft Corporation.
|
24005
24005
|
// Licensed under the MIT License.
|
24006
|
-
var __awaiter$
|
24006
|
+
var __awaiter$G = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
24007
24007
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
24008
24008
|
return new (P || (P = Promise))(function (resolve, reject) {
|
24009
24009
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -24042,7 +24042,7 @@ const _isPreviewOn = (deviceManager) => {
|
|
24042
24042
|
*
|
24043
24043
|
* @private
|
24044
24044
|
*/
|
24045
|
-
const disposeAllLocalPreviewViews = (callClient) => __awaiter$
|
24045
|
+
const disposeAllLocalPreviewViews = (callClient) => __awaiter$G(void 0, void 0, void 0, function* () {
|
24046
24046
|
const unparentedViews = callClient.getState().deviceManager.unparentedViews;
|
24047
24047
|
for (const view of unparentedViews) {
|
24048
24048
|
yield callClient.disposeView(undefined, undefined, view);
|
@@ -24111,7 +24111,7 @@ const maskDisplayNameWithRole = (displayName, localUserRole, participantRole, is
|
|
24111
24111
|
* Helper to create a local video stream from the selected camera.
|
24112
24112
|
* @private
|
24113
24113
|
*/
|
24114
|
-
const createLocalVideoStream = (callClient) => __awaiter$
|
24114
|
+
const createLocalVideoStream = (callClient) => __awaiter$G(void 0, void 0, void 0, function* () {
|
24115
24115
|
const camera = yield (callClient === null || callClient === void 0 ? void 0 : callClient.getState().deviceManager.selectedCamera);
|
24116
24116
|
if (camera) {
|
24117
24117
|
return new communicationCalling.LocalVideoStream(camera);
|
@@ -24230,7 +24230,7 @@ const holdButtonSelector = reselect__namespace.createSelector([getCallState], (c
|
|
24230
24230
|
|
24231
24231
|
// Copyright (c) Microsoft Corporation.
|
24232
24232
|
// Licensed under the MIT License.
|
24233
|
-
var __awaiter$
|
24233
|
+
var __awaiter$F = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
24234
24234
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
24235
24235
|
return new (P || (P = Promise))(function (resolve, reject) {
|
24236
24236
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -24251,7 +24251,7 @@ const areStreamsEqual = (prevStream, newStream) => {
|
|
24251
24251
|
* @private
|
24252
24252
|
*/
|
24253
24253
|
const createDefaultCommonCallingHandlers = memoizeOne((callClient, deviceManager, call, options) => {
|
24254
|
-
const onStartLocalVideo = () => __awaiter$
|
24254
|
+
const onStartLocalVideo = () => __awaiter$F(void 0, void 0, void 0, function* () {
|
24255
24255
|
// Before the call object creates a stream, dispose of any local preview streams.
|
24256
24256
|
// @TODO: is there any way to parent the unparented view to the call object instead
|
24257
24257
|
// of disposing and creating a new stream?
|
@@ -24271,7 +24271,7 @@ const createDefaultCommonCallingHandlers = memoizeOne((callClient, deviceManager
|
|
24271
24271
|
yield call.startVideo(stream);
|
24272
24272
|
}
|
24273
24273
|
});
|
24274
|
-
const onStopLocalVideo = (stream) => __awaiter$
|
24274
|
+
const onStopLocalVideo = (stream) => __awaiter$F(void 0, void 0, void 0, function* () {
|
24275
24275
|
const callId = call === null || call === void 0 ? void 0 : call.id;
|
24276
24276
|
if (!callId) {
|
24277
24277
|
return;
|
@@ -24280,7 +24280,7 @@ const createDefaultCommonCallingHandlers = memoizeOne((callClient, deviceManager
|
|
24280
24280
|
yield call.stopVideo(stream);
|
24281
24281
|
}
|
24282
24282
|
});
|
24283
|
-
const onToggleCamera = (options) => __awaiter$
|
24283
|
+
const onToggleCamera = (options) => __awaiter$F(void 0, void 0, void 0, function* () {
|
24284
24284
|
const previewOn = _isPreviewOn(callClient.getState().deviceManager);
|
24285
24285
|
// the disposal of the unparented views is to workaround: https://skype.visualstudio.com/SPOOL/_workitems/edit/3030558.
|
24286
24286
|
// The root cause of the issue is caused by never transitioning the unparented view to the
|
@@ -24337,19 +24337,19 @@ const createDefaultCommonCallingHandlers = memoizeOne((callClient, deviceManager
|
|
24337
24337
|
}
|
24338
24338
|
}
|
24339
24339
|
});
|
24340
|
-
const onSelectMicrophone = (device) => __awaiter$
|
24340
|
+
const onSelectMicrophone = (device) => __awaiter$F(void 0, void 0, void 0, function* () {
|
24341
24341
|
if (!deviceManager) {
|
24342
24342
|
return;
|
24343
24343
|
}
|
24344
24344
|
return deviceManager.selectMicrophone(device);
|
24345
24345
|
});
|
24346
|
-
const onSelectSpeaker = (device) => __awaiter$
|
24346
|
+
const onSelectSpeaker = (device) => __awaiter$F(void 0, void 0, void 0, function* () {
|
24347
24347
|
if (!deviceManager) {
|
24348
24348
|
return;
|
24349
24349
|
}
|
24350
24350
|
return deviceManager.selectSpeaker(device);
|
24351
24351
|
});
|
24352
|
-
const onSelectCamera = (device, options) => __awaiter$
|
24352
|
+
const onSelectCamera = (device, options) => __awaiter$F(void 0, void 0, void 0, function* () {
|
24353
24353
|
if (!deviceManager) {
|
24354
24354
|
return;
|
24355
24355
|
}
|
@@ -24379,9 +24379,9 @@ const createDefaultCommonCallingHandlers = memoizeOne((callClient, deviceManager
|
|
24379
24379
|
}, options);
|
24380
24380
|
}
|
24381
24381
|
});
|
24382
|
-
const onRaiseHand = () => __awaiter$
|
24383
|
-
const onLowerHand = () => __awaiter$
|
24384
|
-
const onToggleRaiseHand = () => __awaiter$
|
24382
|
+
const onRaiseHand = () => __awaiter$F(void 0, void 0, void 0, function* () { var _a; return yield ((_a = call === null || call === void 0 ? void 0 : call.feature(communicationCalling.Features.RaiseHand)) === null || _a === void 0 ? void 0 : _a.raiseHand()); });
|
24383
|
+
const onLowerHand = () => __awaiter$F(void 0, void 0, void 0, function* () { var _b; return yield ((_b = call === null || call === void 0 ? void 0 : call.feature(communicationCalling.Features.RaiseHand)) === null || _b === void 0 ? void 0 : _b.lowerHand()); });
|
24384
|
+
const onToggleRaiseHand = () => __awaiter$F(void 0, void 0, void 0, function* () {
|
24385
24385
|
const raiseHandFeature = call === null || call === void 0 ? void 0 : call.feature(communicationCalling.Features.RaiseHand);
|
24386
24386
|
const localUserId = callClient.getState().userId;
|
24387
24387
|
const isLocalRaisedHand = raiseHandFeature === null || raiseHandFeature === void 0 ? void 0 : raiseHandFeature.getRaisedHands().find((publishedState) => toFlatCommunicationIdentifier(publishedState.identifier) === toFlatCommunicationIdentifier(localUserId));
|
@@ -24392,7 +24392,7 @@ const createDefaultCommonCallingHandlers = memoizeOne((callClient, deviceManager
|
|
24392
24392
|
yield (raiseHandFeature === null || raiseHandFeature === void 0 ? void 0 : raiseHandFeature.raiseHand());
|
24393
24393
|
}
|
24394
24394
|
});
|
24395
|
-
const onReactionClick = (reaction) => __awaiter$
|
24395
|
+
const onReactionClick = (reaction) => __awaiter$F(void 0, void 0, void 0, function* () {
|
24396
24396
|
var _c;
|
24397
24397
|
if (reaction === 'like' ||
|
24398
24398
|
reaction === 'applause' ||
|
@@ -24406,19 +24406,19 @@ const createDefaultCommonCallingHandlers = memoizeOne((callClient, deviceManager
|
|
24406
24406
|
}
|
24407
24407
|
return;
|
24408
24408
|
});
|
24409
|
-
const onToggleMicrophone = () => __awaiter$
|
24409
|
+
const onToggleMicrophone = () => __awaiter$F(void 0, void 0, void 0, function* () {
|
24410
24410
|
if (!call || !(_isInCall(call.state) || _isInLobbyOrConnecting(call.state))) {
|
24411
24411
|
throw new Error(`Please invoke onToggleMicrophone after call is started`);
|
24412
24412
|
}
|
24413
24413
|
return call.isMuted ? yield call.unmute() : yield call.mute();
|
24414
24414
|
});
|
24415
|
-
const onStartScreenShare = () => __awaiter$
|
24416
|
-
const onStopScreenShare = () => __awaiter$
|
24417
|
-
const onToggleScreenShare = () => __awaiter$
|
24418
|
-
const onHangUp = (forEveryone) => __awaiter$
|
24415
|
+
const onStartScreenShare = () => __awaiter$F(void 0, void 0, void 0, function* () { return yield (call === null || call === void 0 ? void 0 : call.startScreenSharing()); });
|
24416
|
+
const onStopScreenShare = () => __awaiter$F(void 0, void 0, void 0, function* () { return yield (call === null || call === void 0 ? void 0 : call.stopScreenSharing()); });
|
24417
|
+
const onToggleScreenShare = () => __awaiter$F(void 0, void 0, void 0, function* () { return (call === null || call === void 0 ? void 0 : call.isScreenSharingOn) ? yield onStopScreenShare() : yield onStartScreenShare(); });
|
24418
|
+
const onHangUp = (forEveryone) => __awaiter$F(void 0, void 0, void 0, function* () { return yield (call === null || call === void 0 ? void 0 : call.hangUp({ forEveryone: forEveryone === true ? true : false })); });
|
24419
24419
|
/* @conditional-compile-remove(PSTN-calls) */
|
24420
|
-
const onToggleHold = () => __awaiter$
|
24421
|
-
const onCreateLocalStreamView = (...args_1) => __awaiter$
|
24420
|
+
const onToggleHold = () => __awaiter$F(void 0, void 0, void 0, function* () { return (call === null || call === void 0 ? void 0 : call.state) === 'LocalHold' ? yield (call === null || call === void 0 ? void 0 : call.resume()) : yield (call === null || call === void 0 ? void 0 : call.hold()); });
|
24421
|
+
const onCreateLocalStreamView = (...args_1) => __awaiter$F(void 0, [...args_1], void 0, function* (options = { scalingMode: 'Crop', isMirrored: true }) {
|
24422
24422
|
if (!call || call.localVideoStreams.length === 0) {
|
24423
24423
|
return;
|
24424
24424
|
}
|
@@ -24442,7 +24442,7 @@ const createDefaultCommonCallingHandlers = memoizeOne((callClient, deviceManager
|
|
24442
24442
|
}
|
24443
24443
|
return (createViewResult === null || createViewResult === void 0 ? void 0 : createViewResult.view) ? { view: createViewResult === null || createViewResult === void 0 ? void 0 : createViewResult.view } : undefined;
|
24444
24444
|
});
|
24445
|
-
const onCreateRemoteStreamView = (userId_1, ...args_2) => __awaiter$
|
24445
|
+
const onCreateRemoteStreamView = (userId_1, ...args_2) => __awaiter$F(void 0, [userId_1, ...args_2], void 0, function* (userId, options = { scalingMode: 'Crop' }) {
|
24446
24446
|
if (!call) {
|
24447
24447
|
return;
|
24448
24448
|
}
|
@@ -24479,7 +24479,7 @@ const createDefaultCommonCallingHandlers = memoizeOne((callClient, deviceManager
|
|
24479
24479
|
}
|
24480
24480
|
return (createViewResult === null || createViewResult === void 0 ? void 0 : createViewResult.view) ? { view: createViewResult === null || createViewResult === void 0 ? void 0 : createViewResult.view } : undefined;
|
24481
24481
|
});
|
24482
|
-
const onDisposeRemoteStreamView = (userId) => __awaiter$
|
24482
|
+
const onDisposeRemoteStreamView = (userId) => __awaiter$F(void 0, void 0, void 0, function* () {
|
24483
24483
|
if (!call) {
|
24484
24484
|
return;
|
24485
24485
|
}
|
@@ -24500,7 +24500,7 @@ const createDefaultCommonCallingHandlers = memoizeOne((callClient, deviceManager
|
|
24500
24500
|
callClient.disposeView(call.id, participant.identifier, screenShareStream);
|
24501
24501
|
}
|
24502
24502
|
});
|
24503
|
-
const onDisposeRemoteVideoStreamView = (userId) => __awaiter$
|
24503
|
+
const onDisposeRemoteVideoStreamView = (userId) => __awaiter$F(void 0, void 0, void 0, function* () {
|
24504
24504
|
if (!call) {
|
24505
24505
|
return;
|
24506
24506
|
}
|
@@ -24517,7 +24517,7 @@ const createDefaultCommonCallingHandlers = memoizeOne((callClient, deviceManager
|
|
24517
24517
|
callClient.disposeView(call.id, participant.identifier, remoteVideoStream);
|
24518
24518
|
}
|
24519
24519
|
});
|
24520
|
-
const onDisposeRemoteScreenShareStreamView = (userId) => __awaiter$
|
24520
|
+
const onDisposeRemoteScreenShareStreamView = (userId) => __awaiter$F(void 0, void 0, void 0, function* () {
|
24521
24521
|
if (!call) {
|
24522
24522
|
return;
|
24523
24523
|
}
|
@@ -24534,7 +24534,7 @@ const createDefaultCommonCallingHandlers = memoizeOne((callClient, deviceManager
|
|
24534
24534
|
callClient.disposeView(call.id, participant.identifier, screenShareStream);
|
24535
24535
|
}
|
24536
24536
|
});
|
24537
|
-
const onDisposeLocalScreenShareStreamView = () => __awaiter$
|
24537
|
+
const onDisposeLocalScreenShareStreamView = () => __awaiter$F(void 0, void 0, void 0, function* () {
|
24538
24538
|
if (!call) {
|
24539
24539
|
return;
|
24540
24540
|
}
|
@@ -24547,7 +24547,7 @@ const createDefaultCommonCallingHandlers = memoizeOne((callClient, deviceManager
|
|
24547
24547
|
callClient.disposeView(call.id, undefined, screenShareStream);
|
24548
24548
|
}
|
24549
24549
|
});
|
24550
|
-
const onDisposeLocalStreamView = () => __awaiter$
|
24550
|
+
const onDisposeLocalStreamView = () => __awaiter$F(void 0, void 0, void 0, function* () {
|
24551
24551
|
// If the user is currently in a call, dispose of the local stream view attached to that call.
|
24552
24552
|
const callState = call && callClient.getState().calls[call.id];
|
24553
24553
|
const localStream = callState === null || callState === void 0 ? void 0 : callState.localVideoStreams.find((item) => item.mediaStreamType === 'Video');
|
@@ -24559,17 +24559,17 @@ const createDefaultCommonCallingHandlers = memoizeOne((callClient, deviceManager
|
|
24559
24559
|
// TODO: we need to remember which LocalVideoStream was used for LocalPreview and dispose that one.
|
24560
24560
|
yield disposeAllLocalPreviewViews(callClient);
|
24561
24561
|
});
|
24562
|
-
const onSendDtmfTone = (dtmfTone) => __awaiter$
|
24562
|
+
const onSendDtmfTone = (dtmfTone) => __awaiter$F(void 0, void 0, void 0, function* () { return yield (call === null || call === void 0 ? void 0 : call.sendDtmf(dtmfTone)); });
|
24563
24563
|
const notImplemented = () => {
|
24564
24564
|
throw new Error('Not implemented, cannot call a method from an abstract object');
|
24565
24565
|
};
|
24566
24566
|
/* @conditional-compile-remove(call-readiness) */
|
24567
|
-
const askDevicePermission = (constrain) => __awaiter$
|
24567
|
+
const askDevicePermission = (constrain) => __awaiter$F(void 0, void 0, void 0, function* () {
|
24568
24568
|
if (deviceManager) {
|
24569
24569
|
yield (deviceManager === null || deviceManager === void 0 ? void 0 : deviceManager.askDevicePermission(constrain));
|
24570
24570
|
}
|
24571
24571
|
});
|
24572
|
-
const onRemoveVideoBackgroundEffects = () => __awaiter$
|
24572
|
+
const onRemoveVideoBackgroundEffects = () => __awaiter$F(void 0, void 0, void 0, function* () {
|
24573
24573
|
const stream = (call === null || call === void 0 ? void 0 : call.localVideoStreams.find((stream) => stream.mediaStreamType === 'Video')) ||
|
24574
24574
|
(deviceManager === null || deviceManager === void 0 ? void 0 : deviceManager.getUnparentedVideoStreams().find((stream) => stream.mediaStreamType === 'Video'));
|
24575
24575
|
if (stream) {
|
@@ -24581,7 +24581,7 @@ const createDefaultCommonCallingHandlers = memoizeOne((callClient, deviceManager
|
|
24581
24581
|
}
|
24582
24582
|
}
|
24583
24583
|
});
|
24584
|
-
const onBlurVideoBackground = (backgroundBlurConfig) => __awaiter$
|
24584
|
+
const onBlurVideoBackground = (backgroundBlurConfig) => __awaiter$F(void 0, void 0, void 0, function* () {
|
24585
24585
|
var _d;
|
24586
24586
|
const stream = (call === null || call === void 0 ? void 0 : call.localVideoStreams.find((stream) => stream.mediaStreamType === 'Video')) ||
|
24587
24587
|
(deviceManager === null || deviceManager === void 0 ? void 0 : deviceManager.getUnparentedVideoStreams().find((stream) => stream.mediaStreamType === 'Video'));
|
@@ -24594,7 +24594,7 @@ const createDefaultCommonCallingHandlers = memoizeOne((callClient, deviceManager
|
|
24594
24594
|
return createEffect && stream.feature(communicationCalling.Features.VideoEffects).startEffects(createEffect(backgroundBlurConfig));
|
24595
24595
|
}
|
24596
24596
|
});
|
24597
|
-
const onReplaceVideoBackground = (backgroundReplacementConfig) => __awaiter$
|
24597
|
+
const onReplaceVideoBackground = (backgroundReplacementConfig) => __awaiter$F(void 0, void 0, void 0, function* () {
|
24598
24598
|
var _e;
|
24599
24599
|
const stream = (call === null || call === void 0 ? void 0 : call.localVideoStreams.find((stream) => stream.mediaStreamType === 'Video')) ||
|
24600
24600
|
(deviceManager === null || deviceManager === void 0 ? void 0 : deviceManager.getUnparentedVideoStreams().find((stream) => stream.mediaStreamType === 'Video'));
|
@@ -24607,38 +24607,38 @@ const createDefaultCommonCallingHandlers = memoizeOne((callClient, deviceManager
|
|
24607
24607
|
return (createEffect && stream.feature(communicationCalling.Features.VideoEffects).startEffects(createEffect(backgroundReplacementConfig)));
|
24608
24608
|
}
|
24609
24609
|
});
|
24610
|
-
const onStartCaptions = (options) => __awaiter$
|
24610
|
+
const onStartCaptions = (options) => __awaiter$F(void 0, void 0, void 0, function* () {
|
24611
24611
|
const captionsFeature = call === null || call === void 0 ? void 0 : call.feature(communicationCalling.Features.Captions).captions;
|
24612
24612
|
yield (captionsFeature === null || captionsFeature === void 0 ? void 0 : captionsFeature.startCaptions(options));
|
24613
24613
|
});
|
24614
|
-
const onStopCaptions = () => __awaiter$
|
24614
|
+
const onStopCaptions = () => __awaiter$F(void 0, void 0, void 0, function* () {
|
24615
24615
|
const captionsFeature = call === null || call === void 0 ? void 0 : call.feature(communicationCalling.Features.Captions).captions;
|
24616
24616
|
yield (captionsFeature === null || captionsFeature === void 0 ? void 0 : captionsFeature.stopCaptions());
|
24617
24617
|
});
|
24618
|
-
const onSetSpokenLanguage = (language) => __awaiter$
|
24618
|
+
const onSetSpokenLanguage = (language) => __awaiter$F(void 0, void 0, void 0, function* () {
|
24619
24619
|
const captionsFeature = call === null || call === void 0 ? void 0 : call.feature(communicationCalling.Features.Captions).captions;
|
24620
24620
|
yield (captionsFeature === null || captionsFeature === void 0 ? void 0 : captionsFeature.setSpokenLanguage(language));
|
24621
24621
|
});
|
24622
|
-
const onSetCaptionLanguage = (language) => __awaiter$
|
24622
|
+
const onSetCaptionLanguage = (language) => __awaiter$F(void 0, void 0, void 0, function* () {
|
24623
24623
|
const captionsFeature = call === null || call === void 0 ? void 0 : call.feature(communicationCalling.Features.Captions).captions;
|
24624
24624
|
yield captionsFeature.setCaptionLanguage(language);
|
24625
24625
|
});
|
24626
|
-
const onSubmitSurvey = (survey) => __awaiter$
|
24627
|
-
const onStartSpotlight = (userIds) => __awaiter$
|
24626
|
+
const onSubmitSurvey = (survey) => __awaiter$F(void 0, void 0, void 0, function* () { return yield (call === null || call === void 0 ? void 0 : call.feature(communicationCalling.Features.CallSurvey).submitSurvey(survey)); });
|
24627
|
+
const onStartSpotlight = (userIds) => __awaiter$F(void 0, void 0, void 0, function* () {
|
24628
24628
|
const participants = userIds === null || userIds === void 0 ? void 0 : userIds.map((userId) => _toCommunicationIdentifier(userId));
|
24629
24629
|
yield (call === null || call === void 0 ? void 0 : call.feature(communicationCalling.Features.Spotlight).startSpotlight(participants));
|
24630
24630
|
});
|
24631
|
-
const onStopSpotlight = (userIds) => __awaiter$
|
24631
|
+
const onStopSpotlight = (userIds) => __awaiter$F(void 0, void 0, void 0, function* () {
|
24632
24632
|
const participants = userIds === null || userIds === void 0 ? void 0 : userIds.map((userId) => _toCommunicationIdentifier(userId));
|
24633
24633
|
yield (call === null || call === void 0 ? void 0 : call.feature(communicationCalling.Features.Spotlight).stopSpotlight(participants));
|
24634
24634
|
});
|
24635
|
-
const onStopAllSpotlight = () => __awaiter$
|
24635
|
+
const onStopAllSpotlight = () => __awaiter$F(void 0, void 0, void 0, function* () {
|
24636
24636
|
yield (call === null || call === void 0 ? void 0 : call.feature(communicationCalling.Features.Spotlight).stopAllSpotlight());
|
24637
24637
|
});
|
24638
24638
|
/* @conditional-compile-remove(soft-mute) */
|
24639
|
-
const onMuteParticipant = (userId) => __awaiter$
|
24639
|
+
const onMuteParticipant = (userId) => __awaiter$F(void 0, void 0, void 0, function* () {
|
24640
24640
|
if (call === null || call === void 0 ? void 0 : call.remoteParticipants) {
|
24641
|
-
call === null || call === void 0 ? void 0 : call.remoteParticipants.forEach((participant) => __awaiter$
|
24641
|
+
call === null || call === void 0 ? void 0 : call.remoteParticipants.forEach((participant) => __awaiter$F(void 0, void 0, void 0, function* () {
|
24642
24642
|
// Using toFlatCommunicationIdentifier to convert the CommunicationIdentifier to string
|
24643
24643
|
// as _toCommunicationIdentifier(userId) comparison to participant.identifier did not work for this case
|
24644
24644
|
if (toFlatCommunicationIdentifier(participant.identifier) === userId) {
|
@@ -24648,27 +24648,27 @@ const createDefaultCommonCallingHandlers = memoizeOne((callClient, deviceManager
|
|
24648
24648
|
}
|
24649
24649
|
});
|
24650
24650
|
/* @conditional-compile-remove(soft-mute) */
|
24651
|
-
const onMuteAllRemoteParticipants = () => __awaiter$
|
24651
|
+
const onMuteAllRemoteParticipants = () => __awaiter$F(void 0, void 0, void 0, function* () {
|
24652
24652
|
call === null || call === void 0 ? void 0 : call.muteAllRemoteParticipants();
|
24653
24653
|
});
|
24654
24654
|
const canStartSpotlight = call === null || call === void 0 ? void 0 : call.feature(communicationCalling.Features.Capabilities).capabilities.spotlightParticipant.isPresent;
|
24655
24655
|
const canRemoveSpotlight = call === null || call === void 0 ? void 0 : call.feature(communicationCalling.Features.Capabilities).capabilities.removeParticipantsSpotlight.isPresent;
|
24656
24656
|
const onStartLocalSpotlight = canStartSpotlight
|
24657
|
-
? () => __awaiter$
|
24657
|
+
? () => __awaiter$F(void 0, void 0, void 0, function* () {
|
24658
24658
|
yield (call === null || call === void 0 ? void 0 : call.feature(communicationCalling.Features.Spotlight).startSpotlight());
|
24659
24659
|
})
|
24660
24660
|
: undefined;
|
24661
|
-
const onStopLocalSpotlight = () => __awaiter$
|
24661
|
+
const onStopLocalSpotlight = () => __awaiter$F(void 0, void 0, void 0, function* () {
|
24662
24662
|
yield (call === null || call === void 0 ? void 0 : call.feature(communicationCalling.Features.Spotlight).stopSpotlight());
|
24663
24663
|
});
|
24664
24664
|
const onStartRemoteSpotlight = canStartSpotlight
|
24665
|
-
? (userIds) => __awaiter$
|
24665
|
+
? (userIds) => __awaiter$F(void 0, void 0, void 0, function* () {
|
24666
24666
|
const participants = userIds === null || userIds === void 0 ? void 0 : userIds.map((userId) => _toCommunicationIdentifier(userId));
|
24667
24667
|
yield (call === null || call === void 0 ? void 0 : call.feature(communicationCalling.Features.Spotlight).startSpotlight(participants));
|
24668
24668
|
})
|
24669
24669
|
: undefined;
|
24670
24670
|
const onStopRemoteSpotlight = canRemoveSpotlight
|
24671
|
-
? (userIds) => __awaiter$
|
24671
|
+
? (userIds) => __awaiter$F(void 0, void 0, void 0, function* () {
|
24672
24672
|
const participants = userIds === null || userIds === void 0 ? void 0 : userIds.map((userId) => _toCommunicationIdentifier(userId));
|
24673
24673
|
yield (call === null || call === void 0 ? void 0 : call.feature(communicationCalling.Features.Spotlight).stopSpotlight(participants));
|
24674
24674
|
})
|
@@ -24728,7 +24728,7 @@ const createDefaultCommonCallingHandlers = memoizeOne((callClient, deviceManager
|
|
24728
24728
|
|
24729
24729
|
// Copyright (c) Microsoft Corporation.
|
24730
24730
|
// Licensed under the MIT License.
|
24731
|
-
var __awaiter$
|
24731
|
+
var __awaiter$E = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
24732
24732
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
24733
24733
|
return new (P || (P = Promise))(function (resolve, reject) {
|
24734
24734
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -24762,7 +24762,7 @@ const createDefaultCallingHandlers = memoizeOne((...args) => {
|
|
24762
24762
|
return callAgent === null || callAgent === void 0 ? void 0 : callAgent.startCall(participants, options);
|
24763
24763
|
},
|
24764
24764
|
/* @conditional-compile-remove(PSTN-calls) */
|
24765
|
-
onAddParticipant: (userId, options) => __awaiter$
|
24765
|
+
onAddParticipant: (userId, options) => __awaiter$E(void 0, void 0, void 0, function* () {
|
24766
24766
|
const participant = _toCommunicationIdentifier(userId);
|
24767
24767
|
if (communicationCommon.isPhoneNumberIdentifier(participant)) {
|
24768
24768
|
call === null || call === void 0 ? void 0 : call.addParticipant(participant, options);
|
@@ -24770,12 +24770,12 @@ const createDefaultCallingHandlers = memoizeOne((...args) => {
|
|
24770
24770
|
else if (communicationCommon.isCommunicationUserIdentifier(participant) || communicationCommon.isMicrosoftTeamsUserIdentifier(participant)) {
|
24771
24771
|
call === null || call === void 0 ? void 0 : call.addParticipant(participant);
|
24772
24772
|
}
|
24773
|
-
}), onRemoveParticipant: (userId) => __awaiter$
|
24773
|
+
}), onRemoveParticipant: (userId) => __awaiter$E(void 0, void 0, void 0, function* () {
|
24774
24774
|
const participant = _toCommunicationIdentifier(userId);
|
24775
24775
|
yield (call === null || call === void 0 ? void 0 : call.removeParticipant(participant));
|
24776
24776
|
}),
|
24777
24777
|
/* @conditional-compile-remove(one-to-n-calling) */
|
24778
|
-
onAcceptCall: (incomingCallId, useVideo) => __awaiter$
|
24778
|
+
onAcceptCall: (incomingCallId, useVideo) => __awaiter$E(void 0, void 0, void 0, function* () {
|
24779
24779
|
const localVideoStream = useVideo ? yield createLocalVideoStream(callClient) : undefined;
|
24780
24780
|
const incomingCall = callAgent === null || callAgent === void 0 ? void 0 : callAgent.incomingCalls.find((incomingCall) => incomingCall.id === incomingCallId);
|
24781
24781
|
if (incomingCall) {
|
@@ -24783,7 +24783,7 @@ const createDefaultCallingHandlers = memoizeOne((...args) => {
|
|
24783
24783
|
}
|
24784
24784
|
}),
|
24785
24785
|
/* @conditional-compile-remove(one-to-n-calling) */
|
24786
|
-
onRejectCall: (incomingCallId) => __awaiter$
|
24786
|
+
onRejectCall: (incomingCallId) => __awaiter$E(void 0, void 0, void 0, function* () {
|
24787
24787
|
const incomingCall = callAgent === null || callAgent === void 0 ? void 0 : callAgent.incomingCalls.find((incomingCall) => incomingCall.id === incomingCallId);
|
24788
24788
|
if (incomingCall) {
|
24789
24789
|
yield incomingCall.reject();
|
@@ -24791,13 +24791,13 @@ const createDefaultCallingHandlers = memoizeOne((...args) => {
|
|
24791
24791
|
}),
|
24792
24792
|
/* @conditional-compile-remove(breakout-rooms) */
|
24793
24793
|
onHangUp: breakoutRoomOriginCall
|
24794
|
-
? () => __awaiter$
|
24794
|
+
? () => __awaiter$E(void 0, void 0, void 0, function* () { return breakoutRoomOriginCall.hangUp().then(() => commonCallingHandlers.onHangUp()); })
|
24795
24795
|
: commonCallingHandlers.onHangUp });
|
24796
24796
|
});
|
24797
24797
|
|
24798
24798
|
// Copyright (c) Microsoft Corporation.
|
24799
24799
|
// Licensed under the MIT License.
|
24800
|
-
var __awaiter$
|
24800
|
+
var __awaiter$D = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
24801
24801
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
24802
24802
|
return new (P || (P = Promise))(function (resolve, reject) {
|
24803
24803
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -24828,7 +24828,7 @@ const createDefaultTeamsCallingHandlers = memoizeOne((callClient, callAgent, dev
|
|
24828
24828
|
return undefined;
|
24829
24829
|
},
|
24830
24830
|
/* @conditional-compile-remove(PSTN-calls) */
|
24831
|
-
onAddParticipant: (userId, options) => __awaiter$
|
24831
|
+
onAddParticipant: (userId, options) => __awaiter$D(void 0, void 0, void 0, function* () {
|
24832
24832
|
const participant = _toCommunicationIdentifier(userId);
|
24833
24833
|
/* @conditional-compile-remove(teams-identity-support) */
|
24834
24834
|
const threadId = options === null || options === void 0 ? void 0 : options.threadId;
|
@@ -24844,7 +24844,7 @@ const createDefaultTeamsCallingHandlers = memoizeOne((callClient, callAgent, dev
|
|
24844
24844
|
}
|
24845
24845
|
/* @conditional-compile-remove(teams-identity-support) */
|
24846
24846
|
call === null || call === void 0 ? void 0 : call.addParticipant(participant);
|
24847
|
-
}), onRemoveParticipant: (userId) => __awaiter$
|
24847
|
+
}), onRemoveParticipant: (userId) => __awaiter$D(void 0, void 0, void 0, function* () {
|
24848
24848
|
const participant = _toCommunicationIdentifier(userId);
|
24849
24849
|
if (communicationCommon.isCommunicationUserIdentifier(participant)) {
|
24850
24850
|
throw new Error('CommunicationIdentifier in Teams call is not supported!');
|
@@ -24856,7 +24856,7 @@ const createDefaultTeamsCallingHandlers = memoizeOne((callClient, callAgent, dev
|
|
24856
24856
|
yield (call === null || call === void 0 ? void 0 : call.removeParticipant(participant));
|
24857
24857
|
}),
|
24858
24858
|
/* @conditional-compile-remove(one-to-n-calling) */
|
24859
|
-
onAcceptCall: (incomingCallId, useVideo) => __awaiter$
|
24859
|
+
onAcceptCall: (incomingCallId, useVideo) => __awaiter$D(void 0, void 0, void 0, function* () {
|
24860
24860
|
const localVideoStream = useVideo ? yield createLocalVideoStream(callClient) : undefined;
|
24861
24861
|
const incomingCall = callAgent === null || callAgent === void 0 ? void 0 : callAgent.incomingCalls.find((incomingCall) => incomingCall.id === incomingCallId);
|
24862
24862
|
if (incomingCall) {
|
@@ -24864,7 +24864,7 @@ const createDefaultTeamsCallingHandlers = memoizeOne((callClient, callAgent, dev
|
|
24864
24864
|
}
|
24865
24865
|
}),
|
24866
24866
|
/* @conditional-compile-remove(one-to-n-calling) */
|
24867
|
-
onRejectCall: (incomingCallId) => __awaiter$
|
24867
|
+
onRejectCall: (incomingCallId) => __awaiter$D(void 0, void 0, void 0, function* () {
|
24868
24868
|
const incomingCall = callAgent === null || callAgent === void 0 ? void 0 : callAgent.incomingCalls.find((incomingCall) => incomingCall.id === incomingCallId);
|
24869
24869
|
if (incomingCall) {
|
24870
24870
|
yield incomingCall.reject();
|
@@ -25174,7 +25174,7 @@ const getCaptionsSpeakerIdentifier = (captions) => {
|
|
25174
25174
|
|
25175
25175
|
// Copyright (c) Microsoft Corporation.
|
25176
25176
|
// Licensed under the MIT License.
|
25177
|
-
var __awaiter$
|
25177
|
+
var __awaiter$C = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
25178
25178
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
25179
25179
|
return new (P || (P = Promise))(function (resolve, reject) {
|
25180
25180
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -25251,7 +25251,7 @@ class ProxyDeviceManager {
|
|
25251
25251
|
console.info('Could not Unsubscribe to Permissions API Camera changed events, API is not supported by browser', e);
|
25252
25252
|
}
|
25253
25253
|
};
|
25254
|
-
this.permissionsApiStateChangeHandler = () => __awaiter$
|
25254
|
+
this.permissionsApiStateChangeHandler = () => __awaiter$C(this, void 0, void 0, function* () {
|
25255
25255
|
yield this.updateDevicePermissionState();
|
25256
25256
|
});
|
25257
25257
|
/**
|
@@ -25262,13 +25262,13 @@ class ProxyDeviceManager {
|
|
25262
25262
|
this.selectCamera = (videoDeviceInfo) => {
|
25263
25263
|
this._context.setDeviceManagerSelectedCamera(videoDeviceInfo);
|
25264
25264
|
};
|
25265
|
-
this.videoDevicesUpdated = () => __awaiter$
|
25265
|
+
this.videoDevicesUpdated = () => __awaiter$C(this, void 0, void 0, function* () {
|
25266
25266
|
// Device Manager always has a camera with '' name if there are no real camera devices available.
|
25267
25267
|
// We don't want to show that in the UI.
|
25268
25268
|
const realCameras = (yield this._deviceManager.getCameras()).filter((c) => !!c.name);
|
25269
25269
|
this._context.setDeviceManagerCameras(dedupeById(realCameras));
|
25270
25270
|
});
|
25271
|
-
this.audioDevicesUpdated = () => __awaiter$
|
25271
|
+
this.audioDevicesUpdated = () => __awaiter$C(this, void 0, void 0, function* () {
|
25272
25272
|
this._context.setDeviceManagerMicrophones(dedupeById(yield this._deviceManager.getMicrophones()));
|
25273
25273
|
if (this._deviceManager.isSpeakerSelectionAvailable) {
|
25274
25274
|
this._context.setDeviceManagerSpeakers(dedupeById(yield this._deviceManager.getSpeakers()));
|
@@ -25280,7 +25280,7 @@ class ProxyDeviceManager {
|
|
25280
25280
|
this.selectedSpeakerChanged = () => {
|
25281
25281
|
this._context.setDeviceManagerSelectedSpeaker(this._deviceManager.selectedSpeaker);
|
25282
25282
|
};
|
25283
|
-
this.updateDevicePermissionState = (sdkDeviceAccessState) => __awaiter$
|
25283
|
+
this.updateDevicePermissionState = (sdkDeviceAccessState) => __awaiter$C(this, void 0, void 0, function* () {
|
25284
25284
|
let hasCameraPermission = !!(sdkDeviceAccessState === null || sdkDeviceAccessState === void 0 ? void 0 : sdkDeviceAccessState.video);
|
25285
25285
|
let hasMicPermission = !!(sdkDeviceAccessState === null || sdkDeviceAccessState === void 0 ? void 0 : sdkDeviceAccessState.audio);
|
25286
25286
|
// Supplement the SDK values with values from the Permissions API to get a better understanding of the device
|
@@ -25356,7 +25356,7 @@ class ProxyDeviceManager {
|
|
25356
25356
|
}
|
25357
25357
|
case 'askDevicePermission': {
|
25358
25358
|
return this._context.withAsyncErrorTeedToState((...args) => {
|
25359
|
-
return target.askDevicePermission(...args).then((deviceAccess) => __awaiter$
|
25359
|
+
return target.askDevicePermission(...args).then((deviceAccess) => __awaiter$C(this, void 0, void 0, function* () {
|
25360
25360
|
yield this.updateDevicePermissionState(deviceAccess);
|
25361
25361
|
return deviceAccess;
|
25362
25362
|
}));
|
@@ -25753,7 +25753,7 @@ class CallIdHistory {
|
|
25753
25753
|
|
25754
25754
|
// Copyright (c) Microsoft Corporation.
|
25755
25755
|
// Licensed under the MIT License.
|
25756
|
-
var __awaiter$
|
25756
|
+
var __awaiter$B = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
25757
25757
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
25758
25758
|
return new (P || (P = Promise))(function (resolve, reject) {
|
25759
25759
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -26726,7 +26726,7 @@ let CallContext$2 = class CallContext {
|
|
26726
26726
|
* @throws CallError. Exceptions thrown from `f` are tagged with the failed `target.
|
26727
26727
|
*/
|
26728
26728
|
withAsyncErrorTeedToState(action, target) {
|
26729
|
-
return (...args) => __awaiter$
|
26729
|
+
return (...args) => __awaiter$B(this, void 0, void 0, function* () {
|
26730
26730
|
try {
|
26731
26731
|
return yield action(...args);
|
26732
26732
|
}
|
@@ -27270,7 +27270,7 @@ function _logStreamEvent(eventName, streamLogInfo, error) {
|
|
27270
27270
|
|
27271
27271
|
// Copyright (c) Microsoft Corporation.
|
27272
27272
|
// Licensed under the MIT License.
|
27273
|
-
var __awaiter$
|
27273
|
+
var __awaiter$A = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
27274
27274
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
27275
27275
|
return new (P || (P = Promise))(function (resolve, reject) {
|
27276
27276
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -27280,7 +27280,7 @@ var __awaiter$z = (window && window.__awaiter) || function (thisArg, _arguments,
|
|
27280
27280
|
});
|
27281
27281
|
};
|
27282
27282
|
function createViewVideo(context, internalContext, callId, stream, participantId, options) {
|
27283
|
-
return __awaiter$
|
27283
|
+
return __awaiter$A(this, void 0, void 0, function* () {
|
27284
27284
|
// we can only have 3 types of createView
|
27285
27285
|
let streamEventType;
|
27286
27286
|
// we will reuse these for local as well but we need to make sure the remote stream is passed in like before.
|
@@ -27409,7 +27409,7 @@ function createViewVideo(context, internalContext, callId, stream, participantId
|
|
27409
27409
|
});
|
27410
27410
|
}
|
27411
27411
|
function createViewUnparentedVideo(context, internalContext, stream, options) {
|
27412
|
-
return __awaiter$
|
27412
|
+
return __awaiter$A(this, void 0, void 0, function* () {
|
27413
27413
|
const renderInfo = internalContext.getUnparentedRenderInfo(stream);
|
27414
27414
|
if (renderInfo && renderInfo.status === 'Rendered') {
|
27415
27415
|
console.warn('Unparented LocalVideoStream is already rendered');
|
@@ -27578,7 +27578,7 @@ function createView(context, internalContext, callId, participantId, stream, opt
|
|
27578
27578
|
// Render LocalVideoStream that is not part of a Call
|
27579
27579
|
// Because it is not part of the call we don't tee errors to state naturally (e.g. via a Call Client function such as startVideo).
|
27580
27580
|
// We do not have a startLocalPreviewVideo function, so as a workaround we ensure any errors are propagated here.
|
27581
|
-
return context.withAsyncErrorTeedToState(() => __awaiter$
|
27581
|
+
return context.withAsyncErrorTeedToState(() => __awaiter$A(this, void 0, void 0, function* () { return yield createViewUnparentedVideo(context, internalContext, stream, options); }), 'Call.startVideo')();
|
27582
27582
|
}
|
27583
27583
|
else {
|
27584
27584
|
_logStreamEvent(EventNames.CREATE_STREAM_INVALID_PARAMS, { streamType });
|
@@ -27764,7 +27764,7 @@ class RecordingSubscriber {
|
|
27764
27764
|
|
27765
27765
|
// Copyright (c) Microsoft Corporation.
|
27766
27766
|
// Licensed under the MIT License.
|
27767
|
-
var __awaiter$
|
27767
|
+
var __awaiter$z = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
27768
27768
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
27769
27769
|
return new (P || (P = Promise))(function (resolve, reject) {
|
27770
27770
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -27788,7 +27788,7 @@ class PPTLiveSubscriber {
|
|
27788
27788
|
this._context.setCallPPTLiveActive(this._callIdRef.callId, this._pptLive.isActive);
|
27789
27789
|
this.checkAndUpdatePPTLiveParticipant();
|
27790
27790
|
};
|
27791
|
-
this.checkAndUpdatePPTLiveParticipant = () => __awaiter$
|
27791
|
+
this.checkAndUpdatePPTLiveParticipant = () => __awaiter$z(this, void 0, void 0, function* () {
|
27792
27792
|
if (!this._pptLive.activePresenterId) {
|
27793
27793
|
return;
|
27794
27794
|
}
|
@@ -28476,7 +28476,7 @@ class IncomingCallSubscriber {
|
|
28476
28476
|
|
28477
28477
|
// Copyright (c) Microsoft Corporation.
|
28478
28478
|
// Licensed under the MIT License.
|
28479
|
-
var __awaiter$
|
28479
|
+
var __awaiter$y = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
28480
28480
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
28481
28481
|
return new (P || (P = Promise))(function (resolve, reject) {
|
28482
28482
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -28496,14 +28496,14 @@ class ProxyIncomingCall {
|
|
28496
28496
|
switch (prop) {
|
28497
28497
|
case 'accept': {
|
28498
28498
|
return this._context.withAsyncErrorTeedToState(function (...args) {
|
28499
|
-
return __awaiter$
|
28499
|
+
return __awaiter$y(this, void 0, void 0, function* () {
|
28500
28500
|
return yield target.accept(...args);
|
28501
28501
|
});
|
28502
28502
|
}, 'IncomingCall.accept');
|
28503
28503
|
}
|
28504
28504
|
case 'reject': {
|
28505
28505
|
return this._context.withAsyncErrorTeedToState(function (...args) {
|
28506
|
-
return __awaiter$
|
28506
|
+
return __awaiter$y(this, void 0, void 0, function* () {
|
28507
28507
|
return yield target.reject(...args);
|
28508
28508
|
});
|
28509
28509
|
}, 'IncomingCall.reject');
|
@@ -28525,7 +28525,7 @@ const incomingCallDeclaratify = (incomingCall, context) => {
|
|
28525
28525
|
|
28526
28526
|
// Copyright (c) Microsoft Corporation.
|
28527
28527
|
// Licensed under the MIT License.
|
28528
|
-
var __awaiter$
|
28528
|
+
var __awaiter$x = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
28529
28529
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
28530
28530
|
return new (P || (P = Promise))(function (resolve, reject) {
|
28531
28531
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -28545,14 +28545,14 @@ class ProxyTeamsIncomingCall {
|
|
28545
28545
|
switch (prop) {
|
28546
28546
|
case 'accept': {
|
28547
28547
|
return this._context.withAsyncErrorTeedToState(function (...args) {
|
28548
|
-
return __awaiter$
|
28548
|
+
return __awaiter$x(this, void 0, void 0, function* () {
|
28549
28549
|
return yield target.accept(...args);
|
28550
28550
|
});
|
28551
28551
|
}, 'IncomingCall.accept');
|
28552
28552
|
}
|
28553
28553
|
case 'reject': {
|
28554
28554
|
return this._context.withAsyncErrorTeedToState(function (...args) {
|
28555
|
-
return __awaiter$
|
28555
|
+
return __awaiter$x(this, void 0, void 0, function* () {
|
28556
28556
|
return yield target.reject(...args);
|
28557
28557
|
});
|
28558
28558
|
}, 'IncomingCall.reject');
|
@@ -28771,7 +28771,7 @@ const clearCallRelatedState = (context, internalContext) => {
|
|
28771
28771
|
|
28772
28772
|
// Copyright (c) Microsoft Corporation.
|
28773
28773
|
// Licensed under the MIT License.
|
28774
|
-
var __awaiter$
|
28774
|
+
var __awaiter$w = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
28775
28775
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
28776
28776
|
return new (P || (P = Promise))(function (resolve, reject) {
|
28777
28777
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -28797,56 +28797,56 @@ class ProxyCallCommon {
|
|
28797
28797
|
switch (prop) {
|
28798
28798
|
case 'mute': {
|
28799
28799
|
return this._context.withAsyncErrorTeedToState(function (...args) {
|
28800
|
-
return __awaiter$
|
28800
|
+
return __awaiter$w(this, void 0, void 0, function* () {
|
28801
28801
|
return yield target.mute(...args);
|
28802
28802
|
});
|
28803
28803
|
}, 'Call.mute');
|
28804
28804
|
}
|
28805
28805
|
case 'unmute': {
|
28806
28806
|
return this._context.withAsyncErrorTeedToState(function (...args) {
|
28807
|
-
return __awaiter$
|
28807
|
+
return __awaiter$w(this, void 0, void 0, function* () {
|
28808
28808
|
return yield target.unmute(...args);
|
28809
28809
|
});
|
28810
28810
|
}, 'Call.unmute');
|
28811
28811
|
}
|
28812
28812
|
case 'startVideo': {
|
28813
28813
|
return this._context.withAsyncErrorTeedToState(function (...args) {
|
28814
|
-
return __awaiter$
|
28814
|
+
return __awaiter$w(this, void 0, void 0, function* () {
|
28815
28815
|
return yield target.startVideo(...args);
|
28816
28816
|
});
|
28817
28817
|
}, 'Call.startVideo');
|
28818
28818
|
}
|
28819
28819
|
case 'stopVideo': {
|
28820
28820
|
return this._context.withAsyncErrorTeedToState(function (...args) {
|
28821
|
-
return __awaiter$
|
28821
|
+
return __awaiter$w(this, void 0, void 0, function* () {
|
28822
28822
|
return yield target.stopVideo(...args);
|
28823
28823
|
});
|
28824
28824
|
}, 'Call.stopVideo');
|
28825
28825
|
}
|
28826
28826
|
case 'startScreenSharing': {
|
28827
28827
|
return this._context.withAsyncErrorTeedToState(function (...args) {
|
28828
|
-
return __awaiter$
|
28828
|
+
return __awaiter$w(this, void 0, void 0, function* () {
|
28829
28829
|
return yield target.startScreenSharing(...args);
|
28830
28830
|
});
|
28831
28831
|
}, 'Call.startScreenSharing');
|
28832
28832
|
}
|
28833
28833
|
case 'stopScreenSharing': {
|
28834
28834
|
return this._context.withAsyncErrorTeedToState(function (...args) {
|
28835
|
-
return __awaiter$
|
28835
|
+
return __awaiter$w(this, void 0, void 0, function* () {
|
28836
28836
|
return yield target.stopScreenSharing(...args);
|
28837
28837
|
});
|
28838
28838
|
}, 'Call.stopScreenSharing');
|
28839
28839
|
}
|
28840
28840
|
case 'hold': {
|
28841
28841
|
return this._context.withAsyncErrorTeedToState(function (...args) {
|
28842
|
-
return __awaiter$
|
28842
|
+
return __awaiter$w(this, void 0, void 0, function* () {
|
28843
28843
|
return yield target.hold(...args);
|
28844
28844
|
});
|
28845
28845
|
}, 'Call.hold');
|
28846
28846
|
}
|
28847
28847
|
case 'resume': {
|
28848
28848
|
return this._context.withAsyncErrorTeedToState(function (...args) {
|
28849
|
-
return __awaiter$
|
28849
|
+
return __awaiter$w(this, void 0, void 0, function* () {
|
28850
28850
|
return yield target.resume(...args);
|
28851
28851
|
});
|
28852
28852
|
}, 'Call.resume');
|
@@ -28914,7 +28914,7 @@ class ProxyTeamsCaptions {
|
|
28914
28914
|
get(target, prop) {
|
28915
28915
|
switch (prop) {
|
28916
28916
|
case 'startCaptions':
|
28917
|
-
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$
|
28917
|
+
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$w(this, void 0, void 0, function* () {
|
28918
28918
|
var _a, _b;
|
28919
28919
|
this._context.setStartCaptionsInProgress(this._call.id, true);
|
28920
28920
|
try {
|
@@ -28928,7 +28928,7 @@ class ProxyTeamsCaptions {
|
|
28928
28928
|
}
|
28929
28929
|
}), 'Call.feature');
|
28930
28930
|
case 'stopCaptions':
|
28931
|
-
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$
|
28931
|
+
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$w(this, void 0, void 0, function* () {
|
28932
28932
|
const ret = yield target.stopCaptions(...args);
|
28933
28933
|
this._context.setIsCaptionActive(this._call.id, false);
|
28934
28934
|
this._context.setStartCaptionsInProgress(this._call.id, false);
|
@@ -28936,13 +28936,13 @@ class ProxyTeamsCaptions {
|
|
28936
28936
|
return ret;
|
28937
28937
|
}), 'Call.feature');
|
28938
28938
|
case 'setSpokenLanguage':
|
28939
|
-
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$
|
28939
|
+
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$w(this, void 0, void 0, function* () {
|
28940
28940
|
const ret = yield target.setSpokenLanguage(...args);
|
28941
28941
|
this._context.setSelectedSpokenLanguage(this._call.id, args[0]);
|
28942
28942
|
return ret;
|
28943
28943
|
}), 'Call.feature');
|
28944
28944
|
case 'setCaptionLanguage':
|
28945
|
-
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$
|
28945
|
+
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$w(this, void 0, void 0, function* () {
|
28946
28946
|
const ret = yield target.setCaptionLanguage(...args);
|
28947
28947
|
this._context.setSelectedCaptionLanguage(this._call.id, args[0]);
|
28948
28948
|
return ret;
|
@@ -28964,7 +28964,7 @@ class ProxyCaptions {
|
|
28964
28964
|
get(target, prop) {
|
28965
28965
|
switch (prop) {
|
28966
28966
|
case 'startCaptions':
|
28967
|
-
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$
|
28967
|
+
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$w(this, void 0, void 0, function* () {
|
28968
28968
|
var _a, _b;
|
28969
28969
|
this._context.setStartCaptionsInProgress(this._call.id, true);
|
28970
28970
|
try {
|
@@ -28978,7 +28978,7 @@ class ProxyCaptions {
|
|
28978
28978
|
}
|
28979
28979
|
}), 'Call.feature');
|
28980
28980
|
case 'stopCaptions':
|
28981
|
-
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$
|
28981
|
+
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$w(this, void 0, void 0, function* () {
|
28982
28982
|
const ret = yield target.stopCaptions(...args);
|
28983
28983
|
this._context.setIsCaptionActive(this._call.id, false);
|
28984
28984
|
this._context.setStartCaptionsInProgress(this._call.id, false);
|
@@ -28986,7 +28986,7 @@ class ProxyCaptions {
|
|
28986
28986
|
return ret;
|
28987
28987
|
}), 'Call.feature');
|
28988
28988
|
case 'setSpokenLanguage':
|
28989
|
-
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$
|
28989
|
+
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$w(this, void 0, void 0, function* () {
|
28990
28990
|
const ret = yield target.setSpokenLanguage(...args);
|
28991
28991
|
this._context.setSelectedSpokenLanguage(this._call.id, args[0]);
|
28992
28992
|
return ret;
|
@@ -29006,12 +29006,12 @@ class ProxySpotlightCallFeature {
|
|
29006
29006
|
get(target, prop) {
|
29007
29007
|
switch (prop) {
|
29008
29008
|
case 'startSpotlight':
|
29009
|
-
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$
|
29009
|
+
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$w(this, void 0, void 0, function* () {
|
29010
29010
|
const ret = yield target.startSpotlight(...args);
|
29011
29011
|
return ret;
|
29012
29012
|
}), 'Call.feature');
|
29013
29013
|
case 'stopSpotlight':
|
29014
|
-
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$
|
29014
|
+
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$w(this, void 0, void 0, function* () {
|
29015
29015
|
const ret = yield target.stopSpotlight(...args);
|
29016
29016
|
return ret;
|
29017
29017
|
}), 'Call.feature');
|
@@ -29053,7 +29053,7 @@ class ProxyTransferCallFeature {
|
|
29053
29053
|
|
29054
29054
|
// Copyright (c) Microsoft Corporation.
|
29055
29055
|
// Licensed under the MIT License.
|
29056
|
-
var __awaiter$
|
29056
|
+
var __awaiter$v = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
29057
29057
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
29058
29058
|
return new (P || (P = Promise))(function (resolve, reject) {
|
29059
29059
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -29067,7 +29067,7 @@ class ProxyCall extends ProxyCallCommon {
|
|
29067
29067
|
switch (prop) {
|
29068
29068
|
case 'addParticipant': {
|
29069
29069
|
return this.getContext().withAsyncErrorTeedToState(function (...args) {
|
29070
|
-
return __awaiter$
|
29070
|
+
return __awaiter$v(this, void 0, void 0, function* () {
|
29071
29071
|
return yield target.addParticipant(...args);
|
29072
29072
|
});
|
29073
29073
|
}, 'Call.addParticipant');
|
@@ -29302,7 +29302,7 @@ class InternalCallContext {
|
|
29302
29302
|
|
29303
29303
|
// Copyright (c) Microsoft Corporation.
|
29304
29304
|
// Licensed under the MIT License.
|
29305
|
-
var __awaiter$
|
29305
|
+
var __awaiter$u = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
29306
29306
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
29307
29307
|
return new (P || (P = Promise))(function (resolve, reject) {
|
29308
29308
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -29318,7 +29318,7 @@ class ProxyTeamsCall extends ProxyCallCommon {
|
|
29318
29318
|
/* @conditional-compile-remove(PSTN-calls) */
|
29319
29319
|
case 'addParticipant': {
|
29320
29320
|
return this.getContext().withAsyncErrorTeedToState(function (...args) {
|
29321
|
-
return __awaiter$
|
29321
|
+
return __awaiter$u(this, void 0, void 0, function* () {
|
29322
29322
|
return yield target.addParticipant(...args);
|
29323
29323
|
});
|
29324
29324
|
}, 'TeamsCall.addParticipant');
|
@@ -29437,7 +29437,7 @@ const teamsCallAgentDeclaratify = (callAgent, context, internalContext) => {
|
|
29437
29437
|
|
29438
29438
|
// Copyright (c) Microsoft Corporation.
|
29439
29439
|
// Licensed under the MIT License.
|
29440
|
-
var __awaiter$
|
29440
|
+
var __awaiter$t = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
29441
29441
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
29442
29442
|
return new (P || (P = Promise))(function (resolve, reject) {
|
29443
29443
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -29459,7 +29459,7 @@ class ProxyVideoStreamRendererView {
|
|
29459
29459
|
get(target, prop) {
|
29460
29460
|
switch (prop) {
|
29461
29461
|
case 'updateScalingMode': {
|
29462
|
-
return (...args) => __awaiter$
|
29462
|
+
return (...args) => __awaiter$t(this, void 0, void 0, function* () {
|
29463
29463
|
yield target.updateScalingMode(...args);
|
29464
29464
|
this._context.setRemoteVideoStreamViewScalingMode(this._callId, this._participantId, this._streamId, args[0]);
|
29465
29465
|
});
|
@@ -29480,7 +29480,7 @@ const videoStreamRendererViewDeclaratify = (view, context, callId, participantId
|
|
29480
29480
|
|
29481
29481
|
// Copyright (c) Microsoft Corporation.
|
29482
29482
|
// Licensed under the MIT License.
|
29483
|
-
var __awaiter$
|
29483
|
+
var __awaiter$s = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
29484
29484
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
29485
29485
|
return new (P || (P = Promise))(function (resolve, reject) {
|
29486
29486
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -29502,7 +29502,7 @@ class ProxyCallClient {
|
|
29502
29502
|
get(target, prop) {
|
29503
29503
|
switch (prop) {
|
29504
29504
|
case 'createCallAgent': {
|
29505
|
-
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$
|
29505
|
+
return this._context.withAsyncErrorTeedToState((...args) => __awaiter$s(this, void 0, void 0, function* () {
|
29506
29506
|
// createCallAgent will throw an exception if the previous callAgent was not disposed. If the previous
|
29507
29507
|
// callAgent was disposed then it would have unsubscribed to events so we can just create a new declarative
|
29508
29508
|
// callAgent if the createCallAgent succeeds.
|
@@ -29515,7 +29515,7 @@ class ProxyCallClient {
|
|
29515
29515
|
}), 'CallClient.createCallAgent');
|
29516
29516
|
}
|
29517
29517
|
case 'createTeamsCallAgent': {
|
29518
|
-
/* @conditional-compile-remove(teams-identity-support) */ return this._context.withAsyncErrorTeedToState((...args) => __awaiter$
|
29518
|
+
/* @conditional-compile-remove(teams-identity-support) */ return this._context.withAsyncErrorTeedToState((...args) => __awaiter$s(this, void 0, void 0, function* () {
|
29519
29519
|
// createCallAgent will throw an exception if the previous callAgent was not disposed. If the previous
|
29520
29520
|
// callAgent was disposed then it would have unsubscribed to events so we can just create a new declarative
|
29521
29521
|
// callAgent if the createCallAgent succeeds.
|
@@ -29528,7 +29528,7 @@ class ProxyCallClient {
|
|
29528
29528
|
}), 'CallClient.createTeamsCallAgent');
|
29529
29529
|
}
|
29530
29530
|
case 'getDeviceManager': {
|
29531
|
-
return this._context.withAsyncErrorTeedToState(() => __awaiter$
|
29531
|
+
return this._context.withAsyncErrorTeedToState(() => __awaiter$s(this, void 0, void 0, function* () {
|
29532
29532
|
// As of writing, the SDK always returns the same instance of DeviceManager so we keep a reference of
|
29533
29533
|
// DeviceManager and if it does not change we return the cached DeclarativeDeviceManager. If it does not we'll
|
29534
29534
|
// throw an error that indicate we need to fix this issue as our implementation has diverged from the SDK.
|
@@ -29557,7 +29557,7 @@ class ProxyCallClient {
|
|
29557
29557
|
/**
|
29558
29558
|
* add to this object if we want to proxy anything else off the DebugInfo feature object.
|
29559
29559
|
*/
|
29560
|
-
return Object.assign(Object.assign({}, feature), { getEnvironmentInfo: () => __awaiter$
|
29560
|
+
return Object.assign(Object.assign({}, feature), { getEnvironmentInfo: () => __awaiter$s(this, void 0, void 0, function* () {
|
29561
29561
|
const environmentInfo = yield feature.getEnvironmentInfo();
|
29562
29562
|
this._context.setEnvironmentInfo(environmentInfo);
|
29563
29563
|
return environmentInfo;
|
@@ -29618,7 +29618,7 @@ const createStatefulCallClientWithDeps = (callClient, context, internalContext)
|
|
29618
29618
|
});
|
29619
29619
|
Object.defineProperty(callClient, 'createView', {
|
29620
29620
|
configurable: false,
|
29621
|
-
value: (callId, participantId, stream, options) => __awaiter$
|
29621
|
+
value: (callId, participantId, stream, options) => __awaiter$s(void 0, void 0, void 0, function* () {
|
29622
29622
|
const participantIdKind = participantId ? communicationCommon.getIdentifierKind(participantId) : undefined;
|
29623
29623
|
const result = yield createView(context, internalContext, callId, participantIdKind, stream, options);
|
29624
29624
|
// We only need to declaratify the VideoStreamRendererView object for remote participants. Because the updateScalingMode only needs to be called on remote participant stream views.
|
@@ -30672,7 +30672,7 @@ const END_CALL_PAGES = [
|
|
30672
30672
|
|
30673
30673
|
// Copyright (c) Microsoft Corporation.
|
30674
30674
|
// Licensed under the MIT License.
|
30675
|
-
var __awaiter$
|
30675
|
+
var __awaiter$r = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
30676
30676
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
30677
30677
|
return new (P || (P = Promise))(function (resolve, reject) {
|
30678
30678
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -31034,7 +31034,7 @@ const isDisabled$4 = (option) => {
|
|
31034
31034
|
/**
|
31035
31035
|
* @returns Permissions state for the camera.
|
31036
31036
|
*/
|
31037
|
-
const queryCameraPermissionFromPermissionsAPI = () => __awaiter$
|
31037
|
+
const queryCameraPermissionFromPermissionsAPI = () => __awaiter$r(void 0, void 0, void 0, function* () {
|
31038
31038
|
try {
|
31039
31039
|
return (yield navigator.permissions.query({ name: 'camera' })).state;
|
31040
31040
|
}
|
@@ -31047,7 +31047,7 @@ const queryCameraPermissionFromPermissionsAPI = () => __awaiter$q(void 0, void 0
|
|
31047
31047
|
/**
|
31048
31048
|
* @returns Permissions state for the microphone.
|
31049
31049
|
*/
|
31050
|
-
const queryMicrophonePermissionFromPermissionsAPI = () => __awaiter$
|
31050
|
+
const queryMicrophonePermissionFromPermissionsAPI = () => __awaiter$r(void 0, void 0, void 0, function* () {
|
31051
31051
|
try {
|
31052
31052
|
return (yield navigator.permissions.query({ name: 'microphone' })).state;
|
31053
31053
|
}
|
@@ -31064,7 +31064,7 @@ const queryMicrophonePermissionFromPermissionsAPI = () => __awaiter$q(void 0, vo
|
|
31064
31064
|
* If permission API is not supported on this browser, permission state is set to unsupported.
|
31065
31065
|
* @private
|
31066
31066
|
*/
|
31067
|
-
const getDevicePermissionState = (setVideoState, setAudioState) => __awaiter$
|
31067
|
+
const getDevicePermissionState = (setVideoState, setAudioState) => __awaiter$r(void 0, void 0, void 0, function* () {
|
31068
31068
|
const [cameraResult, microphoneResult] = yield Promise.all([
|
31069
31069
|
queryCameraPermissionFromPermissionsAPI(),
|
31070
31070
|
queryMicrophonePermissionFromPermissionsAPI()
|
@@ -31251,7 +31251,7 @@ function computeComplianceNotification(complianceProps, cachedProps) {
|
|
31251
31251
|
|
31252
31252
|
// Copyright (c) Microsoft Corporation.
|
31253
31253
|
// Licensed under the MIT License.
|
31254
|
-
var __awaiter$
|
31254
|
+
var __awaiter$q = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
31255
31255
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
31256
31256
|
return new (P || (P = Promise))(function (resolve, reject) {
|
31257
31257
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -31274,22 +31274,22 @@ _component) => {
|
|
31274
31274
|
};
|
31275
31275
|
const createCompositeHandlers = memoizeOne((adapter, capabilities) => {
|
31276
31276
|
return {
|
31277
|
-
onCreateLocalStreamView: (options) => __awaiter$
|
31277
|
+
onCreateLocalStreamView: (options) => __awaiter$q(void 0, void 0, void 0, function* () {
|
31278
31278
|
return yield adapter.createStreamView(undefined, options);
|
31279
31279
|
}),
|
31280
|
-
onCreateRemoteStreamView: (userId, options) => __awaiter$
|
31280
|
+
onCreateRemoteStreamView: (userId, options) => __awaiter$q(void 0, void 0, void 0, function* () {
|
31281
31281
|
return yield adapter.createStreamView(userId, options);
|
31282
31282
|
}),
|
31283
|
-
onHangUp: (forEveryone) => __awaiter$
|
31283
|
+
onHangUp: (forEveryone) => __awaiter$q(void 0, void 0, void 0, function* () {
|
31284
31284
|
yield adapter.leaveCall(forEveryone);
|
31285
31285
|
}),
|
31286
31286
|
/* @conditional-compile-remove(PSTN-calls) */
|
31287
|
-
onToggleHold: () => __awaiter$
|
31287
|
+
onToggleHold: () => __awaiter$q(void 0, void 0, void 0, function* () {
|
31288
31288
|
var _a;
|
31289
31289
|
return ((_a = adapter.getState().call) === null || _a === void 0 ? void 0 : _a.state) === 'LocalHold' ? yield adapter.resumeCall() : yield adapter.holdCall();
|
31290
31290
|
}),
|
31291
31291
|
/* @conditional-compile-remove(PSTN-calls) */
|
31292
|
-
onAddParticipant: (participant, options) => __awaiter$
|
31292
|
+
onAddParticipant: (participant, options) => __awaiter$q(void 0, void 0, void 0, function* () {
|
31293
31293
|
if ('communicationUserId' in participant) {
|
31294
31294
|
return yield adapter.addParticipant(participant);
|
31295
31295
|
}
|
@@ -31297,10 +31297,10 @@ const createCompositeHandlers = memoizeOne((adapter, capabilities) => {
|
|
31297
31297
|
return yield adapter.addParticipant(participant, options);
|
31298
31298
|
}
|
31299
31299
|
}),
|
31300
|
-
onSendDtmfTone: (dtmfTone) => __awaiter$
|
31300
|
+
onSendDtmfTone: (dtmfTone) => __awaiter$q(void 0, void 0, void 0, function* () {
|
31301
31301
|
yield adapter.sendDtmfTone(dtmfTone);
|
31302
31302
|
}),
|
31303
|
-
onRemoveParticipant: (userId) => __awaiter$
|
31303
|
+
onRemoveParticipant: (userId) => __awaiter$q(void 0, void 0, void 0, function* () {
|
31304
31304
|
if (typeof userId === 'string') {
|
31305
31305
|
yield adapter.removeParticipant(userId);
|
31306
31306
|
}
|
@@ -31309,136 +31309,136 @@ const createCompositeHandlers = memoizeOne((adapter, capabilities) => {
|
|
31309
31309
|
yield adapter.removeParticipant(_toCommunicationIdentifier(userId));
|
31310
31310
|
}
|
31311
31311
|
}),
|
31312
|
-
onRaiseHand: () => __awaiter$
|
31312
|
+
onRaiseHand: () => __awaiter$q(void 0, void 0, void 0, function* () {
|
31313
31313
|
yield adapter.raiseHand();
|
31314
31314
|
}),
|
31315
|
-
onLowerHand: () => __awaiter$
|
31315
|
+
onLowerHand: () => __awaiter$q(void 0, void 0, void 0, function* () {
|
31316
31316
|
yield adapter.lowerHand();
|
31317
31317
|
}),
|
31318
|
-
onToggleRaiseHand: () => __awaiter$
|
31318
|
+
onToggleRaiseHand: () => __awaiter$q(void 0, void 0, void 0, function* () {
|
31319
31319
|
var _b;
|
31320
31320
|
((_b = adapter.getState().call) === null || _b === void 0 ? void 0 : _b.raiseHand.localParticipantRaisedHand)
|
31321
31321
|
? yield adapter.lowerHand()
|
31322
31322
|
: yield adapter.raiseHand();
|
31323
31323
|
}),
|
31324
|
-
onReactionClick: (reaction) => __awaiter$
|
31324
|
+
onReactionClick: (reaction) => __awaiter$q(void 0, void 0, void 0, function* () {
|
31325
31325
|
yield adapter.onReactionClick(reaction);
|
31326
31326
|
}),
|
31327
|
-
onSelectCamera: (deviceInfo, options) => __awaiter$
|
31327
|
+
onSelectCamera: (deviceInfo, options) => __awaiter$q(void 0, void 0, void 0, function* () {
|
31328
31328
|
yield adapter.setCamera(deviceInfo, options);
|
31329
31329
|
}),
|
31330
|
-
onSelectMicrophone: (deviceInfo) => __awaiter$
|
31330
|
+
onSelectMicrophone: (deviceInfo) => __awaiter$q(void 0, void 0, void 0, function* () {
|
31331
31331
|
yield adapter.setMicrophone(deviceInfo);
|
31332
31332
|
}),
|
31333
|
-
onSelectSpeaker: (deviceInfo) => __awaiter$
|
31333
|
+
onSelectSpeaker: (deviceInfo) => __awaiter$q(void 0, void 0, void 0, function* () {
|
31334
31334
|
yield adapter.setSpeaker(deviceInfo);
|
31335
31335
|
}),
|
31336
31336
|
onStartCall: (participants, options) => {
|
31337
31337
|
const rawIds = participants.map((participant) => toFlatCommunicationIdentifier(participant));
|
31338
31338
|
return adapter.startCall(rawIds, options);
|
31339
31339
|
},
|
31340
|
-
onStartScreenShare: () => __awaiter$
|
31340
|
+
onStartScreenShare: () => __awaiter$q(void 0, void 0, void 0, function* () {
|
31341
31341
|
yield adapter.startScreenShare();
|
31342
31342
|
}),
|
31343
|
-
onStopScreenShare: () => __awaiter$
|
31343
|
+
onStopScreenShare: () => __awaiter$q(void 0, void 0, void 0, function* () {
|
31344
31344
|
yield adapter.stopScreenShare();
|
31345
31345
|
}),
|
31346
|
-
onToggleCamera: (options) => __awaiter$
|
31346
|
+
onToggleCamera: (options) => __awaiter$q(void 0, void 0, void 0, function* () {
|
31347
31347
|
isCameraOn(adapter.getState()) ? yield adapter.stopCamera() : yield adapter.startCamera(options);
|
31348
31348
|
}),
|
31349
|
-
onToggleMicrophone: () => __awaiter$
|
31349
|
+
onToggleMicrophone: () => __awaiter$q(void 0, void 0, void 0, function* () {
|
31350
31350
|
var _c;
|
31351
31351
|
return ((_c = adapter.getState().call) === null || _c === void 0 ? void 0 : _c.isMuted) ? yield adapter.unmute() : yield adapter.mute();
|
31352
31352
|
}),
|
31353
|
-
onToggleScreenShare: () => __awaiter$
|
31353
|
+
onToggleScreenShare: () => __awaiter$q(void 0, void 0, void 0, function* () {
|
31354
31354
|
var _d;
|
31355
31355
|
return ((_d = adapter.getState().call) === null || _d === void 0 ? void 0 : _d.isScreenSharingOn)
|
31356
31356
|
? yield adapter.stopScreenShare()
|
31357
31357
|
: yield adapter.startScreenShare();
|
31358
31358
|
}),
|
31359
|
-
onStartLocalVideo: () => __awaiter$
|
31359
|
+
onStartLocalVideo: () => __awaiter$q(void 0, void 0, void 0, function* () {
|
31360
31360
|
if (adapter.getState().call) {
|
31361
31361
|
return adapter.startCamera();
|
31362
31362
|
}
|
31363
31363
|
}),
|
31364
|
-
onDisposeLocalStreamView: () => __awaiter$
|
31364
|
+
onDisposeLocalStreamView: () => __awaiter$q(void 0, void 0, void 0, function* () {
|
31365
31365
|
return adapter.disposeLocalVideoStreamView();
|
31366
31366
|
}),
|
31367
|
-
onDisposeRemoteStreamView: (userId) => __awaiter$
|
31367
|
+
onDisposeRemoteStreamView: (userId) => __awaiter$q(void 0, void 0, void 0, function* () {
|
31368
31368
|
return adapter.disposeStreamView(userId);
|
31369
31369
|
}),
|
31370
|
-
onDisposeRemoteScreenShareStreamView: (userId) => __awaiter$
|
31370
|
+
onDisposeRemoteScreenShareStreamView: (userId) => __awaiter$q(void 0, void 0, void 0, function* () {
|
31371
31371
|
return adapter.disposeScreenShareStreamView(userId);
|
31372
31372
|
}),
|
31373
|
-
onDisposeLocalScreenShareStreamView: () => __awaiter$
|
31373
|
+
onDisposeLocalScreenShareStreamView: () => __awaiter$q(void 0, void 0, void 0, function* () {
|
31374
31374
|
return adapter.disposeScreenShareStreamView('');
|
31375
31375
|
}),
|
31376
|
-
onDisposeRemoteVideoStreamView: (userId) => __awaiter$
|
31376
|
+
onDisposeRemoteVideoStreamView: (userId) => __awaiter$q(void 0, void 0, void 0, function* () {
|
31377
31377
|
return adapter.disposeRemoteVideoStreamView(userId);
|
31378
31378
|
}),
|
31379
31379
|
/* @conditional-compile-remove(call-readiness) */
|
31380
|
-
askDevicePermission: (constrain) => __awaiter$
|
31380
|
+
askDevicePermission: (constrain) => __awaiter$q(void 0, void 0, void 0, function* () {
|
31381
31381
|
return adapter.askDevicePermission(constrain);
|
31382
31382
|
}),
|
31383
|
-
onRemoveVideoBackgroundEffects: () => __awaiter$
|
31383
|
+
onRemoveVideoBackgroundEffects: () => __awaiter$q(void 0, void 0, void 0, function* () {
|
31384
31384
|
return yield adapter.stopVideoBackgroundEffects();
|
31385
31385
|
}),
|
31386
|
-
onBlurVideoBackground: (backgroundBlurConfig) => __awaiter$
|
31386
|
+
onBlurVideoBackground: (backgroundBlurConfig) => __awaiter$q(void 0, void 0, void 0, function* () {
|
31387
31387
|
const blurConfig = Object.assign({ effectName: 'blur' }, backgroundBlurConfig);
|
31388
31388
|
return yield adapter.startVideoBackgroundEffect(blurConfig);
|
31389
31389
|
}),
|
31390
|
-
onReplaceVideoBackground: (backgroundReplacementConfig) => __awaiter$
|
31390
|
+
onReplaceVideoBackground: (backgroundReplacementConfig) => __awaiter$q(void 0, void 0, void 0, function* () {
|
31391
31391
|
const replacementConfig = Object.assign({ effectName: 'replacement' }, backgroundReplacementConfig);
|
31392
31392
|
return yield adapter.startVideoBackgroundEffect(replacementConfig);
|
31393
31393
|
}),
|
31394
|
-
onStartCaptions: (options) => __awaiter$
|
31394
|
+
onStartCaptions: (options) => __awaiter$q(void 0, void 0, void 0, function* () {
|
31395
31395
|
yield adapter.startCaptions(options);
|
31396
31396
|
}),
|
31397
|
-
onStopCaptions: () => __awaiter$
|
31397
|
+
onStopCaptions: () => __awaiter$q(void 0, void 0, void 0, function* () {
|
31398
31398
|
yield adapter.stopCaptions();
|
31399
31399
|
}),
|
31400
|
-
onSetSpokenLanguage: (language) => __awaiter$
|
31400
|
+
onSetSpokenLanguage: (language) => __awaiter$q(void 0, void 0, void 0, function* () {
|
31401
31401
|
yield adapter.setSpokenLanguage(language);
|
31402
31402
|
}),
|
31403
|
-
onSetCaptionLanguage: (language) => __awaiter$
|
31403
|
+
onSetCaptionLanguage: (language) => __awaiter$q(void 0, void 0, void 0, function* () {
|
31404
31404
|
yield adapter.setCaptionLanguage(language);
|
31405
31405
|
}),
|
31406
|
-
onSubmitSurvey: (survey) => __awaiter$
|
31406
|
+
onSubmitSurvey: (survey) => __awaiter$q(void 0, void 0, void 0, function* () {
|
31407
31407
|
return yield adapter.submitSurvey(survey);
|
31408
31408
|
}),
|
31409
|
-
onStartSpotlight: (userIds) => __awaiter$
|
31409
|
+
onStartSpotlight: (userIds) => __awaiter$q(void 0, void 0, void 0, function* () {
|
31410
31410
|
yield adapter.startSpotlight(userIds);
|
31411
31411
|
}),
|
31412
|
-
onStopSpotlight: (userIds) => __awaiter$
|
31412
|
+
onStopSpotlight: (userIds) => __awaiter$q(void 0, void 0, void 0, function* () {
|
31413
31413
|
yield adapter.stopSpotlight(userIds);
|
31414
31414
|
}),
|
31415
|
-
onStopAllSpotlight: () => __awaiter$
|
31415
|
+
onStopAllSpotlight: () => __awaiter$q(void 0, void 0, void 0, function* () {
|
31416
31416
|
yield adapter.stopAllSpotlight();
|
31417
31417
|
}),
|
31418
31418
|
onStartLocalSpotlight: (capabilities === null || capabilities === void 0 ? void 0 : capabilities.spotlightParticipant.isPresent)
|
31419
|
-
? () => __awaiter$
|
31419
|
+
? () => __awaiter$q(void 0, void 0, void 0, function* () {
|
31420
31420
|
yield adapter.startSpotlight();
|
31421
31421
|
})
|
31422
31422
|
: undefined,
|
31423
|
-
onStopLocalSpotlight: () => __awaiter$
|
31423
|
+
onStopLocalSpotlight: () => __awaiter$q(void 0, void 0, void 0, function* () {
|
31424
31424
|
yield adapter.stopSpotlight();
|
31425
31425
|
}),
|
31426
31426
|
onStartRemoteSpotlight: (capabilities === null || capabilities === void 0 ? void 0 : capabilities.spotlightParticipant.isPresent)
|
31427
|
-
? (userIds) => __awaiter$
|
31427
|
+
? (userIds) => __awaiter$q(void 0, void 0, void 0, function* () {
|
31428
31428
|
yield adapter.startSpotlight(userIds);
|
31429
31429
|
})
|
31430
31430
|
: undefined,
|
31431
31431
|
onStopRemoteSpotlight: (capabilities === null || capabilities === void 0 ? void 0 : capabilities.removeParticipantsSpotlight.isPresent)
|
31432
|
-
? (userIds) => __awaiter$
|
31432
|
+
? (userIds) => __awaiter$q(void 0, void 0, void 0, function* () {
|
31433
31433
|
yield adapter.stopSpotlight(userIds);
|
31434
31434
|
})
|
31435
31435
|
: undefined,
|
31436
31436
|
/* @conditional-compile-remove(soft-mute) */
|
31437
|
-
onMuteParticipant: (userId) => __awaiter$
|
31437
|
+
onMuteParticipant: (userId) => __awaiter$q(void 0, void 0, void 0, function* () {
|
31438
31438
|
yield adapter.muteParticipant(userId);
|
31439
31439
|
}),
|
31440
31440
|
/* @conditional-compile-remove(soft-mute) */
|
31441
|
-
onMuteAllRemoteParticipants: () => __awaiter$
|
31441
|
+
onMuteAllRemoteParticipants: () => __awaiter$q(void 0, void 0, void 0, function* () {
|
31442
31442
|
yield adapter.muteAllRemoteParticipants();
|
31443
31443
|
})
|
31444
31444
|
};
|
@@ -31576,7 +31576,7 @@ const MoreButton = (props) => {
|
|
31576
31576
|
|
31577
31577
|
// Copyright (c) Microsoft Corporation.
|
31578
31578
|
// Licensed under the MIT License.
|
31579
|
-
var __awaiter$
|
31579
|
+
var __awaiter$p = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
31580
31580
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
31581
31581
|
return new (P || (P = Promise))(function (resolve, reject) {
|
31582
31582
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -31598,7 +31598,7 @@ const CaptionsBannerMoreButton = (props) => {
|
|
31598
31598
|
tooltipOffContent: localeStrings.strings.call.captionsBannerMoreButtonTooltip
|
31599
31599
|
}), [localeStrings]);
|
31600
31600
|
const moreButtonContextualMenuItems = [];
|
31601
|
-
const startCaptions = React.useCallback(() => __awaiter$
|
31601
|
+
const startCaptions = React.useCallback(() => __awaiter$p(void 0, void 0, void 0, function* () {
|
31602
31602
|
yield startCaptionsButtonHandlers.onStartCaptions({
|
31603
31603
|
spokenLanguage: startCaptionsButtonProps.currentSpokenLanguage
|
31604
31604
|
});
|
@@ -31807,7 +31807,7 @@ const buttonTextStyles = { label: { fontSize: '0.875rem' } };
|
|
31807
31807
|
|
31808
31808
|
// Copyright (c) Microsoft Corporation.
|
31809
31809
|
// Licensed under the MIT License.
|
31810
|
-
var __awaiter$
|
31810
|
+
var __awaiter$o = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
31811
31811
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
31812
31812
|
return new (P || (P = Promise))(function (resolve, reject) {
|
31813
31813
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -31859,7 +31859,7 @@ const EndCall = (props) => {
|
|
31859
31859
|
toggleConfirm();
|
31860
31860
|
}, [onHangUp, toggleConfirm]);
|
31861
31861
|
/* @conditional-compile-remove(end-call-options) */
|
31862
|
-
const hangUpOverride = React.useCallback((forEveryone) => __awaiter$
|
31862
|
+
const hangUpOverride = React.useCallback((forEveryone) => __awaiter$o(void 0, void 0, void 0, function* () {
|
31863
31863
|
if (props.mobileView ||
|
31864
31864
|
forEveryone === false /* value being false(not undefined) because it comes from endCall option */) {
|
31865
31865
|
onHangUp();
|
@@ -32815,7 +32815,7 @@ const showDtmfDialer = (callees, remoteParticipants) => {
|
|
32815
32815
|
|
32816
32816
|
// Copyright (c) Microsoft Corporation.
|
32817
32817
|
// Licensed under the MIT License.
|
32818
|
-
var __awaiter$
|
32818
|
+
var __awaiter$n = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
32819
32819
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
32820
32820
|
return new (P || (P = Promise))(function (resolve, reject) {
|
32821
32821
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
@@ -32835,7 +32835,7 @@ const DesktopMoreButton = (props) => {
|
|
32835
32835
|
const holdButtonProps = usePropsFor$1(HoldButton);
|
32836
32836
|
const startCaptionsButtonProps = useAdaptedSelector(_startCaptionsButtonSelector);
|
32837
32837
|
const startCaptionsButtonHandlers = useHandlers();
|
32838
|
-
const startCaptions = React.useCallback(() => __awaiter$
|
32838
|
+
const startCaptions = React.useCallback(() => __awaiter$n(void 0, void 0, void 0, function* () {
|
32839
32839
|
yield startCaptionsButtonHandlers.onStartCaptions({
|
32840
32840
|
spokenLanguage: startCaptionsButtonProps.currentSpokenLanguage
|
32841
32841
|
});
|
@@ -33322,6 +33322,15 @@ const modalLayerHostStyle = {
|
|
33322
33322
|
|
33323
33323
|
// Copyright (c) Microsoft Corporation.
|
33324
33324
|
// Licensed under the MIT License.
|
33325
|
+
var __awaiter$m = (window && window.__awaiter) || function (thisArg, _arguments, P, generator) {
|
33326
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
33327
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
33328
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
33329
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
33330
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
33331
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
33332
|
+
});
|
33333
|
+
};
|
33325
33334
|
/**
|
33326
33335
|
* @private
|
33327
33336
|
*/
|
@@ -33354,6 +33363,20 @@ const useMinMaxDragPosition = (modalLayerHostId, rtl) => {
|
|
33354
33363
|
}, [modalHostWidth, rtl]);
|
33355
33364
|
return { minDragPosition: minDragPosition, maxDragPosition: maxDragPosition };
|
33356
33365
|
};
|
33366
|
+
/* @conditional-compile-remove(breakout-rooms) */
|
33367
|
+
/**
|
33368
|
+
* @private
|
33369
|
+
*/
|
33370
|
+
const busyWait = (checkCondition, retryLimit) => __awaiter$m(void 0, void 0, void 0, function* () {
|
33371
|
+
const delayMs = 500;
|
33372
|
+
let retryCount = 0;
|
33373
|
+
while (!checkCondition()) {
|
33374
|
+
yield new Promise((resolve) => setTimeout(resolve, delayMs));
|
33375
|
+
if (!retryLimit || (retryLimit && retryCount++ >= retryLimit)) {
|
33376
|
+
break;
|
33377
|
+
}
|
33378
|
+
}
|
33379
|
+
});
|
33357
33380
|
|
33358
33381
|
// Copyright (c) Microsoft Corporation.
|
33359
33382
|
// Licensed under the MIT License.
|
@@ -40691,27 +40714,29 @@ class AzureCommunicationCallAdapter {
|
|
40691
40714
|
/* @conditional-compile-remove(breakout-rooms) */
|
40692
40715
|
returnFromBreakoutRoom() {
|
40693
40716
|
return __awaiter$9(this, void 0, void 0, function* () {
|
40694
|
-
var _a;
|
40717
|
+
var _a, _b, _c, _d;
|
40695
40718
|
if (this.call === undefined) {
|
40696
40719
|
return;
|
40697
40720
|
}
|
40698
|
-
// Find call state of current call from stateful layer
|
40699
|
-
|
40700
|
-
|
40721
|
+
// Find call state of current call from stateful layer. The current call state of breakout room may not be present in calls array
|
40722
|
+
// if the breakout room call is ended. So search the callsEnded array as well.
|
40723
|
+
const callState = this.callClient.getState().calls[(_a = this.call) === null || _a === void 0 ? void 0 : _a.id]
|
40724
|
+
? this.callClient.getState().callsEnded[(_b = this.call) === null || _b === void 0 ? void 0 : _b.id]
|
40701
40725
|
: undefined;
|
40702
|
-
// Find
|
40703
|
-
const
|
40704
|
-
|
40705
|
-
|
40726
|
+
// Find origin call id from breakout room call state
|
40727
|
+
const originCallId = (_c = callState === null || callState === void 0 ? void 0 : callState.breakoutRooms) === null || _c === void 0 ? void 0 : _c.breakoutRoomOriginCallId;
|
40728
|
+
// Find origin call from call agent
|
40729
|
+
const originCall = (_d = this.callAgent) === null || _d === void 0 ? void 0 : _d.calls.find((callAgentCall) => {
|
40730
|
+
return callAgentCall.id === originCallId;
|
40706
40731
|
});
|
40707
|
-
|
40708
|
-
|
40709
|
-
|
40710
|
-
|
40711
|
-
|
40712
|
-
|
40713
|
-
|
40714
|
-
|
40732
|
+
if (!originCall) {
|
40733
|
+
throw new Error('Could not return from breakout room because the origin call could not be retrieved.');
|
40734
|
+
}
|
40735
|
+
const breakoutRoomCall = this.call;
|
40736
|
+
this.processNewCall(originCall);
|
40737
|
+
yield this.resumeCall();
|
40738
|
+
if ((breakoutRoomCall === null || breakoutRoomCall === void 0 ? void 0 : breakoutRoomCall.state) === 'Connected') {
|
40739
|
+
breakoutRoomCall.hangUp();
|
40715
40740
|
}
|
40716
40741
|
});
|
40717
40742
|
}
|
@@ -40730,57 +40755,54 @@ class AzureCommunicationCallAdapter {
|
|
40730
40755
|
}
|
40731
40756
|
subscribeToCaptionEvents() {
|
40732
40757
|
var _a;
|
40733
|
-
|
40734
|
-
|
40735
|
-
|
40736
|
-
|
40737
|
-
|
40738
|
-
|
40739
|
-
|
40740
|
-
|
40741
|
-
|
40742
|
-
|
40743
|
-
|
40744
|
-
|
40745
|
-
|
40746
|
-
|
40747
|
-
|
40748
|
-
|
40749
|
-
|
40750
|
-
|
40751
|
-
|
40752
|
-
|
40753
|
-
captionsFeature.on('CaptionsKindChanged', this.captionsKindChanged.bind(this));
|
40754
|
-
}
|
40758
|
+
const captionsFeature = (_a = this.call) === null || _a === void 0 ? void 0 : _a.feature(communicationCalling.Features.Captions);
|
40759
|
+
if ((captionsFeature === null || captionsFeature === void 0 ? void 0 : captionsFeature.captions.kind) === 'TeamsCaptions' &&
|
40760
|
+
(this.context.getState().isTeamsCall || this.context.getState().isTeamsMeeting)) {
|
40761
|
+
const teamsCaptionsFeature = captionsFeature.captions;
|
40762
|
+
teamsCaptionsFeature.on('CaptionsReceived', this.teamsCaptionsReceived.bind(this));
|
40763
|
+
teamsCaptionsFeature.on('CaptionsActiveChanged', this.isCaptionsActiveChanged.bind(this));
|
40764
|
+
teamsCaptionsFeature.on('CaptionLanguageChanged', this.isCaptionLanguageChanged.bind(this));
|
40765
|
+
teamsCaptionsFeature.on('SpokenLanguageChanged', this.isSpokenLanguageChanged.bind(this));
|
40766
|
+
}
|
40767
|
+
else {
|
40768
|
+
/* @conditional-compile-remove(acs-close-captions) */
|
40769
|
+
const acsCaptionsFeature = captionsFeature === null || captionsFeature === void 0 ? void 0 : captionsFeature.captions;
|
40770
|
+
/* @conditional-compile-remove(acs-close-captions) */
|
40771
|
+
acsCaptionsFeature.on('CaptionsReceived', this.captionsReceived.bind(this));
|
40772
|
+
/* @conditional-compile-remove(acs-close-captions) */
|
40773
|
+
acsCaptionsFeature.on('CaptionsActiveChanged', this.isCaptionsActiveChanged.bind(this));
|
40774
|
+
/* @conditional-compile-remove(acs-close-captions) */
|
40775
|
+
acsCaptionsFeature.on('SpokenLanguageChanged', this.isSpokenLanguageChanged.bind(this));
|
40776
|
+
/* @conditional-compile-remove(acs-close-captions) */
|
40777
|
+
captionsFeature === null || captionsFeature === void 0 ? void 0 : captionsFeature.on('CaptionsKindChanged', this.captionsKindChanged.bind(this));
|
40755
40778
|
}
|
40756
40779
|
}
|
40757
40780
|
unsubscribeFromCaptionEvents() {
|
40758
|
-
var _a
|
40759
|
-
|
40760
|
-
|
40761
|
-
|
40762
|
-
|
40763
|
-
|
40764
|
-
|
40765
|
-
|
40766
|
-
|
40767
|
-
|
40768
|
-
|
40769
|
-
|
40770
|
-
|
40771
|
-
|
40772
|
-
|
40773
|
-
|
40774
|
-
|
40775
|
-
|
40776
|
-
|
40777
|
-
|
40778
|
-
|
40779
|
-
(_b = this.call) === null || _b === void 0 ? void 0 : _b.off('stateChanged', this.subscribeToCaptionEvents.bind(this));
|
40781
|
+
var _a;
|
40782
|
+
const captionsFeature = (_a = this.call) === null || _a === void 0 ? void 0 : _a.feature(communicationCalling.Features.Captions);
|
40783
|
+
if ((captionsFeature === null || captionsFeature === void 0 ? void 0 : captionsFeature.captions.kind) === 'TeamsCaptions' &&
|
40784
|
+
(this.context.getState().isTeamsCall || this.context.getState().isTeamsMeeting)) {
|
40785
|
+
const teamsCaptionsFeature = captionsFeature.captions;
|
40786
|
+
teamsCaptionsFeature.off('CaptionsReceived', this.teamsCaptionsReceived.bind(this));
|
40787
|
+
teamsCaptionsFeature.off('CaptionsActiveChanged', this.isCaptionsActiveChanged.bind(this));
|
40788
|
+
teamsCaptionsFeature.off('CaptionLanguageChanged', this.isCaptionLanguageChanged.bind(this));
|
40789
|
+
teamsCaptionsFeature.off('SpokenLanguageChanged', this.isSpokenLanguageChanged.bind(this));
|
40790
|
+
}
|
40791
|
+
else {
|
40792
|
+
/* @conditional-compile-remove(acs-close-captions) */
|
40793
|
+
const acsCaptionsFeature = captionsFeature === null || captionsFeature === void 0 ? void 0 : captionsFeature.captions;
|
40794
|
+
/* @conditional-compile-remove(acs-close-captions) */
|
40795
|
+
acsCaptionsFeature.off('CaptionsReceived', this.captionsReceived.bind(this));
|
40796
|
+
/* @conditional-compile-remove(acs-close-captions) */
|
40797
|
+
acsCaptionsFeature.off('CaptionsActiveChanged', this.isCaptionsActiveChanged.bind(this));
|
40798
|
+
/* @conditional-compile-remove(acs-close-captions) */
|
40799
|
+
acsCaptionsFeature.off('SpokenLanguageChanged', this.isSpokenLanguageChanged.bind(this));
|
40800
|
+
/* @conditional-compile-remove(acs-close-captions) */
|
40801
|
+
captionsFeature === null || captionsFeature === void 0 ? void 0 : captionsFeature.off('CaptionsKindChanged', this.captionsKindChanged.bind(this));
|
40780
40802
|
}
|
40781
40803
|
}
|
40782
40804
|
subscribeCallEvents() {
|
40783
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j
|
40805
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
40784
40806
|
if (this.call) {
|
40785
40807
|
this.callingSoundSubscriber = new CallingSoundSubscriber(this.call, this.getState().targetCallees, this.getState().sounds);
|
40786
40808
|
}
|
@@ -40788,20 +40810,20 @@ class AzureCommunicationCallAdapter {
|
|
40788
40810
|
(_b = this.call) === null || _b === void 0 ? void 0 : _b.on('isMutedChanged', this.isMyMutedChanged.bind(this));
|
40789
40811
|
(_c = this.call) === null || _c === void 0 ? void 0 : _c.on('isScreenSharingOnChanged', this.isScreenSharingOnChanged.bind(this));
|
40790
40812
|
(_d = this.call) === null || _d === void 0 ? void 0 : _d.on('idChanged', this.callIdChanged.bind(this));
|
40791
|
-
(_e = this.call) === null || _e === void 0 ? void 0 : _e.on('
|
40792
|
-
|
40793
|
-
(
|
40794
|
-
(
|
40795
|
-
(
|
40813
|
+
(_e = this.call) === null || _e === void 0 ? void 0 : _e.on('roleChanged', this.roleChanged.bind(this));
|
40814
|
+
this.subscribeToCaptionEvents();
|
40815
|
+
(_f = this.call) === null || _f === void 0 ? void 0 : _f.feature(communicationCalling.Features.Transfer).on('transferAccepted', this.transferAccepted.bind(this));
|
40816
|
+
(_g = this.call) === null || _g === void 0 ? void 0 : _g.feature(communicationCalling.Features.Capabilities).on('capabilitiesChanged', this.capabilitiesChanged.bind(this));
|
40817
|
+
(_h = this.call) === null || _h === void 0 ? void 0 : _h.feature(communicationCalling.Features.Spotlight).on('spotlightChanged', this.spotlightChanged.bind(this));
|
40796
40818
|
/* @conditional-compile-remove(breakout-rooms) */
|
40797
|
-
const breakoutRoomsFeature = (
|
40819
|
+
const breakoutRoomsFeature = (_j = this.call) === null || _j === void 0 ? void 0 : _j.feature(communicationCalling.Features.BreakoutRooms);
|
40798
40820
|
/* @conditional-compile-remove(breakout-rooms) */
|
40799
40821
|
if (breakoutRoomsFeature) {
|
40800
40822
|
breakoutRoomsFeature.on('breakoutRoomsUpdated', this.breakoutRoomsUpdated.bind(this));
|
40801
40823
|
}
|
40802
40824
|
}
|
40803
40825
|
unsubscribeCallEvents() {
|
40804
|
-
var _a, _b, _c, _d, _e
|
40826
|
+
var _a, _b, _c, _d, _e;
|
40805
40827
|
for (const subscriber of this.participantSubscribers.values()) {
|
40806
40828
|
subscriber.unsubscribeAll();
|
40807
40829
|
}
|
@@ -40811,10 +40833,6 @@ class AzureCommunicationCallAdapter {
|
|
40811
40833
|
(_c = this.call) === null || _c === void 0 ? void 0 : _c.off('isScreenSharingOnChanged', this.isScreenSharingOnChanged.bind(this));
|
40812
40834
|
(_d = this.call) === null || _d === void 0 ? void 0 : _d.off('idChanged', this.callIdChanged.bind(this));
|
40813
40835
|
(_e = this.call) === null || _e === void 0 ? void 0 : _e.off('roleChanged', this.roleChanged.bind(this));
|
40814
|
-
/* @conditional-compile-remove(acs-close-captions) */
|
40815
|
-
if (((_f = this.call) === null || _f === void 0 ? void 0 : _f.feature(communicationCalling.Features.Captions).captions.kind) === 'Captions') {
|
40816
|
-
(_g = this.call) === null || _g === void 0 ? void 0 : _g.feature(communicationCalling.Features.Captions).off('CaptionsKindChanged', this.unsubscribeFromCaptionEvents.bind(this));
|
40817
|
-
}
|
40818
40836
|
this.unsubscribeFromCaptionEvents();
|
40819
40837
|
if (this.callingSoundSubscriber) {
|
40820
40838
|
this.callingSoundSubscriber.unsubscribeAll();
|
@@ -40929,7 +40947,31 @@ class AzureCommunicationCallAdapter {
|
|
40929
40947
|
}
|
40930
40948
|
/* @conditional-compile-remove(breakout-rooms) */
|
40931
40949
|
breakoutRoomJoined(call) {
|
40932
|
-
|
40950
|
+
var _a;
|
40951
|
+
if (((_a = this.call) === null || _a === void 0 ? void 0 : _a.id) !== call.id) {
|
40952
|
+
this.processNewCall(call);
|
40953
|
+
}
|
40954
|
+
// Hang up other breakout room calls in case we are joining a new breakout room while already in one
|
40955
|
+
this.hangupOtherBreakoutRoomCalls(call.id);
|
40956
|
+
}
|
40957
|
+
/* @conditional-compile-remove(breakout-rooms) */
|
40958
|
+
hangupOtherBreakoutRoomCalls(currentBreakoutRoomCallId) {
|
40959
|
+
var _a;
|
40960
|
+
// Get origin call id of breakout room call
|
40961
|
+
const breakoutRoomCallState = this.callClient.getState().calls[currentBreakoutRoomCallId];
|
40962
|
+
const originCallId = (_a = breakoutRoomCallState.breakoutRooms) === null || _a === void 0 ? void 0 : _a.breakoutRoomOriginCallId;
|
40963
|
+
// Get other breakout room calls with the same origin call
|
40964
|
+
const otherBreakoutRoomCallStates = Object.values(this.callClient.getState().calls).filter((callState) => {
|
40965
|
+
var _a;
|
40966
|
+
return (((_a = callState.breakoutRooms) === null || _a === void 0 ? void 0 : _a.breakoutRoomOriginCallId) === originCallId && callState.id !== currentBreakoutRoomCallId);
|
40967
|
+
});
|
40968
|
+
// Hang up other breakout room calls
|
40969
|
+
for (const breakoutRoom of otherBreakoutRoomCallStates) {
|
40970
|
+
const breakoutRoomCall = this.callAgent.calls.find((callAgentCall) => {
|
40971
|
+
return callAgentCall.id === breakoutRoom.id;
|
40972
|
+
});
|
40973
|
+
breakoutRoomCall === null || breakoutRoomCall === void 0 ? void 0 : breakoutRoomCall.hangUp();
|
40974
|
+
}
|
40933
40975
|
}
|
40934
40976
|
callIdChanged() {
|
40935
40977
|
var _a;
|
@@ -41344,6 +41386,20 @@ const callCompositeContainerStyles = (isMobile) => ({
|
|
41344
41386
|
minWidth: isMobile ? 'unset' : `${compositeMinWidthRem}rem`
|
41345
41387
|
}
|
41346
41388
|
});
|
41389
|
+
/* @conditional-compile-remove(breakout-rooms) */
|
41390
|
+
/**
|
41391
|
+
* Style for stack containing the chat spinner used to delay showing chat composite until it is ready.
|
41392
|
+
* @private
|
41393
|
+
*/
|
41394
|
+
const chatSpinnerContainerStyles = {
|
41395
|
+
root: {
|
41396
|
+
width: '100%',
|
41397
|
+
height: '100%',
|
41398
|
+
display: 'flex',
|
41399
|
+
justifyContent: 'center',
|
41400
|
+
alignItems: 'center'
|
41401
|
+
}
|
41402
|
+
};
|
41347
41403
|
|
41348
41404
|
// Copyright (c) Microsoft Corporation.
|
41349
41405
|
// Licensed under the MIT License.
|
@@ -41887,6 +41943,7 @@ const validNewChatMessage = (message) => !!message.senderDisplayName && (message
|
|
41887
41943
|
// Copyright (c) Microsoft Corporation.
|
41888
41944
|
// Licensed under the MIT License.
|
41889
41945
|
const CallWithChatScreen = (props) => {
|
41946
|
+
var _a, _b;
|
41890
41947
|
const { callWithChatAdapter, fluentTheme, formFactor = 'desktop' } = props;
|
41891
41948
|
const { surveyOptions } = props;
|
41892
41949
|
const mobileView = formFactor === 'mobile';
|
@@ -42044,11 +42101,32 @@ const CallWithChatScreen = (props) => {
|
|
42044
42101
|
/* @conditional-compile-remove(rich-text-editor-composite-support) */
|
42045
42102
|
props.richTextEditor
|
42046
42103
|
]);
|
42047
|
-
|
42104
|
+
/* @conditional-compile-remove(breakout-rooms) */
|
42105
|
+
const chatSpinnerLabel = useLocale().strings.callWithChat.chatContentSpinnerLabel;
|
42106
|
+
const onRenderChatContent = React.useCallback(() => {
|
42107
|
+
/* @conditional-compile-remove(breakout-rooms) */
|
42108
|
+
if (!isChatInitialized) {
|
42109
|
+
return (React.createElement(react.Stack, { styles: chatSpinnerContainerStyles },
|
42110
|
+
React.createElement(react.Spinner, { label: chatSpinnerLabel, size: react.SpinnerSize.large })));
|
42111
|
+
}
|
42112
|
+
return (React.createElement(ChatComposite, { adapter: chatAdapter, fluentTheme: theme, options: chatCompositeOptions, onFetchAvatarPersonaData: props.onFetchAvatarPersonaData }));
|
42113
|
+
}, [
|
42114
|
+
chatAdapter,
|
42115
|
+
props.onFetchAvatarPersonaData,
|
42116
|
+
chatCompositeOptions,
|
42117
|
+
theme,
|
42118
|
+
/* @conditional-compile-remove(breakout-rooms) */ isChatInitialized,
|
42119
|
+
/* @conditional-compile-remove(breakout-rooms) */ chatSpinnerLabel
|
42120
|
+
]);
|
42121
|
+
let chatPaneTitle = callWithChatStrings.chatPaneTitle;
|
42122
|
+
/* @conditional-compile-remove(breakout-rooms) */
|
42123
|
+
if ((_b = (_a = callAdapter.getState().call) === null || _a === void 0 ? void 0 : _a.breakoutRooms) === null || _b === void 0 ? void 0 : _b.breakoutRoomOriginCallId) {
|
42124
|
+
chatPaneTitle = callWithChatStrings.breakoutRoomChatPaneTitle;
|
42125
|
+
}
|
42048
42126
|
const sidePaneHeaderRenderer = React.useCallback(() => {
|
42049
42127
|
var _a;
|
42050
|
-
return (React.createElement(SidePaneHeader, { headingText:
|
42051
|
-
}, [
|
42128
|
+
return (React.createElement(SidePaneHeader, { headingText: chatPaneTitle, onClose: closeChat, dismissSidePaneButtonAriaLabel: (_a = callWithChatStrings.dismissSidePaneButtonLabel) !== null && _a !== void 0 ? _a : '', mobileView: mobileView }));
|
42129
|
+
}, [chatPaneTitle, callWithChatStrings.dismissSidePaneButtonLabel, closeChat, mobileView]);
|
42052
42130
|
const sidePaneContentRenderer = React.useMemo(() => (hasJoinedCall ? onRenderChatContent : undefined), [hasJoinedCall, onRenderChatContent]);
|
42053
42131
|
const sidePaneRenderer = React.useMemo(() => ({
|
42054
42132
|
contentRenderer: sidePaneContentRenderer,
|
@@ -42205,6 +42283,10 @@ class CallWithChatContext {
|
|
42205
42283
|
updateClientStateWithChatState(chatAdapterState) {
|
42206
42284
|
this.updateClientState(mergeChatAdapterStateIntoCallWithChatAdapterState(this.state, chatAdapterState));
|
42207
42285
|
}
|
42286
|
+
/* @conditional-compile-remove(breakout-rooms) */
|
42287
|
+
unsetChatState() {
|
42288
|
+
this.updateClientState(Object.assign(Object.assign({}, this.state), { chat: undefined }));
|
42289
|
+
}
|
42208
42290
|
updateClientStateWithCallState(callAdapterState) {
|
42209
42291
|
this.updateClientState(mergeCallAdapterStateIntoCallWithChatAdapterState(this.state, callAdapterState));
|
42210
42292
|
}
|
@@ -42226,21 +42308,117 @@ class AzureCommunicationCallWithChatAdapter {
|
|
42226
42308
|
this.onChatStateChange = onChatStateChange;
|
42227
42309
|
if (chatAdapter) {
|
42228
42310
|
this.updateChatAdapter(chatAdapter);
|
42311
|
+
/* @conditional-compile-remove(breakout-rooms) */
|
42312
|
+
this.originCallChatAdapter = chatAdapter;
|
42229
42313
|
}
|
42230
42314
|
const onCallStateChange = (newCallAdapterState) => {
|
42231
42315
|
this.context.updateClientStateWithCallState(newCallAdapterState);
|
42232
42316
|
};
|
42233
42317
|
this.callAdapter.onStateChange(onCallStateChange);
|
42318
|
+
/* @conditional-compile-remove(breakout-rooms) */
|
42319
|
+
this.callAdapter.on('breakoutRoomsUpdated', (eventData) => __awaiter$6(this, void 0, void 0, function* () {
|
42320
|
+
if (eventData.type === 'join') {
|
42321
|
+
yield this.breakoutRoomJoined(eventData.data);
|
42322
|
+
}
|
42323
|
+
else if (eventData.type === 'assignedBreakoutRooms') {
|
42324
|
+
if (!eventData.data || eventData.data.state === 'closed') {
|
42325
|
+
yield this.returnFromBreakoutRoom();
|
42326
|
+
}
|
42327
|
+
}
|
42328
|
+
}));
|
42329
|
+
/* @conditional-compile-remove(breakout-rooms) */
|
42330
|
+
this.callAdapter.on('callEnded', () => {
|
42331
|
+
var _a, _b, _c;
|
42332
|
+
const originCallId = (_b = (_a = this.context.getState().call) === null || _a === void 0 ? void 0 : _a.breakoutRooms) === null || _b === void 0 ? void 0 : _b.breakoutRoomOriginCallId;
|
42333
|
+
// If the call ended is a breakout room call, return to the origin call chat adapter
|
42334
|
+
if (originCallId && this.originCallChatAdapter) {
|
42335
|
+
(_c = this.breakoutRoomChatAdapter) === null || _c === void 0 ? void 0 : _c.dispose();
|
42336
|
+
this.updateChatAdapter(this.originCallChatAdapter);
|
42337
|
+
}
|
42338
|
+
});
|
42234
42339
|
this.onCallStateChange = onCallStateChange;
|
42235
42340
|
}
|
42341
|
+
/* @conditional-compile-remove(breakout-rooms) */
|
42342
|
+
breakoutRoomJoined(call) {
|
42343
|
+
return __awaiter$6(this, void 0, void 0, function* () {
|
42344
|
+
var _a;
|
42345
|
+
const targetThreadId = call.info.threadId;
|
42346
|
+
// If the chat adapter is not on the target thread then we need to switch to the breakout room chat adapter
|
42347
|
+
if (targetThreadId && this.chatAdapter && this.chatAdapter.getState().thread.threadId !== targetThreadId) {
|
42348
|
+
// Unsubscribe from chat adapter state changes
|
42349
|
+
this.chatAdapter.offStateChange(this.onChatStateChange);
|
42350
|
+
// Set chat state to undefined to prevent showing chat thread of origin call
|
42351
|
+
this.context.unsetChatState();
|
42352
|
+
// Check if the breakout room chat adapter has been initialized
|
42353
|
+
this.breakoutRoomChatAdapter = yield this.setBreakoutRoomChatAdapterToThread(targetThreadId);
|
42354
|
+
// Wait for the user to be added to the thread of chat adapter before updating the current chat adapter
|
42355
|
+
// to avoid chat errors of not having access to the chat thread. This delayed access to the chat thread
|
42356
|
+
// is also seen in Teams
|
42357
|
+
// Check up to 20 times every 500ms and then continue.
|
42358
|
+
yield busyWait(() => {
|
42359
|
+
var _a, _b;
|
42360
|
+
// If the call adapter's call id has been changed, then stop waiting and don't update the chat adapter
|
42361
|
+
if (((_a = this.context.getState().call) === null || _a === void 0 ? void 0 : _a.id) !== call.id) {
|
42362
|
+
return true;
|
42363
|
+
}
|
42364
|
+
const userAddedToThread = !!((_b = this.breakoutRoomChatAdapter) === null || _b === void 0 ? void 0 : _b.getState().thread.participants[toFlatCommunicationIdentifier(this.context.getState().userId)]);
|
42365
|
+
return userAddedToThread;
|
42366
|
+
}, 20);
|
42367
|
+
// If the call adapter's call has been changed while for waiting for breakout room chat adapter to be ready
|
42368
|
+
// then don't update the chat adapter
|
42369
|
+
if (((_a = this.context.getState().call) === null || _a === void 0 ? void 0 : _a.id) !== call.id) {
|
42370
|
+
return;
|
42371
|
+
}
|
42372
|
+
this.updateChatAdapter(this.breakoutRoomChatAdapter);
|
42373
|
+
}
|
42374
|
+
});
|
42375
|
+
}
|
42376
|
+
/* @conditional-compile-remove(breakout-rooms) */
|
42377
|
+
setBreakoutRoomChatAdapterToThread(targetThreadId) {
|
42378
|
+
return __awaiter$6(this, void 0, void 0, function* () {
|
42379
|
+
if (this.breakoutRoomChatAdapter) {
|
42380
|
+
// If the breakout room chat adapter is not set on the target thread then unsubscribe, dispose, and
|
42381
|
+
// reinitialize the chat adapter for the target thread
|
42382
|
+
if (this.breakoutRoomChatAdapter.getState().thread.threadId !== targetThreadId) {
|
42383
|
+
this.breakoutRoomChatAdapter.offStateChange(this.onChatStateChange);
|
42384
|
+
this.breakoutRoomChatAdapter.dispose();
|
42385
|
+
const newBreakoutRoomChatAdapter = yield this.createNewChatAdapterForThread(targetThreadId);
|
42386
|
+
return newBreakoutRoomChatAdapter;
|
42387
|
+
}
|
42388
|
+
else {
|
42389
|
+
return this.breakoutRoomChatAdapter;
|
42390
|
+
}
|
42391
|
+
}
|
42392
|
+
else {
|
42393
|
+
// Initiliaze the breakout room chat adapter for the target thread
|
42394
|
+
const newBreakoutRoomChatAdapter = yield this.createNewChatAdapterForThread(targetThreadId);
|
42395
|
+
return newBreakoutRoomChatAdapter;
|
42396
|
+
}
|
42397
|
+
});
|
42398
|
+
}
|
42236
42399
|
setChatAdapterPromise(chatAdapter) {
|
42237
42400
|
chatAdapter.then((adapter) => {
|
42238
42401
|
if (!this.isAdapterDisposed) {
|
42239
42402
|
this.updateChatAdapter(adapter);
|
42403
|
+
/* @conditional-compile-remove(breakout-rooms) */
|
42404
|
+
this.originCallChatAdapter = adapter;
|
42240
42405
|
}
|
42241
42406
|
});
|
42242
42407
|
}
|
42408
|
+
/* @conditional-compile-remove(breakout-rooms) */
|
42409
|
+
setCreateChatAdapterCallback(chatThreadCallBack) {
|
42410
|
+
this.createChatAdapterCallback = chatThreadCallBack;
|
42411
|
+
}
|
42412
|
+
/* @conditional-compile-remove(breakout-rooms) */
|
42413
|
+
createNewChatAdapterForThread(threadId) {
|
42414
|
+
if (this.createChatAdapterCallback) {
|
42415
|
+
return this.createChatAdapterCallback(threadId);
|
42416
|
+
}
|
42417
|
+
throw new Error('Unable to create chat adapter for thread because createChatAdapterCallback is not set');
|
42418
|
+
}
|
42243
42419
|
updateChatAdapter(chatAdapter) {
|
42420
|
+
var _a;
|
42421
|
+
(_a = this.chatAdapter) === null || _a === void 0 ? void 0 : _a.offStateChange(this.onChatStateChange);
|
42244
42422
|
this.chatAdapter = chatAdapter;
|
42245
42423
|
this.chatAdapter.onStateChange(this.onChatStateChange);
|
42246
42424
|
this.context.updateClientStateWithChatState(chatAdapter.getState());
|
@@ -42686,7 +42864,12 @@ class AzureCommunicationCallWithChatAdapter {
|
|
42686
42864
|
/* @conditional-compile-remove(breakout-rooms) */
|
42687
42865
|
returnFromBreakoutRoom() {
|
42688
42866
|
return __awaiter$6(this, void 0, void 0, function* () {
|
42689
|
-
|
42867
|
+
var _a;
|
42868
|
+
if (this.originCallChatAdapter) {
|
42869
|
+
(_a = this.breakoutRoomChatAdapter) === null || _a === void 0 ? void 0 : _a.dispose();
|
42870
|
+
this.updateChatAdapter(this.originCallChatAdapter);
|
42871
|
+
}
|
42872
|
+
yield this.callAdapter.returnFromBreakoutRoom();
|
42690
42873
|
});
|
42691
42874
|
}
|
42692
42875
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
@@ -43019,11 +43202,16 @@ const createAzureCommunicationCallWithChatAdapter = (_a) => __awaiter$6(void 0,
|
|
43019
43202
|
const callWithChatAdapter = new AzureCommunicationCallWithChatAdapter(yield callAdapter);
|
43020
43203
|
const chatAdapterPromise = _createLazyAzureCommunicationChatAdapterInner(endpoint, userId, displayName, credential, chatThreadAdapter.getChatThreadPromise(), 'CallWithChat');
|
43021
43204
|
callWithChatAdapter.setChatAdapterPromise(chatAdapterPromise);
|
43205
|
+
/* @conditional-compile-remove(breakout-rooms) */
|
43206
|
+
callWithChatAdapter.setCreateChatAdapterCallback((threadId) => _createAzureCommunicationChatAdapterInner(endpoint, userId, displayName, credential, threadId, 'CallWithChat'));
|
43022
43207
|
return callWithChatAdapter;
|
43023
43208
|
}
|
43024
43209
|
else {
|
43025
43210
|
const chatAdapter = _createAzureCommunicationChatAdapterInner(endpoint, userId, displayName, credential, chatThreadAdapter.getChatThread(), 'CallWithChat');
|
43026
|
-
|
43211
|
+
const callWithChatAdapter = new AzureCommunicationCallWithChatAdapter(yield callAdapter, yield chatAdapter);
|
43212
|
+
/* @conditional-compile-remove(breakout-rooms) */
|
43213
|
+
callWithChatAdapter.setCreateChatAdapterCallback((threadId) => _createAzureCommunicationChatAdapterInner(endpoint, userId, displayName, credential, threadId, 'CallWithChat'));
|
43214
|
+
return callWithChatAdapter;
|
43027
43215
|
}
|
43028
43216
|
});
|
43029
43217
|
/**
|
@@ -43912,4 +44100,4 @@ exports.useTeamsCall = useTeamsCall;
|
|
43912
44100
|
exports.useTeamsCallAdapter = useTeamsCallAdapter;
|
43913
44101
|
exports.useTeamsCallAgent = useTeamsCallAgent;
|
43914
44102
|
exports.useTheme = useTheme;
|
43915
|
-
//# sourceMappingURL=index-
|
44103
|
+
//# sourceMappingURL=index-Ddmt8bbA.js.map
|