@crystaldesign/diva-support 24.12.1 → 24.12.2
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/build/esm/index.js +212 -212
- package/build/umd/{706.diva-support.umd.min.js → 127.diva-support.umd.min.js} +2 -2
- package/build/umd/127.diva-support.umd.min.js.LICENSE.txt +1 -0
- package/build/umd/145.diva-support.umd.min.js +2 -0
- package/build/umd/145.diva-support.umd.min.js.LICENSE.txt +1 -0
- package/build/umd/163.diva-support.umd.min.js +2 -0
- package/build/umd/163.diva-support.umd.min.js.LICENSE.txt +1 -0
- package/build/umd/{436.diva-support.umd.min.js → 217.diva-support.umd.min.js} +2 -2
- package/build/umd/217.diva-support.umd.min.js.LICENSE.txt +1 -0
- package/build/umd/263.diva-support.umd.min.js +2 -0
- package/build/umd/263.diva-support.umd.min.js.LICENSE.txt +1 -0
- package/build/umd/266.diva-support.umd.min.js +2 -0
- package/build/umd/266.diva-support.umd.min.js.LICENSE.txt +1 -0
- package/build/umd/28.diva-support.umd.min.js +2 -0
- package/build/umd/28.diva-support.umd.min.js.LICENSE.txt +1 -0
- package/build/umd/337.diva-support.umd.min.js +2 -0
- package/build/umd/337.diva-support.umd.min.js.LICENSE.txt +1 -0
- package/build/umd/437.diva-support.umd.min.js +2 -0
- package/build/umd/437.diva-support.umd.min.js.LICENSE.txt +1 -0
- package/build/umd/467.diva-support.umd.min.js +2 -0
- package/build/umd/467.diva-support.umd.min.js.LICENSE.txt +1 -0
- package/build/umd/535.diva-support.umd.min.js +2 -0
- package/build/umd/535.diva-support.umd.min.js.LICENSE.txt +1 -0
- package/build/umd/672.diva-support.umd.min.js +2 -0
- package/build/umd/672.diva-support.umd.min.js.LICENSE.txt +1 -0
- package/build/umd/{584.diva-support.umd.min.js → 674.diva-support.umd.min.js} +2 -2
- package/build/umd/674.diva-support.umd.min.js.LICENSE.txt +1 -0
- package/build/umd/721.diva-support.umd.min.js +408 -0
- package/build/umd/{745.diva-support.umd.min.js.LICENSE.txt → 721.diva-support.umd.min.js.LICENSE.txt} +1 -1
- package/build/umd/944.diva-support.umd.min.js +2 -0
- package/build/umd/944.diva-support.umd.min.js.LICENSE.txt +1 -0
- package/build/umd/{742.diva-support.umd.min.js → 954.diva-support.umd.min.js} +2 -2
- package/build/umd/954.diva-support.umd.min.js.LICENSE.txt +1 -0
- package/build/umd/diva-support.umd.min.js +1 -1
- package/build/umd/report.html +4 -5
- package/package.json +4 -4
- package/build/umd/158.diva-support.umd.min.js +0 -2
- package/build/umd/158.diva-support.umd.min.js.LICENSE.txt +0 -1
- package/build/umd/231.diva-support.umd.min.js +0 -2
- package/build/umd/231.diva-support.umd.min.js.LICENSE.txt +0 -1
- package/build/umd/244.diva-support.umd.min.js +0 -2
- package/build/umd/244.diva-support.umd.min.js.LICENSE.txt +0 -1
- package/build/umd/260.diva-support.umd.min.js +0 -2
- package/build/umd/260.diva-support.umd.min.js.LICENSE.txt +0 -1
- package/build/umd/36.diva-support.umd.min.js +0 -2
- package/build/umd/36.diva-support.umd.min.js.LICENSE.txt +0 -1
- package/build/umd/366.diva-support.umd.min.js +0 -2
- package/build/umd/366.diva-support.umd.min.js.LICENSE.txt +0 -1
- package/build/umd/436.diva-support.umd.min.js.LICENSE.txt +0 -1
- package/build/umd/495.diva-support.umd.min.js +0 -2
- package/build/umd/495.diva-support.umd.min.js.LICENSE.txt +0 -1
- package/build/umd/511.diva-support.umd.min.js +0 -2
- package/build/umd/511.diva-support.umd.min.js.LICENSE.txt +0 -1
- package/build/umd/584.diva-support.umd.min.js.LICENSE.txt +0 -1
- package/build/umd/630.diva-support.umd.min.js +0 -2
- package/build/umd/630.diva-support.umd.min.js.LICENSE.txt +0 -1
- package/build/umd/633.diva-support.umd.min.js +0 -2
- package/build/umd/633.diva-support.umd.min.js.LICENSE.txt +0 -1
- package/build/umd/660.diva-support.umd.min.js +0 -2
- package/build/umd/660.diva-support.umd.min.js.LICENSE.txt +0 -1
- package/build/umd/706.diva-support.umd.min.js.LICENSE.txt +0 -1
- package/build/umd/742.diva-support.umd.min.js.LICENSE.txt +0 -1
- package/build/umd/745.diva-support.umd.min.js +0 -408
- /package/build/esm/{incomingcall-e073d56b.js → incomingcall-479f3c9b.js} +0 -0
- /package/build/esm/{incomingmessage-1e352c15.js → incomingmessage-44f48674.js} +0 -0
- /package/build/esm/{incomingothermessage-57e4bf63.js → incomingothermessage-06ead268.js} +0 -0
- /package/build/esm/{outgoingcall-958a4fc8.js → outgoingcall-10e09aa1.js} +0 -0
- /package/build/esm/{outgoingmessage-7a737a89.js → outgoingmessage-34700b6f.js} +0 -0
package/build/esm/index.js
CHANGED
|
@@ -6030,8 +6030,8 @@ var FeatureRestriction = /*#__PURE__*/_createClass(function FeatureRestriction(U
|
|
|
6030
6030
|
// });
|
|
6031
6031
|
// }
|
|
6032
6032
|
);
|
|
6033
|
-
/**
|
|
6034
|
-
* Core Chat
|
|
6033
|
+
/**
|
|
6034
|
+
* Core Chat
|
|
6035
6035
|
*/
|
|
6036
6036
|
_defineProperty(FeatureRestriction, "chat_users_list_enabled", "core.chat.users.list.enabled");
|
|
6037
6037
|
_defineProperty(FeatureRestriction, "chat_users_presence_enabled", "core.chat.users.presence.enabled");
|
|
@@ -6052,8 +6052,8 @@ _defineProperty(FeatureRestriction, "chat_messages_custom_enabled", "core.chat.m
|
|
|
6052
6052
|
_defineProperty(FeatureRestriction, "chat_one_on_one_enabled", "core.chat.one-on-one.enabled");
|
|
6053
6053
|
_defineProperty(FeatureRestriction, "chat_voice_notes_enabled", "core.chat.voice-notes.enabled");
|
|
6054
6054
|
_defineProperty(FeatureRestriction, "chat_typing_indicator_enabled", "core.chat.typing-indicator.enabled");
|
|
6055
|
-
/**
|
|
6056
|
-
* Voice & Video Calling/Conferencing
|
|
6055
|
+
/**
|
|
6056
|
+
* Voice & Video Calling/Conferencing
|
|
6057
6057
|
*/
|
|
6058
6058
|
_defineProperty(FeatureRestriction, "calls_enabled", "core.call.enabled");
|
|
6059
6059
|
_defineProperty(FeatureRestriction, "call_one_on_one_video_enabled", "core.call.one-on-one.video.enabled");
|
|
@@ -6063,13 +6063,13 @@ _defineProperty(FeatureRestriction, "call_groups_audio_enabled", "core.call.grou
|
|
|
6063
6063
|
_defineProperty(FeatureRestriction, "call_recording_enabled", "core.call.recording.enabled");
|
|
6064
6064
|
_defineProperty(FeatureRestriction, "call_live_streaming_enabled", "core.call.live-streaming.enabled");
|
|
6065
6065
|
_defineProperty(FeatureRestriction, "call_transcript_enabled", "core.call.transcript.enabled");
|
|
6066
|
-
/**
|
|
6067
|
-
* Collaboration
|
|
6066
|
+
/**
|
|
6067
|
+
* Collaboration
|
|
6068
6068
|
*/
|
|
6069
6069
|
_defineProperty(FeatureRestriction, "collaboration_whiteboard_enabled", "features.collaboration.whiteboard.enabled");
|
|
6070
6070
|
_defineProperty(FeatureRestriction, "collaboration_document_enabled", "features.collaboration.document.enabled");
|
|
6071
|
-
/**
|
|
6072
|
-
* Moderation
|
|
6071
|
+
/**
|
|
6072
|
+
* Moderation
|
|
6073
6073
|
*/
|
|
6074
6074
|
_defineProperty(FeatureRestriction, "moderation_groups_moderators_enabled", "features.moderation.groups.moderators.enabled");
|
|
6075
6075
|
_defineProperty(FeatureRestriction, "moderation_users_block_enabled", "features.moderation.users.block.enabled");
|
|
@@ -6082,8 +6082,8 @@ _defineProperty(FeatureRestriction, "moderation_data_masking_enabled", "features
|
|
|
6082
6082
|
_defineProperty(FeatureRestriction, "moderation_malware_scanner_enabled", "features.moderation.malware-scanner.enabled");
|
|
6083
6083
|
_defineProperty(FeatureRestriction, "moderation_sentiment_analysis_enabled", "features.moderation.sentiment-analysis.enabled");
|
|
6084
6084
|
_defineProperty(FeatureRestriction, "moderation_inflight_message_moderation_enabled", "features.moderation.inflight-message-moderation.enabled");
|
|
6085
|
-
/**
|
|
6086
|
-
* User Engagement
|
|
6085
|
+
/**
|
|
6086
|
+
* User Engagement
|
|
6087
6087
|
*/
|
|
6088
6088
|
_defineProperty(FeatureRestriction, "reactions_enabled", "features.ue.reactions.enabled");
|
|
6089
6089
|
_defineProperty(FeatureRestriction, "emojis_enabled", "features.ue.emojis.enabled");
|
|
@@ -6094,8 +6094,8 @@ _defineProperty(FeatureRestriction, "polls_enabled", "features.ue.polls.enabled"
|
|
|
6094
6094
|
_defineProperty(FeatureRestriction, "live_reactions_enabled", "features.ue.live-reactions.enabled");
|
|
6095
6095
|
_defineProperty(FeatureRestriction, "smart_replies_enabled", "features.ue.smart-replies.enabled");
|
|
6096
6096
|
_defineProperty(FeatureRestriction, "mentions_enabled", "features.ue.mentions.enabled");
|
|
6097
|
-
/**
|
|
6098
|
-
* User Experience
|
|
6097
|
+
/**
|
|
6098
|
+
* User Experience
|
|
6099
6099
|
*/
|
|
6100
6100
|
_defineProperty(FeatureRestriction, "thumbnail_generation_enabled", "features.ux.thumbnail-generation.enabled");
|
|
6101
6101
|
_defineProperty(FeatureRestriction, "link_preview_enabled", "features.ux.link-preview.enabled");
|
|
@@ -6103,8 +6103,8 @@ _defineProperty(FeatureRestriction, "messages_saved_enabled", "features.ux.messa
|
|
|
6103
6103
|
_defineProperty(FeatureRestriction, "messages_pinned_enabled", "features.ux.messages.pinned.enabled");
|
|
6104
6104
|
_defineProperty(FeatureRestriction, "rich_media_preview_enabled", "features.ux.rich-media-preview.enabled");
|
|
6105
6105
|
_defineProperty(FeatureRestriction, "voice_transcription_enabled", "features.ux.voice-transcription.enabled");
|
|
6106
|
-
/**
|
|
6107
|
-
* Extensions slug
|
|
6106
|
+
/**
|
|
6107
|
+
* Extensions slug
|
|
6108
6108
|
*/
|
|
6109
6109
|
_defineProperty(FeatureRestriction, "dataMasking", "data-masking");
|
|
6110
6110
|
_defineProperty(FeatureRestriction, "profanityFilter", "profanity-filter");
|
|
@@ -7203,7 +7203,7 @@ _defineProperty(SoundManager, "onIncomingMessage", function (context) {
|
|
|
7203
7203
|
_SoundManager.enableSoundForMessages(context).then(function (response) {
|
|
7204
7204
|
if (response === true) {
|
|
7205
7205
|
if (_SoundManager.incomingMessageAudio === null) {
|
|
7206
|
-
import('./incomingmessage-
|
|
7206
|
+
import('./incomingmessage-44f48674.js').then(function (response) {
|
|
7207
7207
|
_SoundManager.incomingMessageAudio = new Audio(response["default"]);
|
|
7208
7208
|
_SoundManager.playMessageAlert(_SoundManager.incomingMessageAudio);
|
|
7209
7209
|
});
|
|
@@ -7217,7 +7217,7 @@ _defineProperty(SoundManager, "onIncomingOtherMessage", function (context) {
|
|
|
7217
7217
|
_SoundManager.enableSoundForMessages(context).then(function (response) {
|
|
7218
7218
|
if (response === true) {
|
|
7219
7219
|
if (_SoundManager.incomingOtherMessageAudio === null) {
|
|
7220
|
-
import('./incomingothermessage-
|
|
7220
|
+
import('./incomingothermessage-06ead268.js').then(function (response) {
|
|
7221
7221
|
_SoundManager.incomingOtherMessageAudio = new Audio(response["default"]);
|
|
7222
7222
|
_SoundManager.playMessageAlert(_SoundManager.incomingOtherMessageAudio);
|
|
7223
7223
|
});
|
|
@@ -7231,7 +7231,7 @@ _defineProperty(SoundManager, "onOutgoingMessage", function (context) {
|
|
|
7231
7231
|
_SoundManager.enableSoundForMessages(context).then(function (response) {
|
|
7232
7232
|
if (response === true) {
|
|
7233
7233
|
if (_SoundManager.outgoingMessageAudio === null) {
|
|
7234
|
-
import('./outgoingmessage-
|
|
7234
|
+
import('./outgoingmessage-34700b6f.js').then(function (response) {
|
|
7235
7235
|
_SoundManager.outgoingMessageAudio = new Audio(response["default"]);
|
|
7236
7236
|
_SoundManager.playMessageAlert(_SoundManager.outgoingMessageAudio);
|
|
7237
7237
|
});
|
|
@@ -7249,7 +7249,7 @@ _defineProperty(SoundManager, "onIncomingCall", function (context) {
|
|
|
7249
7249
|
_SoundManager.enableSoundForCalls(context).then(function (response) {
|
|
7250
7250
|
if (response === true) {
|
|
7251
7251
|
if (_SoundManager.incomingCallAudio === null) {
|
|
7252
|
-
import('./incomingcall-
|
|
7252
|
+
import('./incomingcall-479f3c9b.js').then(function (response) {
|
|
7253
7253
|
_SoundManager.incomingCallAudio = new Audio(response["default"]);
|
|
7254
7254
|
_SoundManager.playCallAlert(_SoundManager.incomingCallAudio);
|
|
7255
7255
|
});
|
|
@@ -7263,7 +7263,7 @@ _defineProperty(SoundManager, "onOutgoingCall", function (context) {
|
|
|
7263
7263
|
_SoundManager.enableSoundForCalls(context).then(function (response) {
|
|
7264
7264
|
if (response === true) {
|
|
7265
7265
|
if (_SoundManager.outgoingCallAudio === null) {
|
|
7266
|
-
import('./outgoingcall-
|
|
7266
|
+
import('./outgoingcall-10e09aa1.js').then(function (response) {
|
|
7267
7267
|
_SoundManager.outgoingCallAudio = new Audio(response["default"]);
|
|
7268
7268
|
_SoundManager.playCallAlert(_SoundManager.outgoingCallAudio);
|
|
7269
7269
|
});
|
|
@@ -9331,8 +9331,8 @@ var CometChatConversationList = /*#__PURE__*/function (_React$Component) {
|
|
|
9331
9331
|
return false;
|
|
9332
9332
|
}
|
|
9333
9333
|
|
|
9334
|
-
/**
|
|
9335
|
-
* Sound alert for incoming messages
|
|
9334
|
+
/**
|
|
9335
|
+
* Sound alert for incoming messages
|
|
9336
9336
|
*/
|
|
9337
9337
|
var receiverType = message.getReceiverType();
|
|
9338
9338
|
var receiverId = receiverType === CometChat.RECEIVER_TYPE.USER ? message.getSender().uid : message.getReceiverId();
|
|
@@ -9354,8 +9354,8 @@ var CometChatConversationList = /*#__PURE__*/function (_React$Component) {
|
|
|
9354
9354
|
if ((conversation === null || conversation === void 0 ? void 0 : conversation.conversationType) === CometChat.RECEIVER_TYPE.USER && messageReceipt.receiver === (conversation === null || conversation === void 0 || (_conversation$convers = conversation.conversationWith) === null || _conversation$convers === void 0 ? void 0 : _conversation$convers.uid) || (conversation === null || conversation === void 0 ? void 0 : conversation.conversationType) === CometChat.RECEIVER_TYPE.GROUP && messageReceipt.receiver === (conversation === null || conversation === void 0 || (_conversation$convers2 = conversation.conversationWith) === null || _conversation$convers2 === void 0 ? void 0 : _conversation$convers2.guid)) {
|
|
9355
9355
|
var _conversation$lastMes;
|
|
9356
9356
|
var unreadMessageCount = conversation.unreadMessageCount;
|
|
9357
|
-
/**
|
|
9358
|
-
* If the message id of the read reciept if greater than or equal to the lastmessage id, set unreadmessagecount to 0
|
|
9357
|
+
/**
|
|
9358
|
+
* If the message id of the read reciept if greater than or equal to the lastmessage id, set unreadmessagecount to 0
|
|
9359
9359
|
*/
|
|
9360
9360
|
if ((messageReceipt === null || messageReceipt === void 0 ? void 0 : messageReceipt.messageId) >= (conversation === null || conversation === void 0 || (_conversation$lastMes = conversation.lastMessage) === null || _conversation$lastMes === void 0 ? void 0 : _conversation$lastMes.id)) {
|
|
9361
9361
|
unreadMessageCount = 0;
|
|
@@ -9393,8 +9393,8 @@ var CometChatConversationList = /*#__PURE__*/function (_React$Component) {
|
|
|
9393
9393
|
});
|
|
9394
9394
|
_defineProperty(_this, "makeUnreadMessageCount", function (message) {
|
|
9395
9395
|
var conversation = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
9396
|
-
/**
|
|
9397
|
-
* If the received message is sent by the logged in user, don't increment the unread count
|
|
9396
|
+
/**
|
|
9397
|
+
* If the received message is sent by the logged in user, don't increment the unread count
|
|
9398
9398
|
*/
|
|
9399
9399
|
if (Object.keys(conversation).length === 0) {
|
|
9400
9400
|
var _this$loggedInUser;
|
|
@@ -10430,8 +10430,8 @@ var CometChatConversationListItem = /*#__PURE__*/function (_React$PureComponent)
|
|
|
10430
10430
|
});
|
|
10431
10431
|
_defineProperty(_this, "enableUnreadCount", function () {
|
|
10432
10432
|
_this.context.FeatureRestriction.isUnreadCountEnabled().then(function (response) {
|
|
10433
|
-
/**
|
|
10434
|
-
* Don't update state if the response has the same value
|
|
10433
|
+
/**
|
|
10434
|
+
* Don't update state if the response has the same value
|
|
10435
10435
|
*/
|
|
10436
10436
|
if (response !== _this.state.enableUnreadCount) {
|
|
10437
10437
|
_this.setState({
|
|
@@ -12791,8 +12791,8 @@ var CometChatMessageReactions = /*#__PURE__*/function (_React$Component) {
|
|
|
12791
12791
|
_this = _callSuper$O(this, CometChatMessageReactions, [props, context]);
|
|
12792
12792
|
_defineProperty(_this, "loggedInUser", void 0);
|
|
12793
12793
|
_defineProperty(_this, "enableMessageReaction", function () {
|
|
12794
|
-
/**
|
|
12795
|
-
* If reacting to messages feature is disabled
|
|
12794
|
+
/**
|
|
12795
|
+
* If reacting to messages feature is disabled
|
|
12796
12796
|
*/
|
|
12797
12797
|
_this.context.FeatureRestriction.isReactionsEnabled().then(function (response) {
|
|
12798
12798
|
if (response !== _this.state.enableMessageReaction && _this._isMounted) {
|
|
@@ -23925,13 +23925,13 @@ var Emojis = [{
|
|
|
23925
23925
|
}
|
|
23926
23926
|
}];
|
|
23927
23927
|
|
|
23928
|
-
/**
|
|
23929
|
-
* @class CometChatEmojiCategory
|
|
23930
|
-
* @description CometChatEmojiCategory class is used for defining the category.
|
|
23931
|
-
* @param {String} id
|
|
23932
|
-
* @param {String} name
|
|
23933
|
-
* @param {String} symbol
|
|
23934
|
-
* @param {Object} emojis
|
|
23928
|
+
/**
|
|
23929
|
+
* @class CometChatEmojiCategory
|
|
23930
|
+
* @description CometChatEmojiCategory class is used for defining the category.
|
|
23931
|
+
* @param {String} id
|
|
23932
|
+
* @param {String} name
|
|
23933
|
+
* @param {String} symbol
|
|
23934
|
+
* @param {Object} emojis
|
|
23935
23935
|
*/
|
|
23936
23936
|
var CometChatEmojiCategory = /*#__PURE__*/_createClass(function CometChatEmojiCategory(_ref) {
|
|
23937
23937
|
var id = _ref.id,
|
|
@@ -23949,12 +23949,12 @@ var CometChatEmojiCategory = /*#__PURE__*/_createClass(function CometChatEmojiCa
|
|
|
23949
23949
|
this.symbol = symbol;
|
|
23950
23950
|
});
|
|
23951
23951
|
|
|
23952
|
-
/**
|
|
23953
|
-
* @class CometChatEmoji
|
|
23954
|
-
* @description CometChatEmoji class is used for defining the emoji.
|
|
23955
|
-
*
|
|
23956
|
-
* @param {String} char
|
|
23957
|
-
* @param {Array} keywords
|
|
23952
|
+
/**
|
|
23953
|
+
* @class CometChatEmoji
|
|
23954
|
+
* @description CometChatEmoji class is used for defining the emoji.
|
|
23955
|
+
*
|
|
23956
|
+
* @param {String} char
|
|
23957
|
+
* @param {Array} keywords
|
|
23958
23958
|
*/
|
|
23959
23959
|
var CometChatEmoji = /*#__PURE__*/_createClass(function CometChatEmoji(_ref) {
|
|
23960
23960
|
var _char = _ref["char"],
|
|
@@ -24613,8 +24613,8 @@ var CometChatMessageActions = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
24613
24613
|
}
|
|
24614
24614
|
});
|
|
24615
24615
|
_defineProperty(_this, "enableMessageReaction", function () {
|
|
24616
|
-
/**
|
|
24617
|
-
* If reacting to messages feature is disabled
|
|
24616
|
+
/**
|
|
24617
|
+
* If reacting to messages feature is disabled
|
|
24618
24618
|
*/
|
|
24619
24619
|
_this.context.FeatureRestriction.isReactionsEnabled().then(function (response) {
|
|
24620
24620
|
if (response === true) {
|
|
@@ -24633,15 +24633,15 @@ var CometChatMessageActions = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
24633
24633
|
});
|
|
24634
24634
|
});
|
|
24635
24635
|
_defineProperty(_this, "enableThreadedChats", function () {
|
|
24636
|
-
/**
|
|
24637
|
-
* If threaded chats are open, return false
|
|
24636
|
+
/**
|
|
24637
|
+
* If threaded chats are open, return false
|
|
24638
24638
|
*/
|
|
24639
24639
|
if (_this.props.message.hasOwnProperty('parentMessageId') === true) {
|
|
24640
24640
|
return false;
|
|
24641
24641
|
}
|
|
24642
24642
|
|
|
24643
|
-
/**
|
|
24644
|
-
* If threaded replies feature is disabled
|
|
24643
|
+
/**
|
|
24644
|
+
* If threaded replies feature is disabled
|
|
24645
24645
|
*/
|
|
24646
24646
|
_this.context.FeatureRestriction.isThreadedMessagesEnabled().then(function (response) {
|
|
24647
24647
|
if (response === true) {
|
|
@@ -24695,8 +24695,8 @@ var CometChatMessageActions = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
24695
24695
|
});
|
|
24696
24696
|
_defineProperty(_this, "enableEditMessage", function () {
|
|
24697
24697
|
var _this$props$message$s, _this$state$loggedInU;
|
|
24698
|
-
/**
|
|
24699
|
-
* If the message is not sent by the logged in user or the message type is not text
|
|
24698
|
+
/**
|
|
24699
|
+
* If the message is not sent by the logged in user or the message type is not text
|
|
24700
24700
|
*/
|
|
24701
24701
|
if (((_this$props$message$s = _this.props.message.sender) === null || _this$props$message$s === void 0 ? void 0 : _this$props$message$s.uid) !== ((_this$state$loggedInU = _this.state.loggedInUser) === null || _this$state$loggedInU === void 0 ? void 0 : _this$state$loggedInU.uid) || _this.props.message.type !== CometChat.MESSAGE_TYPE.TEXT) {
|
|
24702
24702
|
return false;
|
|
@@ -24718,8 +24718,8 @@ var CometChatMessageActions = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
24718
24718
|
});
|
|
24719
24719
|
});
|
|
24720
24720
|
_defineProperty(_this, "enableTranslateMessage", function () {
|
|
24721
|
-
/**
|
|
24722
|
-
* message type is not text
|
|
24721
|
+
/**
|
|
24722
|
+
* message type is not text
|
|
24723
24723
|
*/
|
|
24724
24724
|
if (_this.props.message.type !== CometChat.MESSAGE_TYPE.TEXT) {
|
|
24725
24725
|
return false;
|
|
@@ -24740,8 +24740,8 @@ var CometChatMessageActions = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
24740
24740
|
});
|
|
24741
24741
|
});
|
|
24742
24742
|
});
|
|
24743
|
-
/**
|
|
24744
|
-
* If message in private feature is enabled
|
|
24743
|
+
/**
|
|
24744
|
+
* If message in private feature is enabled
|
|
24745
24745
|
*/
|
|
24746
24746
|
_defineProperty(_this, "enableMessageInPrivate", function () {
|
|
24747
24747
|
_this.context.FeatureRestriction.isMessageInPrivateEnabled().then(function (response) {
|
|
@@ -24865,9 +24865,9 @@ var CometChatMessageActions = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
24865
24865
|
}));
|
|
24866
24866
|
}
|
|
24867
24867
|
|
|
24868
|
-
/**
|
|
24869
|
-
* in one-on-one chat, allow deleting self messages if delete feature is enabled
|
|
24870
|
-
* in group chat, allow deleting other's messages for moderators and admins if moderator delete feature && delete feature is enabled
|
|
24868
|
+
/**
|
|
24869
|
+
* in one-on-one chat, allow deleting self messages if delete feature is enabled
|
|
24870
|
+
* in group chat, allow deleting other's messages for moderators and admins if moderator delete feature && delete feature is enabled
|
|
24871
24871
|
*/
|
|
24872
24872
|
var deleteMessage = null;
|
|
24873
24873
|
if (((_this$props$message$s2 = this.props.message.sender) === null || _this$props$message$s2 === void 0 ? void 0 : _this$props$message$s2.uid) === ((_this$state$loggedInU2 = this.state.loggedInUser) === null || _this$state$loggedInU2 === void 0 ? void 0 : _this$state$loggedInU2.uid) && this.state.enableDeleteMessage || this.context.type === CometChat.ACTION_TYPE.TYPE_GROUP && ((_this$props$message$s3 = this.props.message.sender) === null || _this$props$message$s3 === void 0 ? void 0 : _this$props$message$s3.uid) !== ((_this$state$loggedInU3 = this.state.loggedInUser) === null || _this$state$loggedInU3 === void 0 ? void 0 : _this$state$loggedInU3.uid) && this.context.item.hasOwnProperty('scope') && this.context.item.scope !== CometChat.GROUP_MEMBER_SCOPE.PARTICIPANT && this.state.enableDeleteMessageForModerator && this.state.enableDeleteMessage) {
|
|
@@ -24927,8 +24927,8 @@ var CometChatMessageActions = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
24927
24927
|
}));
|
|
24928
24928
|
}
|
|
24929
24929
|
|
|
24930
|
-
/**
|
|
24931
|
-
* if send message in private feature is enabled, if group chat window is open, and messages are not sent by the loggedin user...
|
|
24930
|
+
/**
|
|
24931
|
+
* if send message in private feature is enabled, if group chat window is open, and messages are not sent by the loggedin user...
|
|
24932
24932
|
*/
|
|
24933
24933
|
var messageInPrivate = null;
|
|
24934
24934
|
if (this.state.enableMessageInPrivate === true && this.context.type === CometChat.ACTION_TYPE.TYPE_GROUP && ((_this$props$message2 = this.props.message) === null || _this$props$message2 === void 0 || (_this$props$message2 = _this$props$message2.sender) === null || _this$props$message2 === void 0 ? void 0 : _this$props$message2.uid) !== ((_this$state$loggedInU4 = this.state.loggedInUser) === null || _this$state$loggedInU4 === void 0 ? void 0 : _this$state$loggedInU4.uid)) {
|
|
@@ -25277,8 +25277,8 @@ var CometChatMessageComposer = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
25277
25277
|
_defineProperty(_this, "range", void 0);
|
|
25278
25278
|
_defineProperty(_this, "sel", void 0);
|
|
25279
25279
|
_defineProperty(_this, "chatWindow", void 0);
|
|
25280
|
-
/**
|
|
25281
|
-
* if live reactions feature is disabled
|
|
25280
|
+
/**
|
|
25281
|
+
* if live reactions feature is disabled
|
|
25282
25282
|
*/
|
|
25283
25283
|
_defineProperty(_this, "enableLiveReaction", function () {
|
|
25284
25284
|
_this.context.FeatureRestriction.isLiveReactionsEnabled().then(function (response) {
|
|
@@ -25295,8 +25295,8 @@ var CometChatMessageComposer = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
25295
25295
|
}
|
|
25296
25296
|
});
|
|
25297
25297
|
});
|
|
25298
|
-
/**
|
|
25299
|
-
* if polls feature is disabled
|
|
25298
|
+
/**
|
|
25299
|
+
* if polls feature is disabled
|
|
25300
25300
|
*/
|
|
25301
25301
|
_defineProperty(_this, "enablePolls", function () {
|
|
25302
25302
|
_this.context.FeatureRestriction.isPollsEnabled().then(function (response) {
|
|
@@ -25313,8 +25313,8 @@ var CometChatMessageComposer = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
25313
25313
|
}
|
|
25314
25314
|
});
|
|
25315
25315
|
});
|
|
25316
|
-
/**
|
|
25317
|
-
* if typing indicator feature is disabled
|
|
25316
|
+
/**
|
|
25317
|
+
* if typing indicator feature is disabled
|
|
25318
25318
|
*/
|
|
25319
25319
|
_defineProperty(_this, "enableTypingIndicator", function () {
|
|
25320
25320
|
_this.context.FeatureRestriction.isTypingIndicatorsEnabled().then(function (response) {
|
|
@@ -25331,8 +25331,8 @@ var CometChatMessageComposer = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
25331
25331
|
}
|
|
25332
25332
|
});
|
|
25333
25333
|
});
|
|
25334
|
-
/**
|
|
25335
|
-
* if stickers feature is disabled
|
|
25334
|
+
/**
|
|
25335
|
+
* if stickers feature is disabled
|
|
25336
25336
|
*/
|
|
25337
25337
|
_defineProperty(_this, "enableStickers", function () {
|
|
25338
25338
|
_this.context.FeatureRestriction.isStickersEnabled().then(function (response) {
|
|
@@ -25349,8 +25349,8 @@ var CometChatMessageComposer = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
25349
25349
|
}
|
|
25350
25350
|
});
|
|
25351
25351
|
});
|
|
25352
|
-
/**
|
|
25353
|
-
* if uploding photos, videos feature is disabled
|
|
25352
|
+
/**
|
|
25353
|
+
* if uploding photos, videos feature is disabled
|
|
25354
25354
|
*/
|
|
25355
25355
|
_defineProperty(_this, "enablePhotosVideos", function () {
|
|
25356
25356
|
_this.context.FeatureRestriction.isPhotosVideosEnabled().then(function (response) {
|
|
@@ -25367,8 +25367,8 @@ var CometChatMessageComposer = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
25367
25367
|
}
|
|
25368
25368
|
});
|
|
25369
25369
|
});
|
|
25370
|
-
/**
|
|
25371
|
-
* if uploding files feature is disabled
|
|
25370
|
+
/**
|
|
25371
|
+
* if uploding files feature is disabled
|
|
25372
25372
|
*/
|
|
25373
25373
|
_defineProperty(_this, "enableFiles", function () {
|
|
25374
25374
|
_this.context.FeatureRestriction.isFilesEnabled().then(function (response) {
|
|
@@ -25385,8 +25385,8 @@ var CometChatMessageComposer = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
25385
25385
|
}
|
|
25386
25386
|
});
|
|
25387
25387
|
});
|
|
25388
|
-
/**
|
|
25389
|
-
* if sending emojis feature is disabled
|
|
25388
|
+
/**
|
|
25389
|
+
* if sending emojis feature is disabled
|
|
25390
25390
|
*/
|
|
25391
25391
|
_defineProperty(_this, "enableEmojis", function () {
|
|
25392
25392
|
_this.context.FeatureRestriction.isEmojisEnabled().then(function (response) {
|
|
@@ -25403,8 +25403,8 @@ var CometChatMessageComposer = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
25403
25403
|
}
|
|
25404
25404
|
});
|
|
25405
25405
|
});
|
|
25406
|
-
/**
|
|
25407
|
-
* if sharing collborative document feature is disabled
|
|
25406
|
+
/**
|
|
25407
|
+
* if sharing collborative document feature is disabled
|
|
25408
25408
|
*/
|
|
25409
25409
|
_defineProperty(_this, "enableCollaborativeDocument", function () {
|
|
25410
25410
|
_this.context.FeatureRestriction.isCollaborativeDocumentEnabled().then(function (response) {
|
|
@@ -25421,8 +25421,8 @@ var CometChatMessageComposer = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
25421
25421
|
}
|
|
25422
25422
|
});
|
|
25423
25423
|
});
|
|
25424
|
-
/**
|
|
25425
|
-
* if sharing collborative whiteboard feature is disabled
|
|
25424
|
+
/**
|
|
25425
|
+
* if sharing collborative whiteboard feature is disabled
|
|
25426
25426
|
*/
|
|
25427
25427
|
_defineProperty(_this, "enableCollaborativeWhiteboard", function () {
|
|
25428
25428
|
_this.context.FeatureRestriction.isCollaborativeWhiteBoardEnabled().then(function (response) {
|
|
@@ -26090,8 +26090,8 @@ var CometChatMessageComposer = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
26090
26090
|
}, {
|
|
26091
26091
|
key: "updateSelection",
|
|
26092
26092
|
value:
|
|
26093
|
-
/**
|
|
26094
|
-
* Updates caret selection object
|
|
26093
|
+
/**
|
|
26094
|
+
* Updates caret selection object
|
|
26095
26095
|
*/
|
|
26096
26096
|
function updateSelection() {
|
|
26097
26097
|
try {
|
|
@@ -26106,8 +26106,8 @@ var CometChatMessageComposer = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
26106
26106
|
}
|
|
26107
26107
|
}
|
|
26108
26108
|
|
|
26109
|
-
/**
|
|
26110
|
-
* Pastes given html at caret position
|
|
26109
|
+
/**
|
|
26110
|
+
* Pastes given html at caret position
|
|
26111
26111
|
*/
|
|
26112
26112
|
}, {
|
|
26113
26113
|
key: "pasteHtmlAtCaret",
|
|
@@ -26729,8 +26729,8 @@ var CometChatMessageHeader = /*#__PURE__*/function (_React$Component) {
|
|
|
26729
26729
|
});
|
|
26730
26730
|
_defineProperty(_this, "onTypingStarted", function (item) {
|
|
26731
26731
|
var showTyping = function showTyping(typingText) {
|
|
26732
|
-
/**
|
|
26733
|
-
* if metadata is available, show live reactions else show typing
|
|
26732
|
+
/**
|
|
26733
|
+
* if metadata is available, show live reactions else show typing
|
|
26734
26734
|
*/
|
|
26735
26735
|
// if (item.hasOwnProperty("metadata") && item.metadata && item.metadata.hasOwnProperty("type") && item.metadata.type === enums.CONSTANTS["METADATA_TYPE_LIVEREACTION"]) {
|
|
26736
26736
|
// this.props.actionGenerated(enums.ACTIONS["SHOW_LIVE_REACTION"], item);
|
|
@@ -26753,8 +26753,8 @@ var CometChatMessageHeader = /*#__PURE__*/function (_React$Component) {
|
|
|
26753
26753
|
});
|
|
26754
26754
|
_defineProperty(_this, "onTypingEnded", function (item) {
|
|
26755
26755
|
var endTyping = function endTyping() {
|
|
26756
|
-
/**
|
|
26757
|
-
* if metadata is available, end live reactions else end typing
|
|
26756
|
+
/**
|
|
26757
|
+
* if metadata is available, end live reactions else end typing
|
|
26758
26758
|
*/
|
|
26759
26759
|
// if (item.hasOwnProperty("metadata") && item.metadata && item.metadata.hasOwnProperty("type") && item.metadata.type === enums.CONSTANTS["METADATA_TYPE_LIVEREACTION"]) {
|
|
26760
26760
|
// this.props.actionGenerated(enums.ACTIONS["STOP_LIVE_REACTION"], item);
|
|
@@ -26799,8 +26799,8 @@ var CometChatMessageHeader = /*#__PURE__*/function (_React$Component) {
|
|
|
26799
26799
|
_this.context.setItem({});
|
|
26800
26800
|
_this.props.actionGenerated(ACTIONS["TOGGLE_SIDEBAR"]);
|
|
26801
26801
|
});
|
|
26802
|
-
/**
|
|
26803
|
-
* if typing indicator feature is disabled
|
|
26802
|
+
/**
|
|
26803
|
+
* if typing indicator feature is disabled
|
|
26804
26804
|
*/
|
|
26805
26805
|
_defineProperty(_this, "enableTypingIndicator", function () {
|
|
26806
26806
|
_this.context.FeatureRestriction.isTypingIndicatorsEnabled().then(function (response) {
|
|
@@ -26820,8 +26820,8 @@ var CometChatMessageHeader = /*#__PURE__*/function (_React$Component) {
|
|
|
26820
26820
|
_defineProperty(_this, "enableGroupVoiceCall", function () {});
|
|
26821
26821
|
_defineProperty(_this, "enableGroupVideoCall", function () {
|
|
26822
26822
|
_this.context.FeatureRestriction.isGroupVideoCallEnabled().then(function (response) {
|
|
26823
|
-
/**
|
|
26824
|
-
* Don't update state if the response has the same value
|
|
26823
|
+
/**
|
|
26824
|
+
* Don't update state if the response has the same value
|
|
26825
26825
|
*/
|
|
26826
26826
|
if (response !== _this.state.enableGroupVideoCall) {
|
|
26827
26827
|
_this.setState({
|
|
@@ -26838,8 +26838,8 @@ var CometChatMessageHeader = /*#__PURE__*/function (_React$Component) {
|
|
|
26838
26838
|
});
|
|
26839
26839
|
_defineProperty(_this, "enableOneOnOneVoiceCall", function () {
|
|
26840
26840
|
_this.context.FeatureRestriction.isOneOnOneAudioCallEnabled().then(function (response) {
|
|
26841
|
-
/**
|
|
26842
|
-
* Don't update state if the response has the same value
|
|
26841
|
+
/**
|
|
26842
|
+
* Don't update state if the response has the same value
|
|
26843
26843
|
*/
|
|
26844
26844
|
var combinedResponse = response && !_this.context.item.blockedByMe;
|
|
26845
26845
|
if (combinedResponse !== _this.state.enableOneOnOneVoiceCall) {
|
|
@@ -26857,8 +26857,8 @@ var CometChatMessageHeader = /*#__PURE__*/function (_React$Component) {
|
|
|
26857
26857
|
});
|
|
26858
26858
|
_defineProperty(_this, "enableOneOnOneVideoCall", function () {
|
|
26859
26859
|
_this.context.FeatureRestriction.isOneOnOneVideoCallEnabled().then(function (response) {
|
|
26860
|
-
/**
|
|
26861
|
-
* Don't update state if the response has the same value
|
|
26860
|
+
/**
|
|
26861
|
+
* Don't update state if the response has the same value
|
|
26862
26862
|
*/
|
|
26863
26863
|
var combinedResponse = response && !_this.context.item.blockedByMe;
|
|
26864
26864
|
if (combinedResponse !== _this.state.enableOneOnOneVideoCall) {
|
|
@@ -26891,8 +26891,8 @@ var CometChatMessageHeader = /*#__PURE__*/function (_React$Component) {
|
|
|
26891
26891
|
});
|
|
26892
26892
|
_defineProperty(_this, "enableAddGroupMembers", function () {
|
|
26893
26893
|
_this.context.FeatureRestriction.isAddingGroupMembersEnabled().then(function (response) {
|
|
26894
|
-
/**
|
|
26895
|
-
* Don't update state if the response has the same value
|
|
26894
|
+
/**
|
|
26895
|
+
* Don't update state if the response has the same value
|
|
26896
26896
|
*/
|
|
26897
26897
|
if (response !== _this.state.enableAddGroupMembers) {
|
|
26898
26898
|
_this.setState({
|
|
@@ -26909,8 +26909,8 @@ var CometChatMessageHeader = /*#__PURE__*/function (_React$Component) {
|
|
|
26909
26909
|
});
|
|
26910
26910
|
_defineProperty(_this, "enableChangeScope", function () {
|
|
26911
26911
|
_this.context.FeatureRestriction.isChangingGroupMemberScopeEnabled().then(function (response) {
|
|
26912
|
-
/**
|
|
26913
|
-
* Don't update state if the response has the same value
|
|
26912
|
+
/**
|
|
26913
|
+
* Don't update state if the response has the same value
|
|
26914
26914
|
*/
|
|
26915
26915
|
if (response !== _this.state.enableChangeScope) {
|
|
26916
26916
|
_this.setState({
|
|
@@ -26927,8 +26927,8 @@ var CometChatMessageHeader = /*#__PURE__*/function (_React$Component) {
|
|
|
26927
26927
|
});
|
|
26928
26928
|
_defineProperty(_this, "enableKickGroupMembers", function () {
|
|
26929
26929
|
_this.context.FeatureRestriction.isKickingGroupMembersEnabled().then(function (response) {
|
|
26930
|
-
/**
|
|
26931
|
-
* Don't update state if the response has the same value
|
|
26930
|
+
/**
|
|
26931
|
+
* Don't update state if the response has the same value
|
|
26932
26932
|
*/
|
|
26933
26933
|
if (response !== _this.state.enableKickGroupMembers) {
|
|
26934
26934
|
_this.setState({
|
|
@@ -26945,8 +26945,8 @@ var CometChatMessageHeader = /*#__PURE__*/function (_React$Component) {
|
|
|
26945
26945
|
});
|
|
26946
26946
|
_defineProperty(_this, "enableBanGroupMembers", function () {
|
|
26947
26947
|
_this.context.FeatureRestriction.isBanningGroupMembersEnabled().then(function (response) {
|
|
26948
|
-
/**
|
|
26949
|
-
* Don't update state if the response has the same value
|
|
26948
|
+
/**
|
|
26949
|
+
* Don't update state if the response has the same value
|
|
26950
26950
|
*/
|
|
26951
26951
|
if (response !== _this.state.enableBanGroupMembers) {
|
|
26952
26952
|
_this.setState({
|
|
@@ -26963,8 +26963,8 @@ var CometChatMessageHeader = /*#__PURE__*/function (_React$Component) {
|
|
|
26963
26963
|
});
|
|
26964
26964
|
_defineProperty(_this, "enableDeleteGroup", function () {
|
|
26965
26965
|
_this.context.FeatureRestriction.isGroupDeletionEnabled().then(function (response) {
|
|
26966
|
-
/**
|
|
26967
|
-
* Don't update state if the response has the same value
|
|
26966
|
+
/**
|
|
26967
|
+
* Don't update state if the response has the same value
|
|
26968
26968
|
*/
|
|
26969
26969
|
if (response !== _this.state.enableDeleteGroup) {
|
|
26970
26970
|
_this.setState({
|
|
@@ -26981,8 +26981,8 @@ var CometChatMessageHeader = /*#__PURE__*/function (_React$Component) {
|
|
|
26981
26981
|
});
|
|
26982
26982
|
_defineProperty(_this, "enableViewGroupMembers", function () {
|
|
26983
26983
|
_this.context.FeatureRestriction.isViewingGroupMembersEnabled().then(function (response) {
|
|
26984
|
-
/**
|
|
26985
|
-
* Don't update state if the response has the same value
|
|
26984
|
+
/**
|
|
26985
|
+
* Don't update state if the response has the same value
|
|
26986
26986
|
*/
|
|
26987
26987
|
if (response !== _this.state.enableViewGroupMembers) {
|
|
26988
26988
|
_this.setState({
|
|
@@ -26999,8 +26999,8 @@ var CometChatMessageHeader = /*#__PURE__*/function (_React$Component) {
|
|
|
26999
26999
|
});
|
|
27000
27000
|
_defineProperty(_this, "enableLeaveGroup", function () {
|
|
27001
27001
|
_this.context.FeatureRestriction.isJoinLeaveGroupsEnabled().then(function (response) {
|
|
27002
|
-
/**
|
|
27003
|
-
* Don't update state if the response has the same value
|
|
27002
|
+
/**
|
|
27003
|
+
* Don't update state if the response has the same value
|
|
27004
27004
|
*/
|
|
27005
27005
|
if (response !== _this.state.enableLeaveGroup) {
|
|
27006
27006
|
_this.setState({
|
|
@@ -27017,8 +27017,8 @@ var CometChatMessageHeader = /*#__PURE__*/function (_React$Component) {
|
|
|
27017
27017
|
});
|
|
27018
27018
|
_defineProperty(_this, "enableSharedMedia", function () {
|
|
27019
27019
|
_this.context.FeatureRestriction.isSharedMediaEnabled().then(function (response) {
|
|
27020
|
-
/**
|
|
27021
|
-
* Don't update state if the response has the same value
|
|
27020
|
+
/**
|
|
27021
|
+
* Don't update state if the response has the same value
|
|
27022
27022
|
*/
|
|
27023
27023
|
if (response !== _this.state.enableSharedMedia) {
|
|
27024
27024
|
_this.setState({
|
|
@@ -27035,8 +27035,8 @@ var CometChatMessageHeader = /*#__PURE__*/function (_React$Component) {
|
|
|
27035
27035
|
});
|
|
27036
27036
|
_defineProperty(_this, "enableBlockUser", function () {
|
|
27037
27037
|
_this.context.FeatureRestriction.isBlockUserEnabled().then(function (response) {
|
|
27038
|
-
/**
|
|
27039
|
-
* Don't update state if the response has the same value
|
|
27038
|
+
/**
|
|
27039
|
+
* Don't update state if the response has the same value
|
|
27040
27040
|
*/
|
|
27041
27041
|
if (response !== _this.state.enableBlockUser) {
|
|
27042
27042
|
_this.setState({
|
|
@@ -27226,8 +27226,8 @@ var CometChatMessageHeader = /*#__PURE__*/function (_React$Component) {
|
|
|
27226
27226
|
onClick: this.viewDetail
|
|
27227
27227
|
}, jsx("i", null));
|
|
27228
27228
|
|
|
27229
|
-
/**
|
|
27230
|
-
* If the chat window open is of users and block user and shared media feature is disabled, hide view detail button
|
|
27229
|
+
/**
|
|
27230
|
+
* If the chat window open is of users and block user and shared media feature is disabled, hide view detail button
|
|
27231
27231
|
*/
|
|
27232
27232
|
if (this.context.type === CometChat.ACTION_TYPE.TYPE_USER) {
|
|
27233
27233
|
if (this.state.enableBlockUser === false && this.state.enableSharedMedia === false) {
|
|
@@ -27235,26 +27235,26 @@ var CometChatMessageHeader = /*#__PURE__*/function (_React$Component) {
|
|
|
27235
27235
|
}
|
|
27236
27236
|
} else if (this.context.type === CometChat.ACTION_TYPE.TYPE_GROUP) {
|
|
27237
27237
|
var _this$context$item, _this$context$item2, _this$context$item3;
|
|
27238
|
-
/**
|
|
27239
|
-
* If the chat window open is of group
|
|
27238
|
+
/**
|
|
27239
|
+
* If the chat window open is of group
|
|
27240
27240
|
*/
|
|
27241
27241
|
if (((_this$context$item = this.context.item) === null || _this$context$item === void 0 ? void 0 : _this$context$item.scope) === CometChat.GROUP_MEMBER_SCOPE.PARTICIPANT) {
|
|
27242
|
-
/**
|
|
27243
|
-
* If the loggedin user scope is participant, leave group, view group members, and shared media feature is disabled, hide view detail button
|
|
27242
|
+
/**
|
|
27243
|
+
* If the loggedin user scope is participant, leave group, view group members, and shared media feature is disabled, hide view detail button
|
|
27244
27244
|
*/
|
|
27245
27245
|
if (this.state.enableLeaveGroup === false && this.state.enableSharedMedia === false && this.state.enableViewGroupMembers === false) {
|
|
27246
27246
|
viewDetailBtn = null;
|
|
27247
27247
|
}
|
|
27248
27248
|
} else if (((_this$context$item2 = this.context.item) === null || _this$context$item2 === void 0 ? void 0 : _this$context$item2.scope) === CometChat.GROUP_MEMBER_SCOPE.MODERATOR) {
|
|
27249
|
-
/**
|
|
27250
|
-
* If the loggedin user scope is moderator, leave group, view group members, kick & ban group members, changing scope of group members and shared media feature is disabled, hide view detail button
|
|
27249
|
+
/**
|
|
27250
|
+
* If the loggedin user scope is moderator, leave group, view group members, kick & ban group members, changing scope of group members and shared media feature is disabled, hide view detail button
|
|
27251
27251
|
*/
|
|
27252
27252
|
if (this.state.enableLeaveGroup === false && this.state.enableSharedMedia === false && this.state.enableViewGroupMembers === false && this.state.enableKickGroupMembers === false && this.state.enableBanGroupMembers === false && this.state.enableChangeScope === false) {
|
|
27253
27253
|
viewDetailBtn = null;
|
|
27254
27254
|
}
|
|
27255
27255
|
} else if (((_this$context$item3 = this.context.item) === null || _this$context$item3 === void 0 ? void 0 : _this$context$item3.scope) === CometChat.GROUP_MEMBER_SCOPE.ADMIN) {
|
|
27256
|
-
/**
|
|
27257
|
-
* If the loggedin user scope is admin, add group members, view group members, kick & ban group members, changing scope of group members, leave and delete group and shared media feature is disabled, hide view detail button
|
|
27256
|
+
/**
|
|
27257
|
+
* If the loggedin user scope is admin, add group members, view group members, kick & ban group members, changing scope of group members, leave and delete group and shared media feature is disabled, hide view detail button
|
|
27258
27258
|
*/
|
|
27259
27259
|
if (this.state.enableLeaveGroup === false && this.state.enableSharedMedia === false && this.state.enableViewGroupMembers === false && this.state.enableKickGroupMembers === false && this.state.enableBanGroupMembers === false && this.state.enableChangeScope === false && this.state.enableDeleteGroup === false && this.state.enableAddGroupMembers === false) {
|
|
27260
27260
|
viewDetailBtn = null;
|
|
@@ -27789,17 +27789,17 @@ var CometChatMessageList = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
27789
27789
|
//mark the message as delivered
|
|
27790
27790
|
_this.markMessageAsDelivered(message);
|
|
27791
27791
|
|
|
27792
|
-
/**
|
|
27793
|
-
* message receiver is chat window group
|
|
27792
|
+
/**
|
|
27793
|
+
* message receiver is chat window group
|
|
27794
27794
|
*/
|
|
27795
27795
|
if (_this.context.type === CometChat.RECEIVER_TYPE.GROUP && message.getReceiverType() === CometChat.RECEIVER_TYPE.GROUP && message.getReceiverId() === _this.context.item.guid) {
|
|
27796
27796
|
_this.messageReceivedHandler(message, CometChat.RECEIVER_TYPE.GROUP);
|
|
27797
27797
|
} else if (_this.context.type === CometChat.RECEIVER_TYPE.USER && message.getReceiverType() === CometChat.RECEIVER_TYPE.USER) {
|
|
27798
27798
|
var _this$state$loggedInU6, _this$state$loggedInU7;
|
|
27799
|
-
/**
|
|
27800
|
-
* If the message sender is chat window user and message receiver is logged-in user
|
|
27801
|
-
* OR
|
|
27802
|
-
* If the message sender is logged-in user and message receiver is chat window user
|
|
27799
|
+
/**
|
|
27800
|
+
* If the message sender is chat window user and message receiver is logged-in user
|
|
27801
|
+
* OR
|
|
27802
|
+
* If the message sender is logged-in user and message receiver is chat window user
|
|
27803
27803
|
*/
|
|
27804
27804
|
if (message.getSender().uid === _this.context.item.uid && message.getReceiverId() === ((_this$state$loggedInU6 = _this.state.loggedInUser) === null || _this$state$loggedInU6 === void 0 ? void 0 : _this$state$loggedInU6.uid) || message.getSender().uid === ((_this$state$loggedInU7 = _this.state.loggedInUser) === null || _this$state$loggedInU7 === void 0 ? void 0 : _this$state$loggedInU7.uid) && message.getReceiverId() === _this.context.item.uid) {
|
|
27805
27805
|
_this.messageReceivedHandler(message, CometChat.RECEIVER_TYPE.USER);
|
|
@@ -28947,8 +28947,8 @@ var CometChatUserDetails = /*#__PURE__*/function (_React$Component) {
|
|
|
28947
28947
|
});
|
|
28948
28948
|
_defineProperty(_this, "enableSharedMedia", function () {
|
|
28949
28949
|
_this.context.FeatureRestriction.isSharedMediaEnabled().then(function (response) {
|
|
28950
|
-
/**
|
|
28951
|
-
* Don't update state if the response has the same value
|
|
28950
|
+
/**
|
|
28951
|
+
* Don't update state if the response has the same value
|
|
28952
28952
|
*/
|
|
28953
28953
|
if (response !== _this.state.enableSharedMedia && _this._isMounted) {
|
|
28954
28954
|
_this.setState({
|
|
@@ -28965,8 +28965,8 @@ var CometChatUserDetails = /*#__PURE__*/function (_React$Component) {
|
|
|
28965
28965
|
});
|
|
28966
28966
|
_defineProperty(_this, "enableBlockUser", function () {
|
|
28967
28967
|
_this.context.FeatureRestriction.isBlockUserEnabled().then(function (response) {
|
|
28968
|
-
/**
|
|
28969
|
-
* Don't update state if the response has the same value
|
|
28968
|
+
/**
|
|
28969
|
+
* Don't update state if the response has the same value
|
|
28970
28970
|
*/
|
|
28971
28971
|
if (response !== _this.state.enableBlockUser && _this._isMounted) {
|
|
28972
28972
|
_this.setState({
|
|
@@ -29446,8 +29446,8 @@ var CometChatUserList = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
29446
29446
|
_defineProperty(_this, "timeout", void 0);
|
|
29447
29447
|
_defineProperty(_this, "toggleUserSearch", function () {
|
|
29448
29448
|
_this.getContext().FeatureRestriction.isUserSearchEnabled().then(function (response) {
|
|
29449
|
-
/**
|
|
29450
|
-
* Don't update state if the response has the same value
|
|
29449
|
+
/**
|
|
29450
|
+
* Don't update state if the response has the same value
|
|
29451
29451
|
*/
|
|
29452
29452
|
if (response !== _this.state.enableSearchUser) {
|
|
29453
29453
|
_this.setState({
|
|
@@ -30153,8 +30153,8 @@ var CometChatCreateGroup = /*#__PURE__*/function (_React$Component) {
|
|
|
30153
30153
|
_this = _callSuper$t(this, CometChatCreateGroup, [props]);
|
|
30154
30154
|
_defineProperty(_this, "enablePublicGroup", function () {
|
|
30155
30155
|
_this.context.FeatureRestriction.isPublicGroupEnabled().then(function (response) {
|
|
30156
|
-
/**
|
|
30157
|
-
* Don't update state if the response has the same value
|
|
30156
|
+
/**
|
|
30157
|
+
* Don't update state if the response has the same value
|
|
30158
30158
|
*/
|
|
30159
30159
|
if (response !== _this.state.enablePublicGroup) {
|
|
30160
30160
|
_this.setState({
|
|
@@ -30171,8 +30171,8 @@ var CometChatCreateGroup = /*#__PURE__*/function (_React$Component) {
|
|
|
30171
30171
|
});
|
|
30172
30172
|
_defineProperty(_this, "enablePasswordGroup", function () {
|
|
30173
30173
|
_this.context.FeatureRestriction.isPasswordGroupEnabled().then(function (response) {
|
|
30174
|
-
/**
|
|
30175
|
-
* Don't update state if the response has the same value
|
|
30174
|
+
/**
|
|
30175
|
+
* Don't update state if the response has the same value
|
|
30176
30176
|
*/
|
|
30177
30177
|
if (response !== _this.state.enablePasswordGroup) {
|
|
30178
30178
|
_this.setState({
|
|
@@ -30189,8 +30189,8 @@ var CometChatCreateGroup = /*#__PURE__*/function (_React$Component) {
|
|
|
30189
30189
|
});
|
|
30190
30190
|
_defineProperty(_this, "enablePrivateGroup", function () {
|
|
30191
30191
|
_this.context.FeatureRestriction.isPrivateGroupEnabled().then(function (response) {
|
|
30192
|
-
/**
|
|
30193
|
-
* Don't update state if the response has the same value
|
|
30192
|
+
/**
|
|
30193
|
+
* Don't update state if the response has the same value
|
|
30194
30194
|
*/
|
|
30195
30195
|
if (response !== _this.state.enablePrivateGroup) {
|
|
30196
30196
|
_this.setState({
|
|
@@ -30658,8 +30658,8 @@ var CometChatGroupDetails = /*#__PURE__*/function (_React$Component) {
|
|
|
30658
30658
|
_defineProperty(_this, "item", void 0);
|
|
30659
30659
|
_defineProperty(_this, "enableAddGroupMembers", function () {
|
|
30660
30660
|
_this.context.FeatureRestriction.isAddingGroupMembersEnabled().then(function (response) {
|
|
30661
|
-
/**
|
|
30662
|
-
* Don't update state if the response has the same value
|
|
30661
|
+
/**
|
|
30662
|
+
* Don't update state if the response has the same value
|
|
30663
30663
|
*/
|
|
30664
30664
|
if (response !== _this.state.enableAddGroupMembers && _this._isMounted) {
|
|
30665
30665
|
_this.setState({
|
|
@@ -30676,8 +30676,8 @@ var CometChatGroupDetails = /*#__PURE__*/function (_React$Component) {
|
|
|
30676
30676
|
});
|
|
30677
30677
|
_defineProperty(_this, "enableChangeScope", function () {
|
|
30678
30678
|
_this.context.FeatureRestriction.isChangingGroupMemberScopeEnabled().then(function (response) {
|
|
30679
|
-
/**
|
|
30680
|
-
* Don't update state if the response has the same value
|
|
30679
|
+
/**
|
|
30680
|
+
* Don't update state if the response has the same value
|
|
30681
30681
|
*/
|
|
30682
30682
|
if (response !== _this.state.enableChangeScope && _this._isMounted) {
|
|
30683
30683
|
_this.setState({
|
|
@@ -30694,8 +30694,8 @@ var CometChatGroupDetails = /*#__PURE__*/function (_React$Component) {
|
|
|
30694
30694
|
});
|
|
30695
30695
|
_defineProperty(_this, "enableKickGroupMembers", function () {
|
|
30696
30696
|
_this.context.FeatureRestriction.isKickingGroupMembersEnabled().then(function (response) {
|
|
30697
|
-
/**
|
|
30698
|
-
* Don't update state if the response has the same value
|
|
30697
|
+
/**
|
|
30698
|
+
* Don't update state if the response has the same value
|
|
30699
30699
|
*/
|
|
30700
30700
|
if (response !== _this.state.enableKickGroupMembers && _this._isMounted) {
|
|
30701
30701
|
_this.setState({
|
|
@@ -30712,8 +30712,8 @@ var CometChatGroupDetails = /*#__PURE__*/function (_React$Component) {
|
|
|
30712
30712
|
});
|
|
30713
30713
|
_defineProperty(_this, "enableBanGroupMembers", function () {
|
|
30714
30714
|
_this.context.FeatureRestriction.isBanningGroupMembersEnabled().then(function (response) {
|
|
30715
|
-
/**
|
|
30716
|
-
* Don't update state if the response has the same value
|
|
30715
|
+
/**
|
|
30716
|
+
* Don't update state if the response has the same value
|
|
30717
30717
|
*/
|
|
30718
30718
|
if (response !== _this.state.enableBanGroupMembers && _this._isMounted) {
|
|
30719
30719
|
_this.setState({
|
|
@@ -30730,8 +30730,8 @@ var CometChatGroupDetails = /*#__PURE__*/function (_React$Component) {
|
|
|
30730
30730
|
});
|
|
30731
30731
|
_defineProperty(_this, "enableDeleteGroup", function () {
|
|
30732
30732
|
_this.context.FeatureRestriction.isGroupDeletionEnabled().then(function (response) {
|
|
30733
|
-
/**
|
|
30734
|
-
* Don't update state if the response has the same value
|
|
30733
|
+
/**
|
|
30734
|
+
* Don't update state if the response has the same value
|
|
30735
30735
|
*/
|
|
30736
30736
|
if (response !== _this.state.enableDeleteGroup && _this._isMounted) {
|
|
30737
30737
|
_this.setState({
|
|
@@ -30748,8 +30748,8 @@ var CometChatGroupDetails = /*#__PURE__*/function (_React$Component) {
|
|
|
30748
30748
|
});
|
|
30749
30749
|
_defineProperty(_this, "enableViewGroupMembers", function () {
|
|
30750
30750
|
_this.context.FeatureRestriction.isViewingGroupMembersEnabled().then(function (response) {
|
|
30751
|
-
/**
|
|
30752
|
-
* Don't update state if the response has the same value
|
|
30751
|
+
/**
|
|
30752
|
+
* Don't update state if the response has the same value
|
|
30753
30753
|
*/
|
|
30754
30754
|
if (response !== _this.state.enableViewGroupMembers && _this._isMounted) {
|
|
30755
30755
|
_this.setState({
|
|
@@ -30766,8 +30766,8 @@ var CometChatGroupDetails = /*#__PURE__*/function (_React$Component) {
|
|
|
30766
30766
|
});
|
|
30767
30767
|
_defineProperty(_this, "enableLeaveGroup", function () {
|
|
30768
30768
|
_this.context.FeatureRestriction.isJoinLeaveGroupsEnabled().then(function (response) {
|
|
30769
|
-
/**
|
|
30770
|
-
* Don't update state if the response has the same value
|
|
30769
|
+
/**
|
|
30770
|
+
* Don't update state if the response has the same value
|
|
30771
30771
|
*/
|
|
30772
30772
|
if (response !== _this.state.enableLeaveGroup && _this._isMounted) {
|
|
30773
30773
|
_this.setState({
|
|
@@ -30784,8 +30784,8 @@ var CometChatGroupDetails = /*#__PURE__*/function (_React$Component) {
|
|
|
30784
30784
|
});
|
|
30785
30785
|
_defineProperty(_this, "enableSharedMedia", function () {
|
|
30786
30786
|
_this.context.FeatureRestriction.isSharedMediaEnabled().then(function (response) {
|
|
30787
|
-
/**
|
|
30788
|
-
* Don't update state if the response has the same value
|
|
30787
|
+
/**
|
|
30788
|
+
* Don't update state if the response has the same value
|
|
30789
30789
|
*/
|
|
30790
30790
|
if (response !== _this.state.enableSharedMedia && _this._isMounted) {
|
|
30791
30791
|
_this.setState({
|
|
@@ -30802,8 +30802,8 @@ var CometChatGroupDetails = /*#__PURE__*/function (_React$Component) {
|
|
|
30802
30802
|
});
|
|
30803
30803
|
_defineProperty(_this, "enableBlockUser", function () {
|
|
30804
30804
|
_this.context.FeatureRestriction.isBlockUserEnabled().then(function (response) {
|
|
30805
|
-
/**
|
|
30806
|
-
* Don't update state if the response has the same value
|
|
30805
|
+
/**
|
|
30806
|
+
* Don't update state if the response has the same value
|
|
30807
30807
|
*/
|
|
30808
30808
|
if (response !== _this.state.enableBlockUser && _this._isMounted) {
|
|
30809
30809
|
_this.setState({
|
|
@@ -30870,8 +30870,8 @@ var CometChatGroupDetails = /*#__PURE__*/function (_React$Component) {
|
|
|
30870
30870
|
break;
|
|
30871
30871
|
}
|
|
30872
30872
|
});
|
|
30873
|
-
/*
|
|
30874
|
-
Updating group members presence
|
|
30873
|
+
/*
|
|
30874
|
+
Updating group members presence
|
|
30875
30875
|
*/
|
|
30876
30876
|
_defineProperty(_this, "updateGroupMemberPresence", function (member) {
|
|
30877
30877
|
var memberlist = _toConsumableArray(_this.context.groupMembers);
|
|
@@ -30987,8 +30987,8 @@ var CometChatGroupDetails = /*#__PURE__*/function (_React$Component) {
|
|
|
30987
30987
|
});
|
|
30988
30988
|
_defineProperty(_this, "leaveGroup", function () {
|
|
30989
30989
|
var _this$context$item, _this$state$loggedInU;
|
|
30990
|
-
/**
|
|
30991
|
-
* If loggeduser is the owner of the group; ask him to transfer ownership before leaving the group else show leave group confirmtion dialog
|
|
30990
|
+
/**
|
|
30991
|
+
* If loggeduser is the owner of the group; ask him to transfer ownership before leaving the group else show leave group confirmtion dialog
|
|
30992
30992
|
*/
|
|
30993
30993
|
if (((_this$context$item = _this.context.item) === null || _this$context$item === void 0 ? void 0 : _this$context$item.owner) === ((_this$state$loggedInU = _this.state.loggedInUser) === null || _this$state$loggedInU === void 0 ? void 0 : _this$state$loggedInU.uid)) {
|
|
30994
30994
|
_this.setState({
|
|
@@ -31699,13 +31699,13 @@ var CometChatGroupList = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
31699
31699
|
_defineProperty(_this, "item", void 0);
|
|
31700
31700
|
_defineProperty(_this, "timeout", void 0);
|
|
31701
31701
|
_defineProperty(_this, "loggedInUser", null);
|
|
31702
|
-
/**
|
|
31703
|
-
* if search group feature is disabled
|
|
31702
|
+
/**
|
|
31703
|
+
* if search group feature is disabled
|
|
31704
31704
|
*/
|
|
31705
31705
|
_defineProperty(_this, "enableSearchGroup", function () {
|
|
31706
31706
|
_this.getContext().FeatureRestriction.isGroupSearchEnabled().then(function (response) {
|
|
31707
|
-
/**
|
|
31708
|
-
* Don't update state if the response has the same value
|
|
31707
|
+
/**
|
|
31708
|
+
* Don't update state if the response has the same value
|
|
31709
31709
|
*/
|
|
31710
31710
|
if (response !== _this.state.enableSearchGroup) {
|
|
31711
31711
|
_this.setState({
|
|
@@ -31720,13 +31720,13 @@ var CometChatGroupList = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
31720
31720
|
}
|
|
31721
31721
|
});
|
|
31722
31722
|
});
|
|
31723
|
-
/**
|
|
31724
|
-
* if create group feature is disabled
|
|
31723
|
+
/**
|
|
31724
|
+
* if create group feature is disabled
|
|
31725
31725
|
*/
|
|
31726
31726
|
_defineProperty(_this, "enableCreateGroup", function () {
|
|
31727
31727
|
_this.getContext().FeatureRestriction.isGroupCreationEnabled().then(function (response) {
|
|
31728
|
-
/**
|
|
31729
|
-
* Don't update state if the response has the same value
|
|
31728
|
+
/**
|
|
31729
|
+
* Don't update state if the response has the same value
|
|
31730
31730
|
*/
|
|
31731
31731
|
if (response !== _this.state.enableCreateGroup) {
|
|
31732
31732
|
_this.setState({
|
|
@@ -31741,13 +31741,13 @@ var CometChatGroupList = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
31741
31741
|
}
|
|
31742
31742
|
});
|
|
31743
31743
|
});
|
|
31744
|
-
/**
|
|
31745
|
-
* if join group feature is disabled
|
|
31744
|
+
/**
|
|
31745
|
+
* if join group feature is disabled
|
|
31746
31746
|
*/
|
|
31747
31747
|
_defineProperty(_this, "enableJoinGroup", function () {
|
|
31748
31748
|
_this.getContext().FeatureRestriction.isJoinLeaveGroupsEnabled().then(function (response) {
|
|
31749
|
-
/**
|
|
31750
|
-
* Don't update state if the response has the same value
|
|
31749
|
+
/**
|
|
31750
|
+
* Don't update state if the response has the same value
|
|
31751
31751
|
*/
|
|
31752
31752
|
if (response !== _this.state.enableJoinGroup) {
|
|
31753
31753
|
_this.setState({
|
|
@@ -33113,8 +33113,8 @@ var CometChatViewGroupMemberListItem = /*#__PURE__*/function (_React$Component)
|
|
|
33113
33113
|
className: "kick"
|
|
33114
33114
|
}, kick));
|
|
33115
33115
|
|
|
33116
|
-
/**
|
|
33117
|
-
* if kick and ban feature is disabled
|
|
33116
|
+
/**
|
|
33117
|
+
* if kick and ban feature is disabled
|
|
33118
33118
|
*/
|
|
33119
33119
|
if (this.props.enableBanGroupMembers === false && this.props.enableKickGroupMembers === false) {
|
|
33120
33120
|
editAccess = null;
|
|
@@ -33132,8 +33132,8 @@ var CometChatViewGroupMemberListItem = /*#__PURE__*/function (_React$Component)
|
|
|
33132
33132
|
}, ban);
|
|
33133
33133
|
}
|
|
33134
33134
|
|
|
33135
|
-
/**
|
|
33136
|
-
* if promote_demote_members feature is disabled
|
|
33135
|
+
/**
|
|
33136
|
+
* if promote_demote_members feature is disabled
|
|
33137
33137
|
*/
|
|
33138
33138
|
if (this.props.enableChangeScope === false) {
|
|
33139
33139
|
changescope = scope;
|
|
@@ -34393,8 +34393,8 @@ var CometChatGroupListWithMessages = /*#__PURE__*/function (_React$Component) {
|
|
|
34393
34393
|
sidebarview: !sidebarview
|
|
34394
34394
|
});
|
|
34395
34395
|
});
|
|
34396
|
-
/**
|
|
34397
|
-
If the logged in user is banned, kicked or scope changed, update the chat window accordingly
|
|
34396
|
+
/**
|
|
34397
|
+
If the logged in user is banned, kicked or scope changed, update the chat window accordingly
|
|
34398
34398
|
*/
|
|
34399
34399
|
_defineProperty(_this, "groupUpdated", function (key, message, group, options) {
|
|
34400
34400
|
switch (key) {
|
|
@@ -35139,8 +35139,8 @@ var CometChatMessages = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
35139
35139
|
_this = _callSuper$i(this, CometChatMessages, [props]);
|
|
35140
35140
|
_defineProperty(_this, "enableGroupActionMessages", function () {
|
|
35141
35141
|
_this.getContext().FeatureRestriction.isGroupActionMessagesEnabled().then(function (response) {
|
|
35142
|
-
/**
|
|
35143
|
-
* Don't update state if the response has the same value
|
|
35142
|
+
/**
|
|
35143
|
+
* Don't update state if the response has the same value
|
|
35144
35144
|
*/
|
|
35145
35145
|
if (response !== _this.state.enableGroupActionMessages) {
|
|
35146
35146
|
_this.setState({
|
|
@@ -35157,8 +35157,8 @@ var CometChatMessages = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
35157
35157
|
});
|
|
35158
35158
|
_defineProperty(_this, "enableCallActionMessages", function () {
|
|
35159
35159
|
_this.getContext().FeatureRestriction.isCallActionMessagesEnabled().then(function (response) {
|
|
35160
|
-
/**
|
|
35161
|
-
* Don't update state if the response has the same value
|
|
35160
|
+
/**
|
|
35161
|
+
* Don't update state if the response has the same value
|
|
35162
35162
|
*/
|
|
35163
35163
|
if (response !== _this.state.enableCallActionMessages) {
|
|
35164
35164
|
_this.setState({
|
|
@@ -35584,8 +35584,8 @@ var CometChatMessages = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
35584
35584
|
viewdetailscreen: false
|
|
35585
35585
|
});
|
|
35586
35586
|
});
|
|
35587
|
-
/*
|
|
35588
|
-
Updating parent message of threaded conversation, when the message is edited or deleted
|
|
35587
|
+
/*
|
|
35588
|
+
Updating parent message of threaded conversation, when the message is edited or deleted
|
|
35589
35589
|
*/
|
|
35590
35590
|
_defineProperty(_this, "updateParentThreadedMessage", function (message, action) {
|
|
35591
35591
|
if (_this.state.threadmessageview === false || message.id !== _this.state.threadmessageparent.id) {
|
|
@@ -35635,8 +35635,8 @@ var CometChatMessages = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
35635
35635
|
});
|
|
35636
35636
|
});
|
|
35637
35637
|
_defineProperty(_this, "videoCall", function () {
|
|
35638
|
-
/*
|
|
35639
|
-
Direct calling for groups
|
|
35638
|
+
/*
|
|
35639
|
+
Direct calling for groups
|
|
35640
35640
|
*/
|
|
35641
35641
|
if (_this.getContext().type === CometChat.RECEIVER_TYPE.GROUP) {
|
|
35642
35642
|
var sessionID = _this.getContext().type === CometChat.ACTION_TYPE.TYPE_GROUP ? _this.getContext().item.guid : null;
|
|
@@ -35648,8 +35648,8 @@ var CometChatMessages = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
35648
35648
|
return;
|
|
35649
35649
|
}
|
|
35650
35650
|
|
|
35651
|
-
/*
|
|
35652
|
-
Default calling for one-on-one
|
|
35651
|
+
/*
|
|
35652
|
+
Default calling for one-on-one
|
|
35653
35653
|
*/
|
|
35654
35654
|
var _this$getReceiverDeta2 = _this.getReceiverDetails(),
|
|
35655
35655
|
receiverId = _this$getReceiverDeta2.receiverId,
|
|
@@ -35906,8 +35906,8 @@ var CometChatMessages = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
35906
35906
|
return false;
|
|
35907
35907
|
}
|
|
35908
35908
|
|
|
35909
|
-
/**
|
|
35910
|
-
* If smart-replies feature is enabled
|
|
35909
|
+
/**
|
|
35910
|
+
* If smart-replies feature is enabled
|
|
35911
35911
|
*/
|
|
35912
35912
|
_this.getContext().FeatureRestriction.isSmartRepliesEnabled().then(function (response) {
|
|
35913
35913
|
if (response === true) {
|
|
@@ -36018,8 +36018,8 @@ var CometChatMessages = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
36018
36018
|
this.enableSendingGroupMessage();
|
|
36019
36019
|
this.enableHideDeletedMessages();
|
|
36020
36020
|
|
|
36021
|
-
/**
|
|
36022
|
-
* Custom message to be appended or updated for direct calling
|
|
36021
|
+
/**
|
|
36022
|
+
* Custom message to be appended or updated for direct calling
|
|
36023
36023
|
*/
|
|
36024
36024
|
if (Object.keys(this.props.widgetsettings).length) {
|
|
36025
36025
|
if (Object.keys(this.getContext().directCallCustomMessage).length && this.getContext().directCallCustomMessageAction.trim().length && (this.getContext().directCallCustomMessage !== this.directCallCustomMessage || this.getContext().directCallCustomMessageAction !== this.directCallCustomMessageAction)) {
|
|
@@ -36053,8 +36053,8 @@ var CometChatMessages = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
36053
36053
|
_this$getContext,
|
|
36054
36054
|
_this$getContext2,
|
|
36055
36055
|
_this$getContext3;
|
|
36056
|
-
/**
|
|
36057
|
-
* If used as standalone component
|
|
36056
|
+
/**
|
|
36057
|
+
* If used as standalone component
|
|
36058
36058
|
*/
|
|
36059
36059
|
if (this.props._parent.trim().length === 0 && this.props.chatWithUser.trim().length === 0 && this.props.chatWithGroup.trim().length === 0) {
|
|
36060
36060
|
return jsx(CometChatContextProvider, {
|
|
@@ -36135,8 +36135,8 @@ var CometChatMessages = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
36135
36135
|
}));
|
|
36136
36136
|
}
|
|
36137
36137
|
|
|
36138
|
-
/*
|
|
36139
|
-
If used as a standalone component
|
|
36138
|
+
/*
|
|
36139
|
+
If used as a standalone component
|
|
36140
36140
|
*/
|
|
36141
36141
|
var incomingCallView = null;
|
|
36142
36142
|
var incomingDirectCallView = null;
|
|
@@ -36227,8 +36227,8 @@ var CometChatMessages = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
36227
36227
|
lang: this.props.lang
|
|
36228
36228
|
}), originalImageView, detailScreen, threadMessageView, incomingCallView, outgoingCallView, incomingDirectCallView, outgoingDirectCallView);
|
|
36229
36229
|
var messageWrapper = messageComponent;
|
|
36230
|
-
/*
|
|
36231
|
-
If used as a standalone component
|
|
36230
|
+
/*
|
|
36231
|
+
If used as a standalone component
|
|
36232
36232
|
**/
|
|
36233
36233
|
if (this.props._parent.trim().length === 0) {
|
|
36234
36234
|
messageWrapper = jsx(CometChatContextProvider, {
|
|
@@ -37050,8 +37050,8 @@ var CometChatReadReceipt = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
37050
37050
|
_this = _callSuper$g(this, CometChatReadReceipt, [props, context]);
|
|
37051
37051
|
_defineProperty(_this, "loggedInUser", void 0);
|
|
37052
37052
|
_defineProperty(_this, "toggleReadReceipts", function () {
|
|
37053
|
-
/**
|
|
37054
|
-
* if delivery receipts feature is disabled
|
|
37053
|
+
/**
|
|
37054
|
+
* if delivery receipts feature is disabled
|
|
37055
37055
|
*/
|
|
37056
37056
|
_this.context.FeatureRestriction.isDeliveryReceiptsEnabled().then(function (response) {
|
|
37057
37057
|
if (response !== _this.state.receipts && _this._isMounted) {
|
|
@@ -40734,8 +40734,8 @@ var CometChatConversationListWithMessages = /*#__PURE__*/function (_React$Compon
|
|
|
40734
40734
|
sidebarview: !sidebarview
|
|
40735
40735
|
});
|
|
40736
40736
|
});
|
|
40737
|
-
/**
|
|
40738
|
-
If the logged in user is banned, kicked or scope changed, update the chat window accordingly
|
|
40737
|
+
/**
|
|
40738
|
+
If the logged in user is banned, kicked or scope changed, update the chat window accordingly
|
|
40739
40739
|
*/
|
|
40740
40740
|
_defineProperty(_this, "groupUpdated", function (key, message, group, options) {
|
|
40741
40741
|
switch (key) {
|
|
@@ -41509,8 +41509,8 @@ var CometChatUI = /*#__PURE__*/function (_React$Component) {
|
|
|
41509
41509
|
sidebarview: !sidebarview
|
|
41510
41510
|
});
|
|
41511
41511
|
});
|
|
41512
|
-
/**
|
|
41513
|
-
If the logged in user is banned, kicked or scope changed, update the chat window accordingly
|
|
41512
|
+
/**
|
|
41513
|
+
If the logged in user is banned, kicked or scope changed, update the chat window accordingly
|
|
41514
41514
|
*/
|
|
41515
41515
|
_defineProperty(_this, "groupUpdated", function (key, message, group, options) {
|
|
41516
41516
|
switch (key) {
|
|
@@ -41636,7 +41636,7 @@ function styleInject(css, ref) {
|
|
|
41636
41636
|
}
|
|
41637
41637
|
}
|
|
41638
41638
|
|
|
41639
|
-
var css_248z$6 = ".chat-popup {\
|
|
41639
|
+
var css_248z$6 = ".chat-popup {\n width: 350px;\n height: 450px;\n position: fixed;\n left: calc(37% + 16px);\n top: 157px;\n background-color: white;\n transition: width 0.5s, height 0.5s;\n box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);\n border-radius: 10px;\n overflow: hidden;\n}\n\n.grab-icon {\n cursor: grab;\n}\n\n.grabbing-icon {\n cursor: grabbing;\n}\n\n.collapsed-icon {\n display: none;\n}\n\n.icon-box {\n display: flex;\n flex-direction: row;\n gap: 10px;\n}\n\n.close-icon,\n.height-icon {\n cursor: pointer;\n}\n\n.chat-popup-header {\n height: 40px;\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n padding: 0 10px;\n font-size: 15px;\n}\n\n.chat-popup-body {\n height: calc(100% - 40px);\n background-color: white;\n overflow: hidden;\n}\n\n/* collapsed */\n.chat-popup.collapsed {\n width: 50px;\n height: 50px;\n border-radius: 50px;\n background-color: transparent;\n box-shadow: none;\n}\n\n.chat-popup.collapsed .collapsed-icon {\n display: flex;\n width: 100%;\n height: 100%;\n cursor: pointer;\n}\n\n.chat-popup.collapsed .chat-popup-header,\n.chat-popup.collapsed .chat-popup-body {\n display: none;\n}\n\n/* is big */\n.chat-popup.is-big:not(.collapsed) {\n width: 500px;\n height: 600px;\n}\n\n/* CometChat */\n.chat-popup .callscreen__container.minimized {\n width: 100% !important;\n height: 100% !important;\n position: absolute !important;\n}\n\n.chat-popup .callscreen__container.maximized {\n position: fixed !important;\n top: 80px !important;\n height: calc(100% - 80px - 34px) !important;\n}\n";
|
|
41640
41640
|
styleInject(css_248z$6);
|
|
41641
41641
|
|
|
41642
41642
|
var ChatPopup = function ChatPopup(props) {
|
|
@@ -41918,7 +41918,7 @@ var InviteFriendDialog = function InviteFriendDialog(props) {
|
|
|
41918
41918
|
};
|
|
41919
41919
|
var InviteFriendDialog$1 = observer(InviteFriendDialog);
|
|
41920
41920
|
|
|
41921
|
-
var css_248z$5 = ".friends-section {\
|
|
41921
|
+
var css_248z$5 = ".friends-section {\n width: 100%;\n height: calc(100vh - 100px);\n background-color: #a25f5e;\n display: flex;\n flex-direction: column;\n margin-top: 50px;\n margin-bottom: 75px;\n align-items: center;\n justify-content: space-evenly;\n z-index: 20;\n top: 0;\n position: sticky;\n}\n\n.friends-section h5 {\n max-width: 370px;\n text-align: center;\n}\n\n.share-button {\n width: 300px;\n height: 50px;\n background-color: var(--primaryColor);\n border: 2px solid white;\n color: white;\n font-size: 1rem;\n cursor: pointer;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n gap: 10px;\n}\n\n.image-row {\n display: flex;\n flex-direction: row;\n gap: 25px;\n}\n\n.friend-image {\n width: 75px;\n height: 75px;\n border-radius: 75px;\n border: 3px solid white;\n cursor: pointer;\n}\n\n.live-planner-component {\n width: 300px;\n height: 300px;\n background-color: white;\n}\n\n#wcConfigurator {\n position: sticky;\n top: 0;\n}\n";
|
|
41922
41922
|
styleInject(css_248z$5);
|
|
41923
41923
|
|
|
41924
41924
|
var FriendsSection = function FriendsSection(props) {
|
|
@@ -42051,7 +42051,7 @@ var FriendsSection = function FriendsSection(props) {
|
|
|
42051
42051
|
});
|
|
42052
42052
|
};
|
|
42053
42053
|
|
|
42054
|
-
var css_248z$4 = ".retailer-finder {\
|
|
42054
|
+
var css_248z$4 = ".retailer-finder {\n width: 100%;\n background-color: #f2f2f2;\n position: relative;\n z-index: 20;\n}\n\n.map-wrapper {\n max-width: 1200px;\n height: calc(100vh - 120px);\n padding: 5px;\n display: flex;\n margin: auto;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n}\n\n.input-section {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n height: 200px;\n width: 100%;\n max-width: 500px;\n gap: 40px;\n margin-top: 35px;\n}\n\n.plz-input {\n width: 300px;\n}\n\n.retailer-selector {\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n width: 100%;\n gap: 15px;\n}\n\n.consultant {\n position: relative;\n width: 75px;\n height: 100px;\n display: flex;\n align-items: flex-end;\n cursor: pointer;\n transition: 0.3s;\n}\n\n.consultant-image {\n position: absolute;\n top: 0;\n left: 12.5px;\n width: 50px;\n height: 50px;\n border-radius: 50px;\n}\n\n.retailer-image {\n width: 71px;\n height: 71px;\n -o-object-fit: contain;\n object-fit: contain;\n}\n\n.consultant.selected {\n transform: scale(1.2);\n}\n\n.info-popup {\n width: 300px;\n display: flex;\n flex-direction: row;\n gap: 10px;\n}\n\n.consultant-popover {\n position: absolute;\n background-color: white;\n width: 200px;\n height: 250px;\n bottom: 70px;\n left: -50px;\n z-index: 999;\n box-shadow: 0 2px 7px 1px rgba(0, 0, 0, 0.3);\n}\n\n.title-row {\n display: flex;\n padding: 8px;\n align-items: center;\n margin-bottom: 5px;\n background-color: #eeeeee;\n}\n\n.popover-body {\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n}\n\n.data-section {\n display: flex;\n flex-direction: row;\n gap: 5px;\n}\n\n.popover-image {\n width: 100px;\n -o-object-fit: contain;\n object-fit: contain;\n}\n\n.request-form .MuiDialogContent-root {\n display: flex;\n flex-direction: column;\n gap: 15px;\n}\n";
|
|
42055
42055
|
styleInject(css_248z$4);
|
|
42056
42056
|
|
|
42057
42057
|
var _this = undefined;
|
|
@@ -42791,7 +42791,7 @@ var SupportSection = function SupportSection(props) {
|
|
|
42791
42791
|
});
|
|
42792
42792
|
};
|
|
42793
42793
|
|
|
42794
|
-
var css_248z$3 = ":root {\
|
|
42794
|
+
var css_248z$3 = ":root {\n --grey: #eaeaea;\n}\n\n.live-session,\n.live-session * {\n box-sizing: border-box;\n}\n\n.live-session {\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 20px;\n padding: 30px;\n}\n\n.live-session-content {\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: row;\n gap: 30px;\n}\n\n.half {\n width: 50%;\n height: 100%;\n}\n\n.configurator {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.conversation-box {\n padding: 30px 20px;\n display: flex;\n flex-direction: column;\n gap: 20px;\n background: rgba(241, 241, 241, 0.6);\n}\n\n.conversation-box h2 {\n text-align: center;\n margin-top: 0;\n}\n\n.conversation-list {\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n gap: 20px;\n}\n\n.conversation-list .conversation {\n width: 123px;\n height: 123px;\n cursor: pointer;\n}\n\n.conversation-list .profile-picture {\n width: 100%;\n height: 100px;\n background-color: white;\n border-radius: 20px;\n}\n\n.conversation-list .profile-picture .live-planner {\n height: 100%;\n width: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.conversation-list .conversation-name {\n margin-top: 10px;\n font-size: 13px;\n text-align: center;\n}\n\n.right-half {\n border: 1px solid #eaeaea;\n border: 1px solid var(--grey);\n position: relative;\n}\n\n.main__chat {\n border: none !important;\n}\n\n.live-session .callscreen__container.minimized {\n position: absolute !important;\n width: 100% !important;\n height: 100% !important;\n}\n\n.live-session .callscreen__container.maximized {\n position: fixed !important;\n top: 80px !important;\n height: calc(100% - 80px - 34px) !important;\n}\n\n@media only screen and (max-width: 1000px) {\n .live-session {\n padding: 0;\n flex-direction: column;\n gap: 0;\n }\n\n .live-session .half {\n height: 100%;\n width: 100%;\n position: absolute;\n border: none;\n }\n\n .configurator {\n border: none;\n }\n\n .conversation-box {\n display: none;\n }\n\n /* cometchat */\n .live-session .chat__sidebar-menu,\n .live-session .button__reactions {\n display: none !important;\n }\n\n .live-session .chat__thumbnail {\n margin-left: 0 !important;\n }\n\n .live-session .chat__list {\n background-color: transparent !important;\n background-color: initial !important;\n }\n}\n";
|
|
42795
42795
|
styleInject(css_248z$3);
|
|
42796
42796
|
|
|
42797
42797
|
var LiveSessionView = function LiveSessionView(_ref) {
|
|
@@ -42972,7 +42972,7 @@ var componentConfig$1 = {
|
|
|
42972
42972
|
renderFunction: LiveSessionView
|
|
42973
42973
|
};
|
|
42974
42974
|
|
|
42975
|
-
var css_248z$2 = ".requests2 {\
|
|
42975
|
+
var css_248z$2 = ".requests2 {\n height: 100%;\n padding: 50px;\n display: flex;\n flex-direction: row;\n}\n\n.requests2 .map {\n width: 50%;\n height: 100%;\n}\n\n.requests2 .list {\n width: 50%;\n padding: 10px;\n overflow-y: auto;\n}\n\n.list-item {\n width: 100%;\n display: flex;\n flex-direction: row;\n border-bottom: 1px solid lightgrey;\n padding: 10px 0;\n}\n\n.list-item .live-planner {\n width: 150px !important;\n}\n\n.list-item .live-planner {\n flex-shrink: 0;\n margin: auto;\n}\n\n.list-item .middle-container {\n width: 100%;\n padding: 15px 5px 5px 5px;\n}\n\n.list-item .name-container {\n display: flex;\n flex-direction: row;\n align-items: center;\n}\n\n.list-item .online-status {\n width: 20px;\n height: 20px;\n border-radius: 20px;\n background-color: #f45f30;\n margin-left: 8px;\n}\n\n.list-item .online-status.online {\n background-color: #b5ea1e;\n}\n\n.list-item .name {\n margin-left: 13px;\n font-weight: 300;\n}\n\n.list-item .request-status {\n display: flex;\n flex-direction: row;\n align-items: center;\n margin-top: 8px;\n}\n\n.list-item .request-status-text {\n font-size: 14px;\n color: #8e8e93;\n margin-left: 5px;\n}\n\n.list-item .date {\n flex-shrink: 0;\n color: #8e8e93;\n font-size: 13px;\n padding: 10px 0;\n}\n\n.list-item .arrow {\n flex-shrink: 0;\n display: flex;\n justify-content: center;\n align-items: center;\n width: 60px;\n}\n";
|
|
42976
42976
|
styleInject(css_248z$2);
|
|
42977
42977
|
|
|
42978
42978
|
var PlanningsTab = function PlanningsTab(props) {
|
|
@@ -43054,7 +43054,7 @@ var PlanningsTab = function PlanningsTab(props) {
|
|
|
43054
43054
|
});
|
|
43055
43055
|
};
|
|
43056
43056
|
|
|
43057
|
-
var css_248z$1 = ".requests {\
|
|
43057
|
+
var css_248z$1 = ".requests {\n height: 100%;\n overflow-y: auto;\n}\n\n.list-item {\n width: 100%;\n display: flex;\n flex-direction: row;\n border-bottom: 1px solid lightgrey;\n padding: 10px 0;\n cursor: pointer;\n}\n\n.list-item .live-planner {\n width: 150px !important;\n}\n\n.list-item .live-planner {\n flex-shrink: 0;\n margin: auto;\n}\n\n.list-item .middle-container {\n width: 100%;\n padding: 15px 5px 5px 5px;\n}\n\n.list-item .name-container {\n display: flex;\n flex-direction: row;\n align-items: center;\n}\n\n.list-item .online-status {\n width: 20px;\n height: 20px;\n border-radius: 20px;\n margin-left: 8px;\n}\n\n.list-item .online-status.green {\n background-color: #b5ea1e;\n}\n\n.list-item .online-status.gray {\n background-color: #aaaaaa;\n}\n\n.list-item .online-status.red {\n background-color: #f45f30;\n}\n\n.list-item .name {\n margin-left: 13px;\n font-weight: 300;\n}\n\n.list-item .request-status {\n display: flex;\n width: -moz-fit-content;\n width: fit-content;\n flex-direction: row;\n align-items: center;\n margin-top: 8px;\n padding-right: 5px;\n cursor: pointer;\n}\n\n.list-item .request-status:hover {\n background-color: #f6f6f6;\n}\n\n.list-item .request-status-text {\n font-size: 14px;\n color: #8e8e93;\n margin-left: 5px;\n}\n\n.list-item .MuiSvgIcon-root {\n font-size: 17px;\n color: #8e8e93;\n}\n\n.list-item .date {\n flex-shrink: 0;\n color: #8e8e93;\n font-size: 13px;\n padding: 10px 0;\n word-wrap: break-word;\n}\n\n.list-item .arrow {\n flex-shrink: 0;\n display: flex;\n justify-content: center;\n align-items: center;\n cursor: pointer;\n align-self: center;\n width: 30px;\n height: 30px;\n border-radius: 30px;\n margin: 0 20px;\n}\n.list-item .arrow:hover {\n background-color: #f6f6f6;\n}\n";
|
|
43058
43058
|
styleInject(css_248z$1);
|
|
43059
43059
|
|
|
43060
43060
|
var RequestTab = function RequestTab(props) {
|
|
@@ -43225,7 +43225,7 @@ var RequestTab = function RequestTab(props) {
|
|
|
43225
43225
|
});
|
|
43226
43226
|
};
|
|
43227
43227
|
|
|
43228
|
-
var css_248z = ".consultant-dashboard {\
|
|
43228
|
+
var css_248z = ".consultant-dashboard {\n box-sizing: border-box;\n width: 100%;\n height: 100%;\n padding: 50px;\n padding-right: 0;\n display: flex;\n flex-direction: row;\n gap: 5px;\n}\n\n.consultant-dashboard * {\n box-sizing: border-box;\n}\n.consultant-dashboard .map {\n width: 50%;\n height: 100%;\n}\n\n.list-container {\n width: 50%;\n height: 100%;\n}\n\n.list-header {\n height: 60px;\n}\n\n.list {\n height: calc(100% - 60px);\n}\n\n.list.hidden {\n display: none;\n\n}\n\n.consultant-dashboard .MuiGridList-root {\n justify-content: space-evenly;\n}\n";
|
|
43229
43229
|
styleInject(css_248z);
|
|
43230
43230
|
|
|
43231
43231
|
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|