sceyt-chat-react-uikit 1.7.2-beta.9 → 1.7.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/components/Attachment/index.d.ts +4 -1
- package/components/AudioPlayer/index.d.ts +3 -0
- package/components/Message/Message.types.d.ts +24 -1
- package/components/Message/MessageActions/index.d.ts +1 -1
- package/components/Message/MessageBody/index.d.ts +6 -1
- package/components/Message/index.d.ts +1 -1
- package/components/Messages/MessageList/index.d.ts +22 -1
- package/components/Messages/index.d.ts +22 -1
- package/index.js +1353 -647
- package/index.modern.js +1353 -647
- package/package.json +1 -1
- package/types/index.d.ts +26 -9
package/index.js
CHANGED
|
@@ -2596,7 +2596,8 @@ var MESSAGE_DELIVERY_STATUS = {
|
|
|
2596
2596
|
PENDING: 'pending',
|
|
2597
2597
|
SENT: 'sent',
|
|
2598
2598
|
DELIVERED: 'received',
|
|
2599
|
-
READ: 'displayed'
|
|
2599
|
+
READ: 'displayed',
|
|
2600
|
+
PLAYED: 'played'
|
|
2600
2601
|
};
|
|
2601
2602
|
var MESSAGE_STATUS = {
|
|
2602
2603
|
UNMODIFIED: 'unmodified',
|
|
@@ -9567,6 +9568,7 @@ var UPDATE_CHANNEL = 'UPDATE_CHANNEL';
|
|
|
9567
9568
|
var REMOVE_CHANNEL_CACHES = 'REMOVE_CHANNEL_CACHES';
|
|
9568
9569
|
var MARK_MESSAGES_AS_READ = 'MARK_MESSAGES_AS_READ';
|
|
9569
9570
|
var MARK_MESSAGES_AS_DELIVERED = 'MARK_MESSAGES_AS_DELIVERED';
|
|
9571
|
+
var MARK_VOICE_MESSAGE_AS_PLAYED = 'MARK_VOICE_MESSAGE_AS_PLAYED';
|
|
9570
9572
|
var SEND_TYPING = 'SEND_TYPING';
|
|
9571
9573
|
var SEND_RECORDING = 'SEND_RECORDING';
|
|
9572
9574
|
var JOIN_TO_CHANNEL = 'JOIN_TO_CHANNEL';
|
|
@@ -10339,7 +10341,9 @@ var initialState$1 = {
|
|
|
10339
10341
|
playingAudioId: null,
|
|
10340
10342
|
selectedMessagesMap: null,
|
|
10341
10343
|
oGMetadata: {},
|
|
10342
|
-
attachmentUpdatedMap: {}
|
|
10344
|
+
attachmentUpdatedMap: {},
|
|
10345
|
+
messageMarkers: {},
|
|
10346
|
+
messagesMarkersLoadingState: null
|
|
10343
10347
|
};
|
|
10344
10348
|
var messageSlice = createSlice({
|
|
10345
10349
|
name: 'messages',
|
|
@@ -10666,6 +10670,66 @@ var messageSlice = createSlice({
|
|
|
10666
10670
|
var existing = state.oGMetadata[url];
|
|
10667
10671
|
state.oGMetadata[url] = existing ? _extends({}, existing, metadata) : metadata;
|
|
10668
10672
|
}
|
|
10673
|
+
},
|
|
10674
|
+
setMessageMarkers: function setMessageMarkers(state, action) {
|
|
10675
|
+
var _action$payload12 = action.payload,
|
|
10676
|
+
channelId = _action$payload12.channelId,
|
|
10677
|
+
messageId = _action$payload12.messageId,
|
|
10678
|
+
messageMarkers = _action$payload12.messageMarkers,
|
|
10679
|
+
deliveryStatus = _action$payload12.deliveryStatus;
|
|
10680
|
+
if (!state.messageMarkers[channelId]) {
|
|
10681
|
+
state.messageMarkers[channelId] = {};
|
|
10682
|
+
}
|
|
10683
|
+
if (!state.messageMarkers[channelId][messageId]) {
|
|
10684
|
+
state.messageMarkers[channelId][messageId] = {};
|
|
10685
|
+
}
|
|
10686
|
+
if (!state.messageMarkers[channelId][messageId][deliveryStatus]) {
|
|
10687
|
+
state.messageMarkers[channelId][messageId][deliveryStatus] = [];
|
|
10688
|
+
}
|
|
10689
|
+
state.messageMarkers[channelId][messageId][deliveryStatus] = [].concat(messageMarkers);
|
|
10690
|
+
},
|
|
10691
|
+
updateMessagesMarkers: function updateMessagesMarkers(state, action) {
|
|
10692
|
+
var _marker$user;
|
|
10693
|
+
var _action$payload13 = action.payload,
|
|
10694
|
+
channelId = _action$payload13.channelId,
|
|
10695
|
+
deliveryStatus = _action$payload13.deliveryStatus,
|
|
10696
|
+
marker = _action$payload13.marker;
|
|
10697
|
+
var userId = (_marker$user = marker.user) === null || _marker$user === void 0 ? void 0 : _marker$user.id;
|
|
10698
|
+
var messageIds = marker.messageIds;
|
|
10699
|
+
for (var _iterator = _createForOfIteratorHelperLoose(messageIds), _step; !(_step = _iterator()).done;) {
|
|
10700
|
+
var messageId = _step.value;
|
|
10701
|
+
if (!state.messageMarkers[channelId]) {
|
|
10702
|
+
state.messageMarkers[channelId] = {};
|
|
10703
|
+
}
|
|
10704
|
+
if (!state.messageMarkers[channelId][messageId]) {
|
|
10705
|
+
state.messageMarkers[channelId][messageId] = {};
|
|
10706
|
+
}
|
|
10707
|
+
if (!state.messageMarkers[channelId][messageId][deliveryStatus]) {
|
|
10708
|
+
state.messageMarkers[channelId][messageId][deliveryStatus] = [];
|
|
10709
|
+
}
|
|
10710
|
+
var isUserMarkered = state.messageMarkers[channelId][messageId][deliveryStatus].some(function (marker) {
|
|
10711
|
+
var _marker$user2;
|
|
10712
|
+
return ((_marker$user2 = marker.user) === null || _marker$user2 === void 0 ? void 0 : _marker$user2.id) === userId;
|
|
10713
|
+
});
|
|
10714
|
+
if (!isUserMarkered) {
|
|
10715
|
+
var time = marker.createdAt;
|
|
10716
|
+
try {
|
|
10717
|
+
time = new Date(marker.createdAt);
|
|
10718
|
+
if (isNaN(time.getTime())) {
|
|
10719
|
+
time = new Date();
|
|
10720
|
+
}
|
|
10721
|
+
} catch (e) {
|
|
10722
|
+
log.error('error in update messages markers', e);
|
|
10723
|
+
time = new Date();
|
|
10724
|
+
}
|
|
10725
|
+
state.messageMarkers[channelId][messageId][deliveryStatus].push(_extends({}, marker, {
|
|
10726
|
+
createdAt: time
|
|
10727
|
+
}));
|
|
10728
|
+
}
|
|
10729
|
+
}
|
|
10730
|
+
},
|
|
10731
|
+
setMessagesMarkersLoadingState: function setMessagesMarkersLoadingState(state, action) {
|
|
10732
|
+
state.messagesMarkersLoadingState = action.payload.state;
|
|
10669
10733
|
}
|
|
10670
10734
|
},
|
|
10671
10735
|
extraReducers: function extraReducers(builder) {
|
|
@@ -10717,7 +10781,10 @@ var _messageSlice$actions = messageSlice.actions,
|
|
|
10717
10781
|
removeSelectedMessage = _messageSlice$actions.removeSelectedMessage,
|
|
10718
10782
|
clearSelectedMessages = _messageSlice$actions.clearSelectedMessages,
|
|
10719
10783
|
setOGMetadata = _messageSlice$actions.setOGMetadata,
|
|
10720
|
-
updateOGMetadata = _messageSlice$actions.updateOGMetadata
|
|
10784
|
+
updateOGMetadata = _messageSlice$actions.updateOGMetadata,
|
|
10785
|
+
setMessageMarkers = _messageSlice$actions.setMessageMarkers,
|
|
10786
|
+
setMessagesMarkersLoadingState = _messageSlice$actions.setMessagesMarkersLoadingState,
|
|
10787
|
+
updateMessagesMarkers = _messageSlice$actions.updateMessagesMarkers;
|
|
10721
10788
|
var MessageReducer = messageSlice.reducer;
|
|
10722
10789
|
|
|
10723
10790
|
var initialState$2 = {
|
|
@@ -11329,6 +11396,15 @@ var markMessagesAsDeliveredAC = function markMessagesAsDeliveredAC(channelId, me
|
|
|
11329
11396
|
}
|
|
11330
11397
|
};
|
|
11331
11398
|
};
|
|
11399
|
+
var markVoiceMessageAsPlayedAC = function markVoiceMessageAsPlayedAC(channelId, messageIds) {
|
|
11400
|
+
return {
|
|
11401
|
+
type: MARK_VOICE_MESSAGE_AS_PLAYED,
|
|
11402
|
+
payload: {
|
|
11403
|
+
channelId: channelId,
|
|
11404
|
+
messageIds: messageIds
|
|
11405
|
+
}
|
|
11406
|
+
};
|
|
11407
|
+
};
|
|
11332
11408
|
var sendTypingAC = function sendTypingAC(state) {
|
|
11333
11409
|
return {
|
|
11334
11410
|
type: SEND_TYPING,
|
|
@@ -11504,6 +11580,7 @@ var getChannelMentionsAC = function getChannelMentionsAC(channelId) {
|
|
|
11504
11580
|
|
|
11505
11581
|
var GET_MESSAGES = 'GET_MESSAGES';
|
|
11506
11582
|
var GET_MESSAGE = 'GET_MESSAGE';
|
|
11583
|
+
var GET_MESSAGE_MARKERS = 'GET_MESSAGE_MARKERS';
|
|
11507
11584
|
var LOAD_MORE_MESSAGES = 'LOAD_MORE_MESSAGES';
|
|
11508
11585
|
var SEND_MESSAGE = 'SEND_MESSAGE';
|
|
11509
11586
|
var SEND_TEXT_MESSAGE = 'SEND_TEXT_MESSAGE';
|
|
@@ -11937,6 +12014,36 @@ function removeSelectedMessageAC(messageId) {
|
|
|
11937
12014
|
function clearSelectedMessagesAC() {
|
|
11938
12015
|
return clearSelectedMessages();
|
|
11939
12016
|
}
|
|
12017
|
+
function getMessageMarkersAC(messageId, channelId, deliveryStatus) {
|
|
12018
|
+
return {
|
|
12019
|
+
type: GET_MESSAGE_MARKERS,
|
|
12020
|
+
payload: {
|
|
12021
|
+
messageId: messageId,
|
|
12022
|
+
channelId: channelId,
|
|
12023
|
+
deliveryStatus: deliveryStatus
|
|
12024
|
+
}
|
|
12025
|
+
};
|
|
12026
|
+
}
|
|
12027
|
+
function setMessageMarkersAC(channelId, messageId, messageMarkers, deliveryStatus) {
|
|
12028
|
+
return setMessageMarkers({
|
|
12029
|
+
channelId: channelId,
|
|
12030
|
+
messageId: messageId,
|
|
12031
|
+
messageMarkers: messageMarkers,
|
|
12032
|
+
deliveryStatus: deliveryStatus
|
|
12033
|
+
});
|
|
12034
|
+
}
|
|
12035
|
+
function updateMessagesMarkersAC(channelId, deliveryStatus, marker) {
|
|
12036
|
+
return updateMessagesMarkers({
|
|
12037
|
+
channelId: channelId,
|
|
12038
|
+
deliveryStatus: deliveryStatus,
|
|
12039
|
+
marker: marker
|
|
12040
|
+
});
|
|
12041
|
+
}
|
|
12042
|
+
function setMessagesMarkersLoadingStateAC(state) {
|
|
12043
|
+
return setMessagesMarkersLoadingState({
|
|
12044
|
+
state: state
|
|
12045
|
+
});
|
|
12046
|
+
}
|
|
11940
12047
|
|
|
11941
12048
|
var SET_CONTACT_LOADING_STATE = 'SET_CONTACT_LOADING_STATE';
|
|
11942
12049
|
var GET_CONTACTS = 'GET_CONTACTS';
|
|
@@ -14211,6 +14318,8 @@ function watchForEvents() {
|
|
|
14211
14318
|
name: markerList.name,
|
|
14212
14319
|
markersMap: markersMap
|
|
14213
14320
|
});
|
|
14321
|
+
_context.n = 71;
|
|
14322
|
+
return effects.put(updateMessagesMarkersAC(channelId, markerList.name, markerList));
|
|
14214
14323
|
case 71:
|
|
14215
14324
|
return _context.a(3, 142);
|
|
14216
14325
|
case 72:
|
|
@@ -14745,27 +14854,28 @@ var _marked$2 = /*#__PURE__*/_regenerator().m(createChannel),
|
|
|
14745
14854
|
_marked7 = /*#__PURE__*/_regenerator().m(getChannelMentions),
|
|
14746
14855
|
_marked8 = /*#__PURE__*/_regenerator().m(channelsForForwardLoadMore),
|
|
14747
14856
|
_marked9 = /*#__PURE__*/_regenerator().m(markMessagesRead),
|
|
14748
|
-
_marked0 = /*#__PURE__*/_regenerator().m(
|
|
14749
|
-
_marked1 = /*#__PURE__*/_regenerator().m(
|
|
14750
|
-
_marked10 = /*#__PURE__*/_regenerator().m(
|
|
14751
|
-
_marked11 = /*#__PURE__*/_regenerator().m(
|
|
14752
|
-
_marked12 = /*#__PURE__*/_regenerator().m(
|
|
14753
|
-
_marked13 = /*#__PURE__*/_regenerator().m(
|
|
14754
|
-
_marked14 = /*#__PURE__*/_regenerator().m(
|
|
14755
|
-
_marked15 = /*#__PURE__*/_regenerator().m(
|
|
14756
|
-
_marked16 = /*#__PURE__*/_regenerator().m(
|
|
14757
|
-
_marked17 = /*#__PURE__*/_regenerator().m(
|
|
14758
|
-
_marked18 = /*#__PURE__*/_regenerator().m(
|
|
14759
|
-
_marked19 = /*#__PURE__*/_regenerator().m(
|
|
14760
|
-
_marked20 = /*#__PURE__*/_regenerator().m(
|
|
14761
|
-
_marked21 = /*#__PURE__*/_regenerator().m(
|
|
14762
|
-
_marked22 = /*#__PURE__*/_regenerator().m(
|
|
14763
|
-
_marked23 = /*#__PURE__*/_regenerator().m(
|
|
14764
|
-
_marked24 = /*#__PURE__*/_regenerator().m(
|
|
14765
|
-
_marked25 = /*#__PURE__*/_regenerator().m(
|
|
14766
|
-
_marked26 = /*#__PURE__*/_regenerator().m(
|
|
14767
|
-
_marked27 = /*#__PURE__*/_regenerator().m(
|
|
14768
|
-
_marked28 = /*#__PURE__*/_regenerator().m(
|
|
14857
|
+
_marked0 = /*#__PURE__*/_regenerator().m(markVoiceMessageAsPlayed),
|
|
14858
|
+
_marked1 = /*#__PURE__*/_regenerator().m(markMessagesDelivered),
|
|
14859
|
+
_marked10 = /*#__PURE__*/_regenerator().m(switchChannel),
|
|
14860
|
+
_marked11 = /*#__PURE__*/_regenerator().m(notificationsTurnOff),
|
|
14861
|
+
_marked12 = /*#__PURE__*/_regenerator().m(notificationsTurnOn),
|
|
14862
|
+
_marked13 = /*#__PURE__*/_regenerator().m(markChannelAsRead),
|
|
14863
|
+
_marked14 = /*#__PURE__*/_regenerator().m(markChannelAsUnRead),
|
|
14864
|
+
_marked15 = /*#__PURE__*/_regenerator().m(pinChannel),
|
|
14865
|
+
_marked16 = /*#__PURE__*/_regenerator().m(unpinChannel),
|
|
14866
|
+
_marked17 = /*#__PURE__*/_regenerator().m(removeChannelCaches),
|
|
14867
|
+
_marked18 = /*#__PURE__*/_regenerator().m(leaveChannel),
|
|
14868
|
+
_marked19 = /*#__PURE__*/_regenerator().m(deleteChannel),
|
|
14869
|
+
_marked20 = /*#__PURE__*/_regenerator().m(blockChannel),
|
|
14870
|
+
_marked21 = /*#__PURE__*/_regenerator().m(updateChannel),
|
|
14871
|
+
_marked22 = /*#__PURE__*/_regenerator().m(checkUsersStatus),
|
|
14872
|
+
_marked23 = /*#__PURE__*/_regenerator().m(sendTyping),
|
|
14873
|
+
_marked24 = /*#__PURE__*/_regenerator().m(sendRecording),
|
|
14874
|
+
_marked25 = /*#__PURE__*/_regenerator().m(clearHistory),
|
|
14875
|
+
_marked26 = /*#__PURE__*/_regenerator().m(deleteAllMessages),
|
|
14876
|
+
_marked27 = /*#__PURE__*/_regenerator().m(joinChannel),
|
|
14877
|
+
_marked28 = /*#__PURE__*/_regenerator().m(watchForChannelEvents),
|
|
14878
|
+
_marked29 = /*#__PURE__*/_regenerator().m(ChannelsSaga);
|
|
14769
14879
|
function createChannel(action) {
|
|
14770
14880
|
var payload, channelData, dontCreateIfNotExists, callback, SceytChatClient, createChannelData, fileToUpload, isSelfChannel, channelIsExistOnAllChannels, createdChannel, allChannels, memberId, checkChannelExist, messageToSend, _allChannels, _memberId, _t;
|
|
14771
14881
|
return _regenerator().w(function (_context) {
|
|
@@ -15663,7 +15773,7 @@ function markMessagesRead(action) {
|
|
|
15663
15773
|
deliveryStatus: MESSAGE_DELIVERY_STATUS.READ,
|
|
15664
15774
|
userMarkers: [{
|
|
15665
15775
|
user: messageListMarker.user,
|
|
15666
|
-
createdAt: messageListMarker.
|
|
15776
|
+
createdAt: messageListMarker.createdAt,
|
|
15667
15777
|
messageId: messageId,
|
|
15668
15778
|
name: MESSAGE_DELIVERY_STATUS.READ
|
|
15669
15779
|
}]
|
|
@@ -15691,7 +15801,7 @@ function markMessagesRead(action) {
|
|
|
15691
15801
|
}
|
|
15692
15802
|
}, _marked9, null, [[2, 9]]);
|
|
15693
15803
|
}
|
|
15694
|
-
function
|
|
15804
|
+
function markVoiceMessageAsPlayed(action) {
|
|
15695
15805
|
var payload, channelId, messageIds, channel, _t10;
|
|
15696
15806
|
return _regenerator().w(function (_context0) {
|
|
15697
15807
|
while (1) switch (_context0.p = _context0.n) {
|
|
@@ -15713,151 +15823,148 @@ function markMessagesDelivered(action) {
|
|
|
15713
15823
|
_context0.n = 3;
|
|
15714
15824
|
break;
|
|
15715
15825
|
}
|
|
15716
|
-
log.info('send delivered marker ', messageIds);
|
|
15717
15826
|
_context0.n = 3;
|
|
15718
|
-
return effects.call(channel.
|
|
15827
|
+
return effects.call(channel.markVoiceMessagesAsPlayed, messageIds);
|
|
15719
15828
|
case 3:
|
|
15720
15829
|
_context0.n = 5;
|
|
15721
15830
|
break;
|
|
15722
15831
|
case 4:
|
|
15723
15832
|
_context0.p = 4;
|
|
15724
15833
|
_t10 = _context0.v;
|
|
15725
|
-
log.error(_t10, 'Error on mark messages
|
|
15834
|
+
log.error(_t10, 'Error on mark voice messages read');
|
|
15726
15835
|
case 5:
|
|
15727
15836
|
return _context0.a(2);
|
|
15728
15837
|
}
|
|
15729
15838
|
}, _marked0, null, [[1, 4]]);
|
|
15730
15839
|
}
|
|
15731
|
-
function
|
|
15732
|
-
var payload,
|
|
15840
|
+
function markMessagesDelivered(action) {
|
|
15841
|
+
var payload, channelId, messageIds, channel, _t11;
|
|
15733
15842
|
return _regenerator().w(function (_context1) {
|
|
15734
15843
|
while (1) switch (_context1.p = _context1.n) {
|
|
15735
15844
|
case 0:
|
|
15736
|
-
|
|
15845
|
+
payload = action.payload;
|
|
15846
|
+
channelId = payload.channelId, messageIds = payload.messageIds;
|
|
15847
|
+
_context1.p = 1;
|
|
15848
|
+
_context1.n = 2;
|
|
15849
|
+
return effects.call(getChannelFromMap, channelId);
|
|
15850
|
+
case 2:
|
|
15851
|
+
channel = _context1.v;
|
|
15852
|
+
if (!channel) {
|
|
15853
|
+
channel = getChannelFromAllChannels(channelId);
|
|
15854
|
+
if (channel) {
|
|
15855
|
+
setChannelInMap(channel);
|
|
15856
|
+
}
|
|
15857
|
+
}
|
|
15858
|
+
if (!channel) {
|
|
15859
|
+
_context1.n = 3;
|
|
15860
|
+
break;
|
|
15861
|
+
}
|
|
15862
|
+
log.info('send delivered marker ', messageIds);
|
|
15863
|
+
_context1.n = 3;
|
|
15864
|
+
return effects.call(channel.markMessagesAsReceived, messageIds);
|
|
15865
|
+
case 3:
|
|
15866
|
+
_context1.n = 5;
|
|
15867
|
+
break;
|
|
15868
|
+
case 4:
|
|
15869
|
+
_context1.p = 4;
|
|
15870
|
+
_t11 = _context1.v;
|
|
15871
|
+
log.error(_t11, 'Error on mark messages delivered');
|
|
15872
|
+
case 5:
|
|
15873
|
+
return _context1.a(2);
|
|
15874
|
+
}
|
|
15875
|
+
}, _marked1, null, [[1, 4]]);
|
|
15876
|
+
}
|
|
15877
|
+
function switchChannel(action) {
|
|
15878
|
+
var payload, channel, updateActiveChannel, channelToSwitch, existingChannel, addChannel, _SceytChatClient5, fetchedChannel, channelFromMap, currentActiveChannel, _t12;
|
|
15879
|
+
return _regenerator().w(function (_context10) {
|
|
15880
|
+
while (1) switch (_context10.p = _context10.n) {
|
|
15881
|
+
case 0:
|
|
15882
|
+
_context10.p = 0;
|
|
15737
15883
|
payload = action.payload;
|
|
15738
15884
|
channel = payload.channel, updateActiveChannel = payload.updateActiveChannel;
|
|
15739
15885
|
channelToSwitch = channel;
|
|
15740
15886
|
if (!(!(channel !== null && channel !== void 0 && channel.id) && updateActiveChannel)) {
|
|
15741
|
-
|
|
15887
|
+
_context10.n = 3;
|
|
15742
15888
|
break;
|
|
15743
15889
|
}
|
|
15744
|
-
|
|
15890
|
+
_context10.n = 1;
|
|
15745
15891
|
return effects.call(setActiveChannelId, '');
|
|
15746
15892
|
case 1:
|
|
15747
|
-
|
|
15893
|
+
_context10.n = 2;
|
|
15748
15894
|
return effects.put(setActiveChannelAC({}));
|
|
15749
15895
|
case 2:
|
|
15750
|
-
return
|
|
15896
|
+
return _context10.a(2);
|
|
15751
15897
|
case 3:
|
|
15752
15898
|
existingChannel = checkChannelExists(channel.id);
|
|
15753
15899
|
if (existingChannel) {
|
|
15754
|
-
|
|
15900
|
+
_context10.n = 9;
|
|
15755
15901
|
break;
|
|
15756
15902
|
}
|
|
15757
15903
|
addChannel = getChannelFromAllChannels(channel.id);
|
|
15758
15904
|
if (!addChannel) {
|
|
15759
|
-
|
|
15905
|
+
_context10.n = 5;
|
|
15760
15906
|
break;
|
|
15761
15907
|
}
|
|
15762
15908
|
setChannelInMap(addChannel);
|
|
15763
|
-
|
|
15909
|
+
_context10.n = 4;
|
|
15764
15910
|
return effects.put(addChannelAC(JSON.parse(JSON.stringify(addChannel))));
|
|
15765
15911
|
case 4:
|
|
15766
15912
|
channelToSwitch = _extends({}, channelToSwitch, addChannel);
|
|
15767
|
-
|
|
15913
|
+
_context10.n = 8;
|
|
15768
15914
|
break;
|
|
15769
15915
|
case 5:
|
|
15770
15916
|
_SceytChatClient5 = getClient();
|
|
15771
|
-
|
|
15917
|
+
_context10.n = 6;
|
|
15772
15918
|
return effects.call(_SceytChatClient5.getChannel, channel.id);
|
|
15773
15919
|
case 6:
|
|
15774
|
-
fetchedChannel =
|
|
15920
|
+
fetchedChannel = _context10.v;
|
|
15775
15921
|
addChannelToAllChannels(fetchedChannel);
|
|
15776
15922
|
setChannelInMap(fetchedChannel);
|
|
15777
|
-
|
|
15923
|
+
_context10.n = 7;
|
|
15778
15924
|
return effects.put(addChannelAC(JSON.parse(JSON.stringify(fetchedChannel))));
|
|
15779
15925
|
case 7:
|
|
15780
15926
|
channelToSwitch = _extends({}, channelToSwitch, fetchedChannel);
|
|
15781
15927
|
case 8:
|
|
15782
|
-
|
|
15928
|
+
_context10.n = 10;
|
|
15783
15929
|
break;
|
|
15784
15930
|
case 9:
|
|
15785
15931
|
channelFromMap = getChannelFromMap(channel.id);
|
|
15786
15932
|
channelToSwitch = _extends({}, channelToSwitch, channelFromMap);
|
|
15787
15933
|
case 10:
|
|
15788
15934
|
if (!updateActiveChannel) {
|
|
15789
|
-
|
|
15935
|
+
_context10.n = 13;
|
|
15790
15936
|
break;
|
|
15791
15937
|
}
|
|
15792
15938
|
currentActiveChannel = getChannelFromMap(getActiveChannelId());
|
|
15793
|
-
|
|
15939
|
+
_context10.n = 11;
|
|
15794
15940
|
return effects.call(setUnreadScrollTo, true);
|
|
15795
15941
|
case 11:
|
|
15796
|
-
|
|
15942
|
+
_context10.n = 12;
|
|
15797
15943
|
return effects.call(setActiveChannelId, channel && channel.id);
|
|
15798
15944
|
case 12:
|
|
15799
15945
|
if (channel.isLinkedChannel) {
|
|
15800
15946
|
channelToSwitch.linkedFrom = currentActiveChannel;
|
|
15801
15947
|
}
|
|
15802
|
-
|
|
15948
|
+
_context10.n = 13;
|
|
15803
15949
|
return effects.put(setActiveChannelAC(_extends({}, channelToSwitch)));
|
|
15804
15950
|
case 13:
|
|
15805
|
-
|
|
15951
|
+
_context10.n = 15;
|
|
15806
15952
|
break;
|
|
15807
15953
|
case 14:
|
|
15808
|
-
|
|
15809
|
-
_t11 = _context1.v;
|
|
15810
|
-
log.error('error in switch channel', _t11);
|
|
15811
|
-
case 15:
|
|
15812
|
-
return _context1.a(2);
|
|
15813
|
-
}
|
|
15814
|
-
}, _marked1, null, [[0, 14]]);
|
|
15815
|
-
}
|
|
15816
|
-
function notificationsTurnOff(action) {
|
|
15817
|
-
var expireTime, activeChannelId, channel, updatedChannel, _t12;
|
|
15818
|
-
return _regenerator().w(function (_context10) {
|
|
15819
|
-
while (1) switch (_context10.p = _context10.n) {
|
|
15820
|
-
case 0:
|
|
15821
|
-
expireTime = action.payload.expireTime;
|
|
15822
|
-
_context10.n = 1;
|
|
15823
|
-
return effects.call(getActiveChannelId);
|
|
15824
|
-
case 1:
|
|
15825
|
-
activeChannelId = _context10.v;
|
|
15826
|
-
_context10.n = 2;
|
|
15827
|
-
return effects.call(getChannelFromMap, activeChannelId);
|
|
15828
|
-
case 2:
|
|
15829
|
-
channel = _context10.v;
|
|
15830
|
-
_context10.p = 3;
|
|
15831
|
-
_context10.n = 4;
|
|
15832
|
-
return effects.call(channel.mute, expireTime);
|
|
15833
|
-
case 4:
|
|
15834
|
-
updatedChannel = _context10.v;
|
|
15835
|
-
updateChannelOnAllChannels(channel.id, {
|
|
15836
|
-
muted: updatedChannel.muted,
|
|
15837
|
-
mutedTill: updatedChannel.mutedTill
|
|
15838
|
-
});
|
|
15839
|
-
_context10.n = 5;
|
|
15840
|
-
return effects.put(updateChannelDataAC(updatedChannel.id, {
|
|
15841
|
-
muted: updatedChannel.muted,
|
|
15842
|
-
mutedTill: updatedChannel.mutedTill
|
|
15843
|
-
}));
|
|
15844
|
-
case 5:
|
|
15845
|
-
_context10.n = 7;
|
|
15846
|
-
break;
|
|
15847
|
-
case 6:
|
|
15848
|
-
_context10.p = 6;
|
|
15954
|
+
_context10.p = 14;
|
|
15849
15955
|
_t12 = _context10.v;
|
|
15850
|
-
log.error('
|
|
15851
|
-
case
|
|
15956
|
+
log.error('error in switch channel', _t12);
|
|
15957
|
+
case 15:
|
|
15852
15958
|
return _context10.a(2);
|
|
15853
15959
|
}
|
|
15854
|
-
}, _marked10, null, [[
|
|
15960
|
+
}, _marked10, null, [[0, 14]]);
|
|
15855
15961
|
}
|
|
15856
|
-
function
|
|
15857
|
-
var activeChannelId, channel, updatedChannel, _t13;
|
|
15962
|
+
function notificationsTurnOff(action) {
|
|
15963
|
+
var expireTime, activeChannelId, channel, updatedChannel, _t13;
|
|
15858
15964
|
return _regenerator().w(function (_context11) {
|
|
15859
15965
|
while (1) switch (_context11.p = _context11.n) {
|
|
15860
15966
|
case 0:
|
|
15967
|
+
expireTime = action.payload.expireTime;
|
|
15861
15968
|
_context11.n = 1;
|
|
15862
15969
|
return effects.call(getActiveChannelId);
|
|
15863
15970
|
case 1:
|
|
@@ -15868,7 +15975,7 @@ function notificationsTurnOn() {
|
|
|
15868
15975
|
channel = _context11.v;
|
|
15869
15976
|
_context11.p = 3;
|
|
15870
15977
|
_context11.n = 4;
|
|
15871
|
-
return effects.call(channel.
|
|
15978
|
+
return effects.call(channel.mute, expireTime);
|
|
15872
15979
|
case 4:
|
|
15873
15980
|
updatedChannel = _context11.v;
|
|
15874
15981
|
updateChannelOnAllChannels(channel.id, {
|
|
@@ -15886,51 +15993,53 @@ function notificationsTurnOn() {
|
|
|
15886
15993
|
case 6:
|
|
15887
15994
|
_context11.p = 6;
|
|
15888
15995
|
_t13 = _context11.v;
|
|
15889
|
-
log.error('ERROR turn
|
|
15996
|
+
log.error('ERROR turn off notifications', _t13.message);
|
|
15890
15997
|
case 7:
|
|
15891
15998
|
return _context11.a(2);
|
|
15892
15999
|
}
|
|
15893
16000
|
}, _marked11, null, [[3, 6]]);
|
|
15894
16001
|
}
|
|
15895
|
-
function
|
|
15896
|
-
var
|
|
16002
|
+
function notificationsTurnOn() {
|
|
16003
|
+
var activeChannelId, channel, updatedChannel, _t14;
|
|
15897
16004
|
return _regenerator().w(function (_context12) {
|
|
15898
16005
|
while (1) switch (_context12.p = _context12.n) {
|
|
15899
16006
|
case 0:
|
|
15900
|
-
_context12.p = 0;
|
|
15901
|
-
channelId = action.payload.channelId;
|
|
15902
16007
|
_context12.n = 1;
|
|
15903
|
-
return effects.call(
|
|
16008
|
+
return effects.call(getActiveChannelId);
|
|
15904
16009
|
case 1:
|
|
15905
|
-
|
|
15906
|
-
if (!channel) {
|
|
15907
|
-
channel = getChannelFromAllChannels(channelId);
|
|
15908
|
-
}
|
|
16010
|
+
activeChannelId = _context12.v;
|
|
15909
16011
|
_context12.n = 2;
|
|
15910
|
-
return effects.call(
|
|
16012
|
+
return effects.call(getChannelFromMap, activeChannelId);
|
|
15911
16013
|
case 2:
|
|
15912
|
-
|
|
15913
|
-
|
|
15914
|
-
|
|
15915
|
-
|
|
15916
|
-
|
|
15917
|
-
|
|
15918
|
-
|
|
15919
|
-
|
|
15920
|
-
|
|
16014
|
+
channel = _context12.v;
|
|
16015
|
+
_context12.p = 3;
|
|
16016
|
+
_context12.n = 4;
|
|
16017
|
+
return effects.call(channel.unmute);
|
|
16018
|
+
case 4:
|
|
16019
|
+
updatedChannel = _context12.v;
|
|
16020
|
+
updateChannelOnAllChannels(channel.id, {
|
|
16021
|
+
muted: updatedChannel.muted,
|
|
16022
|
+
mutedTill: updatedChannel.mutedTill
|
|
16023
|
+
});
|
|
15921
16024
|
_context12.n = 5;
|
|
16025
|
+
return effects.put(updateChannelDataAC(updatedChannel.id, {
|
|
16026
|
+
muted: updatedChannel.muted,
|
|
16027
|
+
mutedTill: updatedChannel.mutedTill
|
|
16028
|
+
}));
|
|
16029
|
+
case 5:
|
|
16030
|
+
_context12.n = 7;
|
|
15922
16031
|
break;
|
|
15923
|
-
case
|
|
15924
|
-
_context12.p =
|
|
16032
|
+
case 6:
|
|
16033
|
+
_context12.p = 6;
|
|
15925
16034
|
_t14 = _context12.v;
|
|
15926
|
-
log.error(
|
|
15927
|
-
case
|
|
16035
|
+
log.error('ERROR turn on notifications: ', _t14.message);
|
|
16036
|
+
case 7:
|
|
15928
16037
|
return _context12.a(2);
|
|
15929
16038
|
}
|
|
15930
|
-
}, _marked12, null, [[
|
|
16039
|
+
}, _marked12, null, [[3, 6]]);
|
|
15931
16040
|
}
|
|
15932
|
-
function
|
|
15933
|
-
var channelId, channel, _t15;
|
|
16041
|
+
function markChannelAsRead(action) {
|
|
16042
|
+
var channelId, channel, updateData, _t15;
|
|
15934
16043
|
return _regenerator().w(function (_context13) {
|
|
15935
16044
|
while (1) switch (_context13.p = _context13.n) {
|
|
15936
16045
|
case 0:
|
|
@@ -15944,15 +16053,16 @@ function markChannelAsUnRead(action) {
|
|
|
15944
16053
|
channel = getChannelFromAllChannels(channelId);
|
|
15945
16054
|
}
|
|
15946
16055
|
_context13.n = 2;
|
|
15947
|
-
return effects.call(channel.
|
|
16056
|
+
return effects.call(channel.markAsRead);
|
|
15948
16057
|
case 2:
|
|
15949
|
-
|
|
15950
|
-
unread:
|
|
15951
|
-
|
|
16058
|
+
updateData = {
|
|
16059
|
+
unread: false,
|
|
16060
|
+
newMessageCount: 0,
|
|
16061
|
+
newMentionCount: 0
|
|
16062
|
+
};
|
|
16063
|
+
updateChannelOnAllChannels(channel.id, updateData);
|
|
15952
16064
|
_context13.n = 3;
|
|
15953
|
-
return effects.put(updateChannelDataAC(channel.id,
|
|
15954
|
-
unread: true
|
|
15955
|
-
}));
|
|
16065
|
+
return effects.put(updateChannelDataAC(channel.id, updateData));
|
|
15956
16066
|
case 3:
|
|
15957
16067
|
_context13.n = 5;
|
|
15958
16068
|
break;
|
|
@@ -15965,8 +16075,8 @@ function markChannelAsUnRead(action) {
|
|
|
15965
16075
|
}
|
|
15966
16076
|
}, _marked13, null, [[0, 4]]);
|
|
15967
16077
|
}
|
|
15968
|
-
function
|
|
15969
|
-
var channelId, channel,
|
|
16078
|
+
function markChannelAsUnRead(action) {
|
|
16079
|
+
var channelId, channel, _t16;
|
|
15970
16080
|
return _regenerator().w(function (_context14) {
|
|
15971
16081
|
while (1) switch (_context14.p = _context14.n) {
|
|
15972
16082
|
case 0:
|
|
@@ -15980,29 +16090,28 @@ function pinChannel(action) {
|
|
|
15980
16090
|
channel = getChannelFromAllChannels(channelId);
|
|
15981
16091
|
}
|
|
15982
16092
|
_context14.n = 2;
|
|
15983
|
-
return effects.call(channel.
|
|
16093
|
+
return effects.call(channel.markAsUnRead);
|
|
15984
16094
|
case 2:
|
|
15985
|
-
updatedChannel = _context14.v;
|
|
15986
16095
|
updateChannelOnAllChannels(channel.id, {
|
|
15987
|
-
|
|
16096
|
+
unread: true
|
|
15988
16097
|
});
|
|
15989
16098
|
_context14.n = 3;
|
|
15990
|
-
return effects.put(updateChannelDataAC(
|
|
15991
|
-
|
|
15992
|
-
}
|
|
16099
|
+
return effects.put(updateChannelDataAC(channel.id, {
|
|
16100
|
+
unread: true
|
|
16101
|
+
}));
|
|
15993
16102
|
case 3:
|
|
15994
16103
|
_context14.n = 5;
|
|
15995
16104
|
break;
|
|
15996
16105
|
case 4:
|
|
15997
16106
|
_context14.p = 4;
|
|
15998
16107
|
_t16 = _context14.v;
|
|
15999
|
-
log.error(_t16, 'Error in
|
|
16108
|
+
log.error(_t16, 'Error in set channel unread');
|
|
16000
16109
|
case 5:
|
|
16001
16110
|
return _context14.a(2);
|
|
16002
16111
|
}
|
|
16003
16112
|
}, _marked14, null, [[0, 4]]);
|
|
16004
16113
|
}
|
|
16005
|
-
function
|
|
16114
|
+
function pinChannel(action) {
|
|
16006
16115
|
var channelId, channel, updatedChannel, _t17;
|
|
16007
16116
|
return _regenerator().w(function (_context15) {
|
|
16008
16117
|
while (1) switch (_context15.p = _context15.n) {
|
|
@@ -16017,7 +16126,7 @@ function unpinChannel(action) {
|
|
|
16017
16126
|
channel = getChannelFromAllChannels(channelId);
|
|
16018
16127
|
}
|
|
16019
16128
|
_context15.n = 2;
|
|
16020
|
-
return effects.call(channel.
|
|
16129
|
+
return effects.call(channel.pin);
|
|
16021
16130
|
case 2:
|
|
16022
16131
|
updatedChannel = _context15.v;
|
|
16023
16132
|
updateChannelOnAllChannels(channel.id, {
|
|
@@ -16026,197 +16135,234 @@ function unpinChannel(action) {
|
|
|
16026
16135
|
_context15.n = 3;
|
|
16027
16136
|
return effects.put(updateChannelDataAC(updatedChannel.id, {
|
|
16028
16137
|
pinnedAt: updatedChannel.pinnedAt
|
|
16029
|
-
},
|
|
16138
|
+
}, true));
|
|
16030
16139
|
case 3:
|
|
16031
16140
|
_context15.n = 5;
|
|
16032
16141
|
break;
|
|
16033
16142
|
case 4:
|
|
16034
16143
|
_context15.p = 4;
|
|
16035
16144
|
_t17 = _context15.v;
|
|
16036
|
-
log.error(_t17, 'Error in
|
|
16145
|
+
log.error(_t17, 'Error in pinChannel');
|
|
16037
16146
|
case 5:
|
|
16038
16147
|
return _context15.a(2);
|
|
16039
16148
|
}
|
|
16040
16149
|
}, _marked15, null, [[0, 4]]);
|
|
16041
16150
|
}
|
|
16151
|
+
function unpinChannel(action) {
|
|
16152
|
+
var channelId, channel, updatedChannel, _t18;
|
|
16153
|
+
return _regenerator().w(function (_context16) {
|
|
16154
|
+
while (1) switch (_context16.p = _context16.n) {
|
|
16155
|
+
case 0:
|
|
16156
|
+
_context16.p = 0;
|
|
16157
|
+
channelId = action.payload.channelId;
|
|
16158
|
+
_context16.n = 1;
|
|
16159
|
+
return effects.call(getChannelFromMap, channelId);
|
|
16160
|
+
case 1:
|
|
16161
|
+
channel = _context16.v;
|
|
16162
|
+
if (!channel) {
|
|
16163
|
+
channel = getChannelFromAllChannels(channelId);
|
|
16164
|
+
}
|
|
16165
|
+
_context16.n = 2;
|
|
16166
|
+
return effects.call(channel.unpin);
|
|
16167
|
+
case 2:
|
|
16168
|
+
updatedChannel = _context16.v;
|
|
16169
|
+
updateChannelOnAllChannels(channel.id, {
|
|
16170
|
+
pinnedAt: updatedChannel.pinnedAt
|
|
16171
|
+
});
|
|
16172
|
+
_context16.n = 3;
|
|
16173
|
+
return effects.put(updateChannelDataAC(updatedChannel.id, {
|
|
16174
|
+
pinnedAt: updatedChannel.pinnedAt
|
|
16175
|
+
}, false, true));
|
|
16176
|
+
case 3:
|
|
16177
|
+
_context16.n = 5;
|
|
16178
|
+
break;
|
|
16179
|
+
case 4:
|
|
16180
|
+
_context16.p = 4;
|
|
16181
|
+
_t18 = _context16.v;
|
|
16182
|
+
log.error(_t18, 'Error in unpinChannel');
|
|
16183
|
+
case 5:
|
|
16184
|
+
return _context16.a(2);
|
|
16185
|
+
}
|
|
16186
|
+
}, _marked16, null, [[0, 4]]);
|
|
16187
|
+
}
|
|
16042
16188
|
function removeChannelCaches(action) {
|
|
16043
16189
|
var payload, channelId, activeChannelId, activeChannel;
|
|
16044
|
-
return _regenerator().w(function (
|
|
16045
|
-
while (1) switch (
|
|
16190
|
+
return _regenerator().w(function (_context17) {
|
|
16191
|
+
while (1) switch (_context17.n) {
|
|
16046
16192
|
case 0:
|
|
16047
16193
|
payload = action.payload;
|
|
16048
16194
|
channelId = payload.channelId;
|
|
16049
|
-
|
|
16195
|
+
_context17.n = 1;
|
|
16050
16196
|
return effects.call(getActiveChannelId);
|
|
16051
16197
|
case 1:
|
|
16052
|
-
activeChannelId =
|
|
16198
|
+
activeChannelId = _context17.v;
|
|
16053
16199
|
removeChannelFromMap(channelId);
|
|
16054
16200
|
removeMessagesFromMap(channelId);
|
|
16055
16201
|
if (!(activeChannelId === channelId)) {
|
|
16056
|
-
|
|
16202
|
+
_context17.n = 3;
|
|
16057
16203
|
break;
|
|
16058
16204
|
}
|
|
16059
|
-
|
|
16205
|
+
_context17.n = 2;
|
|
16060
16206
|
return effects.call(getLastChannelFromMap);
|
|
16061
16207
|
case 2:
|
|
16062
|
-
activeChannel =
|
|
16208
|
+
activeChannel = _context17.v;
|
|
16063
16209
|
if (!activeChannel) {
|
|
16064
|
-
|
|
16210
|
+
_context17.n = 3;
|
|
16065
16211
|
break;
|
|
16066
16212
|
}
|
|
16067
|
-
|
|
16213
|
+
_context17.n = 3;
|
|
16068
16214
|
return effects.put(switchChannelActionAC(JSON.parse(JSON.stringify(activeChannel))));
|
|
16069
16215
|
case 3:
|
|
16070
|
-
return
|
|
16216
|
+
return _context17.a(2);
|
|
16071
16217
|
}
|
|
16072
|
-
},
|
|
16218
|
+
}, _marked17);
|
|
16073
16219
|
}
|
|
16074
16220
|
function leaveChannel(action) {
|
|
16075
|
-
var payload, channelId, channel, messageBuilder, messageToSend,
|
|
16076
|
-
return _regenerator().w(function (
|
|
16077
|
-
while (1) switch (
|
|
16221
|
+
var payload, channelId, channel, messageBuilder, messageToSend, _t19;
|
|
16222
|
+
return _regenerator().w(function (_context18) {
|
|
16223
|
+
while (1) switch (_context18.p = _context18.n) {
|
|
16078
16224
|
case 0:
|
|
16079
|
-
|
|
16225
|
+
_context18.p = 0;
|
|
16080
16226
|
payload = action.payload;
|
|
16081
16227
|
channelId = payload.channelId;
|
|
16082
|
-
|
|
16228
|
+
_context18.n = 1;
|
|
16083
16229
|
return effects.call(getChannelFromMap, channelId);
|
|
16084
16230
|
case 1:
|
|
16085
|
-
channel =
|
|
16231
|
+
channel = _context18.v;
|
|
16086
16232
|
if (!channel) {
|
|
16087
16233
|
channel = getChannelFromAllChannels(channelId);
|
|
16088
16234
|
}
|
|
16089
16235
|
if (!channel) {
|
|
16090
|
-
|
|
16236
|
+
_context18.n = 5;
|
|
16091
16237
|
break;
|
|
16092
16238
|
}
|
|
16093
16239
|
if (!(channel.type === DEFAULT_CHANNEL_TYPE.GROUP || channel.type === DEFAULT_CHANNEL_TYPE.PRIVATE)) {
|
|
16094
|
-
|
|
16240
|
+
_context18.n = 2;
|
|
16095
16241
|
break;
|
|
16096
16242
|
}
|
|
16097
16243
|
messageBuilder = channel.createMessageBuilder();
|
|
16098
16244
|
messageBuilder.setBody('LG').setType('system').setDisplayCount(0).setSilent(true);
|
|
16099
16245
|
messageToSend = messageBuilder.create();
|
|
16100
16246
|
log.info('send message for left');
|
|
16101
|
-
|
|
16247
|
+
_context18.n = 2;
|
|
16102
16248
|
return effects.call(channel.sendMessage, messageToSend);
|
|
16103
16249
|
case 2:
|
|
16104
16250
|
log.info('leave');
|
|
16105
|
-
|
|
16251
|
+
_context18.n = 3;
|
|
16106
16252
|
return effects.call(channel.leave);
|
|
16107
16253
|
case 3:
|
|
16108
|
-
|
|
16254
|
+
_context18.n = 4;
|
|
16109
16255
|
return effects.put(removeChannelAC(channelId));
|
|
16110
16256
|
case 4:
|
|
16111
16257
|
deleteChannelFromAllChannels(channelId);
|
|
16112
|
-
|
|
16258
|
+
_context18.n = 5;
|
|
16113
16259
|
return effects.put(removeChannelCachesAC(channelId));
|
|
16114
16260
|
case 5:
|
|
16115
|
-
|
|
16261
|
+
_context18.n = 7;
|
|
16116
16262
|
break;
|
|
16117
16263
|
case 6:
|
|
16118
|
-
|
|
16119
|
-
|
|
16120
|
-
log.error('ERROR in leave channel - ',
|
|
16264
|
+
_context18.p = 6;
|
|
16265
|
+
_t19 = _context18.v;
|
|
16266
|
+
log.error('ERROR in leave channel - ', _t19.message);
|
|
16121
16267
|
case 7:
|
|
16122
|
-
return
|
|
16268
|
+
return _context18.a(2);
|
|
16123
16269
|
}
|
|
16124
|
-
},
|
|
16270
|
+
}, _marked18, null, [[0, 6]]);
|
|
16125
16271
|
}
|
|
16126
16272
|
function deleteChannel(action) {
|
|
16127
|
-
var payload, channelId, channel,
|
|
16128
|
-
return _regenerator().w(function (
|
|
16129
|
-
while (1) switch (
|
|
16273
|
+
var payload, channelId, channel, _t20;
|
|
16274
|
+
return _regenerator().w(function (_context19) {
|
|
16275
|
+
while (1) switch (_context19.p = _context19.n) {
|
|
16130
16276
|
case 0:
|
|
16131
|
-
|
|
16277
|
+
_context19.p = 0;
|
|
16132
16278
|
payload = action.payload;
|
|
16133
16279
|
channelId = payload.channelId;
|
|
16134
|
-
|
|
16280
|
+
_context19.n = 1;
|
|
16135
16281
|
return effects.call(getChannelFromMap, channelId);
|
|
16136
16282
|
case 1:
|
|
16137
|
-
channel =
|
|
16283
|
+
channel = _context19.v;
|
|
16138
16284
|
if (!channel) {
|
|
16139
16285
|
channel = getChannelFromAllChannels(channelId);
|
|
16140
16286
|
}
|
|
16141
16287
|
if (!channel) {
|
|
16142
|
-
|
|
16288
|
+
_context19.n = 5;
|
|
16143
16289
|
break;
|
|
16144
16290
|
}
|
|
16145
|
-
|
|
16291
|
+
_context19.n = 2;
|
|
16146
16292
|
return effects.call(channel["delete"]);
|
|
16147
16293
|
case 2:
|
|
16148
|
-
|
|
16294
|
+
_context19.n = 3;
|
|
16149
16295
|
return effects.put(setChannelToRemoveAC(channel));
|
|
16150
16296
|
case 3:
|
|
16151
|
-
|
|
16297
|
+
_context19.n = 4;
|
|
16152
16298
|
return effects.put(removeChannelAC(channelId));
|
|
16153
16299
|
case 4:
|
|
16154
|
-
|
|
16300
|
+
_context19.n = 5;
|
|
16155
16301
|
return effects.put(removeChannelCachesAC(channelId));
|
|
16156
16302
|
case 5:
|
|
16157
|
-
|
|
16303
|
+
_context19.n = 7;
|
|
16158
16304
|
break;
|
|
16159
16305
|
case 6:
|
|
16160
|
-
|
|
16161
|
-
|
|
16162
|
-
log.error('ERROR in delete channel',
|
|
16306
|
+
_context19.p = 6;
|
|
16307
|
+
_t20 = _context19.v;
|
|
16308
|
+
log.error('ERROR in delete channel', _t20);
|
|
16163
16309
|
case 7:
|
|
16164
|
-
return
|
|
16310
|
+
return _context19.a(2);
|
|
16165
16311
|
}
|
|
16166
|
-
},
|
|
16312
|
+
}, _marked19, null, [[0, 6]]);
|
|
16167
16313
|
}
|
|
16168
16314
|
function blockChannel(action) {
|
|
16169
|
-
var payload, channelId, channel,
|
|
16170
|
-
return _regenerator().w(function (
|
|
16171
|
-
while (1) switch (
|
|
16315
|
+
var payload, channelId, channel, _t21;
|
|
16316
|
+
return _regenerator().w(function (_context20) {
|
|
16317
|
+
while (1) switch (_context20.p = _context20.n) {
|
|
16172
16318
|
case 0:
|
|
16173
|
-
|
|
16319
|
+
_context20.p = 0;
|
|
16174
16320
|
payload = action.payload;
|
|
16175
16321
|
channelId = payload.channelId;
|
|
16176
|
-
|
|
16322
|
+
_context20.n = 1;
|
|
16177
16323
|
return effects.call(getChannelFromMap, channelId);
|
|
16178
16324
|
case 1:
|
|
16179
|
-
channel =
|
|
16325
|
+
channel = _context20.v;
|
|
16180
16326
|
if (!channel) {
|
|
16181
16327
|
channel = getChannelFromAllChannels(channelId);
|
|
16182
16328
|
}
|
|
16183
16329
|
if (!channel) {
|
|
16184
|
-
|
|
16330
|
+
_context20.n = 4;
|
|
16185
16331
|
break;
|
|
16186
16332
|
}
|
|
16187
|
-
|
|
16333
|
+
_context20.n = 2;
|
|
16188
16334
|
return effects.call(channel.block);
|
|
16189
16335
|
case 2:
|
|
16190
|
-
|
|
16336
|
+
_context20.n = 3;
|
|
16191
16337
|
return effects.put(removeChannelAC(channelId));
|
|
16192
16338
|
case 3:
|
|
16193
|
-
|
|
16339
|
+
_context20.n = 4;
|
|
16194
16340
|
return effects.put(removeChannelCachesAC(channelId));
|
|
16195
16341
|
case 4:
|
|
16196
|
-
|
|
16342
|
+
_context20.n = 6;
|
|
16197
16343
|
break;
|
|
16198
16344
|
case 5:
|
|
16199
|
-
|
|
16200
|
-
|
|
16201
|
-
log.error('ERROR in block channel - ',
|
|
16345
|
+
_context20.p = 5;
|
|
16346
|
+
_t21 = _context20.v;
|
|
16347
|
+
log.error('ERROR in block channel - ', _t21.message);
|
|
16202
16348
|
case 6:
|
|
16203
|
-
return
|
|
16349
|
+
return _context20.a(2);
|
|
16204
16350
|
}
|
|
16205
|
-
},
|
|
16351
|
+
}, _marked20, null, [[0, 5]]);
|
|
16206
16352
|
}
|
|
16207
16353
|
function updateChannel(action) {
|
|
16208
|
-
var payload, channelId, config, _SceytChatClient6, channel, paramsToUpdate, fileToUpload, _yield$call5, subject, avatarUrl, metadata,
|
|
16209
|
-
return _regenerator().w(function (
|
|
16210
|
-
while (1) switch (
|
|
16354
|
+
var payload, channelId, config, _SceytChatClient6, channel, paramsToUpdate, fileToUpload, _yield$call5, subject, avatarUrl, metadata, _t22;
|
|
16355
|
+
return _regenerator().w(function (_context21) {
|
|
16356
|
+
while (1) switch (_context21.p = _context21.n) {
|
|
16211
16357
|
case 0:
|
|
16212
|
-
|
|
16358
|
+
_context21.p = 0;
|
|
16213
16359
|
payload = action.payload;
|
|
16214
16360
|
channelId = payload.channelId, config = payload.config;
|
|
16215
16361
|
_SceytChatClient6 = getClient();
|
|
16216
|
-
|
|
16362
|
+
_context21.n = 1;
|
|
16217
16363
|
return effects.call(getChannelFromMap, channelId);
|
|
16218
16364
|
case 1:
|
|
16219
|
-
channel =
|
|
16365
|
+
channel = _context21.v;
|
|
16220
16366
|
if (!channel) {
|
|
16221
16367
|
channel = getChannelFromAllChannels(channelId);
|
|
16222
16368
|
}
|
|
@@ -16227,7 +16373,7 @@ function updateChannel(action) {
|
|
|
16227
16373
|
avatarUrl: channel.avatarUrl
|
|
16228
16374
|
};
|
|
16229
16375
|
if (!config.avatar) {
|
|
16230
|
-
|
|
16376
|
+
_context21.n = 3;
|
|
16231
16377
|
break;
|
|
16232
16378
|
}
|
|
16233
16379
|
fileToUpload = {
|
|
@@ -16236,10 +16382,10 @@ function updateChannel(action) {
|
|
|
16236
16382
|
log.info('upload percent - ', progressPercent);
|
|
16237
16383
|
}
|
|
16238
16384
|
};
|
|
16239
|
-
|
|
16385
|
+
_context21.n = 2;
|
|
16240
16386
|
return effects.call(_SceytChatClient6.uploadFile, fileToUpload);
|
|
16241
16387
|
case 2:
|
|
16242
|
-
paramsToUpdate.avatarUrl =
|
|
16388
|
+
paramsToUpdate.avatarUrl = _context21.v;
|
|
16243
16389
|
case 3:
|
|
16244
16390
|
if (config.subject) {
|
|
16245
16391
|
paramsToUpdate.subject = config.subject;
|
|
@@ -16250,14 +16396,14 @@ function updateChannel(action) {
|
|
|
16250
16396
|
if (config.avatarUrl === '') {
|
|
16251
16397
|
paramsToUpdate.avatarUrl = '';
|
|
16252
16398
|
}
|
|
16253
|
-
|
|
16399
|
+
_context21.n = 4;
|
|
16254
16400
|
return effects.call(channel.update, paramsToUpdate);
|
|
16255
16401
|
case 4:
|
|
16256
|
-
_yield$call5 =
|
|
16402
|
+
_yield$call5 = _context21.v;
|
|
16257
16403
|
subject = _yield$call5.subject;
|
|
16258
16404
|
avatarUrl = _yield$call5.avatarUrl;
|
|
16259
16405
|
metadata = _yield$call5.metadata;
|
|
16260
|
-
|
|
16406
|
+
_context21.n = 5;
|
|
16261
16407
|
return effects.put(updateChannelDataAC(channelId, {
|
|
16262
16408
|
subject: subject,
|
|
16263
16409
|
avatarUrl: avatarUrl,
|
|
@@ -16269,29 +16415,29 @@ function updateChannel(action) {
|
|
|
16269
16415
|
avatarUrl: avatarUrl,
|
|
16270
16416
|
metadata: isJSON(metadata) ? JSON.parse(metadata) : metadata
|
|
16271
16417
|
});
|
|
16272
|
-
|
|
16418
|
+
_context21.n = 7;
|
|
16273
16419
|
break;
|
|
16274
16420
|
case 6:
|
|
16275
|
-
|
|
16276
|
-
|
|
16277
|
-
log.error('ERROR in update channel',
|
|
16421
|
+
_context21.p = 6;
|
|
16422
|
+
_t22 = _context21.v;
|
|
16423
|
+
log.error('ERROR in update channel', _t22.message);
|
|
16278
16424
|
case 7:
|
|
16279
|
-
return
|
|
16425
|
+
return _context21.a(2);
|
|
16280
16426
|
}
|
|
16281
|
-
},
|
|
16427
|
+
}, _marked21, null, [[0, 6]]);
|
|
16282
16428
|
}
|
|
16283
16429
|
function checkUsersStatus() {
|
|
16284
|
-
var _SceytChatClient7, usersForUpdate, updatedUsers, usersToUpdateMap, update, updateData,
|
|
16285
|
-
return _regenerator().w(function (
|
|
16286
|
-
while (1) switch (
|
|
16430
|
+
var _SceytChatClient7, usersForUpdate, updatedUsers, usersToUpdateMap, update, updateData, _t23;
|
|
16431
|
+
return _regenerator().w(function (_context22) {
|
|
16432
|
+
while (1) switch (_context22.p = _context22.n) {
|
|
16287
16433
|
case 0:
|
|
16288
|
-
|
|
16434
|
+
_context22.p = 0;
|
|
16289
16435
|
_SceytChatClient7 = getClient();
|
|
16290
16436
|
usersForUpdate = Object.keys(usersMap);
|
|
16291
|
-
|
|
16437
|
+
_context22.n = 1;
|
|
16292
16438
|
return effects.call(_SceytChatClient7.getUsers, usersForUpdate);
|
|
16293
16439
|
case 1:
|
|
16294
|
-
updatedUsers =
|
|
16440
|
+
updatedUsers = _context22.v;
|
|
16295
16441
|
usersToUpdateMap = {};
|
|
16296
16442
|
update = false;
|
|
16297
16443
|
updatedUsers.forEach(function (updatedUser) {
|
|
@@ -16303,180 +16449,113 @@ function checkUsersStatus() {
|
|
|
16303
16449
|
}
|
|
16304
16450
|
});
|
|
16305
16451
|
if (!update) {
|
|
16306
|
-
|
|
16452
|
+
_context22.n = 4;
|
|
16307
16453
|
break;
|
|
16308
16454
|
}
|
|
16309
16455
|
updateData = JSON.parse(JSON.stringify(usersToUpdateMap));
|
|
16310
|
-
|
|
16456
|
+
_context22.n = 2;
|
|
16311
16457
|
return effects.put(updateMembersPresenceAC(updateData));
|
|
16312
16458
|
case 2:
|
|
16313
|
-
|
|
16459
|
+
_context22.n = 3;
|
|
16314
16460
|
return effects.put(updateUserStatusOnMapAC(updateData));
|
|
16315
16461
|
case 3:
|
|
16316
|
-
|
|
16462
|
+
_context22.n = 4;
|
|
16317
16463
|
return effects.put(updateUserStatusOnChannelAC(updateData));
|
|
16318
16464
|
case 4:
|
|
16319
|
-
|
|
16465
|
+
_context22.n = 6;
|
|
16320
16466
|
break;
|
|
16321
16467
|
case 5:
|
|
16322
|
-
|
|
16323
|
-
|
|
16324
|
-
log.error('ERROR in check user status : ',
|
|
16468
|
+
_context22.p = 5;
|
|
16469
|
+
_t23 = _context22.v;
|
|
16470
|
+
log.error('ERROR in check user status : ', _t23.message);
|
|
16325
16471
|
case 6:
|
|
16326
|
-
return
|
|
16472
|
+
return _context22.a(2);
|
|
16327
16473
|
}
|
|
16328
|
-
},
|
|
16474
|
+
}, _marked22, null, [[0, 5]]);
|
|
16329
16475
|
}
|
|
16330
16476
|
function sendTyping(action) {
|
|
16331
|
-
var state, activeChannelId, channel,
|
|
16332
|
-
return _regenerator().w(function (
|
|
16333
|
-
while (1) switch (
|
|
16477
|
+
var state, activeChannelId, channel, _t24;
|
|
16478
|
+
return _regenerator().w(function (_context23) {
|
|
16479
|
+
while (1) switch (_context23.p = _context23.n) {
|
|
16334
16480
|
case 0:
|
|
16335
16481
|
state = action.payload.state;
|
|
16336
|
-
|
|
16482
|
+
_context23.n = 1;
|
|
16337
16483
|
return effects.call(getActiveChannelId);
|
|
16338
16484
|
case 1:
|
|
16339
|
-
activeChannelId =
|
|
16340
|
-
|
|
16485
|
+
activeChannelId = _context23.v;
|
|
16486
|
+
_context23.n = 2;
|
|
16341
16487
|
return effects.call(getChannelFromMap, activeChannelId);
|
|
16342
16488
|
case 2:
|
|
16343
|
-
channel =
|
|
16344
|
-
|
|
16489
|
+
channel = _context23.v;
|
|
16490
|
+
_context23.p = 3;
|
|
16345
16491
|
if (!channel) {
|
|
16346
|
-
|
|
16492
|
+
_context23.n = 6;
|
|
16347
16493
|
break;
|
|
16348
16494
|
}
|
|
16349
16495
|
if (!state) {
|
|
16350
|
-
|
|
16496
|
+
_context23.n = 5;
|
|
16351
16497
|
break;
|
|
16352
16498
|
}
|
|
16353
|
-
|
|
16499
|
+
_context23.n = 4;
|
|
16354
16500
|
return effects.call(channel.startTyping);
|
|
16355
16501
|
case 4:
|
|
16356
|
-
|
|
16502
|
+
_context23.n = 6;
|
|
16357
16503
|
break;
|
|
16358
16504
|
case 5:
|
|
16359
|
-
|
|
16505
|
+
_context23.n = 6;
|
|
16360
16506
|
return effects.call(channel.stopTyping);
|
|
16361
16507
|
case 6:
|
|
16362
|
-
|
|
16508
|
+
_context23.n = 8;
|
|
16363
16509
|
break;
|
|
16364
16510
|
case 7:
|
|
16365
|
-
|
|
16366
|
-
_t23 = _context22.v;
|
|
16367
|
-
log.error('ERROR in send typing', _t23);
|
|
16368
|
-
case 8:
|
|
16369
|
-
return _context22.a(2);
|
|
16370
|
-
}
|
|
16371
|
-
}, _marked22, null, [[3, 7]]);
|
|
16372
|
-
}
|
|
16373
|
-
function sendRecording(action) {
|
|
16374
|
-
var _action$payload, state, channelId, channel, _t24;
|
|
16375
|
-
return _regenerator().w(function (_context23) {
|
|
16376
|
-
while (1) switch (_context23.p = _context23.n) {
|
|
16377
|
-
case 0:
|
|
16378
|
-
_action$payload = action.payload, state = _action$payload.state, channelId = _action$payload.channelId;
|
|
16379
|
-
_context23.n = 1;
|
|
16380
|
-
return effects.call(getChannelFromMap, channelId);
|
|
16381
|
-
case 1:
|
|
16382
|
-
channel = _context23.v;
|
|
16383
|
-
_context23.p = 2;
|
|
16384
|
-
if (!channel) {
|
|
16385
|
-
_context23.n = 5;
|
|
16386
|
-
break;
|
|
16387
|
-
}
|
|
16388
|
-
if (!state) {
|
|
16389
|
-
_context23.n = 4;
|
|
16390
|
-
break;
|
|
16391
|
-
}
|
|
16392
|
-
_context23.n = 3;
|
|
16393
|
-
return effects.call(channel.startRecording);
|
|
16394
|
-
case 3:
|
|
16395
|
-
_context23.n = 5;
|
|
16396
|
-
break;
|
|
16397
|
-
case 4:
|
|
16398
|
-
_context23.n = 5;
|
|
16399
|
-
return effects.call(channel.stopRecording);
|
|
16400
|
-
case 5:
|
|
16401
|
-
_context23.n = 7;
|
|
16402
|
-
break;
|
|
16403
|
-
case 6:
|
|
16404
|
-
_context23.p = 6;
|
|
16511
|
+
_context23.p = 7;
|
|
16405
16512
|
_t24 = _context23.v;
|
|
16406
|
-
log.error('ERROR in send
|
|
16407
|
-
case
|
|
16513
|
+
log.error('ERROR in send typing', _t24);
|
|
16514
|
+
case 8:
|
|
16408
16515
|
return _context23.a(2);
|
|
16409
16516
|
}
|
|
16410
|
-
}, _marked23, null, [[
|
|
16517
|
+
}, _marked23, null, [[3, 7]]);
|
|
16411
16518
|
}
|
|
16412
|
-
function
|
|
16413
|
-
var payload, channelId, channel,
|
|
16519
|
+
function sendRecording(action) {
|
|
16520
|
+
var _action$payload, state, channelId, channel, _t25;
|
|
16414
16521
|
return _regenerator().w(function (_context24) {
|
|
16415
16522
|
while (1) switch (_context24.p = _context24.n) {
|
|
16416
16523
|
case 0:
|
|
16417
|
-
|
|
16418
|
-
payload = action.payload;
|
|
16419
|
-
channelId = payload.channelId;
|
|
16524
|
+
_action$payload = action.payload, state = _action$payload.state, channelId = _action$payload.channelId;
|
|
16420
16525
|
_context24.n = 1;
|
|
16421
16526
|
return effects.call(getChannelFromMap, channelId);
|
|
16422
16527
|
case 1:
|
|
16423
16528
|
channel = _context24.v;
|
|
16529
|
+
_context24.p = 2;
|
|
16424
16530
|
if (!channel) {
|
|
16425
|
-
|
|
16531
|
+
_context24.n = 5;
|
|
16532
|
+
break;
|
|
16426
16533
|
}
|
|
16427
|
-
|
|
16428
|
-
|
|
16429
|
-
case 2:
|
|
16430
|
-
activeChannelId = _context24.v;
|
|
16431
|
-
if (!channel) {
|
|
16432
|
-
_context24.n = 7;
|
|
16534
|
+
if (!state) {
|
|
16535
|
+
_context24.n = 4;
|
|
16433
16536
|
break;
|
|
16434
16537
|
}
|
|
16435
16538
|
_context24.n = 3;
|
|
16436
|
-
return effects.call(channel.
|
|
16539
|
+
return effects.call(channel.startRecording);
|
|
16437
16540
|
case 3:
|
|
16438
|
-
_context24.n =
|
|
16439
|
-
|
|
16541
|
+
_context24.n = 5;
|
|
16542
|
+
break;
|
|
16440
16543
|
case 4:
|
|
16441
|
-
removeMessagesFromMap(channelId);
|
|
16442
|
-
if (channelId === activeChannelId) {
|
|
16443
|
-
removeAllMessages();
|
|
16444
|
-
}
|
|
16445
16544
|
_context24.n = 5;
|
|
16446
|
-
return effects.
|
|
16545
|
+
return effects.call(channel.stopRecording);
|
|
16447
16546
|
case 5:
|
|
16448
|
-
_context24.n = 6;
|
|
16449
|
-
return effects.put(updateChannelDataAC(channel.id, {
|
|
16450
|
-
lastMessage: null,
|
|
16451
|
-
newMessageCount: 0,
|
|
16452
|
-
newMentionCount: 0
|
|
16453
|
-
}));
|
|
16454
|
-
case 6:
|
|
16455
|
-
updateChannelOnAllChannels(channel.id, {
|
|
16456
|
-
lastMessage: null,
|
|
16457
|
-
newMessageCount: 0,
|
|
16458
|
-
newMentionCount: 0
|
|
16459
|
-
});
|
|
16460
|
-
groupName = getChannelGroupName(channel);
|
|
16461
16547
|
_context24.n = 7;
|
|
16462
|
-
return effects.put(updateSearchedChannelDataAC(channel.id, {
|
|
16463
|
-
lastMessage: null,
|
|
16464
|
-
newMessageCount: 0,
|
|
16465
|
-
newMentionCount: 0
|
|
16466
|
-
}, groupName));
|
|
16467
|
-
case 7:
|
|
16468
|
-
_context24.n = 9;
|
|
16469
16548
|
break;
|
|
16470
|
-
case
|
|
16471
|
-
_context24.p =
|
|
16549
|
+
case 6:
|
|
16550
|
+
_context24.p = 6;
|
|
16472
16551
|
_t25 = _context24.v;
|
|
16473
|
-
log.error('ERROR in
|
|
16474
|
-
case
|
|
16552
|
+
log.error('ERROR in send recording', _t25);
|
|
16553
|
+
case 7:
|
|
16475
16554
|
return _context24.a(2);
|
|
16476
16555
|
}
|
|
16477
|
-
}, _marked24, null, [[
|
|
16556
|
+
}, _marked24, null, [[2, 6]]);
|
|
16478
16557
|
}
|
|
16479
|
-
function
|
|
16558
|
+
function clearHistory(action) {
|
|
16480
16559
|
var payload, channelId, channel, activeChannelId, groupName, _t26;
|
|
16481
16560
|
return _regenerator().w(function (_context25) {
|
|
16482
16561
|
while (1) switch (_context25.p = _context25.n) {
|
|
@@ -16496,26 +16575,93 @@ function deleteAllMessages(action) {
|
|
|
16496
16575
|
case 2:
|
|
16497
16576
|
activeChannelId = _context25.v;
|
|
16498
16577
|
if (!channel) {
|
|
16499
|
-
_context25.n =
|
|
16578
|
+
_context25.n = 7;
|
|
16500
16579
|
break;
|
|
16501
16580
|
}
|
|
16502
16581
|
_context25.n = 3;
|
|
16582
|
+
return effects.call(channel.deleteAllMessages);
|
|
16583
|
+
case 3:
|
|
16584
|
+
_context25.n = 4;
|
|
16585
|
+
return effects.put(clearMessagesAC());
|
|
16586
|
+
case 4:
|
|
16587
|
+
removeMessagesFromMap(channelId);
|
|
16588
|
+
if (channelId === activeChannelId) {
|
|
16589
|
+
removeAllMessages();
|
|
16590
|
+
}
|
|
16591
|
+
_context25.n = 5;
|
|
16592
|
+
return effects.put(clearSelectedMessagesAC());
|
|
16593
|
+
case 5:
|
|
16594
|
+
_context25.n = 6;
|
|
16595
|
+
return effects.put(updateChannelDataAC(channel.id, {
|
|
16596
|
+
lastMessage: null,
|
|
16597
|
+
newMessageCount: 0,
|
|
16598
|
+
newMentionCount: 0
|
|
16599
|
+
}));
|
|
16600
|
+
case 6:
|
|
16601
|
+
updateChannelOnAllChannels(channel.id, {
|
|
16602
|
+
lastMessage: null,
|
|
16603
|
+
newMessageCount: 0,
|
|
16604
|
+
newMentionCount: 0
|
|
16605
|
+
});
|
|
16606
|
+
groupName = getChannelGroupName(channel);
|
|
16607
|
+
_context25.n = 7;
|
|
16608
|
+
return effects.put(updateSearchedChannelDataAC(channel.id, {
|
|
16609
|
+
lastMessage: null,
|
|
16610
|
+
newMessageCount: 0,
|
|
16611
|
+
newMentionCount: 0
|
|
16612
|
+
}, groupName));
|
|
16613
|
+
case 7:
|
|
16614
|
+
_context25.n = 9;
|
|
16615
|
+
break;
|
|
16616
|
+
case 8:
|
|
16617
|
+
_context25.p = 8;
|
|
16618
|
+
_t26 = _context25.v;
|
|
16619
|
+
log.error('ERROR in clear history', _t26);
|
|
16620
|
+
case 9:
|
|
16621
|
+
return _context25.a(2);
|
|
16622
|
+
}
|
|
16623
|
+
}, _marked25, null, [[0, 8]]);
|
|
16624
|
+
}
|
|
16625
|
+
function deleteAllMessages(action) {
|
|
16626
|
+
var payload, channelId, channel, activeChannelId, groupName, _t27;
|
|
16627
|
+
return _regenerator().w(function (_context26) {
|
|
16628
|
+
while (1) switch (_context26.p = _context26.n) {
|
|
16629
|
+
case 0:
|
|
16630
|
+
_context26.p = 0;
|
|
16631
|
+
payload = action.payload;
|
|
16632
|
+
channelId = payload.channelId;
|
|
16633
|
+
_context26.n = 1;
|
|
16634
|
+
return effects.call(getChannelFromMap, channelId);
|
|
16635
|
+
case 1:
|
|
16636
|
+
channel = _context26.v;
|
|
16637
|
+
if (!channel) {
|
|
16638
|
+
channel = getChannelFromAllChannels(channelId);
|
|
16639
|
+
}
|
|
16640
|
+
_context26.n = 2;
|
|
16641
|
+
return effects.call(getActiveChannelId);
|
|
16642
|
+
case 2:
|
|
16643
|
+
activeChannelId = _context26.v;
|
|
16644
|
+
if (!channel) {
|
|
16645
|
+
_context26.n = 8;
|
|
16646
|
+
break;
|
|
16647
|
+
}
|
|
16648
|
+
_context26.n = 3;
|
|
16503
16649
|
return effects.call(channel.deleteAllMessages, true);
|
|
16504
16650
|
case 3:
|
|
16505
16651
|
removeMessagesFromMap(channelId);
|
|
16506
16652
|
if (!(channelId === activeChannelId)) {
|
|
16507
|
-
|
|
16653
|
+
_context26.n = 5;
|
|
16508
16654
|
break;
|
|
16509
16655
|
}
|
|
16510
|
-
|
|
16656
|
+
_context26.n = 4;
|
|
16511
16657
|
return effects.put(clearMessagesAC());
|
|
16512
16658
|
case 4:
|
|
16513
16659
|
removeAllMessages();
|
|
16514
16660
|
case 5:
|
|
16515
|
-
|
|
16661
|
+
_context26.n = 6;
|
|
16516
16662
|
return effects.put(clearSelectedMessagesAC());
|
|
16517
16663
|
case 6:
|
|
16518
|
-
|
|
16664
|
+
_context26.n = 7;
|
|
16519
16665
|
return effects.put(updateChannelDataAC(channel.id, {
|
|
16520
16666
|
lastMessage: null,
|
|
16521
16667
|
newMessageCount: 0,
|
|
@@ -16528,182 +16674,185 @@ function deleteAllMessages(action) {
|
|
|
16528
16674
|
newMentionCount: 0
|
|
16529
16675
|
});
|
|
16530
16676
|
groupName = getChannelGroupName(channel);
|
|
16531
|
-
|
|
16677
|
+
_context26.n = 8;
|
|
16532
16678
|
return effects.put(updateSearchedChannelDataAC(channel.id, {
|
|
16533
16679
|
lastMessage: null,
|
|
16534
16680
|
newMessageCount: 0,
|
|
16535
16681
|
newMentionCount: 0
|
|
16536
16682
|
}, groupName));
|
|
16537
16683
|
case 8:
|
|
16538
|
-
|
|
16684
|
+
_context26.n = 10;
|
|
16539
16685
|
break;
|
|
16540
16686
|
case 9:
|
|
16541
|
-
|
|
16542
|
-
|
|
16543
|
-
log.error('ERROR in clear history',
|
|
16687
|
+
_context26.p = 9;
|
|
16688
|
+
_t27 = _context26.v;
|
|
16689
|
+
log.error('ERROR in clear history', _t27);
|
|
16544
16690
|
case 10:
|
|
16545
|
-
return
|
|
16691
|
+
return _context26.a(2);
|
|
16546
16692
|
}
|
|
16547
|
-
},
|
|
16693
|
+
}, _marked26, null, [[0, 9]]);
|
|
16548
16694
|
}
|
|
16549
16695
|
function joinChannel(action) {
|
|
16550
|
-
var payload, channelId, _SceytChatClient8, channel, joinedChannel,
|
|
16551
|
-
return _regenerator().w(function (
|
|
16552
|
-
while (1) switch (
|
|
16696
|
+
var payload, channelId, _SceytChatClient8, channel, joinedChannel, _t28;
|
|
16697
|
+
return _regenerator().w(function (_context27) {
|
|
16698
|
+
while (1) switch (_context27.p = _context27.n) {
|
|
16553
16699
|
case 0:
|
|
16554
|
-
|
|
16700
|
+
_context27.p = 0;
|
|
16555
16701
|
payload = action.payload;
|
|
16556
16702
|
channelId = payload.channelId;
|
|
16557
16703
|
_SceytChatClient8 = getClient();
|
|
16558
|
-
|
|
16704
|
+
_context27.n = 1;
|
|
16559
16705
|
return effects.call(getChannelFromMap, channelId);
|
|
16560
16706
|
case 1:
|
|
16561
|
-
channel =
|
|
16707
|
+
channel = _context27.v;
|
|
16562
16708
|
if (!channel) {
|
|
16563
16709
|
channel = getChannelFromAllChannels(channelId);
|
|
16564
16710
|
}
|
|
16565
16711
|
if (channel) {
|
|
16566
|
-
|
|
16712
|
+
_context27.n = 3;
|
|
16567
16713
|
break;
|
|
16568
16714
|
}
|
|
16569
|
-
|
|
16715
|
+
_context27.n = 2;
|
|
16570
16716
|
return effects.call(_SceytChatClient8.getChannel, channelId);
|
|
16571
16717
|
case 2:
|
|
16572
|
-
channel =
|
|
16718
|
+
channel = _context27.v;
|
|
16573
16719
|
case 3:
|
|
16574
|
-
|
|
16720
|
+
_context27.n = 4;
|
|
16575
16721
|
return effects.call(channel.join);
|
|
16576
16722
|
case 4:
|
|
16577
|
-
joinedChannel =
|
|
16578
|
-
|
|
16723
|
+
joinedChannel = _context27.v;
|
|
16724
|
+
_context27.n = 5;
|
|
16579
16725
|
return effects.put(setCloseSearchChannelsAC(true));
|
|
16580
16726
|
case 5:
|
|
16581
|
-
|
|
16727
|
+
_context27.n = 6;
|
|
16582
16728
|
return effects.put(setChannelToAddAC(JSON.parse(JSON.stringify(joinedChannel))));
|
|
16583
16729
|
case 6:
|
|
16584
|
-
|
|
16730
|
+
_context27.n = 7;
|
|
16585
16731
|
return effects.put(switchChannelActionAC(JSON.parse(JSON.stringify(joinedChannel))));
|
|
16586
16732
|
case 7:
|
|
16587
16733
|
addChannelToAllChannels(joinedChannel);
|
|
16588
|
-
|
|
16734
|
+
_context27.n = 8;
|
|
16589
16735
|
return effects.call(setActiveChannelId, joinedChannel.id);
|
|
16590
16736
|
case 8:
|
|
16591
|
-
|
|
16737
|
+
_context27.n = 10;
|
|
16592
16738
|
break;
|
|
16593
16739
|
case 9:
|
|
16594
|
-
|
|
16595
|
-
|
|
16596
|
-
log.error(
|
|
16740
|
+
_context27.p = 9;
|
|
16741
|
+
_t28 = _context27.v;
|
|
16742
|
+
log.error(_t28, 'Error in join to channel');
|
|
16597
16743
|
case 10:
|
|
16598
|
-
return
|
|
16744
|
+
return _context27.a(2);
|
|
16599
16745
|
}
|
|
16600
|
-
},
|
|
16746
|
+
}, _marked27, null, [[0, 9]]);
|
|
16601
16747
|
}
|
|
16602
16748
|
function watchForChannelEvents() {
|
|
16603
|
-
return _regenerator().w(function (
|
|
16604
|
-
while (1) switch (
|
|
16749
|
+
return _regenerator().w(function (_context28) {
|
|
16750
|
+
while (1) switch (_context28.n) {
|
|
16605
16751
|
case 0:
|
|
16606
|
-
|
|
16752
|
+
_context28.n = 1;
|
|
16607
16753
|
return effects.call(watchForEvents);
|
|
16608
16754
|
case 1:
|
|
16609
|
-
return
|
|
16755
|
+
return _context28.a(2);
|
|
16610
16756
|
}
|
|
16611
|
-
},
|
|
16757
|
+
}, _marked28);
|
|
16612
16758
|
}
|
|
16613
16759
|
function ChannelsSaga() {
|
|
16614
|
-
return _regenerator().w(function (
|
|
16615
|
-
while (1) switch (
|
|
16760
|
+
return _regenerator().w(function (_context29) {
|
|
16761
|
+
while (1) switch (_context29.n) {
|
|
16616
16762
|
case 0:
|
|
16617
|
-
|
|
16763
|
+
_context29.n = 1;
|
|
16618
16764
|
return effects.takeLatest(CREATE_CHANNEL, createChannel);
|
|
16619
16765
|
case 1:
|
|
16620
|
-
|
|
16766
|
+
_context29.n = 2;
|
|
16621
16767
|
return effects.takeLatest(GET_CHANNELS, getChannels);
|
|
16622
16768
|
case 2:
|
|
16623
|
-
|
|
16769
|
+
_context29.n = 3;
|
|
16624
16770
|
return effects.takeLatest(SEARCH_CHANNELS, searchChannels);
|
|
16625
16771
|
case 3:
|
|
16626
|
-
|
|
16772
|
+
_context29.n = 4;
|
|
16627
16773
|
return effects.takeLatest(GET_CHANNELS_FOR_FORWARD, getChannelsForForward);
|
|
16628
16774
|
case 4:
|
|
16629
|
-
|
|
16775
|
+
_context29.n = 5;
|
|
16630
16776
|
return effects.takeLatest(SEARCH_CHANNELS_FOR_FORWARD, searchChannelsForForward);
|
|
16631
16777
|
case 5:
|
|
16632
|
-
|
|
16778
|
+
_context29.n = 6;
|
|
16633
16779
|
return effects.takeLatest(LOAD_MORE_CHANNEL, channelsLoadMore);
|
|
16634
16780
|
case 6:
|
|
16635
|
-
|
|
16781
|
+
_context29.n = 7;
|
|
16636
16782
|
return effects.takeLatest(LOAD_MORE_CHANNELS_FOR_FORWARD, channelsForForwardLoadMore);
|
|
16637
16783
|
case 7:
|
|
16638
|
-
|
|
16784
|
+
_context29.n = 8;
|
|
16639
16785
|
return effects.takeEvery(SWITCH_CHANNEL, switchChannel);
|
|
16640
16786
|
case 8:
|
|
16641
|
-
|
|
16787
|
+
_context29.n = 9;
|
|
16642
16788
|
return effects.takeLatest(LEAVE_CHANNEL, leaveChannel);
|
|
16643
16789
|
case 9:
|
|
16644
|
-
|
|
16790
|
+
_context29.n = 10;
|
|
16645
16791
|
return effects.takeLatest(DELETE_CHANNEL, deleteChannel);
|
|
16646
16792
|
case 10:
|
|
16647
|
-
|
|
16793
|
+
_context29.n = 11;
|
|
16648
16794
|
return effects.takeLatest(BLOCK_CHANNEL, blockChannel);
|
|
16649
16795
|
case 11:
|
|
16650
|
-
|
|
16796
|
+
_context29.n = 12;
|
|
16651
16797
|
return effects.takeLatest(UPDATE_CHANNEL, updateChannel);
|
|
16652
16798
|
case 12:
|
|
16653
|
-
|
|
16799
|
+
_context29.n = 13;
|
|
16654
16800
|
return effects.takeEvery(MARK_MESSAGES_AS_READ, markMessagesRead);
|
|
16655
16801
|
case 13:
|
|
16656
|
-
|
|
16802
|
+
_context29.n = 14;
|
|
16657
16803
|
return effects.takeLatest(MARK_MESSAGES_AS_DELIVERED, markMessagesDelivered);
|
|
16658
16804
|
case 14:
|
|
16659
|
-
|
|
16660
|
-
return effects.takeLatest(
|
|
16805
|
+
_context29.n = 15;
|
|
16806
|
+
return effects.takeLatest(MARK_VOICE_MESSAGE_AS_PLAYED, markVoiceMessageAsPlayed);
|
|
16661
16807
|
case 15:
|
|
16662
|
-
|
|
16663
|
-
return effects.takeLatest(
|
|
16808
|
+
_context29.n = 16;
|
|
16809
|
+
return effects.takeLatest(WATCH_FOR_EVENTS, watchForChannelEvents);
|
|
16664
16810
|
case 16:
|
|
16665
|
-
|
|
16666
|
-
return effects.takeLatest(
|
|
16811
|
+
_context29.n = 17;
|
|
16812
|
+
return effects.takeLatest(TURN_OFF_NOTIFICATION, notificationsTurnOff);
|
|
16667
16813
|
case 17:
|
|
16668
|
-
|
|
16669
|
-
return effects.takeLatest(
|
|
16814
|
+
_context29.n = 18;
|
|
16815
|
+
return effects.takeLatest(TURN_ON_NOTIFICATION, notificationsTurnOn);
|
|
16670
16816
|
case 18:
|
|
16671
|
-
|
|
16672
|
-
return effects.takeLatest(
|
|
16817
|
+
_context29.n = 19;
|
|
16818
|
+
return effects.takeLatest(MARK_CHANNEL_AS_READ, markChannelAsRead);
|
|
16673
16819
|
case 19:
|
|
16674
|
-
|
|
16675
|
-
return effects.takeLatest(
|
|
16820
|
+
_context29.n = 20;
|
|
16821
|
+
return effects.takeLatest(MARK_CHANNEL_AS_UNREAD, markChannelAsUnRead);
|
|
16676
16822
|
case 20:
|
|
16677
|
-
|
|
16678
|
-
return effects.takeLatest(
|
|
16823
|
+
_context29.n = 21;
|
|
16824
|
+
return effects.takeLatest(CHECK_USER_STATUS, checkUsersStatus);
|
|
16679
16825
|
case 21:
|
|
16680
|
-
|
|
16681
|
-
return effects.takeLatest(
|
|
16826
|
+
_context29.n = 22;
|
|
16827
|
+
return effects.takeLatest(SEND_TYPING, sendTyping);
|
|
16682
16828
|
case 22:
|
|
16683
|
-
|
|
16684
|
-
return effects.takeLatest(
|
|
16829
|
+
_context29.n = 23;
|
|
16830
|
+
return effects.takeLatest(SEND_RECORDING, sendRecording);
|
|
16685
16831
|
case 23:
|
|
16686
|
-
|
|
16687
|
-
return effects.takeLatest(
|
|
16832
|
+
_context29.n = 24;
|
|
16833
|
+
return effects.takeLatest(PIN_CHANNEL, pinChannel);
|
|
16688
16834
|
case 24:
|
|
16689
|
-
|
|
16690
|
-
return effects.takeLatest(
|
|
16835
|
+
_context29.n = 25;
|
|
16836
|
+
return effects.takeLatest(UNPIN_CHANNEL, unpinChannel);
|
|
16691
16837
|
case 25:
|
|
16692
|
-
|
|
16693
|
-
return effects.takeLatest(
|
|
16838
|
+
_context29.n = 26;
|
|
16839
|
+
return effects.takeLatest(CLEAR_HISTORY, clearHistory);
|
|
16694
16840
|
case 26:
|
|
16695
|
-
|
|
16696
|
-
return effects.takeLatest(
|
|
16841
|
+
_context29.n = 27;
|
|
16842
|
+
return effects.takeLatest(JOIN_TO_CHANNEL, joinChannel);
|
|
16697
16843
|
case 27:
|
|
16698
|
-
|
|
16699
|
-
return effects.takeLatest(
|
|
16844
|
+
_context29.n = 28;
|
|
16845
|
+
return effects.takeLatest(DELETE_ALL_MESSAGES, deleteAllMessages);
|
|
16700
16846
|
case 28:
|
|
16701
|
-
|
|
16702
|
-
return effects.takeLatest(
|
|
16847
|
+
_context29.n = 29;
|
|
16848
|
+
return effects.takeLatest(REMOVE_CHANNEL_CACHES, removeChannelCaches);
|
|
16703
16849
|
case 29:
|
|
16704
|
-
|
|
16850
|
+
_context29.n = 30;
|
|
16851
|
+
return effects.takeLatest(GET_CHANNEL_MENTIONS, getChannelMentions);
|
|
16852
|
+
case 30:
|
|
16853
|
+
return _context29.a(2);
|
|
16705
16854
|
}
|
|
16706
|
-
},
|
|
16855
|
+
}, _marked29);
|
|
16707
16856
|
}
|
|
16708
16857
|
|
|
16709
16858
|
function rgbaToThumbHash(w, h, rgba) {
|
|
@@ -17126,6 +17275,12 @@ var selectedMessagesMapSelector = function selectedMessagesMapSelector(store) {
|
|
|
17126
17275
|
var attachmentUpdatedMapSelector = function attachmentUpdatedMapSelector(store) {
|
|
17127
17276
|
return store.MessageReducer.attachmentUpdatedMap;
|
|
17128
17277
|
};
|
|
17278
|
+
var messageMarkersSelector = function messageMarkersSelector(store) {
|
|
17279
|
+
return store.MessageReducer.messageMarkers;
|
|
17280
|
+
};
|
|
17281
|
+
var messagesMarkersLoadingStateSelector = function messagesMarkersLoadingStateSelector(store) {
|
|
17282
|
+
return store.MessageReducer.messagesMarkersLoadingState;
|
|
17283
|
+
};
|
|
17129
17284
|
|
|
17130
17285
|
var getFrame = function getFrame(videoSrc, time) {
|
|
17131
17286
|
try {
|
|
@@ -17196,7 +17351,8 @@ var _marked$3 = /*#__PURE__*/_regenerator().m(sendMessage),
|
|
|
17196
17351
|
_marked13$1 = /*#__PURE__*/_regenerator().m(loadMoreMessageAttachments),
|
|
17197
17352
|
_marked14$1 = /*#__PURE__*/_regenerator().m(pauseAttachmentUploading),
|
|
17198
17353
|
_marked15$1 = /*#__PURE__*/_regenerator().m(resumeAttachmentUploading),
|
|
17199
|
-
_marked16$1 = /*#__PURE__*/_regenerator().m(
|
|
17354
|
+
_marked16$1 = /*#__PURE__*/_regenerator().m(getMessageMarkers),
|
|
17355
|
+
_marked17$1 = /*#__PURE__*/_regenerator().m(MessageSaga);
|
|
17200
17356
|
var handleUploadAttachments = function handleUploadAttachments(attachments, message, channel) {
|
|
17201
17357
|
try {
|
|
17202
17358
|
return Promise.resolve(Promise.all(attachments.map(function (attachment) {
|
|
@@ -17210,7 +17366,7 @@ var handleUploadAttachments = function handleUploadAttachments(attachments, mess
|
|
|
17210
17366
|
}, thumbnailMetas.duration ? {
|
|
17211
17367
|
dur: thumbnailMetas.duration
|
|
17212
17368
|
} : {})));
|
|
17213
|
-
var attachmentBuilder = channel.
|
|
17369
|
+
var attachmentBuilder = channel.createdAttachmentBuilder(uri, attachment.type);
|
|
17214
17370
|
var attachmentToSend = attachmentBuilder.setName(attachment.name).setMetadata(attachmentMeta).setFileSize(fileSize || attachment.size).setUpload(false).create();
|
|
17215
17371
|
return attachmentToSend;
|
|
17216
17372
|
}
|
|
@@ -17370,7 +17526,7 @@ function sendMessage(action) {
|
|
|
17370
17526
|
if (attachment.cachedUrl) {
|
|
17371
17527
|
uri = attachment.cachedUrl;
|
|
17372
17528
|
}
|
|
17373
|
-
attachmentBuilder = channel.
|
|
17529
|
+
attachmentBuilder = channel.createdAttachmentBuilder(uri || attachment.data, attachment.type);
|
|
17374
17530
|
messageAttachment = attachmentBuilder.setName(attachment.name).setMetadata(attachment.metadata).setUpload(customUploader ? false : attachment.upload).setFileSize(attachment.size).create();
|
|
17375
17531
|
if (!customUploader) {
|
|
17376
17532
|
handleUpdateUploadProgress = function handleUpdateUploadProgress(percent) {
|
|
@@ -17518,7 +17674,7 @@ function sendMessage(action) {
|
|
|
17518
17674
|
case 3:
|
|
17519
17675
|
linkAttachmentToSend = null;
|
|
17520
17676
|
if (_i === 0 && linkAttachment) {
|
|
17521
|
-
linkAttachmentBuilder = channel.
|
|
17677
|
+
linkAttachmentBuilder = channel.createdAttachmentBuilder(linkAttachment.data, linkAttachment.type);
|
|
17522
17678
|
linkAttachmentToSend = linkAttachmentBuilder.setName(linkAttachment.name).setUpload(linkAttachment.upload).create();
|
|
17523
17679
|
}
|
|
17524
17680
|
if (linkAttachmentToSend) {
|
|
@@ -17726,7 +17882,7 @@ function sendTextMessage(action) {
|
|
|
17726
17882
|
}) : [];
|
|
17727
17883
|
attachments = message.attachments;
|
|
17728
17884
|
if (message.attachments && message.attachments.length) {
|
|
17729
|
-
attachmentBuilder = channel.
|
|
17885
|
+
attachmentBuilder = channel.createdAttachmentBuilder(attachments[0].data, attachments[0].type);
|
|
17730
17886
|
att = attachmentBuilder.setName('').setUpload(attachments[0].upload).create();
|
|
17731
17887
|
attachments = [att];
|
|
17732
17888
|
}
|
|
@@ -17908,7 +18064,7 @@ function forwardMessage(action) {
|
|
|
17908
18064
|
break;
|
|
17909
18065
|
}
|
|
17910
18066
|
if (message.attachments && message.attachments.length) {
|
|
17911
|
-
attachmentBuilder = channel.
|
|
18067
|
+
attachmentBuilder = channel.createdAttachmentBuilder(attachments[0].url, attachments[0].type);
|
|
17912
18068
|
att = attachmentBuilder.setName(attachments[0].name).setMetadata(attachments[0].metadata).setFileSize(attachments[0].size).setUpload(false).create();
|
|
17913
18069
|
attachments = [att];
|
|
17914
18070
|
}
|
|
@@ -18194,7 +18350,7 @@ function resendMessage(action) {
|
|
|
18194
18350
|
} : {})));
|
|
18195
18351
|
}
|
|
18196
18352
|
log.info('attachmentMeta ... ', attachmentMeta);
|
|
18197
|
-
attachmentBuilder = channel.
|
|
18353
|
+
attachmentBuilder = channel.createdAttachmentBuilder(uri, messageAttachment.type);
|
|
18198
18354
|
attachmentToSend = attachmentBuilder.setName(messageAttachment.name).setMetadata(attachmentMeta).setFileSize(fileSize).setUpload(false).create();
|
|
18199
18355
|
log.info('attachmentToSend ... ', attachmentToSend);
|
|
18200
18356
|
attachmentToSend.tid = messageAttachment.tid;
|
|
@@ -18453,7 +18609,7 @@ function editMessage(action) {
|
|
|
18453
18609
|
});
|
|
18454
18610
|
linkAttachmentsToSend = [];
|
|
18455
18611
|
linkAttachments.forEach(function (linkAttachment) {
|
|
18456
|
-
var linkAttachmentBuilder = channel.
|
|
18612
|
+
var linkAttachmentBuilder = channel.createdAttachmentBuilder(linkAttachment.data, linkAttachment.type);
|
|
18457
18613
|
var linkAttachmentToSend = linkAttachmentBuilder.setName(linkAttachment.name).setUpload(linkAttachment.upload).create();
|
|
18458
18614
|
linkAttachmentsToSend.push(linkAttachmentToSend);
|
|
18459
18615
|
});
|
|
@@ -19407,64 +19563,111 @@ function resumeAttachmentUploading(action) {
|
|
|
19407
19563
|
}
|
|
19408
19564
|
}, _marked15$1, null, [[0, 2]]);
|
|
19409
19565
|
}
|
|
19410
|
-
function
|
|
19566
|
+
function getMessageMarkers(action) {
|
|
19567
|
+
var _action$payload4, messageId, channelId, deliveryStatus, sceytChatClient, messageMarkerListQueryBuilder, messageMarkerListQuery, messageMarkers, _t18;
|
|
19411
19568
|
return _regenerator().w(function (_context18) {
|
|
19412
|
-
while (1) switch (_context18.n) {
|
|
19569
|
+
while (1) switch (_context18.p = _context18.n) {
|
|
19413
19570
|
case 0:
|
|
19571
|
+
_context18.p = 0;
|
|
19414
19572
|
_context18.n = 1;
|
|
19415
|
-
return effects.
|
|
19573
|
+
return effects.put(setMessagesMarkersLoadingStateAC(LOADING_STATE.LOADING));
|
|
19416
19574
|
case 1:
|
|
19575
|
+
_action$payload4 = action.payload, messageId = _action$payload4.messageId, channelId = _action$payload4.channelId, deliveryStatus = _action$payload4.deliveryStatus;
|
|
19576
|
+
sceytChatClient = getClient();
|
|
19577
|
+
if (!sceytChatClient) {
|
|
19578
|
+
_context18.n = 4;
|
|
19579
|
+
break;
|
|
19580
|
+
}
|
|
19581
|
+
messageMarkerListQueryBuilder = new sceytChatClient.MessageMarkerListQueryBuilder(channelId, String(messageId), deliveryStatus);
|
|
19417
19582
|
_context18.n = 2;
|
|
19418
|
-
return effects.
|
|
19583
|
+
return effects.call(messageMarkerListQueryBuilder.build);
|
|
19419
19584
|
case 2:
|
|
19585
|
+
messageMarkerListQuery = _context18.v;
|
|
19420
19586
|
_context18.n = 3;
|
|
19421
|
-
return effects.
|
|
19587
|
+
return effects.call(messageMarkerListQuery.loadNext);
|
|
19422
19588
|
case 3:
|
|
19589
|
+
messageMarkers = _context18.v;
|
|
19423
19590
|
_context18.n = 4;
|
|
19591
|
+
return effects.put(setMessageMarkersAC(channelId, messageId, messageMarkers.markers, deliveryStatus));
|
|
19592
|
+
case 4:
|
|
19593
|
+
_context18.n = 6;
|
|
19594
|
+
break;
|
|
19595
|
+
case 5:
|
|
19596
|
+
_context18.p = 5;
|
|
19597
|
+
_t18 = _context18.v;
|
|
19598
|
+
log.error('error in get message markers', _t18);
|
|
19599
|
+
case 6:
|
|
19600
|
+
_context18.p = 6;
|
|
19601
|
+
_context18.n = 7;
|
|
19602
|
+
return effects.put(setMessagesMarkersLoadingStateAC(LOADING_STATE.LOADED));
|
|
19603
|
+
case 7:
|
|
19604
|
+
return _context18.f(6);
|
|
19605
|
+
case 8:
|
|
19606
|
+
return _context18.a(2);
|
|
19607
|
+
}
|
|
19608
|
+
}, _marked16$1, null, [[0, 5, 6, 8]]);
|
|
19609
|
+
}
|
|
19610
|
+
function MessageSaga() {
|
|
19611
|
+
return _regenerator().w(function (_context19) {
|
|
19612
|
+
while (1) switch (_context19.n) {
|
|
19613
|
+
case 0:
|
|
19614
|
+
_context19.n = 1;
|
|
19615
|
+
return effects.takeEvery(SEND_MESSAGE, sendMessage);
|
|
19616
|
+
case 1:
|
|
19617
|
+
_context19.n = 2;
|
|
19618
|
+
return effects.takeEvery(SEND_TEXT_MESSAGE, sendTextMessage);
|
|
19619
|
+
case 2:
|
|
19620
|
+
_context19.n = 3;
|
|
19621
|
+
return effects.takeEvery(FORWARD_MESSAGE, forwardMessage);
|
|
19622
|
+
case 3:
|
|
19623
|
+
_context19.n = 4;
|
|
19424
19624
|
return effects.takeEvery(RESEND_MESSAGE, resendMessage);
|
|
19425
19625
|
case 4:
|
|
19426
|
-
|
|
19626
|
+
_context19.n = 5;
|
|
19427
19627
|
return effects.takeLatest(EDIT_MESSAGE, editMessage);
|
|
19428
19628
|
case 5:
|
|
19429
|
-
|
|
19629
|
+
_context19.n = 6;
|
|
19430
19630
|
return effects.takeEvery(DELETE_MESSAGE, deleteMessage);
|
|
19431
19631
|
case 6:
|
|
19432
|
-
|
|
19632
|
+
_context19.n = 7;
|
|
19433
19633
|
return effects.takeLatest(GET_MESSAGES, getMessagesQuery);
|
|
19434
19634
|
case 7:
|
|
19435
|
-
|
|
19635
|
+
_context19.n = 8;
|
|
19436
19636
|
return effects.takeEvery(GET_MESSAGE, getMessageQuery);
|
|
19437
19637
|
case 8:
|
|
19438
|
-
|
|
19439
|
-
return effects.takeLatest(
|
|
19638
|
+
_context19.n = 9;
|
|
19639
|
+
return effects.takeLatest(GET_MESSAGE_MARKERS, getMessageMarkers);
|
|
19440
19640
|
case 9:
|
|
19441
|
-
|
|
19442
|
-
return effects.takeLatest(
|
|
19641
|
+
_context19.n = 10;
|
|
19642
|
+
return effects.takeLatest(GET_MESSAGES_ATTACHMENTS, getMessageAttachments);
|
|
19443
19643
|
case 10:
|
|
19444
|
-
|
|
19445
|
-
return effects.takeLatest(
|
|
19644
|
+
_context19.n = 11;
|
|
19645
|
+
return effects.takeLatest(LOAD_MORE_MESSAGES_ATTACHMENTS, loadMoreMessageAttachments);
|
|
19446
19646
|
case 11:
|
|
19447
|
-
|
|
19448
|
-
return effects.takeLatest(
|
|
19647
|
+
_context19.n = 12;
|
|
19648
|
+
return effects.takeLatest(ADD_REACTION, addReaction);
|
|
19449
19649
|
case 12:
|
|
19450
|
-
|
|
19451
|
-
return effects.
|
|
19650
|
+
_context19.n = 13;
|
|
19651
|
+
return effects.takeLatest(DELETE_REACTION, deleteReaction);
|
|
19452
19652
|
case 13:
|
|
19453
|
-
|
|
19454
|
-
return effects.takeEvery(
|
|
19653
|
+
_context19.n = 14;
|
|
19654
|
+
return effects.takeEvery(LOAD_MORE_MESSAGES, loadMoreMessages);
|
|
19455
19655
|
case 14:
|
|
19456
|
-
|
|
19457
|
-
return effects.takeEvery(
|
|
19656
|
+
_context19.n = 15;
|
|
19657
|
+
return effects.takeEvery(GET_REACTIONS, getReactions);
|
|
19458
19658
|
case 15:
|
|
19459
|
-
|
|
19460
|
-
return effects.takeEvery(
|
|
19659
|
+
_context19.n = 16;
|
|
19660
|
+
return effects.takeEvery(LOAD_MORE_REACTIONS, loadMoreReactions);
|
|
19461
19661
|
case 16:
|
|
19462
|
-
|
|
19463
|
-
return effects.takeEvery(
|
|
19662
|
+
_context19.n = 17;
|
|
19663
|
+
return effects.takeEvery(PAUSE_ATTACHMENT_UPLOADING, pauseAttachmentUploading);
|
|
19464
19664
|
case 17:
|
|
19465
|
-
|
|
19665
|
+
_context19.n = 18;
|
|
19666
|
+
return effects.takeEvery(RESUME_ATTACHMENT_UPLOADING, resumeAttachmentUploading);
|
|
19667
|
+
case 18:
|
|
19668
|
+
return _context19.a(2);
|
|
19466
19669
|
}
|
|
19467
|
-
},
|
|
19670
|
+
}, _marked17$1);
|
|
19468
19671
|
}
|
|
19469
19672
|
|
|
19470
19673
|
var _marked$4 = /*#__PURE__*/_regenerator().m(getMembers),
|
|
@@ -26886,6 +27089,7 @@ function MessageActions(_ref) {
|
|
|
26886
27089
|
messageStatus = _ref.messageStatus,
|
|
26887
27090
|
handleSelectMessage = _ref.handleSelectMessage,
|
|
26888
27091
|
handleReplyMessage = _ref.handleReplyMessage,
|
|
27092
|
+
handleOpenInfoMessage = _ref.handleOpenInfoMessage,
|
|
26889
27093
|
isThreadMessage = _ref.isThreadMessage,
|
|
26890
27094
|
rtlDirection = _ref.rtlDirection,
|
|
26891
27095
|
showMessageReaction = _ref.showMessageReaction,
|
|
@@ -26897,6 +27101,8 @@ function MessageActions(_ref) {
|
|
|
26897
27101
|
showDeleteMessage = _ref.showDeleteMessage,
|
|
26898
27102
|
showSelectMessage = _ref.showSelectMessage,
|
|
26899
27103
|
showReportMessage = _ref.showReportMessage,
|
|
27104
|
+
showInfoMessage = _ref.showInfoMessage,
|
|
27105
|
+
infoIconOrder = _ref.infoIconOrder,
|
|
26900
27106
|
reactionIcon = _ref.reactionIcon,
|
|
26901
27107
|
editIcon = _ref.editIcon,
|
|
26902
27108
|
copyIcon = _ref.copyIcon,
|
|
@@ -26904,6 +27110,7 @@ function MessageActions(_ref) {
|
|
|
26904
27110
|
replyInThreadIcon = _ref.replyInThreadIcon,
|
|
26905
27111
|
deleteIcon = _ref.deleteIcon,
|
|
26906
27112
|
selectIcon = _ref.selectIcon,
|
|
27113
|
+
infoIcon = _ref.infoIcon,
|
|
26907
27114
|
allowEditDeleteIncomingMessage = _ref.allowEditDeleteIncomingMessage,
|
|
26908
27115
|
reportIcon = _ref.reportIcon,
|
|
26909
27116
|
reactionIconOrder = _ref.reactionIconOrder,
|
|
@@ -26924,6 +27131,7 @@ function MessageActions(_ref) {
|
|
|
26924
27131
|
forwardIconTooltipText = _ref.forwardIconTooltipText,
|
|
26925
27132
|
deleteIconTooltipText = _ref.deleteIconTooltipText,
|
|
26926
27133
|
selectIconTooltipText = _ref.selectIconTooltipText,
|
|
27134
|
+
infoIconTooltipText = _ref.infoIconTooltipText,
|
|
26927
27135
|
reportIconTooltipText = _ref.reportIconTooltipText,
|
|
26928
27136
|
myRole = _ref.myRole,
|
|
26929
27137
|
isIncoming = _ref.isIncoming,
|
|
@@ -27052,8 +27260,20 @@ function MessageActions(_ref) {
|
|
|
27052
27260
|
disabledColor: textSecondary,
|
|
27053
27261
|
bgColor: tooltipBackground,
|
|
27054
27262
|
direction: 'top'
|
|
27055
|
-
}, selectIconTooltipText || 'Select', /*#__PURE__*/React__default.createElement(SvgArrowDown, null)), selectIcon || /*#__PURE__*/React__default.createElement(SvgCheckCircle, null))),
|
|
27056
|
-
order:
|
|
27263
|
+
}, selectIconTooltipText || 'Select', /*#__PURE__*/React__default.createElement(SvgArrowDown, null)), selectIcon || /*#__PURE__*/React__default.createElement(SvgCheckCircle, null))), showInfoMessage && !isIncoming && (/*#__PURE__*/React__default.createElement(Action, {
|
|
27264
|
+
order: infoIconOrder || 7,
|
|
27265
|
+
iconColor: messageActionIconsColor || iconInactive,
|
|
27266
|
+
hoverBackgroundColor: backgroundHovered,
|
|
27267
|
+
hoverIconColor: accentColor,
|
|
27268
|
+
onClick: function onClick() {
|
|
27269
|
+
return handleOpenInfoMessage();
|
|
27270
|
+
}
|
|
27271
|
+
}, /*#__PURE__*/React__default.createElement(ItemNote, {
|
|
27272
|
+
disabledColor: textSecondary,
|
|
27273
|
+
bgColor: tooltipBackground,
|
|
27274
|
+
direction: 'top'
|
|
27275
|
+
}, infoIconTooltipText || 'Info', /*#__PURE__*/React__default.createElement(SvgArrowDown, null)), infoIcon || /*#__PURE__*/React__default.createElement(SvgInfo, null))), showDeleteMessage && (channel.type === DEFAULT_CHANNEL_TYPE.BROADCAST || channel.type === DEFAULT_CHANNEL_TYPE.PUBLIC ? myRole === 'owner' || myRole === 'admin' : true) && (/*#__PURE__*/React__default.createElement(Action, {
|
|
27276
|
+
order: deleteIconOrder || 8,
|
|
27057
27277
|
iconColor: messageActionIconsColor || warningColor,
|
|
27058
27278
|
hoverBackgroundColor: backgroundHovered,
|
|
27059
27279
|
hoverIconColor: accentColor,
|
|
@@ -27065,7 +27285,7 @@ function MessageActions(_ref) {
|
|
|
27065
27285
|
bgColor: tooltipBackground,
|
|
27066
27286
|
direction: 'top'
|
|
27067
27287
|
}, deleteIconTooltipText || 'Delete Message', /*#__PURE__*/React__default.createElement(SvgArrowDown, null)), deleteIcon || /*#__PURE__*/React__default.createElement(SvgDeleteIcon, null))), showReportMessage && messageStatus !== MESSAGE_DELIVERY_STATUS.PENDING && (/*#__PURE__*/React__default.createElement(Action, {
|
|
27068
|
-
order: reportIconOrder ||
|
|
27288
|
+
order: reportIconOrder || 9,
|
|
27069
27289
|
iconColor: messageActionIconsColor || iconInactive,
|
|
27070
27290
|
hoverBackgroundColor: backgroundHovered,
|
|
27071
27291
|
hoverIconColor: accentColor,
|
|
@@ -29327,7 +29547,10 @@ WaveSurfer.dom = dom;
|
|
|
29327
29547
|
var _templateObject$t, _templateObject2$p, _templateObject3$j, _templateObject4$g, _templateObject5$e, _templateObject6$c;
|
|
29328
29548
|
var AudioPlayer = function AudioPlayer(_ref) {
|
|
29329
29549
|
var url = _ref.url,
|
|
29330
|
-
file = _ref.file
|
|
29550
|
+
file = _ref.file,
|
|
29551
|
+
messagePlayed = _ref.messagePlayed,
|
|
29552
|
+
channelId = _ref.channelId,
|
|
29553
|
+
incoming = _ref.incoming;
|
|
29331
29554
|
var recordingInitialState = {
|
|
29332
29555
|
recordingSeconds: 0,
|
|
29333
29556
|
recordingMilliseconds: 0,
|
|
@@ -29393,6 +29616,9 @@ var AudioPlayer = function AudioPlayer(_ref) {
|
|
|
29393
29616
|
}
|
|
29394
29617
|
}
|
|
29395
29618
|
wavesurfer.current.playPause();
|
|
29619
|
+
if (!messagePlayed && incoming) {
|
|
29620
|
+
dispatch(markVoiceMessageAsPlayedAC(channelId, [file.messageId]));
|
|
29621
|
+
}
|
|
29396
29622
|
}
|
|
29397
29623
|
};
|
|
29398
29624
|
React.useEffect(function () {
|
|
@@ -29570,7 +29796,10 @@ var Attachment = function Attachment(_ref) {
|
|
|
29570
29796
|
imageAttachmentMaxHeight = _ref.imageAttachmentMaxHeight,
|
|
29571
29797
|
videoAttachmentMaxWidth = _ref.videoAttachmentMaxWidth,
|
|
29572
29798
|
videoAttachmentMaxHeight = _ref.videoAttachmentMaxHeight,
|
|
29573
|
-
messageType = _ref.messageType
|
|
29799
|
+
messageType = _ref.messageType,
|
|
29800
|
+
messagePlayed = _ref.messagePlayed,
|
|
29801
|
+
channelId = _ref.channelId,
|
|
29802
|
+
incoming = _ref.incoming;
|
|
29574
29803
|
var _useColor = useColors(),
|
|
29575
29804
|
accentColor = _useColor[THEME_COLORS.ACCENT],
|
|
29576
29805
|
textPrimary = _useColor[THEME_COLORS.TEXT_PRIMARY],
|
|
@@ -30089,7 +30318,10 @@ var Attachment = function Attachment(_ref) {
|
|
|
30089
30318
|
}
|
|
30090
30319
|
}))))) : attachment.type === attachmentTypes.voice ? (/*#__PURE__*/React__default.createElement(AudioPlayer, {
|
|
30091
30320
|
url: attachment.attachmentUrl || attachmentUrl,
|
|
30092
|
-
file: attachment
|
|
30321
|
+
file: attachment,
|
|
30322
|
+
messagePlayed: messagePlayed,
|
|
30323
|
+
channelId: channelId,
|
|
30324
|
+
incoming: incoming
|
|
30093
30325
|
})) : attachment.type === attachmentTypes.link ? null : (
|
|
30094
30326
|
/*#__PURE__*/
|
|
30095
30327
|
React__default.createElement(AttachmentFile$1, {
|
|
@@ -31684,6 +31916,7 @@ var MessageBody = function MessageBody(_ref) {
|
|
|
31684
31916
|
deleteMessage = _ref$deleteMessage === void 0 ? true : _ref$deleteMessage,
|
|
31685
31917
|
_ref$selectMessage = _ref.selectMessage,
|
|
31686
31918
|
selectMessage = _ref$selectMessage === void 0 ? true : _ref$selectMessage,
|
|
31919
|
+
showInfoMessage = _ref.showInfoMessage,
|
|
31687
31920
|
allowEditDeleteIncomingMessage = _ref.allowEditDeleteIncomingMessage,
|
|
31688
31921
|
_ref$forwardMessage = _ref.forwardMessage,
|
|
31689
31922
|
forwardMessage = _ref$forwardMessage === void 0 ? true : _ref$forwardMessage,
|
|
@@ -31696,6 +31929,7 @@ var MessageBody = function MessageBody(_ref) {
|
|
|
31696
31929
|
replyInThreadIcon = _ref.replyInThreadIcon,
|
|
31697
31930
|
forwardIcon = _ref.forwardIcon,
|
|
31698
31931
|
deleteIcon = _ref.deleteIcon,
|
|
31932
|
+
infoIcon = _ref.infoIcon,
|
|
31699
31933
|
selectIcon = _ref.selectIcon,
|
|
31700
31934
|
starIcon = _ref.starIcon,
|
|
31701
31935
|
staredIcon = _ref.staredIcon,
|
|
@@ -31707,6 +31941,7 @@ var MessageBody = function MessageBody(_ref) {
|
|
|
31707
31941
|
replyInThreadIconOrder = _ref.replyInThreadIconOrder,
|
|
31708
31942
|
forwardIconOrder = _ref.forwardIconOrder,
|
|
31709
31943
|
deleteIconOrder = _ref.deleteIconOrder,
|
|
31944
|
+
infoIconOrder = _ref.infoIconOrder,
|
|
31710
31945
|
selectIconOrder = _ref.selectIconOrder,
|
|
31711
31946
|
starIconOrder = _ref.starIconOrder,
|
|
31712
31947
|
reportIconOrder = _ref.reportIconOrder,
|
|
@@ -31720,6 +31955,7 @@ var MessageBody = function MessageBody(_ref) {
|
|
|
31720
31955
|
selectIconTooltipText = _ref.selectIconTooltipText,
|
|
31721
31956
|
starIconTooltipText = _ref.starIconTooltipText,
|
|
31722
31957
|
reportIconTooltipText = _ref.reportIconTooltipText,
|
|
31958
|
+
infoIconTooltipText = _ref.infoIconTooltipText,
|
|
31723
31959
|
messageActionIconsColor = _ref.messageActionIconsColor,
|
|
31724
31960
|
messageStatusSize = _ref.messageStatusSize,
|
|
31725
31961
|
messageStatusColor = _ref.messageStatusColor,
|
|
@@ -31748,6 +31984,7 @@ var MessageBody = function MessageBody(_ref) {
|
|
|
31748
31984
|
messageTextFontSize = _ref.messageTextFontSize,
|
|
31749
31985
|
messageTextLineHeight = _ref.messageTextLineHeight,
|
|
31750
31986
|
handleToggleForwardMessagePopup = _ref.handleToggleForwardMessagePopup,
|
|
31987
|
+
handleToggleInfoMessagePopupOpen = _ref.handleToggleInfoMessagePopupOpen,
|
|
31751
31988
|
messageActionsShow = _ref.messageActionsShow,
|
|
31752
31989
|
closeMessageActions = _ref.closeMessageActions,
|
|
31753
31990
|
handleDeletePendingMessage = _ref.handleDeletePendingMessage,
|
|
@@ -31896,6 +32133,7 @@ var MessageBody = function MessageBody(_ref) {
|
|
|
31896
32133
|
handleCopyMessage: handleCopyMessage,
|
|
31897
32134
|
handleDeletePendingMessage: handleDeletePendingMessage,
|
|
31898
32135
|
handleOpenForwardMessage: handleToggleForwardMessagePopup,
|
|
32136
|
+
handleOpenInfoMessage: handleToggleInfoMessagePopupOpen,
|
|
31899
32137
|
handleResendMessage: handleResendMessage,
|
|
31900
32138
|
handleReplyMessage: _handleReplyMessage,
|
|
31901
32139
|
handleReportMessage: handleToggleReportPopupOpen,
|
|
@@ -31947,7 +32185,11 @@ var MessageBody = function MessageBody(_ref) {
|
|
|
31947
32185
|
reportIconTooltipText: reportIconTooltipText,
|
|
31948
32186
|
messageActionIconsColor: messageActionIconsColor,
|
|
31949
32187
|
myRole: channel.userRole,
|
|
31950
|
-
isIncoming: message.incoming
|
|
32188
|
+
isIncoming: message.incoming,
|
|
32189
|
+
infoIconTooltipText: infoIconTooltipText,
|
|
32190
|
+
infoIcon: infoIcon,
|
|
32191
|
+
showInfoMessage: showInfoMessage,
|
|
32192
|
+
infoIconOrder: infoIconOrder
|
|
31951
32193
|
}))), message.parentMessage && message.parentMessage.id && !isThreadMessage && (/*#__PURE__*/React__default.createElement(RepliedMessage$1, {
|
|
31952
32194
|
message: message,
|
|
31953
32195
|
theme: theme,
|
|
@@ -32067,7 +32309,10 @@ var MessageBody = function MessageBody(_ref) {
|
|
|
32067
32309
|
imageAttachmentMaxHeight: imageAttachmentMaxHeight,
|
|
32068
32310
|
videoAttachmentMaxWidth: videoAttachmentMaxWidth,
|
|
32069
32311
|
videoAttachmentMaxHeight: videoAttachmentMaxHeight,
|
|
32070
|
-
messageType: message.type
|
|
32312
|
+
messageType: message.type,
|
|
32313
|
+
messagePlayed: message.deliveryStatus === MESSAGE_DELIVERY_STATUS.PLAYED,
|
|
32314
|
+
channelId: message.channelId,
|
|
32315
|
+
incoming: message.incoming
|
|
32071
32316
|
});
|
|
32072
32317
|
}), emojisPopupOpen && emojisPopupPosition && (/*#__PURE__*/React__default.createElement(EmojiContainer, {
|
|
32073
32318
|
id: message.id + "_emoji_popup_container",
|
|
@@ -32147,7 +32392,426 @@ var FrequentlyEmojisContainer = styled__default.div(_templateObject5$i || (_temp
|
|
|
32147
32392
|
return props.rtlDirection && '0';
|
|
32148
32393
|
});
|
|
32149
32394
|
|
|
32150
|
-
var _templateObject$C, _templateObject2$x, _templateObject3$r, _templateObject4$n, _templateObject5$j, _templateObject6$g, _templateObject7$e, _templateObject8$d, _templateObject9$b, _templateObject0$a, _templateObject1$7
|
|
32395
|
+
var _templateObject$C, _templateObject2$x, _templateObject3$r, _templateObject4$n, _templateObject5$j, _templateObject6$g, _templateObject7$e, _templateObject8$d, _templateObject9$b, _templateObject0$a, _templateObject1$7;
|
|
32396
|
+
var defaultFormatDate = function defaultFormatDate(date) {
|
|
32397
|
+
var m = moment(date);
|
|
32398
|
+
if (m.isSame(moment(), 'day')) {
|
|
32399
|
+
return "Today, " + m.format('HH:mm');
|
|
32400
|
+
}
|
|
32401
|
+
if (m.isSame(moment().subtract(1, 'day'), 'day')) {
|
|
32402
|
+
return "Yesterday, " + m.format('HH:mm');
|
|
32403
|
+
}
|
|
32404
|
+
return m.format('DD.MM.YYYY');
|
|
32405
|
+
};
|
|
32406
|
+
var MessageInfo = function MessageInfo(_ref) {
|
|
32407
|
+
var _tabsOrder$;
|
|
32408
|
+
var message = _ref.message,
|
|
32409
|
+
togglePopup = _ref.togglePopup,
|
|
32410
|
+
labels = _ref.labels,
|
|
32411
|
+
_ref$tabsOrder = _ref.tabsOrder,
|
|
32412
|
+
tabsOrder = _ref$tabsOrder === void 0 ? [].concat(message.attachments && message.attachments.length > 0 && message.attachments[0].type === 'voice' ? [{
|
|
32413
|
+
key: 'played',
|
|
32414
|
+
label: 'Played by',
|
|
32415
|
+
data: []
|
|
32416
|
+
}] : [], [{
|
|
32417
|
+
key: 'received',
|
|
32418
|
+
label: 'Delivered to',
|
|
32419
|
+
data: []
|
|
32420
|
+
}, {
|
|
32421
|
+
key: 'displayed',
|
|
32422
|
+
label: 'Seen by',
|
|
32423
|
+
data: []
|
|
32424
|
+
}]) : _ref$tabsOrder,
|
|
32425
|
+
_ref$showCounts = _ref.showCounts,
|
|
32426
|
+
showCounts = _ref$showCounts === void 0 ? false : _ref$showCounts,
|
|
32427
|
+
_ref$avatarSize = _ref.avatarSize,
|
|
32428
|
+
avatarSize = _ref$avatarSize === void 0 ? 32 : _ref$avatarSize,
|
|
32429
|
+
_ref$maxWidth = _ref.maxWidth,
|
|
32430
|
+
maxWidth = _ref$maxWidth === void 0 ? '340px' : _ref$maxWidth,
|
|
32431
|
+
_ref$minWidth = _ref.minWidth,
|
|
32432
|
+
minWidth = _ref$minWidth === void 0 ? '340px' : _ref$minWidth,
|
|
32433
|
+
_ref$height = _ref.height,
|
|
32434
|
+
height = _ref$height === void 0 ? '300px' : _ref$height,
|
|
32435
|
+
renderItem = _ref.renderItem,
|
|
32436
|
+
_ref$formatDate = _ref.formatDate,
|
|
32437
|
+
formatDate = _ref$formatDate === void 0 ? defaultFormatDate : _ref$formatDate,
|
|
32438
|
+
_ref$tabsStyles = _ref.tabsStyles,
|
|
32439
|
+
tabsStyles = _ref$tabsStyles === void 0 ? {} : _ref$tabsStyles,
|
|
32440
|
+
_ref$listItemStyles = _ref.listItemStyles,
|
|
32441
|
+
listItemStyles = _ref$listItemStyles === void 0 ? {} : _ref$listItemStyles,
|
|
32442
|
+
handleOpenUserProfile = _ref.handleOpenUserProfile,
|
|
32443
|
+
contacts = _ref.contacts;
|
|
32444
|
+
var _useColor = useColors(),
|
|
32445
|
+
accentColor = _useColor[THEME_COLORS.ACCENT],
|
|
32446
|
+
textPrimary = _useColor[THEME_COLORS.TEXT_PRIMARY],
|
|
32447
|
+
textSecondary = _useColor[THEME_COLORS.TEXT_SECONDARY],
|
|
32448
|
+
backgroundHovered = _useColor[THEME_COLORS.BACKGROUND_HOVERED],
|
|
32449
|
+
backgroundSections = _useColor[THEME_COLORS.BACKGROUND_SECTIONS],
|
|
32450
|
+
textOnPrimary = _useColor[THEME_COLORS.TEXT_ON_PRIMARY],
|
|
32451
|
+
border = _useColor[THEME_COLORS.BORDER];
|
|
32452
|
+
var dispatch = useDispatch();
|
|
32453
|
+
var messageMarkers = useSelector(messageMarkersSelector);
|
|
32454
|
+
var messagesMarkersLoadingState = useSelector(messagesMarkersLoadingStateSelector);
|
|
32455
|
+
var markers = React.useMemo(function () {
|
|
32456
|
+
return messageMarkers[message.channelId] && messageMarkers[message.channelId][message.id];
|
|
32457
|
+
}, [messageMarkers, message.channelId, message.id]);
|
|
32458
|
+
var _useState = React.useState(((_tabsOrder$ = tabsOrder[0]) === null || _tabsOrder$ === void 0 ? void 0 : _tabsOrder$.key) || 'played'),
|
|
32459
|
+
activeTab = _useState[0],
|
|
32460
|
+
setActiveTab = _useState[1];
|
|
32461
|
+
var _useState2 = React.useState(false),
|
|
32462
|
+
open = _useState2[0],
|
|
32463
|
+
setOpen = _useState2[1];
|
|
32464
|
+
var rootRef = React.useRef(null);
|
|
32465
|
+
var _useState3 = React.useState(false),
|
|
32466
|
+
flipAbove = _useState3[0],
|
|
32467
|
+
setFlipAbove = _useState3[1];
|
|
32468
|
+
var panelRef = React.useRef(null);
|
|
32469
|
+
var contentRef = React.useRef(null);
|
|
32470
|
+
var tabsRef = React.useRef(null);
|
|
32471
|
+
var listRef = React.useRef(null);
|
|
32472
|
+
var _useState4 = React.useState(0),
|
|
32473
|
+
panelHeightPx = _useState4[0],
|
|
32474
|
+
setPanelHeightPx = _useState4[1];
|
|
32475
|
+
var _useState5 = React.useState(false),
|
|
32476
|
+
isTransitioning = _useState5[0],
|
|
32477
|
+
setIsTransitioning = _useState5[1];
|
|
32478
|
+
var _useState6 = React.useState(false),
|
|
32479
|
+
ready = _useState6[0],
|
|
32480
|
+
setReady = _useState6[1];
|
|
32481
|
+
var _useState7 = React.useState(false),
|
|
32482
|
+
flipLocked = _useState7[0],
|
|
32483
|
+
setFlipLocked = _useState7[1];
|
|
32484
|
+
var getFromContacts = React.useMemo(function () {
|
|
32485
|
+
return getShowOnlyContactUsers();
|
|
32486
|
+
}, []);
|
|
32487
|
+
var activeMarkers = React.useMemo(function () {
|
|
32488
|
+
var list = markers && markers[activeTab] || [];
|
|
32489
|
+
return Array.isArray(list) ? [].concat(list).sort(sortByDateDesc) : [];
|
|
32490
|
+
}, [markers, activeTab]);
|
|
32491
|
+
var rowHeightPx = React.useMemo(function () {
|
|
32492
|
+
return (avatarSize || 32) + 24;
|
|
32493
|
+
}, [avatarSize]);
|
|
32494
|
+
var listMaxHeightPx = React.useMemo(function () {
|
|
32495
|
+
return rowHeightPx * 5 - 16;
|
|
32496
|
+
}, [rowHeightPx]);
|
|
32497
|
+
var tabItems = tabsOrder.map(function (tab) {
|
|
32498
|
+
switch (tab.key) {
|
|
32499
|
+
case 'played':
|
|
32500
|
+
return {
|
|
32501
|
+
key: tab.key,
|
|
32502
|
+
label: (labels === null || labels === void 0 ? void 0 : labels.playedBy) || 'Played by',
|
|
32503
|
+
data: activeMarkers
|
|
32504
|
+
};
|
|
32505
|
+
case 'received':
|
|
32506
|
+
return {
|
|
32507
|
+
key: tab.key,
|
|
32508
|
+
label: (labels === null || labels === void 0 ? void 0 : labels.receivedBy) || 'Delivered to',
|
|
32509
|
+
data: activeMarkers
|
|
32510
|
+
};
|
|
32511
|
+
case 'displayed':
|
|
32512
|
+
default:
|
|
32513
|
+
return {
|
|
32514
|
+
key: 'displayed',
|
|
32515
|
+
label: (labels === null || labels === void 0 ? void 0 : labels.displayedBy) || 'Seen by',
|
|
32516
|
+
data: activeMarkers
|
|
32517
|
+
};
|
|
32518
|
+
}
|
|
32519
|
+
});
|
|
32520
|
+
var renderRow = function renderRow(marker) {
|
|
32521
|
+
var _marker$user;
|
|
32522
|
+
var contact = contacts[((_marker$user = marker.user) === null || _marker$user === void 0 ? void 0 : _marker$user.id) || ''];
|
|
32523
|
+
var displayName = makeUsername(contact, marker.user, getFromContacts);
|
|
32524
|
+
var avatarUrl = marker.user ? marker.user.avatarUrl : '';
|
|
32525
|
+
var dateVal = marker.createdAt || marker.createdAt;
|
|
32526
|
+
var dateFormat = dateVal ? formatDate(new Date(dateVal)) : '';
|
|
32527
|
+
var node = /*#__PURE__*/React__default.createElement(Row$1, {
|
|
32528
|
+
backgroundHover: listItemStyles.hoverBackground || backgroundHovered,
|
|
32529
|
+
onClick: function onClick() {
|
|
32530
|
+
return handleOpenUserProfile === null || handleOpenUserProfile === void 0 ? void 0 : handleOpenUserProfile(marker.user);
|
|
32531
|
+
}
|
|
32532
|
+
}, /*#__PURE__*/React__default.createElement(Avatar, {
|
|
32533
|
+
name: displayName,
|
|
32534
|
+
image: avatarUrl,
|
|
32535
|
+
size: avatarSize,
|
|
32536
|
+
textSize: 12,
|
|
32537
|
+
setDefaultAvatar: true
|
|
32538
|
+
}), /*#__PURE__*/React__default.createElement(RowInfo, null, /*#__PURE__*/React__default.createElement(RowTitle, {
|
|
32539
|
+
color: listItemStyles.nameColor || textPrimary
|
|
32540
|
+
}, displayName), /*#__PURE__*/React__default.createElement(RowDate, {
|
|
32541
|
+
color: listItemStyles.dateColor || textSecondary
|
|
32542
|
+
}, dateFormat)));
|
|
32543
|
+
return renderItem ? renderItem(marker, node) : node;
|
|
32544
|
+
};
|
|
32545
|
+
React.useLayoutEffect(function () {
|
|
32546
|
+
var _rootRef$current;
|
|
32547
|
+
var container = document.getElementById('scrollableDiv');
|
|
32548
|
+
var anchorEl = (_rootRef$current = rootRef.current) === null || _rootRef$current === void 0 ? void 0 : _rootRef$current.parentElement;
|
|
32549
|
+
if (container && anchorEl) {
|
|
32550
|
+
var containerRect = container.getBoundingClientRect();
|
|
32551
|
+
var anchorRect = anchorEl.getBoundingClientRect();
|
|
32552
|
+
var contentEl = contentRef.current;
|
|
32553
|
+
var tabsEl = tabsRef.current;
|
|
32554
|
+
var listEl = listRef.current;
|
|
32555
|
+
var cs = contentEl ? getComputedStyle(contentEl) : {};
|
|
32556
|
+
var padTop = parseFloat((cs === null || cs === void 0 ? void 0 : cs.paddingTop) || '0') || 0;
|
|
32557
|
+
var padBottom = parseFloat((cs === null || cs === void 0 ? void 0 : cs.paddingBottom) || '0') || 0;
|
|
32558
|
+
var contentPaddingY = padTop + padBottom;
|
|
32559
|
+
var tabsHeight = tabsEl ? tabsEl.getBoundingClientRect().height : 0;
|
|
32560
|
+
var tabsMarginBottom = 8;
|
|
32561
|
+
var listMarginTop = 8;
|
|
32562
|
+
var desiredListHeight = Math.min(listEl ? listEl.scrollHeight : 0, listMaxHeightPx);
|
|
32563
|
+
var desiredHeight = contentPaddingY + tabsHeight + tabsMarginBottom + listMarginTop + desiredListHeight;
|
|
32564
|
+
var maxPx = parseInt(String(height || '300'), 10) || 300;
|
|
32565
|
+
var measuredTarget = Math.min(desiredHeight || 0, maxPx);
|
|
32566
|
+
var flipTarget = messagesMarkersLoadingState === LOADING_STATE.LOADING ? maxPx : measuredTarget;
|
|
32567
|
+
setPanelHeightPx(measuredTarget);
|
|
32568
|
+
var availableBelow = containerRect.bottom - anchorRect.bottom - 8;
|
|
32569
|
+
var availableAbove = anchorRect.top - containerRect.top - 8;
|
|
32570
|
+
var nextFlip = Boolean(flipTarget > availableBelow && flipTarget <= availableAbove);
|
|
32571
|
+
setFlipAbove(nextFlip);
|
|
32572
|
+
}
|
|
32573
|
+
setIsTransitioning(true);
|
|
32574
|
+
setOpen(true);
|
|
32575
|
+
setReady(true);
|
|
32576
|
+
setFlipLocked(true);
|
|
32577
|
+
}, []);
|
|
32578
|
+
React.useEffect(function () {
|
|
32579
|
+
var onDown = function onDown(e) {
|
|
32580
|
+
if (rootRef.current && !rootRef.current.contains(e.target)) {
|
|
32581
|
+
togglePopup();
|
|
32582
|
+
}
|
|
32583
|
+
};
|
|
32584
|
+
document.addEventListener('mousedown', onDown);
|
|
32585
|
+
return function () {
|
|
32586
|
+
document.removeEventListener('mousedown', onDown);
|
|
32587
|
+
};
|
|
32588
|
+
}, []);
|
|
32589
|
+
React.useEffect(function () {
|
|
32590
|
+
var container = document.getElementById('scrollableDiv');
|
|
32591
|
+
if (!container) return;
|
|
32592
|
+
var recalc = function recalc() {
|
|
32593
|
+
if (!rootRef.current || !ready) return;
|
|
32594
|
+
if (messagesMarkersLoadingState === LOADING_STATE.LOADING) return;
|
|
32595
|
+
var containerRect = container.getBoundingClientRect();
|
|
32596
|
+
var anchorEl = rootRef.current.parentElement;
|
|
32597
|
+
if (!anchorEl) return;
|
|
32598
|
+
var anchorRect = anchorEl.getBoundingClientRect();
|
|
32599
|
+
var dropdownHeight = panelHeightPx || 0;
|
|
32600
|
+
if (!dropdownHeight || dropdownHeight < 8) {
|
|
32601
|
+
var parsed = parseInt(String(height || '300'), 10);
|
|
32602
|
+
dropdownHeight = isNaN(parsed) ? 300 : parsed;
|
|
32603
|
+
}
|
|
32604
|
+
var availableBelow = containerRect.bottom - anchorRect.bottom - 8;
|
|
32605
|
+
var availableAbove = anchorRect.top - containerRect.top - 8;
|
|
32606
|
+
var overflowBelow = dropdownHeight > availableBelow;
|
|
32607
|
+
var overflowAbove = dropdownHeight > availableAbove;
|
|
32608
|
+
if (!isTransitioning && !flipLocked) {
|
|
32609
|
+
setFlipAbove(function (prev) {
|
|
32610
|
+
if (prev) {
|
|
32611
|
+
if (overflowAbove && !overflowBelow) return false;
|
|
32612
|
+
return true;
|
|
32613
|
+
}
|
|
32614
|
+
if (overflowBelow && !overflowAbove) return true;
|
|
32615
|
+
return false;
|
|
32616
|
+
});
|
|
32617
|
+
}
|
|
32618
|
+
};
|
|
32619
|
+
if (open) {
|
|
32620
|
+
recalc();
|
|
32621
|
+
var raf1 = requestAnimationFrame(recalc);
|
|
32622
|
+
var raf2 = requestAnimationFrame(function () {
|
|
32623
|
+
return requestAnimationFrame(recalc);
|
|
32624
|
+
});
|
|
32625
|
+
var t1 = setTimeout(recalc, 50);
|
|
32626
|
+
var t2 = setTimeout(recalc, 200);
|
|
32627
|
+
panelRef.current && panelRef.current.addEventListener('transitionend', recalc);
|
|
32628
|
+
container.addEventListener('scroll', recalc);
|
|
32629
|
+
window.addEventListener('resize', recalc);
|
|
32630
|
+
return function () {
|
|
32631
|
+
cancelAnimationFrame(raf1);
|
|
32632
|
+
cancelAnimationFrame(raf2);
|
|
32633
|
+
clearTimeout(t1);
|
|
32634
|
+
clearTimeout(t2);
|
|
32635
|
+
panelRef.current && panelRef.current.removeEventListener('transitionend', recalc);
|
|
32636
|
+
container.removeEventListener('scroll', recalc);
|
|
32637
|
+
window.removeEventListener('resize', recalc);
|
|
32638
|
+
};
|
|
32639
|
+
} else {
|
|
32640
|
+
container.addEventListener('scroll', recalc);
|
|
32641
|
+
window.addEventListener('resize', recalc);
|
|
32642
|
+
return function () {
|
|
32643
|
+
container.removeEventListener('scroll', recalc);
|
|
32644
|
+
window.removeEventListener('resize', recalc);
|
|
32645
|
+
};
|
|
32646
|
+
}
|
|
32647
|
+
}, [open, ready, message.id, panelHeightPx, isTransitioning, flipLocked, height]);
|
|
32648
|
+
React.useLayoutEffect(function () {
|
|
32649
|
+
var _rootRef$current2;
|
|
32650
|
+
var container = document.getElementById('scrollableDiv');
|
|
32651
|
+
var anchorEl = (_rootRef$current2 = rootRef.current) === null || _rootRef$current2 === void 0 ? void 0 : _rootRef$current2.parentElement;
|
|
32652
|
+
if (!container || !anchorEl || !ready) return;
|
|
32653
|
+
var containerRect = container.getBoundingClientRect();
|
|
32654
|
+
var anchorRect = anchorEl.getBoundingClientRect();
|
|
32655
|
+
var contentEl = contentRef.current;
|
|
32656
|
+
var tabsEl = tabsRef.current;
|
|
32657
|
+
var listEl = listRef.current;
|
|
32658
|
+
var cs = contentEl ? getComputedStyle(contentEl) : {};
|
|
32659
|
+
var padTop = parseFloat((cs === null || cs === void 0 ? void 0 : cs.paddingTop) || '0') || 0;
|
|
32660
|
+
var padBottom = parseFloat((cs === null || cs === void 0 ? void 0 : cs.paddingBottom) || '0') || 0;
|
|
32661
|
+
var contentPaddingY = padTop + padBottom;
|
|
32662
|
+
var tabsHeight = tabsEl ? tabsEl.getBoundingClientRect().height : 0;
|
|
32663
|
+
var tabsMarginBottom = 8;
|
|
32664
|
+
var listMarginTop = 8;
|
|
32665
|
+
var desiredListHeight = Math.min(listEl ? listEl.scrollHeight : 0, listMaxHeightPx);
|
|
32666
|
+
var desiredHeight = contentPaddingY + tabsHeight + tabsMarginBottom + listMarginTop + desiredListHeight;
|
|
32667
|
+
var maxPx = parseInt(String(height || '300'), 10);
|
|
32668
|
+
var measuredTarget = Math.min(desiredHeight || 0, isNaN(maxPx) ? 300 : Math.min(maxPx, desiredHeight));
|
|
32669
|
+
var nextHeight = Math.max(panelHeightPx || 0, measuredTarget);
|
|
32670
|
+
var availableBelow = containerRect.bottom - anchorRect.bottom - 8;
|
|
32671
|
+
var availableAbove = anchorRect.top - containerRect.top - 8;
|
|
32672
|
+
setFlipLocked(true);
|
|
32673
|
+
if (messagesMarkersLoadingState !== LOADING_STATE.LOADING) {
|
|
32674
|
+
var overflowBelow = nextHeight > availableBelow;
|
|
32675
|
+
var overflowAbove = nextHeight > availableAbove;
|
|
32676
|
+
setFlipAbove(function (prev) {
|
|
32677
|
+
if (prev) {
|
|
32678
|
+
if (overflowAbove && !overflowBelow) return false;
|
|
32679
|
+
return true;
|
|
32680
|
+
}
|
|
32681
|
+
if (overflowBelow && !overflowAbove) return true;
|
|
32682
|
+
return false;
|
|
32683
|
+
});
|
|
32684
|
+
}
|
|
32685
|
+
if (panelHeightPx !== nextHeight) {
|
|
32686
|
+
setIsTransitioning(true);
|
|
32687
|
+
setPanelHeightPx(nextHeight);
|
|
32688
|
+
}
|
|
32689
|
+
}, [ready, panelHeightPx, activeMarkers.length, messagesMarkersLoadingState, height]);
|
|
32690
|
+
React.useEffect(function () {
|
|
32691
|
+
if (messagesMarkersLoadingState === LOADING_STATE.LOADING) {
|
|
32692
|
+
setFlipLocked(true);
|
|
32693
|
+
}
|
|
32694
|
+
}, [messagesMarkersLoadingState]);
|
|
32695
|
+
React.useEffect(function () {
|
|
32696
|
+
var el = panelRef.current;
|
|
32697
|
+
if (!el) return;
|
|
32698
|
+
var onEnd = function onEnd(e) {
|
|
32699
|
+
if (e.propertyName === 'height') {
|
|
32700
|
+
setIsTransitioning(false);
|
|
32701
|
+
setTimeout(function () {
|
|
32702
|
+
setFlipLocked(false);
|
|
32703
|
+
}, 50);
|
|
32704
|
+
}
|
|
32705
|
+
};
|
|
32706
|
+
el.addEventListener('transitionend', onEnd);
|
|
32707
|
+
return function () {
|
|
32708
|
+
el.removeEventListener('transitionend', onEnd);
|
|
32709
|
+
};
|
|
32710
|
+
}, []);
|
|
32711
|
+
React.useEffect(function () {
|
|
32712
|
+
if (activeTab && message.id && message.channelId) {
|
|
32713
|
+
dispatch(getMessageMarkersAC(message.id, message.channelId, activeTab));
|
|
32714
|
+
}
|
|
32715
|
+
}, [activeTab, message.id, message.channelId]);
|
|
32716
|
+
return /*#__PURE__*/React__default.createElement(DropdownRoot, {
|
|
32717
|
+
ref: rootRef,
|
|
32718
|
+
rtl: message.incoming,
|
|
32719
|
+
backgroundColor: backgroundSections,
|
|
32720
|
+
flip: flipAbove,
|
|
32721
|
+
ready: ready
|
|
32722
|
+
}, /*#__PURE__*/React__default.createElement(Panel, {
|
|
32723
|
+
ref: panelRef,
|
|
32724
|
+
bg: backgroundSections,
|
|
32725
|
+
open: open,
|
|
32726
|
+
heightPx: panelHeightPx,
|
|
32727
|
+
maxHeight: height,
|
|
32728
|
+
maxWidth: maxWidth,
|
|
32729
|
+
minWidth: minWidth
|
|
32730
|
+
}, /*#__PURE__*/React__default.createElement(Content, {
|
|
32731
|
+
ref: contentRef
|
|
32732
|
+
}, /*#__PURE__*/React__default.createElement(Tabs, {
|
|
32733
|
+
ref: tabsRef
|
|
32734
|
+
}, tabItems.map(function (tab) {
|
|
32735
|
+
return /*#__PURE__*/React__default.createElement(Tab, {
|
|
32736
|
+
key: tab.key,
|
|
32737
|
+
active: activeTab === tab.key,
|
|
32738
|
+
activeColor: tabsStyles.activeColor || textOnPrimary,
|
|
32739
|
+
inactiveColor: tabsStyles.inactiveColor || textSecondary,
|
|
32740
|
+
onClick: function onClick() {
|
|
32741
|
+
return setActiveTab(tab.key);
|
|
32742
|
+
},
|
|
32743
|
+
textOnPrimary: textOnPrimary,
|
|
32744
|
+
textSecondary: textSecondary,
|
|
32745
|
+
background: activeTab === tab.key ? accentColor : 'transparent',
|
|
32746
|
+
borderColor: border
|
|
32747
|
+
}, tab.label, showCounts ? " (" + tab.data.length + ")" : '');
|
|
32748
|
+
})), /*#__PURE__*/React__default.createElement(List$1, {
|
|
32749
|
+
ref: listRef,
|
|
32750
|
+
maxHeight: listMaxHeightPx
|
|
32751
|
+
}, activeMarkers.map(function (marker) {
|
|
32752
|
+
var _marker$user2;
|
|
32753
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, {
|
|
32754
|
+
key: (((_marker$user2 = marker.user) === null || _marker$user2 === void 0 ? void 0 : _marker$user2.id) || 'deleted') + "-" + (marker.createdAt || '')
|
|
32755
|
+
}, renderRow(marker));
|
|
32756
|
+
}), !activeMarkers.length && messagesMarkersLoadingState !== LOADING_STATE.LOADING && (/*#__PURE__*/React__default.createElement(Empty, {
|
|
32757
|
+
color: textSecondary
|
|
32758
|
+
}, "No results"))))));
|
|
32759
|
+
};
|
|
32760
|
+
function sortByDateDesc(a, b) {
|
|
32761
|
+
var aDate = a.createdAt || a.createdAt;
|
|
32762
|
+
var bDate = b.createdAt || b.createdAt;
|
|
32763
|
+
var aTime = aDate ? new Date(aDate).getTime() : 0;
|
|
32764
|
+
var bTime = bDate ? new Date(bDate).getTime() : 0;
|
|
32765
|
+
return bTime - aTime;
|
|
32766
|
+
}
|
|
32767
|
+
var Tabs = styled__default.div(_templateObject$C || (_templateObject$C = _taggedTemplateLiteralLoose(["\n display: flex;\n gap: 8px;\n justify-content: start;\n margin-bottom: 8px;\n"])));
|
|
32768
|
+
var Tab = styled__default.button(_templateObject2$x || (_templateObject2$x = _taggedTemplateLiteralLoose(["\n border: none;\n background: transparent;\n cursor: pointer;\n padding: 6px 11px;\n border-radius: 16px;\n color: ", ";\n background: ", ";\n border: 1px solid ", ";\n &:hover {\n opacity: 0.9;\n }\n font-weight: 500;\n font-size: 15px;\n line-height: 20px;\n letter-spacing: 0px;\n text-align: center;\n"])), function (p) {
|
|
32769
|
+
return p.active ? p.textOnPrimary : p.textSecondary;
|
|
32770
|
+
}, function (p) {
|
|
32771
|
+
return p.background;
|
|
32772
|
+
}, function (p) {
|
|
32773
|
+
return p.active ? p.background : p.borderColor;
|
|
32774
|
+
});
|
|
32775
|
+
var List$1 = styled__default.div(_templateObject3$r || (_templateObject3$r = _taggedTemplateLiteralLoose(["\n margin-top: 8px;\n flex: 1 1 auto;\n min-height: 0;\n overflow-y: auto;\n max-height: ", ";\n"])), function (p) {
|
|
32776
|
+
return p.maxHeight ? p.maxHeight + "px" : 'unset';
|
|
32777
|
+
});
|
|
32778
|
+
var Row$1 = styled__default.div(_templateObject4$n || (_templateObject4$n = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n gap: 12px;\n padding: 6px;\n border-radius: 10px;\n cursor: pointer;\n &:hover {\n background-color: ", ";\n }\n"])), function (p) {
|
|
32779
|
+
return p.backgroundHover;
|
|
32780
|
+
});
|
|
32781
|
+
var RowInfo = styled__default.div(_templateObject5$j || (_templateObject5$j = _taggedTemplateLiteralLoose(["\n display: flex;\n margin-right: auto;\n min-width: 0;\n align-items: center;\n justify-content: space-between;\n width: 100%;\n"])));
|
|
32782
|
+
var RowTitle = styled__default.div(_templateObject6$g || (_templateObject6$g = _taggedTemplateLiteralLoose(["\n color: ", ";\n font-size: 16px;\n font-weight: 500;\n line-height: 22px;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n"])), function (p) {
|
|
32783
|
+
return p.color;
|
|
32784
|
+
});
|
|
32785
|
+
var RowDate = styled__default.div(_templateObject7$e || (_templateObject7$e = _taggedTemplateLiteralLoose(["\n color: ", ";\n min-width: max-content;\n font-weight: 400;\n font-size: 13px;\n line-height: 16px;\n"])), function (p) {
|
|
32786
|
+
return p.color;
|
|
32787
|
+
});
|
|
32788
|
+
var Empty = styled__default.div(_templateObject8$d || (_templateObject8$d = _taggedTemplateLiteralLoose(["\n color: ", ";\n text-align: center;\n padding: 16px 0;\n font-size: 14px;\n height: calc(100% - 32px);\n display: flex;\n align-items: center;\n justify-content: center;\n overflow: hidden;\n"])), function (p) {
|
|
32789
|
+
return p.color;
|
|
32790
|
+
});
|
|
32791
|
+
var DropdownRoot = styled__default.div(_templateObject9$b || (_templateObject9$b = _taggedTemplateLiteralLoose(["\n position: absolute;\n top: ", ";\n bottom: ", ";\n ", "\n z-index: 15;\n background: ", ";\n box-shadow: 0px 0px 24px 0px #11153929;\n border-radius: 16px;\n direction: initial;\n visibility: ", ";\n"])), function (p) {
|
|
32792
|
+
return p.flip ? 'auto' : 'calc(100% + 8px)';
|
|
32793
|
+
}, function (p) {
|
|
32794
|
+
return p.flip ? 'calc(100% + 8px)' : 'auto';
|
|
32795
|
+
}, function (p) {
|
|
32796
|
+
return p.rtl ? 'left: 4%;' : 'right: 4%;';
|
|
32797
|
+
}, function (_ref2) {
|
|
32798
|
+
var backgroundColor = _ref2.backgroundColor;
|
|
32799
|
+
return backgroundColor;
|
|
32800
|
+
}, function (p) {
|
|
32801
|
+
return p.ready ? 'visible' : 'hidden';
|
|
32802
|
+
});
|
|
32803
|
+
var Panel = styled__default.div(_templateObject0$a || (_templateObject0$a = _taggedTemplateLiteralLoose(["\n background: ", ";\n border-radius: 16px;\n overflow: hidden;\n transition: height 0.25s ease;\n height: ", ";\n width: ", ";\n min-width: ", ";\n display: flex;\n flex-direction: column;\n"])), function (p) {
|
|
32804
|
+
return p.bg;
|
|
32805
|
+
}, function (p) {
|
|
32806
|
+
return p.open ? Math.min(p.heightPx || 0, parseInt(String(p.maxHeight || '300'), 10) || 300) + "px" : '0';
|
|
32807
|
+
}, function (p) {
|
|
32808
|
+
return p.maxWidth || '340px';
|
|
32809
|
+
}, function (p) {
|
|
32810
|
+
return p.minWidth || '340px';
|
|
32811
|
+
});
|
|
32812
|
+
var Content = styled__default.div(_templateObject1$7 || (_templateObject1$7 = _taggedTemplateLiteralLoose(["\n padding: 16px 12px;\n height: 100%;\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n"])));
|
|
32813
|
+
|
|
32814
|
+
var _templateObject$D, _templateObject2$y, _templateObject3$s, _templateObject4$o, _templateObject5$k, _templateObject6$h, _templateObject7$f, _templateObject8$e, _templateObject9$c, _templateObject0$b, _templateObject1$8, _templateObject10$4, _templateObject11$4, _templateObject12$3;
|
|
32151
32815
|
var Message$1 = function Message(_ref) {
|
|
32152
32816
|
var message = _ref.message,
|
|
32153
32817
|
channel = _ref.channel,
|
|
@@ -32207,6 +32871,8 @@ var Message$1 = function Message(_ref) {
|
|
|
32207
32871
|
deleteMessage = _ref$deleteMessage === void 0 ? true : _ref$deleteMessage,
|
|
32208
32872
|
_ref$selectMessage = _ref.selectMessage,
|
|
32209
32873
|
selectMessage = _ref$selectMessage === void 0 ? true : _ref$selectMessage,
|
|
32874
|
+
_ref$showInfoMessage = _ref.showInfoMessage,
|
|
32875
|
+
showInfoMessage = _ref$showInfoMessage === void 0 ? true : _ref$showInfoMessage,
|
|
32210
32876
|
allowEditDeleteIncomingMessage = _ref.allowEditDeleteIncomingMessage,
|
|
32211
32877
|
_ref$forwardMessage = _ref.forwardMessage,
|
|
32212
32878
|
forwardMessage = _ref$forwardMessage === void 0 ? true : _ref$forwardMessage,
|
|
@@ -32235,6 +32901,7 @@ var Message$1 = function Message(_ref) {
|
|
|
32235
32901
|
selectIconOrder = _ref.selectIconOrder,
|
|
32236
32902
|
starIconOrder = _ref.starIconOrder,
|
|
32237
32903
|
reportIconOrder = _ref.reportIconOrder,
|
|
32904
|
+
infoIconOrder = _ref.infoIconOrder,
|
|
32238
32905
|
reactionIconTooltipText = _ref.reactionIconTooltipText,
|
|
32239
32906
|
editIconTooltipText = _ref.editIconTooltipText,
|
|
32240
32907
|
copyIconTooltipText = _ref.copyIconTooltipText,
|
|
@@ -32245,6 +32912,7 @@ var Message$1 = function Message(_ref) {
|
|
|
32245
32912
|
selectIconTooltipText = _ref.selectIconTooltipText,
|
|
32246
32913
|
starIconTooltipText = _ref.starIconTooltipText,
|
|
32247
32914
|
reportIconTooltipText = _ref.reportIconTooltipText,
|
|
32915
|
+
infoIconTooltipText = _ref.infoIconTooltipText,
|
|
32248
32916
|
messageActionIconsColor = _ref.messageActionIconsColor,
|
|
32249
32917
|
messageStatusSize = _ref.messageStatusSize,
|
|
32250
32918
|
messageStatusColor = _ref.messageStatusColor,
|
|
@@ -32296,7 +32964,9 @@ var Message$1 = function Message(_ref) {
|
|
|
32296
32964
|
messageTextFontSize = _ref.messageTextFontSize,
|
|
32297
32965
|
messageTextLineHeight = _ref.messageTextLineHeight,
|
|
32298
32966
|
messageTimeColorOnAttachment = _ref.messageTimeColorOnAttachment,
|
|
32299
|
-
shouldOpenUserProfileForMention = _ref.shouldOpenUserProfileForMention
|
|
32967
|
+
shouldOpenUserProfileForMention = _ref.shouldOpenUserProfileForMention,
|
|
32968
|
+
_ref$showInfoMessageP = _ref.showInfoMessageProps,
|
|
32969
|
+
showInfoMessageProps = _ref$showInfoMessageP === void 0 ? {} : _ref$showInfoMessageP;
|
|
32300
32970
|
var _useColor = useColors(),
|
|
32301
32971
|
accentColor = _useColor[THEME_COLORS.ACCENT],
|
|
32302
32972
|
backgroundSections = _useColor[THEME_COLORS.BACKGROUND_SECTIONS],
|
|
@@ -32318,29 +32988,32 @@ var Message$1 = function Message(_ref) {
|
|
|
32318
32988
|
reportPopupOpen = _useState3[0],
|
|
32319
32989
|
setReportPopupOpen = _useState3[1];
|
|
32320
32990
|
var _useState4 = React.useState(false),
|
|
32321
|
-
|
|
32322
|
-
|
|
32991
|
+
infoPopupOpen = _useState4[0],
|
|
32992
|
+
setInfoPopupOpen = _useState4[1];
|
|
32323
32993
|
var _useState5 = React.useState(false),
|
|
32324
|
-
|
|
32325
|
-
|
|
32994
|
+
messageActionsShow = _useState5[0],
|
|
32995
|
+
setMessageActionsShow = _useState5[1];
|
|
32326
32996
|
var _useState6 = React.useState(false),
|
|
32327
|
-
|
|
32328
|
-
|
|
32997
|
+
emojisPopupOpen = _useState6[0],
|
|
32998
|
+
setEmojisPopupOpen = _useState6[1];
|
|
32329
32999
|
var _useState7 = React.useState(false),
|
|
32330
|
-
|
|
32331
|
-
|
|
32332
|
-
var _useState8 = React.useState(
|
|
32333
|
-
|
|
32334
|
-
|
|
32335
|
-
var _useState9 = React.useState(
|
|
32336
|
-
|
|
32337
|
-
|
|
32338
|
-
var _useState0 = React.useState(
|
|
33000
|
+
frequentlyEmojisOpen = _useState7[0],
|
|
33001
|
+
setFrequentlyEmojisOpen = _useState7[1];
|
|
33002
|
+
var _useState8 = React.useState(false),
|
|
33003
|
+
reactionsPopupOpen = _useState8[0],
|
|
33004
|
+
setReactionsPopupOpen = _useState8[1];
|
|
33005
|
+
var _useState9 = React.useState(0),
|
|
33006
|
+
reactionsPopupPosition = _useState9[0],
|
|
33007
|
+
setReactionsPopupPosition = _useState9[1];
|
|
33008
|
+
var _useState0 = React.useState(''),
|
|
33009
|
+
emojisPopupPosition = _useState0[0],
|
|
33010
|
+
setEmojisPopupPosition = _useState0[1];
|
|
33011
|
+
var _useState1 = React.useState({
|
|
32339
33012
|
left: 0,
|
|
32340
33013
|
right: 0
|
|
32341
33014
|
}),
|
|
32342
|
-
reactionsPopupHorizontalPosition =
|
|
32343
|
-
setReactionsPopupHorizontalPosition =
|
|
33015
|
+
reactionsPopupHorizontalPosition = _useState1[0],
|
|
33016
|
+
setReactionsPopupHorizontalPosition = _useState1[1];
|
|
32344
33017
|
var scrollToNewMessage = useSelector(scrollToNewMessageSelector, reactRedux.shallowEqual);
|
|
32345
33018
|
var messageItemRef = React.useRef();
|
|
32346
33019
|
var isVisible = useOnScreen(messageItemRef);
|
|
@@ -32376,6 +33049,10 @@ var Message$1 = function Message(_ref) {
|
|
|
32376
33049
|
setMessageActionsShow(false);
|
|
32377
33050
|
stopScrolling(!forwardPopupOpen);
|
|
32378
33051
|
};
|
|
33052
|
+
var handleToggleInfoMessagePopupOpen = function handleToggleInfoMessagePopupOpen() {
|
|
33053
|
+
setInfoPopupOpen(!infoPopupOpen);
|
|
33054
|
+
setMessageActionsShow(false);
|
|
33055
|
+
};
|
|
32379
33056
|
var handleReplyMessage = function handleReplyMessage(threadReply) {
|
|
32380
33057
|
if (threadReply) ; else {
|
|
32381
33058
|
dispatch(setMessageForReplyAC(message));
|
|
@@ -32633,6 +33310,7 @@ var Message$1 = function Message(_ref) {
|
|
|
32633
33310
|
emojisPopupPosition: emojisPopupPosition,
|
|
32634
33311
|
handleSetMessageForEdit: toggleEditMode,
|
|
32635
33312
|
handleResendMessage: handleResendMessage,
|
|
33313
|
+
handleOpenInfoMessage: handleToggleInfoMessagePopupOpen,
|
|
32636
33314
|
handleOpenDeleteMessage: handleToggleDeleteMessagePopup,
|
|
32637
33315
|
handleOpenForwardMessage: handleToggleForwardMessagePopup,
|
|
32638
33316
|
handleCopyMessage: handleCopyMessage,
|
|
@@ -32685,6 +33363,7 @@ var Message$1 = function Message(_ref) {
|
|
|
32685
33363
|
replyMessageInThread: replyMessageInThread,
|
|
32686
33364
|
deleteMessage: deleteMessage,
|
|
32687
33365
|
selectMessage: selectMessage,
|
|
33366
|
+
showInfoMessage: showInfoMessage,
|
|
32688
33367
|
allowEditDeleteIncomingMessage: allowEditDeleteIncomingMessage,
|
|
32689
33368
|
forwardMessage: forwardMessage,
|
|
32690
33369
|
reportMessage: reportMessage,
|
|
@@ -32709,6 +33388,7 @@ var Message$1 = function Message(_ref) {
|
|
|
32709
33388
|
selectIconOrder: selectIconOrder,
|
|
32710
33389
|
starIconOrder: starIconOrder,
|
|
32711
33390
|
reportIconOrder: reportIconOrder,
|
|
33391
|
+
infoIconOrder: infoIconOrder,
|
|
32712
33392
|
reactionIconTooltipText: reactionIconTooltipText,
|
|
32713
33393
|
editIconTooltipText: editIconTooltipText,
|
|
32714
33394
|
copyIconTooltipText: copyIconTooltipText,
|
|
@@ -32719,6 +33399,7 @@ var Message$1 = function Message(_ref) {
|
|
|
32719
33399
|
selectIconTooltipText: selectIconTooltipText,
|
|
32720
33400
|
starIconTooltipText: starIconTooltipText,
|
|
32721
33401
|
reportIconTooltipText: reportIconTooltipText,
|
|
33402
|
+
infoIconTooltipText: infoIconTooltipText,
|
|
32722
33403
|
messageActionIconsColor: messageActionIconsColor,
|
|
32723
33404
|
messageStatusSize: messageStatusSize,
|
|
32724
33405
|
messageStatusColor: messageStatusColor,
|
|
@@ -32752,6 +33433,7 @@ var Message$1 = function Message(_ref) {
|
|
|
32752
33433
|
setMessageActionsShow: setMessageActionsShow,
|
|
32753
33434
|
closeMessageActions: closeMessageActions,
|
|
32754
33435
|
handleToggleForwardMessagePopup: handleToggleForwardMessagePopup,
|
|
33436
|
+
handleToggleInfoMessagePopupOpen: handleToggleInfoMessagePopupOpen,
|
|
32755
33437
|
handleReplyMessage: handleReplyMessage,
|
|
32756
33438
|
handleToggleDeleteMessagePopup: handleToggleDeleteMessagePopup,
|
|
32757
33439
|
handleToggleReportPopupOpen: handleToggleReportPopupOpen,
|
|
@@ -32859,16 +33541,22 @@ var Message$1 = function Message(_ref) {
|
|
|
32859
33541
|
togglePopup: handleToggleForwardMessagePopup,
|
|
32860
33542
|
buttonText: 'Forward',
|
|
32861
33543
|
title: 'Forward message'
|
|
32862
|
-
}))
|
|
33544
|
+
})), infoPopupOpen && (/*#__PURE__*/React__default.createElement(MessageInfo, Object.assign({
|
|
33545
|
+
message: message,
|
|
33546
|
+
togglePopup: handleToggleInfoMessagePopupOpen
|
|
33547
|
+
}, showInfoMessageProps, {
|
|
33548
|
+
contacts: contactsMap,
|
|
33549
|
+
handleOpenUserProfile: handleOpenUserProfile
|
|
33550
|
+
}))));
|
|
32863
33551
|
};
|
|
32864
33552
|
var Message$2 = /*#__PURE__*/React__default.memo(Message$1, function (prevProps, nextProps) {
|
|
32865
33553
|
return prevProps.message.deliveryStatus === nextProps.message.deliveryStatus && prevProps.message.state === nextProps.message.state && prevProps.message.userReactions === nextProps.message.userReactions && prevProps.message.body === nextProps.message.body && prevProps.message.reactionTotals === nextProps.message.reactionTotals && prevProps.message.attachments === nextProps.message.attachments && prevProps.message.metadata === nextProps.message.metadata && prevProps.message.userMarkers === nextProps.message.userMarkers && prevProps.prevMessage === nextProps.prevMessage && prevProps.nextMessage === nextProps.nextMessage && prevProps.selectedMessagesMap === nextProps.selectedMessagesMap && prevProps.contactsMap === nextProps.contactsMap && prevProps.connectionStatus === nextProps.connectionStatus && prevProps.openedMessageMenuId === nextProps.openedMessageMenuId && prevProps.theme === nextProps.theme;
|
|
32866
33554
|
});
|
|
32867
|
-
var MessageReactionKey = styled__default.span(_templateObject$
|
|
32868
|
-
var ReactionItemCount = styled__default.span(_templateObject2$
|
|
33555
|
+
var MessageReactionKey = styled__default.span(_templateObject$D || (_templateObject$D = _taggedTemplateLiteralLoose(["\n display: inline-flex;\n align-items: center;\n font-family:\n apple color emoji,\n segoe ui emoji,\n noto color emoji,\n android emoji,\n emojisymbols,\n emojione mozilla,\n twemoji mozilla,\n segoe ui symbol;\n"])));
|
|
33556
|
+
var ReactionItemCount = styled__default.span(_templateObject2$y || (_templateObject2$y = _taggedTemplateLiteralLoose(["\n margin-left: 2px;\n font-family: Inter, sans-serif;\n font-weight: 400;\n font-size: 14px;\n line-height: 16px;\n color: ", ";\n"])), function (props) {
|
|
32869
33557
|
return props.color;
|
|
32870
33558
|
});
|
|
32871
|
-
var MessageReaction = styled__default.span(_templateObject3$
|
|
33559
|
+
var MessageReaction = styled__default.span(_templateObject3$s || (_templateObject3$s = _taggedTemplateLiteralLoose(["\n display: inline-flex;\n //min-width: 23px;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n margin: ", ";\n margin-right: ", ";\n border: ", ";\n color: ", ";\n box-sizing: border-box;\n border-radius: ", ";\n font-size: ", ";\n line-height: ", ";\n padding: ", ";\n background-color: ", ";\n white-space: nowrap;\n\n &:last-child {\n margin-right: 0;\n }\n"])), function (props) {
|
|
32872
33560
|
return props.margin || '0 8px 0 0';
|
|
32873
33561
|
}, function (props) {
|
|
32874
33562
|
return props.isLastReaction && '0';
|
|
@@ -32887,26 +33575,26 @@ var MessageReaction = styled__default.span(_templateObject3$r || (_templateObjec
|
|
|
32887
33575
|
}, function (props) {
|
|
32888
33576
|
return props.backgroundColor;
|
|
32889
33577
|
});
|
|
32890
|
-
var ThreadMessageCountContainer = styled__default.div(_templateObject4$
|
|
33578
|
+
var ThreadMessageCountContainer = styled__default.div(_templateObject4$o || (_templateObject4$o = _taggedTemplateLiteralLoose(["\n position: relative;\n color: ", ";\n font-weight: 500;\n font-size: 13px;\n line-height: 15px;\n margin: 12px;\n cursor: pointer;\n\n &::before {\n content: '';\n position: absolute;\n left: -25px;\n top: -21px;\n width: 16px;\n height: 26px;\n border-left: 2px solid #cdcdcf;\n border-bottom: 2px solid #cdcdcf;\n border-radius: 0 0 0 14px;\n }\n"])), function (props) {
|
|
32891
33579
|
return props.color;
|
|
32892
33580
|
});
|
|
32893
|
-
var FailedMessageIcon = styled__default.div(_templateObject5$
|
|
33581
|
+
var FailedMessageIcon = styled__default.div(_templateObject5$k || (_templateObject5$k = _taggedTemplateLiteralLoose(["\n position: absolute;\n top: -6px;\n left: ", ";\n right: ", ";\n width: 20px;\n height: 20px;\n"])), function (props) {
|
|
32894
33582
|
return !props.rtl && '-24px';
|
|
32895
33583
|
}, function (props) {
|
|
32896
33584
|
return props.rtl && '-24px';
|
|
32897
33585
|
});
|
|
32898
|
-
var ErrorIconWrapper = styled__default(SvgErrorIcon)(_templateObject6$
|
|
32899
|
-
var SelectMessageWrapper = styled__default.div(_templateObject7$
|
|
33586
|
+
var ErrorIconWrapper = styled__default(SvgErrorIcon)(_templateObject6$h || (_templateObject6$h = _taggedTemplateLiteralLoose(["\n width: 20px;\n height: 20px;\n"])));
|
|
33587
|
+
var SelectMessageWrapper = styled__default.div(_templateObject7$f || (_templateObject7$f = _taggedTemplateLiteralLoose(["\n display: flex;\n padding: 10px;\n position: absolute;\n left: 4%;\n bottom: calc(50% - 22px);\n cursor: ", ";\n & > svg {\n color: ", ";\n width: 24px;\n height: 24px;\n }\n"])), function (props) {
|
|
32900
33588
|
return !props.disabled && 'pointer';
|
|
32901
33589
|
}, function (props) {
|
|
32902
33590
|
return props.activeColor;
|
|
32903
33591
|
});
|
|
32904
|
-
var EmptySelection = styled__default.span(_templateObject8$
|
|
33592
|
+
var EmptySelection = styled__default.span(_templateObject8$e || (_templateObject8$e = _taggedTemplateLiteralLoose(["\n display: inline-block;\n width: 24px;\n height: 24px;\n border: 1.5px solid ", ";\n box-sizing: border-box;\n border-radius: 50%;\n transform: scale(0.92);\n opacity: ", ";\n"])), function (props) {
|
|
32905
33593
|
return props.borderColor;
|
|
32906
33594
|
}, function (props) {
|
|
32907
33595
|
return props.disabled && '0.5';
|
|
32908
33596
|
});
|
|
32909
|
-
var ReactionsContainer = styled__default.div(_templateObject9$
|
|
33597
|
+
var ReactionsContainer = styled__default.div(_templateObject9$c || (_templateObject9$c = _taggedTemplateLiteralLoose(["\n display: inline-flex;\n margin-left: ", ";\n margin-right: ", ";\n\n margin-top: 4px;\n justify-content: flex-end;\n border: ", ";\n box-shadow: ", ";\n filter: drop-shadow(0px 0px 2px rgba(17, 21, 57, 0.08));\n border-radius: ", ";\n background-color: ", ";\n padding: ", ";\n z-index: 9;\n ", ";\n overflow: hidden;\n height: ", ";\n transition: all 0.3s;\n"])), function (props) {
|
|
32910
33598
|
return props.rtlDirection && 'auto';
|
|
32911
33599
|
}, function (props) {
|
|
32912
33600
|
return !props.rtlDirection && 'auto';
|
|
@@ -32925,10 +33613,10 @@ var ReactionsContainer = styled__default.div(_templateObject9$b || (_templateObj
|
|
|
32925
33613
|
}, function (props) {
|
|
32926
33614
|
return props.isReacted ? '16px' : '0';
|
|
32927
33615
|
});
|
|
32928
|
-
var MessageReactionsCont = styled__default.div(_templateObject0$
|
|
33616
|
+
var MessageReactionsCont = styled__default.div(_templateObject0$b || (_templateObject0$b = _taggedTemplateLiteralLoose(["\n position: relative;\n display: inline-flex;\n max-width: 300px;\n direction: ", ";\n cursor: pointer;\n"])), function (props) {
|
|
32929
33617
|
return props.rtlDirection && 'ltr';
|
|
32930
33618
|
});
|
|
32931
|
-
var MessageStatus$1 = styled__default.span(_templateObject1$
|
|
33619
|
+
var MessageStatus$1 = styled__default.span(_templateObject1$8 || (_templateObject1$8 = _taggedTemplateLiteralLoose(["\n display: inline-flex;\n align-items: center;\n margin-left: 4px;\n text-align: right;\n height: ", ";\n & > svg {\n height: 16px;\n width: 16px;\n }\n"])), function (props) {
|
|
32932
33620
|
return props.height || '14px';
|
|
32933
33621
|
});
|
|
32934
33622
|
var HiddenMessageTime$1 = styled__default.span(_templateObject10$4 || (_templateObject10$4 = _taggedTemplateLiteralLoose(["\n display: ", ";\n font-weight: 400;\n font-size: ", ";\n color: ", ";\n"])), function (props) {
|
|
@@ -32973,7 +33661,7 @@ var HiddenMessageProperty;
|
|
|
32973
33661
|
HiddenMessageProperty["hideAfterSendMessage"] = "hideAfterSendMessage";
|
|
32974
33662
|
})(HiddenMessageProperty || (HiddenMessageProperty = {}));
|
|
32975
33663
|
|
|
32976
|
-
var _templateObject$
|
|
33664
|
+
var _templateObject$E, _templateObject2$z, _templateObject3$t, _templateObject4$p, _templateObject5$l, _templateObject6$i, _templateObject7$g, _templateObject8$f, _templateObject9$d, _templateObject0$c, _templateObject1$9;
|
|
32977
33665
|
var CreateMessageDateDivider = function CreateMessageDateDivider(_ref) {
|
|
32978
33666
|
var lastIndex = _ref.lastIndex,
|
|
32979
33667
|
currentMessageDate = _ref.currentMessageDate,
|
|
@@ -33050,6 +33738,7 @@ var MessageList = function MessageList(_ref2) {
|
|
|
33050
33738
|
forwardMessage = _ref2.forwardMessage,
|
|
33051
33739
|
deleteMessage = _ref2.deleteMessage,
|
|
33052
33740
|
selectMessage = _ref2.selectMessage,
|
|
33741
|
+
showInfoMessage = _ref2.showInfoMessage,
|
|
33053
33742
|
reportMessage = _ref2.reportMessage,
|
|
33054
33743
|
reactionIcon = _ref2.reactionIcon,
|
|
33055
33744
|
editIcon = _ref2.editIcon,
|
|
@@ -33096,6 +33785,7 @@ var MessageList = function MessageList(_ref2) {
|
|
|
33096
33785
|
selectIconOrder = _ref2.selectIconOrder,
|
|
33097
33786
|
starIconOrder = _ref2.starIconOrder,
|
|
33098
33787
|
reportIconOrder = _ref2.reportIconOrder,
|
|
33788
|
+
infoIconOrder = _ref2.infoIconOrder,
|
|
33099
33789
|
reactionIconTooltipText = _ref2.reactionIconTooltipText,
|
|
33100
33790
|
editIconTooltipText = _ref2.editIconTooltipText,
|
|
33101
33791
|
copyIconTooltipText = _ref2.copyIconTooltipText,
|
|
@@ -33103,6 +33793,7 @@ var MessageList = function MessageList(_ref2) {
|
|
|
33103
33793
|
replyInThreadIconTooltipText = _ref2.replyInThreadIconTooltipText,
|
|
33104
33794
|
forwardIconTooltipText = _ref2.forwardIconTooltipText,
|
|
33105
33795
|
deleteIconTooltipText = _ref2.deleteIconTooltipText,
|
|
33796
|
+
infoIconTooltipText = _ref2.infoIconTooltipText,
|
|
33106
33797
|
selectIconTooltipText = _ref2.selectIconTooltipText,
|
|
33107
33798
|
starIconTooltipText = _ref2.starIconTooltipText,
|
|
33108
33799
|
reportIconTooltipText = _ref2.reportIconTooltipText,
|
|
@@ -33155,7 +33846,9 @@ var MessageList = function MessageList(_ref2) {
|
|
|
33155
33846
|
messageTimeColor = _ref2.messageTimeColor,
|
|
33156
33847
|
messageStatusAndTimeLineHeight = _ref2.messageStatusAndTimeLineHeight,
|
|
33157
33848
|
hiddenMessagesProperties = _ref2.hiddenMessagesProperties,
|
|
33158
|
-
shouldOpenUserProfileForMention = _ref2.shouldOpenUserProfileForMention
|
|
33849
|
+
shouldOpenUserProfileForMention = _ref2.shouldOpenUserProfileForMention,
|
|
33850
|
+
_ref2$showInfoMessage = _ref2.showInfoMessageProps,
|
|
33851
|
+
showInfoMessageProps = _ref2$showInfoMessage === void 0 ? {} : _ref2$showInfoMessage;
|
|
33159
33852
|
var _useColor = useColors(),
|
|
33160
33853
|
outgoingMessageBackground = _useColor[THEME_COLORS.OUTGOING_MESSAGE_BACKGROUND],
|
|
33161
33854
|
themeBackgroundColor = _useColor[THEME_COLORS.BACKGROUND],
|
|
@@ -33898,6 +34591,7 @@ var MessageList = function MessageList(_ref2) {
|
|
|
33898
34591
|
replyMessageInThread: replyMessageInThread,
|
|
33899
34592
|
deleteMessage: deleteMessage,
|
|
33900
34593
|
selectMessage: selectMessage,
|
|
34594
|
+
showInfoMessage: showInfoMessage,
|
|
33901
34595
|
allowEditDeleteIncomingMessage: allowEditDeleteIncomingMessage,
|
|
33902
34596
|
reportMessage: reportMessage,
|
|
33903
34597
|
reactionIcon: reactionIcon,
|
|
@@ -33923,6 +34617,7 @@ var MessageList = function MessageList(_ref2) {
|
|
|
33923
34617
|
replyInThreadIconOrder: replyInThreadIconOrder,
|
|
33924
34618
|
forwardIconOrder: forwardIconOrder,
|
|
33925
34619
|
deleteIconOrder: deleteIconOrder,
|
|
34620
|
+
infoIconOrder: infoIconOrder,
|
|
33926
34621
|
selectIconOrder: selectIconOrder,
|
|
33927
34622
|
starIconOrder: starIconOrder,
|
|
33928
34623
|
reportIconOrder: reportIconOrder,
|
|
@@ -33933,6 +34628,7 @@ var MessageList = function MessageList(_ref2) {
|
|
|
33933
34628
|
replyInThreadIconTooltipText: replyInThreadIconTooltipText,
|
|
33934
34629
|
forwardIconTooltipText: forwardIconTooltipText,
|
|
33935
34630
|
deleteIconTooltipText: deleteIconTooltipText,
|
|
34631
|
+
infoIconTooltipText: infoIconTooltipText,
|
|
33936
34632
|
selectIconTooltipText: selectIconTooltipText,
|
|
33937
34633
|
starIconTooltipText: starIconTooltipText,
|
|
33938
34634
|
reportIconTooltipText: reportIconTooltipText,
|
|
@@ -33982,7 +34678,8 @@ var MessageList = function MessageList(_ref2) {
|
|
|
33982
34678
|
messageTimeFontSize: messageTimeFontSize,
|
|
33983
34679
|
messageTimeColor: messageTimeColor,
|
|
33984
34680
|
messageStatusAndTimeLineHeight: messageStatusAndTimeLineHeight,
|
|
33985
|
-
shouldOpenUserProfileForMention: shouldOpenUserProfileForMention
|
|
34681
|
+
shouldOpenUserProfileForMention: shouldOpenUserProfileForMention,
|
|
34682
|
+
showInfoMessageProps: showInfoMessageProps
|
|
33986
34683
|
}))), isUnreadMessage ? (/*#__PURE__*/React__default.createElement(MessageDivider, {
|
|
33987
34684
|
theme: theme,
|
|
33988
34685
|
newMessagesSeparatorTextColor: newMessagesSeparatorTextColor,
|
|
@@ -34012,14 +34709,14 @@ var MessageList = function MessageList(_ref2) {
|
|
|
34012
34709
|
attachmentsPreview: attachmentsPreview
|
|
34013
34710
|
})))));
|
|
34014
34711
|
};
|
|
34015
|
-
var Container$h = styled__default.div(_templateObject$
|
|
34712
|
+
var Container$h = styled__default.div(_templateObject$E || (_templateObject$E = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column-reverse;\n flex-grow: 1;\n position: relative;\n overflow: auto;\n scroll-behavior: smooth;\n will-change: left, top;\n background-color: ", ";\n overflow-x: hidden;\n\n &::-webkit-scrollbar {\n width: 8px;\n background: transparent;\n }\n &::-webkit-scrollbar-thumb {\n background: transparent;\n }\n\n &.show-scrollbar::-webkit-scrollbar-thumb {\n background: ", ";\n border-radius: 4px;\n }\n &.show-scrollbar::-webkit-scrollbar-track {\n background: transparent;\n }\n"])), function (props) {
|
|
34016
34713
|
return props.backgroundColor;
|
|
34017
34714
|
}, function (props) {
|
|
34018
34715
|
return props.thumbColor;
|
|
34019
34716
|
});
|
|
34020
|
-
var EmptyDiv = styled__default.div(_templateObject2$
|
|
34021
|
-
var MessagesBox = styled__default.div(_templateObject3$
|
|
34022
|
-
var MessageTopDate = styled__default.div(_templateObject4$
|
|
34717
|
+
var EmptyDiv = styled__default.div(_templateObject2$z || (_templateObject2$z = _taggedTemplateLiteralLoose(["\n height: 300px;\n"])));
|
|
34718
|
+
var MessagesBox = styled__default.div(_templateObject3$t || (_templateObject3$t = _taggedTemplateLiteralLoose(["\n //height: auto;\n display: flex;\n //flex-direction: column-reverse;\n flex-direction: column;\n padding-bottom: 20px;\n //overflow: auto;\n //scroll-behavior: unset;\n"])));
|
|
34719
|
+
var MessageTopDate = styled__default.div(_templateObject4$p || (_templateObject4$p = _taggedTemplateLiteralLoose(["\n position: absolute;\n justify-content: center;\n width: 100%;\n top: ", ";\n left: 0;\n margin-top: ", ";\n margin-bottom: ", ";\n text-align: center;\n z-index: 10;\n background: transparent;\n opacity: ", ";\n transition: all 0.2s ease-in-out;\n width: calc(100% - 8px);\n\n span {\n display: inline-block;\n max-width: 380px;\n font-style: normal;\n font-weight: normal;\n font-size: ", ";\n color: ", ";\n background-color: ", ";\n border: ", ";\n box-sizing: border-box;\n border-radius: ", ";\n padding: 5px 16px;\n box-shadow:\n 0 0 2px rgba(0, 0, 0, 0.08),\n 0 2px 24px rgba(0, 0, 0, 0.08);\n text-overflow: ellipsis;\n overflow: hidden;\n }\n"])), function (props) {
|
|
34023
34720
|
return props.topOffset ? props.topOffset + 22 + "px" : '22px';
|
|
34024
34721
|
}, function (props) {
|
|
34025
34722
|
return props.marginTop;
|
|
@@ -34038,19 +34735,19 @@ var MessageTopDate = styled__default.div(_templateObject4$o || (_templateObject4
|
|
|
34038
34735
|
}, function (props) {
|
|
34039
34736
|
return props.dateDividerBorderRadius || '14px';
|
|
34040
34737
|
});
|
|
34041
|
-
var DragAndDropContainer = styled__default.div(_templateObject5$
|
|
34738
|
+
var DragAndDropContainer = styled__default.div(_templateObject5$l || (_templateObject5$l = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n margin-bottom: -31px;\n margin-top: -2px;\n\n position: absolute;\n left: 0;\n top: ", ";\n width: 100%;\n height: ", ";\n background-color: ", ";\n z-index: 999;\n"])), function (props) {
|
|
34042
34739
|
return props.topOffset ? props.topOffset + 2 + "px" : 0;
|
|
34043
34740
|
}, function (props) {
|
|
34044
34741
|
return props.height ? props.height + 30 + "px" : '100%';
|
|
34045
34742
|
}, function (props) {
|
|
34046
34743
|
return props.backgroundColor;
|
|
34047
34744
|
});
|
|
34048
|
-
var IconWrapper$1 = styled__default.span(_templateObject6$
|
|
34745
|
+
var IconWrapper$1 = styled__default.span(_templateObject6$i || (_templateObject6$i = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: center;\n height: 64px;\n width: 64px;\n background-color: ", ";\n border-radius: 50%;\n text-align: center;\n margin-bottom: 16px;\n transition: all 0.3s;\n pointer-events: none;\n\n & > svg {\n color: ", ";\n width: 32px;\n height: 32px;\n }\n"])), function (props) {
|
|
34049
34746
|
return props.backgroundColor;
|
|
34050
34747
|
}, function (props) {
|
|
34051
34748
|
return props.iconColor;
|
|
34052
34749
|
});
|
|
34053
|
-
var DropAttachmentArea = styled__default.div(_templateObject7$
|
|
34750
|
+
var DropAttachmentArea = styled__default.div(_templateObject7$g || (_templateObject7$g = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: center;\n flex-direction: column;\n height: 100%;\n border: 1px dashed ", ";\n border-radius: 16px;\n margin: ", ";\n font-weight: 400;\n font-size: 15px;\n line-height: 18px;\n letter-spacing: -0.2px;\n color: ", ";\n transition: all 0.1s;\n\n &.dragover {\n background-color: ", ";\n border: 1px dashed ", ";\n\n ", " {\n background-color: ", ";\n }\n }\n"])), function (props) {
|
|
34054
34751
|
return props.borderColor;
|
|
34055
34752
|
}, function (props) {
|
|
34056
34753
|
return props.margin || '12px 32px 32px';
|
|
@@ -34063,16 +34760,16 @@ var DropAttachmentArea = styled__default.div(_templateObject7$f || (_templateObj
|
|
|
34063
34760
|
}, IconWrapper$1, function (props) {
|
|
34064
34761
|
return props.iconBackgroundColor;
|
|
34065
34762
|
});
|
|
34066
|
-
var MessageWrapper = styled__default.div(_templateObject8$
|
|
34763
|
+
var MessageWrapper = styled__default.div(_templateObject8$f || (_templateObject8$f = _taggedTemplateLiteralLoose(["\n &.highlight {\n & .message_item {\n transition: all 0.2s ease-in-out;\n padding-top: 4px;\n padding-bottom: 4px;\n background-color: ", ";\n }\n }\n\n & .message_item {\n transition: all 0.2s ease-in-out;\n }\n"])), function (props) {
|
|
34067
34764
|
return props.highlightBg || '#d5d5d5';
|
|
34068
34765
|
});
|
|
34069
|
-
var NoMessagesContainer = styled__default.div(_templateObject9$
|
|
34766
|
+
var NoMessagesContainer = styled__default.div(_templateObject9$d || (_templateObject9$d = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: center;\n flex-direction: column;\n height: 100%;\n width: 100%;\n font-weight: 400;\n font-size: 15px;\n line-height: 18px;\n letter-spacing: -0.2px;\n color: ", ";\n"])), function (props) {
|
|
34070
34767
|
return props.color;
|
|
34071
34768
|
});
|
|
34072
|
-
var NoMessagesTitle = styled__default.h4(_templateObject0$
|
|
34769
|
+
var NoMessagesTitle = styled__default.h4(_templateObject0$c || (_templateObject0$c = _taggedTemplateLiteralLoose(["\n margin: 12px 0 8px;\n font-family: Inter, sans-serif;\n text-align: center;\n font-size: 20px;\n font-style: normal;\n font-weight: 500;\n line-height: 24px;\n color: ", ";\n"])), function (props) {
|
|
34073
34770
|
return props.color;
|
|
34074
34771
|
});
|
|
34075
|
-
var NoMessagesText = styled__default.p(_templateObject1$
|
|
34772
|
+
var NoMessagesText = styled__default.p(_templateObject1$9 || (_templateObject1$9 = _taggedTemplateLiteralLoose(["\n margin: 0;\n text-align: center;\n font-feature-settings:\n 'clig' off,\n 'liga' off;\n font-family: Inter, sans-serif;\n font-size: 15px;\n font-style: normal;\n font-weight: 400;\n line-height: 20px;\n color: ", ";\n"])), function (props) {
|
|
34076
34773
|
return props.color;
|
|
34077
34774
|
});
|
|
34078
34775
|
|
|
@@ -34112,6 +34809,7 @@ var MessagesContainer = function MessagesContainer(_ref) {
|
|
|
34112
34809
|
forwardMessage = _ref.forwardMessage,
|
|
34113
34810
|
deleteMessage = _ref.deleteMessage,
|
|
34114
34811
|
selectMessage = _ref.selectMessage,
|
|
34812
|
+
showInfoMessage = _ref.showInfoMessage,
|
|
34115
34813
|
reportMessage = _ref.reportMessage,
|
|
34116
34814
|
reactionIcon = _ref.reactionIcon,
|
|
34117
34815
|
editIcon = _ref.editIcon,
|
|
@@ -34158,6 +34856,7 @@ var MessagesContainer = function MessagesContainer(_ref) {
|
|
|
34158
34856
|
selectIconOrder = _ref.selectIconOrder,
|
|
34159
34857
|
starIconOrder = _ref.starIconOrder,
|
|
34160
34858
|
reportIconOrder = _ref.reportIconOrder,
|
|
34859
|
+
infoIconOrder = _ref.infoIconOrder,
|
|
34161
34860
|
reactionIconTooltipText = _ref.reactionIconTooltipText,
|
|
34162
34861
|
editIconTooltipText = _ref.editIconTooltipText,
|
|
34163
34862
|
copyIconTooltipText = _ref.copyIconTooltipText,
|
|
@@ -34168,6 +34867,7 @@ var MessagesContainer = function MessagesContainer(_ref) {
|
|
|
34168
34867
|
selectIconTooltipText = _ref.selectIconTooltipText,
|
|
34169
34868
|
starIconTooltipText = _ref.starIconTooltipText,
|
|
34170
34869
|
reportIconTooltipText = _ref.reportIconTooltipText,
|
|
34870
|
+
infoIconTooltipText = _ref.infoIconTooltipText,
|
|
34171
34871
|
messageActionIconsColor = _ref.messageActionIconsColor,
|
|
34172
34872
|
dateDividerFontSize = _ref.dateDividerFontSize,
|
|
34173
34873
|
dateDividerTextColor = _ref.dateDividerTextColor,
|
|
@@ -34218,7 +34918,9 @@ var MessagesContainer = function MessagesContainer(_ref) {
|
|
|
34218
34918
|
messageStatusAndTimeLineHeight = _ref.messageStatusAndTimeLineHeight,
|
|
34219
34919
|
_ref$hiddenMessagesPr = _ref.hiddenMessagesProperties,
|
|
34220
34920
|
hiddenMessagesProperties = _ref$hiddenMessagesPr === void 0 ? [] : _ref$hiddenMessagesPr,
|
|
34221
|
-
shouldOpenUserProfileForMention = _ref.shouldOpenUserProfileForMention
|
|
34921
|
+
shouldOpenUserProfileForMention = _ref.shouldOpenUserProfileForMention,
|
|
34922
|
+
_ref$showInfoMessageP = _ref.showInfoMessageProps,
|
|
34923
|
+
showInfoMessageProps = _ref$showInfoMessageP === void 0 ? {} : _ref$showInfoMessageP;
|
|
34222
34924
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(MessageList, {
|
|
34223
34925
|
fontFamily: fontFamily,
|
|
34224
34926
|
ownMessageOnRightSide: ownMessageOnRightSide,
|
|
@@ -34249,6 +34951,7 @@ var MessagesContainer = function MessagesContainer(_ref) {
|
|
|
34249
34951
|
forwardMessage: forwardMessage,
|
|
34250
34952
|
deleteMessage: deleteMessage,
|
|
34251
34953
|
selectMessage: selectMessage,
|
|
34954
|
+
showInfoMessage: showInfoMessage,
|
|
34252
34955
|
reportMessage: reportMessage,
|
|
34253
34956
|
reactionIcon: reactionIcon,
|
|
34254
34957
|
editIcon: editIcon,
|
|
@@ -34291,6 +34994,7 @@ var MessagesContainer = function MessagesContainer(_ref) {
|
|
|
34291
34994
|
forwardIconOrder: forwardIconOrder,
|
|
34292
34995
|
deleteIconOrder: deleteIconOrder,
|
|
34293
34996
|
selectIconOrder: selectIconOrder,
|
|
34997
|
+
infoIconOrder: infoIconOrder,
|
|
34294
34998
|
starIconOrder: starIconOrder,
|
|
34295
34999
|
reportIconOrder: reportIconOrder,
|
|
34296
35000
|
reactionIconTooltipText: reactionIconTooltipText,
|
|
@@ -34303,6 +35007,7 @@ var MessagesContainer = function MessagesContainer(_ref) {
|
|
|
34303
35007
|
selectIconTooltipText: selectIconTooltipText,
|
|
34304
35008
|
starIconTooltipText: starIconTooltipText,
|
|
34305
35009
|
reportIconTooltipText: reportIconTooltipText,
|
|
35010
|
+
infoIconTooltipText: infoIconTooltipText,
|
|
34306
35011
|
messageActionIconsColor: messageActionIconsColor,
|
|
34307
35012
|
dateDividerFontSize: dateDividerFontSize,
|
|
34308
35013
|
dateDividerTextColor: dateDividerTextColor,
|
|
@@ -34345,7 +35050,8 @@ var MessagesContainer = function MessagesContainer(_ref) {
|
|
|
34345
35050
|
messageTimeColor: messageTimeColor,
|
|
34346
35051
|
messageStatusAndTimeLineHeight: messageStatusAndTimeLineHeight,
|
|
34347
35052
|
hiddenMessagesProperties: hiddenMessagesProperties,
|
|
34348
|
-
shouldOpenUserProfileForMention: shouldOpenUserProfileForMention
|
|
35053
|
+
shouldOpenUserProfileForMention: shouldOpenUserProfileForMention,
|
|
35054
|
+
showInfoMessageProps: showInfoMessageProps
|
|
34349
35055
|
}));
|
|
34350
35056
|
};
|
|
34351
35057
|
|
|
@@ -34457,7 +35163,7 @@ function $isMentionNode(node) {
|
|
|
34457
35163
|
return node instanceof MentionNode;
|
|
34458
35164
|
}
|
|
34459
35165
|
|
|
34460
|
-
var _templateObject$
|
|
35166
|
+
var _templateObject$F, _templateObject2$A, _templateObject3$u, _templateObject4$q, _templateObject5$m;
|
|
34461
35167
|
var PUNCTUATION = '\\.,\\+\\*\\?\\$\\@\\|#{}\\(\\)\\^\\-\\[\\]\\\\/!%\'"~=<>_:;';
|
|
34462
35168
|
var NAME = '\\b[A-Z][^\\s' + PUNCTUATION + ']';
|
|
34463
35169
|
var DocumentMentionsRegex = {
|
|
@@ -34737,8 +35443,8 @@ function MentionsPlugin(_ref3) {
|
|
|
34737
35443
|
}
|
|
34738
35444
|
});
|
|
34739
35445
|
}
|
|
34740
|
-
var MentionsContainerWrapper = styled__default.div(_templateObject$
|
|
34741
|
-
var MentionsList = styled__default.ul(_templateObject2$
|
|
35446
|
+
var MentionsContainerWrapper = styled__default.div(_templateObject$F || (_templateObject$F = _taggedTemplateLiteralLoose(["\n position: relative;\n animation: fadeIn 0.2s ease-in-out;\n @keyframes fadeIn {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n }\n"])));
|
|
35447
|
+
var MentionsList = styled__default.ul(_templateObject2$A || (_templateObject2$A = _taggedTemplateLiteralLoose(["\n position: absolute;\n bottom: 100%;\n width: 300px;\n transition: all 0.2s;\n overflow: auto;\n max-height: 240px;\n z-index: 200;\n padding: 2px 0 0;\n background: ", ";\n border: ", ";\n box-sizing: border-box;\n box-shadow: ", ";\n border-radius: 6px;\n visibility: ", ";\n"])), function (props) {
|
|
34742
35448
|
return props.backgroundColor;
|
|
34743
35449
|
}, function (props) {
|
|
34744
35450
|
return props.withBorder && "1px solid " + props.borderColor;
|
|
@@ -34747,11 +35453,11 @@ var MentionsList = styled__default.ul(_templateObject2$z || (_templateObject2$z
|
|
|
34747
35453
|
}, function (props) {
|
|
34748
35454
|
return props.hidden ? 'hidden' : 'visible';
|
|
34749
35455
|
});
|
|
34750
|
-
var MemberItem = styled__default.li(_templateObject3$
|
|
35456
|
+
var MemberItem = styled__default.li(_templateObject3$u || (_templateObject3$u = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n font-size: 15px;\n padding: 6px 16px;\n transition: all 0.2s;\n cursor: pointer;\n background-color: ", ";\n\n & ", " {\n width: 10px;\n height: 10px;\n }\n"])), function (props) {
|
|
34751
35457
|
return props.isActiveItem && props.activeBackgroundColor;
|
|
34752
35458
|
}, UserStatus);
|
|
34753
|
-
var UserNamePresence$2 = styled__default.div(_templateObject4$
|
|
34754
|
-
var MemberName$2 = styled__default.h3(_templateObject5$
|
|
35459
|
+
var UserNamePresence$2 = styled__default.div(_templateObject4$q || (_templateObject4$q = _taggedTemplateLiteralLoose(["\n width: calc(100% - 44px);\n margin-left: 12px;\n"])));
|
|
35460
|
+
var MemberName$2 = styled__default.h3(_templateObject5$m || (_templateObject5$m = _taggedTemplateLiteralLoose(["\n margin: 0;\n max-width: calc(100% - 1px);\n font-weight: 500;\n font-size: 15px;\n line-height: 18px;\n letter-spacing: -0.2px;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n color: ", ";\n"])), function (props) {
|
|
34755
35461
|
return props.color;
|
|
34756
35462
|
});
|
|
34757
35463
|
|
|
@@ -34884,7 +35590,7 @@ function SvgUnderline(props) {
|
|
|
34884
35590
|
}))));
|
|
34885
35591
|
}
|
|
34886
35592
|
|
|
34887
|
-
var _templateObject$
|
|
35593
|
+
var _templateObject$G, _templateObject2$B;
|
|
34888
35594
|
function mergeRegister() {
|
|
34889
35595
|
for (var _len = arguments.length, func = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
34890
35596
|
func[_key] = arguments[_key];
|
|
@@ -35265,10 +35971,10 @@ function FloatingTextFormatToolbarPlugin(_ref3) {
|
|
|
35265
35971
|
editor = _useLexicalComposerCo[0];
|
|
35266
35972
|
return useFloatingTextFormatToolbar(editor, anchorElem);
|
|
35267
35973
|
}
|
|
35268
|
-
var FloatingTextFormatPopup = styled__default.div(_templateObject$
|
|
35974
|
+
var FloatingTextFormatPopup = styled__default.div(_templateObject$G || (_templateObject$G = _taggedTemplateLiteralLoose(["\n display: flex;\n background: ", ";\n vertical-align: middle;\n position: absolute;\n top: 0;\n left: 0;\n opacity: 0;\n box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);\n border-radius: 8px;\n transition: opacity 0.5s;\n padding: 12px;\n will-change: transform;\n z-index: 99;\n\n & button.popup-item {\n border: 0;\n display: flex;\n background: none;\n border-radius: 10px;\n padding: 8px;\n cursor: pointer;\n vertical-align: middle;\n }\n & button.popup-item:disabled {\n cursor: not-allowed;\n }\n & button.popup-item.spaced {\n margin-right: 2px;\n }\n & button.popup-item i.format {\n background-size: contain;\n height: 18px;\n width: 18px;\n margin-top: 2px;\n vertical-align: -0.25em;\n display: flex;\n opacity: 0.6;\n }\n\n & button.popup-item:disabled i.format {\n opacity: 0.2;\n }\n & button.popup-item.active {\n background-color: rgba(223, 232, 250, 0.3);\n }\n & button.popup-item.active i {\n opacity: 1;\n }\n & .popup-item:hover:not([disabled]) {\n background-color: #eee;\n }\n & select.popup-item {\n border: 0;\n display: flex;\n background: none;\n border-radius: 10px;\n padding: 8px;\n vertical-align: middle;\n -webkit-appearance: none;\n -moz-appearance: none;\n width: 70px;\n font-size: 14px;\n color: #777;\n text-overflow: ellipsis;\n }\n & select.code-language {\n text-transform: capitalize;\n width: 130px;\n }\n\n & .popup-item .text {\n display: flex;\n line-height: 20px;\n vertical-align: middle;\n font-size: 14px;\n color: #777;\n text-overflow: ellipsis;\n width: 70px;\n overflow: hidden;\n height: 20px;\n text-align: left;\n }\n\n & .popup-item .icon {\n display: flex;\n width: 20px;\n height: 20px;\n user-select: none;\n margin-right: 8px;\n line-height: 16px;\n background-size: contain;\n }\n & i.chevron-down {\n margin-top: 3px;\n width: 16px;\n height: 16px;\n display: flex;\n user-select: none;\n }\n & i.chevron-down.inside {\n width: 16px;\n height: 16px;\n display: flex;\n margin-left: -25px;\n margin-top: 11px;\n margin-right: 10px;\n pointer-events: none;\n }\n & .divider {\n width: 1px;\n background-color: #eee;\n margin: 0 4px;\n }\n @media (max-width: 1024px) {\n & button.insert-comment {\n display: none;\n }\n }\n"])), function (props) {
|
|
35269
35975
|
return props.popupColor;
|
|
35270
35976
|
});
|
|
35271
|
-
var Action$1 = styled__default.button(_templateObject2$
|
|
35977
|
+
var Action$1 = styled__default.button(_templateObject2$B || (_templateObject2$B = _taggedTemplateLiteralLoose(["\n border: 0;\n display: flex;\n background-color: inherit;\n vertical-align: middle;\n position: relative;\n padding: 3px;\n margin-right: 10px;\n //margin: 8px 6px;\n cursor: pointer;\n transition: all 0.2s;\n color: ", ";\n border-radius: 50%;\n ", "\n\n &:last-child {\n margin-right: 0;\n }\n\n &:hover {\n color: ", ";\n background-color: ", ";\n\n ", " {\n display: block;\n }\n }\n"])), function (props) {
|
|
35272
35978
|
return props.iconColor;
|
|
35273
35979
|
}, function (props) {
|
|
35274
35980
|
return props.isActive && "\n color: " + props.hoverIconColor + ";\n background-color: " + props.hoverBackgroundColor + ";\n ";
|
|
@@ -35591,7 +36297,7 @@ function FormatMessagePlugin(_ref) {
|
|
|
35591
36297
|
return null;
|
|
35592
36298
|
}
|
|
35593
36299
|
|
|
35594
|
-
var _templateObject$
|
|
36300
|
+
var _templateObject$H, _templateObject2$C, _templateObject3$v, _templateObject4$r, _templateObject5$n, _templateObject6$j, _templateObject7$h, _templateObject8$g;
|
|
35595
36301
|
var EmojiIcon$1 = function EmojiIcon(_ref) {
|
|
35596
36302
|
var collectionName = _ref.collectionName;
|
|
35597
36303
|
switch (collectionName) {
|
|
@@ -35786,7 +36492,7 @@ function EmojisPopup$1(_ref2) {
|
|
|
35786
36492
|
}));
|
|
35787
36493
|
}))));
|
|
35788
36494
|
}
|
|
35789
|
-
var Container$i = styled__default.div(_templateObject$
|
|
36495
|
+
var Container$i = styled__default.div(_templateObject$H || (_templateObject$H = _taggedTemplateLiteralLoose(["\n position: ", ";\n left: ", ";\n right: ", ";\n direction: ", ";\n bottom: ", ";\n width: 306px;\n border: ", ";\n box-sizing: border-box;\n box-shadow: 0 0 12px rgba(0, 0, 0, 0.08);\n border-radius: ", ";\n background: ", ";\n z-index: 35;\n //transform: scaleY(0);\n height: 0;\n overflow: hidden;\n transform-origin: ", ";\n transition: all 0.2s ease-in-out;\n ", ";\n"])), function (props) {
|
|
35790
36496
|
return props.leftPosition ? 'fixed' : props.relativePosition ? 'relative' : 'absolute';
|
|
35791
36497
|
}, function (props) {
|
|
35792
36498
|
return props.rightSide ? "calc(" + props.leftPosition + " - 250px)" : props.leftPosition || (props.rtlDirection ? '' : props.rightSide ? '' : '5px');
|
|
@@ -35807,23 +36513,23 @@ var Container$i = styled__default.div(_templateObject$G || (_templateObject$G =
|
|
|
35807
36513
|
}, function (props) {
|
|
35808
36514
|
return props.rendered && "\n height: 225px;\n ";
|
|
35809
36515
|
});
|
|
35810
|
-
var EmojiHeader$1 = styled__default.div(_templateObject2$
|
|
36516
|
+
var EmojiHeader$1 = styled__default.div(_templateObject2$C || (_templateObject2$C = _taggedTemplateLiteralLoose(["\n align-items: flex-end;\n font-style: normal;\n font-weight: 500;\n font-size: 12px;\n line-height: 22px;\n text-transform: uppercase;\n color: ", ";\n display: flex;\n padding: ", ";\n"])), function (props) {
|
|
35811
36517
|
return props.color;
|
|
35812
36518
|
}, function (props) {
|
|
35813
36519
|
return props.padding || '6px 18px';
|
|
35814
36520
|
});
|
|
35815
|
-
var EmojiSection$1 = styled__default.div(_templateObject3$
|
|
35816
|
-
var EmojiCollection$1 = styled__default.span(_templateObject4$
|
|
36521
|
+
var EmojiSection$1 = styled__default.div(_templateObject3$v || (_templateObject3$v = _taggedTemplateLiteralLoose(["\n height: 180px;\n overflow-x: hidden;\n\n & ::selection {\n color: inherit;\n background: inherit;\n }\n"])));
|
|
36522
|
+
var EmojiCollection$1 = styled__default.span(_templateObject4$r || (_templateObject4$r = _taggedTemplateLiteralLoose(["\n cursor: pointer;\n display: flex;\n justify-content: center;\n align-items: center;\n\n & > * {\n color: ", ";\n }\n"])), function (props) {
|
|
35817
36523
|
return props.iconColor;
|
|
35818
36524
|
});
|
|
35819
|
-
var CollectionPointer$1 = styled__default.span(_templateObject5$
|
|
35820
|
-
var AllEmojis$1 = styled__default.ul(_templateObject6$
|
|
35821
|
-
var EmojiFooter$1 = styled__default.div(_templateObject7$
|
|
36525
|
+
var CollectionPointer$1 = styled__default.span(_templateObject5$n || (_templateObject5$n = _taggedTemplateLiteralLoose([""])));
|
|
36526
|
+
var AllEmojis$1 = styled__default.ul(_templateObject6$j || (_templateObject6$j = _taggedTemplateLiteralLoose(["\n overflow: hidden;\n padding: 0 8px 8px;\n margin: 0;\n"])));
|
|
36527
|
+
var EmojiFooter$1 = styled__default.div(_templateObject7$h || (_templateObject7$h = _taggedTemplateLiteralLoose(["\n height: 42px;\n display: flex;\n justify-content: space-around;\n align-items: center;\n border-top: ", ";\n border-bottom: ", ";\n padding: 0 10px;\n & > span {\n width: 100%;\n text-align: center;\n }\n"])), function (props) {
|
|
35822
36528
|
return props.emojisCategoryIconsPosition !== 'top' && "1px solid " + props.borderColor;
|
|
35823
36529
|
}, function (props) {
|
|
35824
36530
|
return props.emojisCategoryIconsPosition === 'top' && "1px solid " + props.borderColor;
|
|
35825
36531
|
});
|
|
35826
|
-
var Emoji$1 = styled__default.li(_templateObject8$
|
|
36532
|
+
var Emoji$1 = styled__default.li(_templateObject8$g || (_templateObject8$g = _taggedTemplateLiteralLoose(["\n cursor: pointer;\n width: 32px;\n height: 32px;\n margin: 0 2px;\n display: inline-block;\n box-sizing: border-box;\n border-radius: 50%;\n padding-top: 2px;\n text-align: center;\n background: transparent;\n font-family:\n apple color emoji,\n segoe ui emoji,\n noto color emoji,\n android emoji,\n emojisymbols,\n emojione mozilla,\n twemoji mozilla,\n segoe ui symbol;\n & > * {\n font-size: 22px;\n }\n &:hover {\n background: ", ";\n }\n"])), function (props) {
|
|
35827
36533
|
return props.hoverBackgroundColor;
|
|
35828
36534
|
});
|
|
35829
36535
|
|
|
@@ -36024,7 +36730,7 @@ function SvgRecordButton(props) {
|
|
|
36024
36730
|
})));
|
|
36025
36731
|
}
|
|
36026
36732
|
|
|
36027
|
-
var _templateObject$
|
|
36733
|
+
var _templateObject$I, _templateObject2$D, _templateObject3$w, _templateObject4$s, _templateObject5$o, _templateObject6$k, _templateObject7$i;
|
|
36028
36734
|
var shouldDraw = false;
|
|
36029
36735
|
var AudioRecord = function AudioRecord(_ref) {
|
|
36030
36736
|
var sendRecordedFile = _ref.sendRecordedFile,
|
|
@@ -36579,10 +37285,10 @@ var AudioRecord = function AudioRecord(_ref) {
|
|
|
36579
37285
|
iconColor: accentColor
|
|
36580
37286
|
}, showRecording || currentRecordedFile ? /*#__PURE__*/React__default.createElement(SvgSend, null) : /*#__PURE__*/React__default.createElement(SvgRecordButton, null)));
|
|
36581
37287
|
};
|
|
36582
|
-
var Container$j = styled__default.div(_templateObject$
|
|
37288
|
+
var Container$j = styled__default.div(_templateObject$I || (_templateObject$I = _taggedTemplateLiteralLoose(["\n width: 32px;\n position: relative;\n display: flex;\n align-items: center;\n justify-content: flex-end;\n ", ";\n transition: all 0.3s ease-in-out;\n"])), function (props) {
|
|
36583
37289
|
return props.recording && "width: 400px";
|
|
36584
37290
|
});
|
|
36585
|
-
var AudioWrapper = styled__default.div(_templateObject2$
|
|
37291
|
+
var AudioWrapper = styled__default.div(_templateObject2$D || (_templateObject2$D = _taggedTemplateLiteralLoose(["\n position: relative;\n display: flex;\n align-items: center;\n height: 36px;\n width: ", ";\n overflow: hidden;\n margin: ", ";\n background-color: ", ";\n padding: ", ";\n border-radius: 20px;\n"])), function (props) {
|
|
36586
37292
|
return props.recording ? 'calc(100% - 84px)' : '0';
|
|
36587
37293
|
}, function (props) {
|
|
36588
37294
|
return props.recording ? '0 8px' : '0';
|
|
@@ -36591,10 +37297,10 @@ var AudioWrapper = styled__default.div(_templateObject2$C || (_templateObject2$C
|
|
|
36591
37297
|
}, function (props) {
|
|
36592
37298
|
return props.recording ? '0 12px 0 0' : '0';
|
|
36593
37299
|
});
|
|
36594
|
-
var RecordIconWrapper = styled__default.span(_templateObject3$
|
|
37300
|
+
var RecordIconWrapper = styled__default.span(_templateObject3$w || (_templateObject3$w = _taggedTemplateLiteralLoose(["\n display: flex;\n cursor: pointer;\n > svg {\n color: ", ";\n }\n"])), function (props) {
|
|
36595
37301
|
return props.iconColor;
|
|
36596
37302
|
});
|
|
36597
|
-
var AudioVisualization$1 = styled__default.div(_templateObject4$
|
|
37303
|
+
var AudioVisualization$1 = styled__default.div(_templateObject4$s || (_templateObject4$s = _taggedTemplateLiteralLoose(["\n position: absolute;\n opacity: ", ";\n z-index: ", ";\n visibility: ", ";\n width: 300px;\n height: 28px;\n max-width: calc(100% - 100px);\n left: 40px;\n background-color: ", ";\n"])), function (_ref5) {
|
|
36598
37304
|
var show = _ref5.show;
|
|
36599
37305
|
return show ? '1' : '0';
|
|
36600
37306
|
}, function (_ref6) {
|
|
@@ -36606,10 +37312,10 @@ var AudioVisualization$1 = styled__default.div(_templateObject4$r || (_templateO
|
|
|
36606
37312
|
}, function (props) {
|
|
36607
37313
|
return props.color;
|
|
36608
37314
|
});
|
|
36609
|
-
var PlayPause$1 = styled__default.div(_templateObject5$
|
|
37315
|
+
var PlayPause$1 = styled__default.div(_templateObject5$o || (_templateObject5$o = _taggedTemplateLiteralLoose(["\n cursor: pointer;\n padding: 10px;\n > svg {\n color: ", ";\n }\n"])), function (props) {
|
|
36610
37316
|
return props.iconColor;
|
|
36611
37317
|
});
|
|
36612
|
-
var Canvas = styled__default.canvas(_templateObject6$
|
|
37318
|
+
var Canvas = styled__default.canvas(_templateObject6$k || (_templateObject6$k = _taggedTemplateLiteralLoose(["\n height: 28px;\n width: ", ";\n max-width: calc(100% - 110px);\n position: absolute;\n opacity: ", ";\n z-index: ", ";\n left: 42px;\n"])), function (_ref8) {
|
|
36613
37319
|
var recording = _ref8.recording;
|
|
36614
37320
|
return recording ? '300px' : '0';
|
|
36615
37321
|
}, function (_ref9) {
|
|
@@ -36619,14 +37325,14 @@ var Canvas = styled__default.canvas(_templateObject6$j || (_templateObject6$j =
|
|
|
36619
37325
|
var hide = _ref0.hide;
|
|
36620
37326
|
return hide && '-1';
|
|
36621
37327
|
});
|
|
36622
|
-
var Timer$2 = styled__default.div(_templateObject7$
|
|
37328
|
+
var Timer$2 = styled__default.div(_templateObject7$i || (_templateObject7$i = _taggedTemplateLiteralLoose(["\n width: 40px;\n font-weight: 400;\n font-size: 16px;\n line-height: 12px;\n color: ", ";\n margin-left: auto;\n"])), function (props) {
|
|
36623
37329
|
return props.color;
|
|
36624
37330
|
});
|
|
36625
37331
|
|
|
36626
|
-
var _templateObject$
|
|
36627
|
-
var wave = styled.keyframes(_templateObject$
|
|
36628
|
-
var Wrapper = styled__default.div(_templateObject2$
|
|
36629
|
-
var Bar = styled__default.span(_templateObject3$
|
|
37332
|
+
var _templateObject$J, _templateObject2$E, _templateObject3$x;
|
|
37333
|
+
var wave = styled.keyframes(_templateObject$J || (_templateObject$J = _taggedTemplateLiteralLoose(["\n 0%, 100% {\n transform: scaleY(0.5);\n opacity: 0.6;\n }\n 50% {\n transform: scaleY(1.2);\n opacity: 1;\n }\n"])));
|
|
37334
|
+
var Wrapper = styled__default.div(_templateObject2$E || (_templateObject2$E = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: flex-end;\n height: 8px;\n gap: 1.5px;\n"])));
|
|
37335
|
+
var Bar = styled__default.span(_templateObject3$x || (_templateObject3$x = _taggedTemplateLiteralLoose(["\n display: block;\n width: 3px;\n height: 8px;\n border-radius: 2px;\n background: ", ";\n animation: ", " 1s infinite;\n animation-delay: ", "s;\n"])), function (props) {
|
|
36630
37336
|
return props.borderColor;
|
|
36631
37337
|
}, wave, function (_ref) {
|
|
36632
37338
|
var delay = _ref.delay;
|
|
@@ -36652,7 +37358,7 @@ var RecordingAnimation = function RecordingAnimation(_ref2) {
|
|
|
36652
37358
|
}));
|
|
36653
37359
|
};
|
|
36654
37360
|
|
|
36655
|
-
var _templateObject$
|
|
37361
|
+
var _templateObject$K, _templateObject2$F, _templateObject3$y, _templateObject4$t, _templateObject5$p, _templateObject6$l, _templateObject7$j, _templateObject8$h, _templateObject9$e, _templateObject0$d, _templateObject1$a, _templateObject10$5, _templateObject11$5, _templateObject12$4, _templateObject13$3, _templateObject14$2, _templateObject15$2, _templateObject16$2, _templateObject17$2, _templateObject18$2, _templateObject19$2, _templateObject20$2, _templateObject21$1, _templateObject22$1, _templateObject23$1, _templateObject24$1, _templateObject25$1, _templateObject26$1, _templateObject27$1, _templateObject28$1, _templateObject29$1, _templateObject30$1, _templateObject31$1, _templateObject32$1, _templateObject33$1, _templateObject34$1;
|
|
36656
37362
|
function AutoFocusPlugin(_ref) {
|
|
36657
37363
|
var messageForReply = _ref.messageForReply;
|
|
36658
37364
|
var _useLexicalComposerCo = LexicalComposerContext.useLexicalComposerContext(),
|
|
@@ -38239,10 +38945,10 @@ var SendMessageInput = function SendMessageInput(_ref3) {
|
|
|
38239
38945
|
channelId: activeChannel.id
|
|
38240
38946
|
}))))))))));
|
|
38241
38947
|
};
|
|
38242
|
-
var SendMessageWrapper = styled__default.div(_templateObject$
|
|
38948
|
+
var SendMessageWrapper = styled__default.div(_templateObject$K || (_templateObject$K = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n position: relative;\n z-index: 15;\n"])), function (props) {
|
|
38243
38949
|
return props.backgroundColor;
|
|
38244
38950
|
});
|
|
38245
|
-
var Container$k = styled__default.div(_templateObject2$
|
|
38951
|
+
var Container$k = styled__default.div(_templateObject2$F || (_templateObject2$F = _taggedTemplateLiteralLoose(["\n margin: ", ";\n border: ", ";\n border-radius: ", ";\n position: relative;\n padding: ", ";\n z-index: 15;\n\n & span.rdw-suggestion-dropdown {\n position: absolute;\n bottom: 100%;\n height: 160px;\n min-width: 150px;\n display: flex;\n flex-direction: column;\n overflow: auto;\n padding: 6px 12px;\n border: 1px solid #ccc;\n background: #fff;\n z-index: 99;\n }\n\n & .text_formatting_toolbar {\n display: ", ";\n position: fixed;\n top: ", ";\n left: ", ";\n }\n\n & .rdw-suggestion-option-active {\n background-color: rgb(243, 245, 248);\n }\n\n & .custom_editor {\n cursor: text;\n\n & .rdw-mention-link {\n color: ", ";\n }\n }\n"])), function (props) {
|
|
38246
38952
|
return props.margin || '30px 0 16px';
|
|
38247
38953
|
}, function (props) {
|
|
38248
38954
|
return props.border || '';
|
|
@@ -38259,7 +38965,7 @@ var Container$k = styled__default.div(_templateObject2$E || (_templateObject2$E
|
|
|
38259
38965
|
}, function (props) {
|
|
38260
38966
|
return props.mentionColor;
|
|
38261
38967
|
});
|
|
38262
|
-
var EditReplyMessageCont = styled__default.div(_templateObject3$
|
|
38968
|
+
var EditReplyMessageCont = styled__default.div(_templateObject3$y || (_templateObject3$y = _taggedTemplateLiteralLoose(["\n position: relative;\n left: ", ";\n bottom: ", ";\n width: ", ";\n border-radius: ", ";\n padding: ", ";\n font-weight: 400;\n font-size: 15px;\n line-height: 20px;\n letter-spacing: -0.2px;\n color: ", ";\n background-color: ", ";\n z-index: 19;\n box-sizing: content-box;\n"])), function (props) {
|
|
38263
38969
|
return props.left || '0';
|
|
38264
38970
|
}, function (props) {
|
|
38265
38971
|
return props.bottom || '0';
|
|
@@ -38274,19 +38980,19 @@ var EditReplyMessageCont = styled__default.div(_templateObject3$x || (_templateO
|
|
|
38274
38980
|
}, function (props) {
|
|
38275
38981
|
return props.backgroundColor;
|
|
38276
38982
|
});
|
|
38277
|
-
var EditMessageText = styled__default.p(_templateObject4$
|
|
38278
|
-
var UploadErrorMessage = styled__default.p(_templateObject5$
|
|
38983
|
+
var EditMessageText = styled__default.p(_templateObject4$t || (_templateObject4$t = _taggedTemplateLiteralLoose(["\n margin: 0;\n display: -webkit-box;\n -webkit-line-clamp: 3;\n -webkit-box-orient: vertical;\n overflow: hidden;\n text-overflow: ellipsis;\n word-break: break-word;\n"])));
|
|
38984
|
+
var UploadErrorMessage = styled__default.p(_templateObject5$p || (_templateObject5$p = _taggedTemplateLiteralLoose(["\n margin: 0;\n position: absolute;\n top: -30px;\n color: ", ";\n"])), function (props) {
|
|
38279
38985
|
return props.color;
|
|
38280
38986
|
});
|
|
38281
|
-
var CloseEditMode = styled__default.span(_templateObject6$
|
|
38987
|
+
var CloseEditMode = styled__default.span(_templateObject6$l || (_templateObject6$l = _taggedTemplateLiteralLoose(["\n position: absolute;\n top: 8px;\n right: 12px;\n width: 20px;\n height: 20px;\n text-align: center;\n line-height: 22px;\n cursor: pointer;\n\n & > svg {\n color: ", ";\n }\n"])), function (props) {
|
|
38282
38988
|
return props.color;
|
|
38283
38989
|
});
|
|
38284
|
-
var UserName$1 = styled__default.span(_templateObject7$
|
|
38285
|
-
var ReplyMessageBody$1 = styled__default.div(_templateObject8$
|
|
38286
|
-
var EditReplyMessageHeader = styled__default.h4(_templateObject9$
|
|
38990
|
+
var UserName$1 = styled__default.span(_templateObject7$j || (_templateObject7$j = _taggedTemplateLiteralLoose(["\n font-weight: 500;\n margin-left: 4px;\n"])));
|
|
38991
|
+
var ReplyMessageBody$1 = styled__default.div(_templateObject8$h || (_templateObject8$h = _taggedTemplateLiteralLoose(["\n word-break: break-word;\n display: -webkit-box;\n -webkit-line-clamp: 3;\n -webkit-box-orient: vertical;\n overflow: hidden;\n text-overflow: ellipsis;\n"])));
|
|
38992
|
+
var EditReplyMessageHeader = styled__default.h4(_templateObject9$e || (_templateObject9$e = _taggedTemplateLiteralLoose(["\n display: flex;\n margin: 0 0 2px;\n font-weight: 400;\n font-size: 13px;\n line-height: 16px;\n color: ", ";\n\n > svg {\n margin-right: 4px;\n width: 16px;\n height: 16px;\n }\n"])), function (props) {
|
|
38287
38993
|
return props.color;
|
|
38288
38994
|
});
|
|
38289
|
-
var AddAttachmentIcon = styled__default.span(_templateObject0$
|
|
38995
|
+
var AddAttachmentIcon = styled__default.span(_templateObject0$d || (_templateObject0$d = _taggedTemplateLiteralLoose(["\n display: flex;\n height: ", ";\n align-items: center;\n margin: 0 8px;\n cursor: pointer;\n line-height: 13px;\n z-index: 2;\n order: ", ";\n\n > svg {\n ", ";\n width: 24px;\n }\n\n &:hover > svg {\n color: ", ";\n }\n"])), function (props) {
|
|
38290
38996
|
return props.height ? props.height + "px" : '36px';
|
|
38291
38997
|
}, function (props) {
|
|
38292
38998
|
return props.order === 0 || props.order ? props.order : 1;
|
|
@@ -38295,7 +39001,7 @@ var AddAttachmentIcon = styled__default.span(_templateObject0$c || (_templateObj
|
|
|
38295
39001
|
}, function (props) {
|
|
38296
39002
|
return props.hoverColor;
|
|
38297
39003
|
});
|
|
38298
|
-
var SendMessageInputContainer = styled__default.div(_templateObject1$
|
|
39004
|
+
var SendMessageInputContainer = styled__default.div(_templateObject1$a || (_templateObject1$a = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: flex-end;\n justify-content: space-between;\n position: relative;\n min-height: ", ";\n box-sizing: border-box;\n border-radius: ", ";\n\n & .dropdown-trigger.open {\n color: #ccc;\n\n & ", " {\n & > svg {\n color: ", ";\n }\n ;\n }\n }\n}\n"])), function (props) {
|
|
38299
39005
|
return props.minHeight || '36px';
|
|
38300
39006
|
}, function (props) {
|
|
38301
39007
|
return props.messageForReply ? '0 0 4px 4px' : '4px';
|
|
@@ -38591,7 +39297,7 @@ function SvgUnpin(props) {
|
|
|
38591
39297
|
})));
|
|
38592
39298
|
}
|
|
38593
39299
|
|
|
38594
|
-
var _templateObject$
|
|
39300
|
+
var _templateObject$L, _templateObject2$G, _templateObject3$z, _templateObject4$u, _templateObject5$q, _templateObject6$m, _templateObject7$k, _templateObject8$i, _templateObject9$f, _templateObject0$e, _templateObject1$b, _templateObject10$6, _templateObject11$6, _templateObject12$5, _templateObject13$4, _templateObject14$3, _templateObject15$3, _templateObject16$3;
|
|
38595
39301
|
var Actions = function Actions(_ref) {
|
|
38596
39302
|
var setActionsHeight = _ref.setActionsHeight,
|
|
38597
39303
|
channel = _ref.channel,
|
|
@@ -39055,21 +39761,21 @@ var Actions = function Actions(_ref) {
|
|
|
39055
39761
|
title: popupTitle
|
|
39056
39762
|
})));
|
|
39057
39763
|
};
|
|
39058
|
-
var Container$l = styled__default.div(_templateObject$
|
|
39764
|
+
var Container$l = styled__default.div(_templateObject$L || (_templateObject$L = _taggedTemplateLiteralLoose(["\n padding: 10px 16px;\n border-bottom: 6px solid ", ";\n]"])), function (props) {
|
|
39059
39765
|
return props.borderColor;
|
|
39060
39766
|
});
|
|
39061
|
-
var ActionHeader = styled__default.div(_templateObject2$
|
|
39062
|
-
var MenuTriggerIcon = styled__default.span(_templateObject3$
|
|
39767
|
+
var ActionHeader = styled__default.div(_templateObject2$G || (_templateObject2$G = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin: 25px 0 22px;\n cursor: pointer;\n"])));
|
|
39768
|
+
var MenuTriggerIcon = styled__default.span(_templateObject3$z || (_templateObject3$z = _taggedTemplateLiteralLoose(["\n transition: all 0.2s;\n ", "\n"])), function (props) {
|
|
39063
39769
|
return !props.isOpen && ' transform: rotate(-90deg);';
|
|
39064
39770
|
});
|
|
39065
|
-
var ActionsMenu = styled__default.ul(_templateObject4$
|
|
39066
|
-
var DefaultMutedIcon = styled__default(SvgUnmuteNotifications)(_templateObject5$
|
|
39067
|
-
var DefaultMuteIcon = styled__default(SvgNotifications)(_templateObject6$
|
|
39068
|
-
var DefaultStarIcon = styled__default(SvgStar)(_templateObject7$
|
|
39069
|
-
var DefaultUnpinIcon = styled__default(SvgUnpin)(_templateObject8$
|
|
39070
|
-
var DefaultPinIcon = styled__default(SvgPin)(_templateObject9$
|
|
39071
|
-
var DefaultMarkAsRead = styled__default(SvgMarkAsRead)(_templateObject0$
|
|
39072
|
-
var DefaultMarkAsUnRead = styled__default(SvgMarkAsUnRead)(_templateObject1$
|
|
39771
|
+
var ActionsMenu = styled__default.ul(_templateObject4$u || (_templateObject4$u = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n margin: 0;\n padding: 0;\n list-style: none;\n transition: all 0.2s;\n"])));
|
|
39772
|
+
var DefaultMutedIcon = styled__default(SvgUnmuteNotifications)(_templateObject5$q || (_templateObject5$q = _taggedTemplateLiteralLoose([""])));
|
|
39773
|
+
var DefaultMuteIcon = styled__default(SvgNotifications)(_templateObject6$m || (_templateObject6$m = _taggedTemplateLiteralLoose([""])));
|
|
39774
|
+
var DefaultStarIcon = styled__default(SvgStar)(_templateObject7$k || (_templateObject7$k = _taggedTemplateLiteralLoose([""])));
|
|
39775
|
+
var DefaultUnpinIcon = styled__default(SvgUnpin)(_templateObject8$i || (_templateObject8$i = _taggedTemplateLiteralLoose([""])));
|
|
39776
|
+
var DefaultPinIcon = styled__default(SvgPin)(_templateObject9$f || (_templateObject9$f = _taggedTemplateLiteralLoose([""])));
|
|
39777
|
+
var DefaultMarkAsRead = styled__default(SvgMarkAsRead)(_templateObject0$e || (_templateObject0$e = _taggedTemplateLiteralLoose([""])));
|
|
39778
|
+
var DefaultMarkAsUnRead = styled__default(SvgMarkAsUnRead)(_templateObject1$b || (_templateObject1$b = _taggedTemplateLiteralLoose([""])));
|
|
39073
39779
|
var DefaultBlockIcon = styled__default(SvgBlockChannel)(_templateObject10$6 || (_templateObject10$6 = _taggedTemplateLiteralLoose([""])));
|
|
39074
39780
|
var DefaultReportIcon = styled__default(SvgReport)(_templateObject11$6 || (_templateObject11$6 = _taggedTemplateLiteralLoose([""])));
|
|
39075
39781
|
var DefaultClearIcon = styled__default(SvgClear)(_templateObject12$5 || (_templateObject12$5 = _taggedTemplateLiteralLoose([""])));
|
|
@@ -39149,7 +39855,7 @@ function SvgMoreVert(props) {
|
|
|
39149
39855
|
})));
|
|
39150
39856
|
}
|
|
39151
39857
|
|
|
39152
|
-
var _templateObject$
|
|
39858
|
+
var _templateObject$M, _templateObject2$H, _templateObject3$A;
|
|
39153
39859
|
var ChangeMemberRole = function ChangeMemberRole(_ref) {
|
|
39154
39860
|
var theme = _ref.theme,
|
|
39155
39861
|
channelId = _ref.channelId,
|
|
@@ -39249,14 +39955,14 @@ var ChangeMemberRole = function ChangeMemberRole(_ref) {
|
|
|
39249
39955
|
onClick: handleSave
|
|
39250
39956
|
}, "Save"))));
|
|
39251
39957
|
};
|
|
39252
|
-
var RolesSelect = styled__default.div(_templateObject$
|
|
39253
|
-
var RoleLabel = styled__default.div(_templateObject2$
|
|
39958
|
+
var RolesSelect = styled__default.div(_templateObject$M || (_templateObject$M = _taggedTemplateLiteralLoose(["\n margin-bottom: 32px;\n"])));
|
|
39959
|
+
var RoleLabel = styled__default.div(_templateObject2$H || (_templateObject2$H = _taggedTemplateLiteralLoose(["\n font-style: normal;\n font-weight: 500;\n font-size: 14px;\n margin: 20px 0 8px;\n color: ", ";\n"])), function (_ref2) {
|
|
39254
39960
|
var color = _ref2.color;
|
|
39255
39961
|
return color;
|
|
39256
39962
|
});
|
|
39257
|
-
var RoleSpan = styled__default.span(_templateObject3$
|
|
39963
|
+
var RoleSpan = styled__default.span(_templateObject3$A || (_templateObject3$A = _taggedTemplateLiteralLoose(["\n font-style: normal;\n font-weight: normal;\n font-size: 14px;\n text-transform: capitalize;\n"])));
|
|
39258
39964
|
|
|
39259
|
-
var _templateObject$
|
|
39965
|
+
var _templateObject$N, _templateObject2$I, _templateObject3$B, _templateObject4$v, _templateObject5$r, _templateObject6$n, _templateObject7$l, _templateObject8$j, _templateObject9$g;
|
|
39260
39966
|
var Members = function Members(_ref) {
|
|
39261
39967
|
var channel = _ref.channel,
|
|
39262
39968
|
theme = _ref.theme,
|
|
@@ -39559,18 +40265,18 @@ var Members = function Members(_ref) {
|
|
|
39559
40265
|
toggleCreatePopup: handleAddMemberPopup
|
|
39560
40266
|
})));
|
|
39561
40267
|
};
|
|
39562
|
-
var Container$m = styled__default.div(_templateObject$
|
|
39563
|
-
var ActionsMenu$1 = styled__default.div(_templateObject2$
|
|
39564
|
-
var MemberNamePresence = styled__default.div(_templateObject3$
|
|
39565
|
-
var MemberNameWrapper = styled__default.div(_templateObject4$
|
|
39566
|
-
var MemberName$3 = styled__default.h4(_templateObject5$
|
|
40268
|
+
var Container$m = styled__default.div(_templateObject$N || (_templateObject$N = _taggedTemplateLiteralLoose([""])));
|
|
40269
|
+
var ActionsMenu$1 = styled__default.div(_templateObject2$I || (_templateObject2$I = _taggedTemplateLiteralLoose(["\n position: relative;\n transition: all 0.2s;\n"])));
|
|
40270
|
+
var MemberNamePresence = styled__default.div(_templateObject3$B || (_templateObject3$B = _taggedTemplateLiteralLoose(["\n margin-left: 12px;\n max-width: calc(100% - 84px);\n\n & > ", " {\n display: block;\n }\n"])), SubTitle);
|
|
40271
|
+
var MemberNameWrapper = styled__default.div(_templateObject4$v || (_templateObject4$v = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n"])));
|
|
40272
|
+
var MemberName$3 = styled__default.h4(_templateObject5$r || (_templateObject5$r = _taggedTemplateLiteralLoose(["\n margin: 0;\n font-weight: 400;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n color: ", ";\n"])), function (props) {
|
|
39567
40273
|
return props.color;
|
|
39568
40274
|
});
|
|
39569
|
-
var EditMemberIcon = styled__default.span(_templateObject6$
|
|
40275
|
+
var EditMemberIcon = styled__default.span(_templateObject6$n || (_templateObject6$n = _taggedTemplateLiteralLoose(["\n margin-left: auto;\n cursor: pointer;\n padding: 15px;\n opacity: 0;\n visibility: hidden;\n transition: all 0.2s;\n\n & svg {\n color: ", ";\n }\n"])), function (props) {
|
|
39570
40276
|
return props.color;
|
|
39571
40277
|
});
|
|
39572
|
-
var MembersList = styled__default.ul(_templateObject7$
|
|
39573
|
-
var MemberItem$1 = styled__default.li(_templateObject8$
|
|
40278
|
+
var MembersList = styled__default.ul(_templateObject7$l || (_templateObject7$l = _taggedTemplateLiteralLoose(["\n margin: 0;\n padding: 0;\n list-style: none;\n transition: all 0.2s;\n"])));
|
|
40279
|
+
var MemberItem$1 = styled__default.li(_templateObject8$j || (_templateObject8$j = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n font-size: ", ";\n font-weight: 500;\n padding: 6px 16px;\n transition: all 0.2s;\n color: ", ";\n cursor: pointer;\n\n & > svg {\n rect {\n fill: transparent;\n }\n }\n\n &:first-child {\n cursor: pointer;\n\n > svg {\n color: ", ";\n margin-right: 12px;\n & > rect {\n fill: ", " !important;\n }\n }\n }\n\n &:hover {\n background-color: ", ";\n }\n\n &:hover ", " {\n opacity: 1;\n visibility: visible;\n }\n\n & .dropdown-wrapper {\n margin-left: auto;\n }\n\n & ", " {\n width: 12px;\n height: 12px;\n right: -1px;\n bottom: -1px;\n }\n"])), function (props) {
|
|
39574
40280
|
return props.fontSize || '15px';
|
|
39575
40281
|
}, function (props) {
|
|
39576
40282
|
return props.color;
|
|
@@ -39581,13 +40287,13 @@ var MemberItem$1 = styled__default.li(_templateObject8$i || (_templateObject8$i
|
|
|
39581
40287
|
}, function (props) {
|
|
39582
40288
|
return props.hoverBackground;
|
|
39583
40289
|
}, EditMemberIcon, UserStatus);
|
|
39584
|
-
var RoleBadge = styled__default.span(_templateObject9$
|
|
40290
|
+
var RoleBadge = styled__default.span(_templateObject9$g || (_templateObject9$g = _taggedTemplateLiteralLoose(["\n position: relative;\n padding: 2px 8px;\n border-radius: 12px;\n margin-left: 4px;\n font-weight: 500;\n font-size: 12px;\n line-height: 16px;\n color: ", ";\n\n &::after {\n content: '';\n position: absolute;\n top: 0;\n left: 0;\n border-radius: 12px;\n width: 100%;\n height: 100%;\n background-color: ", ";\n opacity: 0.1;\n }\n"])), function (props) {
|
|
39585
40291
|
return props.color;
|
|
39586
40292
|
}, function (props) {
|
|
39587
40293
|
return props.backgroundColor;
|
|
39588
40294
|
});
|
|
39589
40295
|
|
|
39590
|
-
var _templateObject$
|
|
40296
|
+
var _templateObject$O, _templateObject2$J;
|
|
39591
40297
|
var Media = function Media(_ref) {
|
|
39592
40298
|
var channel = _ref.channel;
|
|
39593
40299
|
var _useColor = useColors(),
|
|
@@ -39633,8 +40339,8 @@ var Media = function Media(_ref) {
|
|
|
39633
40339
|
currentMediaFile: mediaFile
|
|
39634
40340
|
})));
|
|
39635
40341
|
};
|
|
39636
|
-
var Container$n = styled__default.div(_templateObject$
|
|
39637
|
-
var MediaItem = styled__default.div(_templateObject2$
|
|
40342
|
+
var Container$n = styled__default.div(_templateObject$O || (_templateObject$O = _taggedTemplateLiteralLoose(["\n padding: 6px 4px;\n overflow-x: hidden;\n overflow-y: auto;\n list-style: none;\n transition: all 0.2s;\n align-items: flex-start;\n display: flex;\n flex-wrap: wrap;\n"])));
|
|
40343
|
+
var MediaItem = styled__default.div(_templateObject2$J || (_templateObject2$J = _taggedTemplateLiteralLoose(["\n width: calc(33.3333% - 4px);\n height: 110px;\n box-sizing: border-box;\n //border: 1px solid #ccc;\n border: 0.5px solid rgba(0, 0, 0, 0.1);\n border-radius: 8px;\n overflow: hidden;\n margin: 2px;\n"])));
|
|
39638
40344
|
|
|
39639
40345
|
var _rect$3, _path$1n;
|
|
39640
40346
|
function _extends$1r() {
|
|
@@ -39690,7 +40396,7 @@ function SvgDownloadFile(props) {
|
|
|
39690
40396
|
})));
|
|
39691
40397
|
}
|
|
39692
40398
|
|
|
39693
|
-
var _templateObject$
|
|
40399
|
+
var _templateObject$P, _templateObject2$K, _templateObject3$C, _templateObject4$w, _templateObject5$s, _templateObject6$o, _templateObject7$m, _templateObject8$k;
|
|
39694
40400
|
var Files = function Files(_ref) {
|
|
39695
40401
|
var channelId = _ref.channelId,
|
|
39696
40402
|
filePreviewIcon = _ref.filePreviewIcon,
|
|
@@ -39807,30 +40513,30 @@ var Files = function Files(_ref) {
|
|
|
39807
40513
|
}))) : filePreviewDownloadIcon || /*#__PURE__*/React__default.createElement(SvgDownloadFile, null)));
|
|
39808
40514
|
}));
|
|
39809
40515
|
};
|
|
39810
|
-
var Container$o = styled__default.ul(_templateObject$
|
|
39811
|
-
var DownloadWrapper = styled__default.a(_templateObject2$
|
|
40516
|
+
var Container$o = styled__default.ul(_templateObject$P || (_templateObject$P = _taggedTemplateLiteralLoose(["\n margin: 0;\n padding: 0;\n overflow-x: hidden;\n overflow-y: auto;\n list-style: none;\n transition: all 0.2s;\n"])));
|
|
40517
|
+
var DownloadWrapper = styled__default.a(_templateObject2$K || (_templateObject2$K = _taggedTemplateLiteralLoose(["\n text-decoration: none;\n visibility: ", ";\n padding: 5px 6px;\n position: absolute;\n top: 25%;\n right: 16px;\n cursor: pointer;\n & > svg {\n & path {\n fill: ", ";\n }\n color: ", ";\n }\n"])), function (props) {
|
|
39812
40518
|
return props.visible ? 'visible' : 'hidden';
|
|
39813
40519
|
}, function (props) {
|
|
39814
40520
|
return props.iconColor;
|
|
39815
40521
|
}, function (props) {
|
|
39816
40522
|
return props.iconColor;
|
|
39817
40523
|
});
|
|
39818
|
-
var ProgressWrapper$2 = styled__default.span(_templateObject3$
|
|
39819
|
-
var FileIconCont = styled__default.span(_templateObject4$
|
|
40524
|
+
var ProgressWrapper$2 = styled__default.span(_templateObject3$C || (_templateObject3$C = _taggedTemplateLiteralLoose(["\n display: inline-block;\n width: 20px;\n height: 20px;\n animation: preloader 1.5s linear infinite;\n\n @keyframes preloader {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n }\n"])));
|
|
40525
|
+
var FileIconCont = styled__default.span(_templateObject4$w || (_templateObject4$w = _taggedTemplateLiteralLoose(["\n display: inline-flex;\n\n & > svg {\n width: 40px;\n height: 40px;\n color: ", ";\n fill: ", ";\n }\n"])), function (props) {
|
|
39820
40526
|
return props.iconColor;
|
|
39821
40527
|
}, function (props) {
|
|
39822
40528
|
return props.fillColor;
|
|
39823
40529
|
});
|
|
39824
|
-
var FileHoverIconCont = styled__default.span(_templateObject5$
|
|
40530
|
+
var FileHoverIconCont = styled__default.span(_templateObject5$s || (_templateObject5$s = _taggedTemplateLiteralLoose(["\n display: none;\n & > svg {\n color: ", ";\n width: 40px;\n height: 40px;\n fill: ", ";\n }\n"])), function (props) {
|
|
39825
40531
|
return props.iconColor;
|
|
39826
40532
|
}, function (props) {
|
|
39827
40533
|
return props.fillColor;
|
|
39828
40534
|
});
|
|
39829
|
-
var FileThumb = styled__default.img(_templateObject6$
|
|
39830
|
-
var FileItem = styled__default.div(_templateObject7$
|
|
40535
|
+
var FileThumb = styled__default.img(_templateObject6$o || (_templateObject6$o = _taggedTemplateLiteralLoose(["\n width: 40px;\n height: 40px;\n border: 0.5px solid rgba(0, 0, 0, 0.1);\n border-radius: 8px;\n object-fit: cover;\n"])));
|
|
40536
|
+
var FileItem = styled__default.div(_templateObject7$m || (_templateObject7$m = _taggedTemplateLiteralLoose(["\n position: relative;\n padding: 11px 16px;\n display: flex;\n align-items: center;\n font-size: 15px;\n transition: all 0.2s;\n div {\n margin-left: 7px;\n width: calc(100% - 48px);\n }\n &:hover {\n background-color: ", ";\n ", " {\n visibility: visible;\n }\n & ", " {\n display: none;\n }\n & ", " {\n display: inline-flex;\n }\n }\n /*&.isHover {\n\n }*/\n"])), function (props) {
|
|
39831
40537
|
return props.hoverBackgroundColor;
|
|
39832
40538
|
}, DownloadWrapper, FileIconCont, FileHoverIconCont);
|
|
39833
|
-
var FileSizeAndDate = styled__default.span(_templateObject8$
|
|
40539
|
+
var FileSizeAndDate = styled__default.span(_templateObject8$k || (_templateObject8$k = _taggedTemplateLiteralLoose(["\n display: block;\n font-style: normal;\n font-weight: normal;\n font-size: ", ";\n line-height: ", ";\n color: ", ";\n margin-top: 2px;\n"])), function (props) {
|
|
39834
40540
|
return props.fontSize || '13px';
|
|
39835
40541
|
}, function (props) {
|
|
39836
40542
|
return props.lineHeight || '16px';
|
|
@@ -39869,7 +40575,7 @@ function SvgLinkIcon(props) {
|
|
|
39869
40575
|
})));
|
|
39870
40576
|
}
|
|
39871
40577
|
|
|
39872
|
-
var _templateObject$
|
|
40578
|
+
var _templateObject$Q, _templateObject2$L, _templateObject3$D, _templateObject4$x, _templateObject5$t;
|
|
39873
40579
|
var LinkItem = function LinkItem(_ref) {
|
|
39874
40580
|
var link = _ref.link,
|
|
39875
40581
|
linkPreviewIcon = _ref.linkPreviewIcon,
|
|
@@ -39900,25 +40606,25 @@ var LinkItem = function LinkItem(_ref) {
|
|
|
39900
40606
|
color: linkPreviewColor || textPrimary
|
|
39901
40607
|
}, link))));
|
|
39902
40608
|
};
|
|
39903
|
-
var LinkIconCont = styled__default.span(_templateObject$
|
|
40609
|
+
var LinkIconCont = styled__default.span(_templateObject$Q || (_templateObject$Q = _taggedTemplateLiteralLoose(["\n display: inline-flex;\n > svg {\n color: ", ";\n fill: ", ";\n }\n"])), function (props) {
|
|
39904
40610
|
return props.iconColor;
|
|
39905
40611
|
}, function (props) {
|
|
39906
40612
|
return props.fillColor;
|
|
39907
40613
|
});
|
|
39908
|
-
var LinkHoverIconCont = styled__default.span(_templateObject2$
|
|
40614
|
+
var LinkHoverIconCont = styled__default.span(_templateObject2$L || (_templateObject2$L = _taggedTemplateLiteralLoose(["\n display: none;\n > svg {\n color: ", ";\n fill: ", ";\n }\n"])), function (props) {
|
|
39909
40615
|
return props.iconColor;
|
|
39910
40616
|
}, function (props) {
|
|
39911
40617
|
return props.fillColor;
|
|
39912
40618
|
});
|
|
39913
|
-
var LinkInfoCont = styled__default.div(_templateObject3$
|
|
39914
|
-
var FileItem$1 = styled__default.li(_templateObject4$
|
|
40619
|
+
var LinkInfoCont = styled__default.div(_templateObject3$D || (_templateObject3$D = _taggedTemplateLiteralLoose(["\n margin-left: 12px;\n width: calc(100% - 40px);\n"])));
|
|
40620
|
+
var FileItem$1 = styled__default.li(_templateObject4$x || (_templateObject4$x = _taggedTemplateLiteralLoose(["\n padding: 9px 16px;\n a {\n display: flex;\n align-items: center;\n text-decoration: none;\n }\n &:hover {\n background-color: ", ";\n & ", " {\n display: none;\n }\n & ", " {\n display: inline-flex;\n }\n }\n"])), function (props) {
|
|
39915
40621
|
return props.hoverBackgroundColor;
|
|
39916
40622
|
}, LinkIconCont, LinkHoverIconCont);
|
|
39917
|
-
var LinkUrl = styled__default.span(_templateObject5$
|
|
40623
|
+
var LinkUrl = styled__default.span(_templateObject5$t || (_templateObject5$t = _taggedTemplateLiteralLoose(["\n display: block;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n max-width: calc(100% - 52px);\n font-style: normal;\n font-weight: normal;\n font-size: 13px;\n line-height: 16px;\n text-decoration: underline;\n color: ", ";\n"])), function (props) {
|
|
39918
40624
|
return props.color;
|
|
39919
40625
|
});
|
|
39920
40626
|
|
|
39921
|
-
var _templateObject$
|
|
40627
|
+
var _templateObject$R;
|
|
39922
40628
|
var Links = function Links(_ref) {
|
|
39923
40629
|
var channelId = _ref.channelId,
|
|
39924
40630
|
linkPreviewIcon = _ref.linkPreviewIcon,
|
|
@@ -39943,7 +40649,7 @@ var Links = function Links(_ref) {
|
|
|
39943
40649
|
});
|
|
39944
40650
|
}));
|
|
39945
40651
|
};
|
|
39946
|
-
var Container$p = styled__default.ul(_templateObject$
|
|
40652
|
+
var Container$p = styled__default.ul(_templateObject$R || (_templateObject$R = _taggedTemplateLiteralLoose(["\n margin: 0;\n padding: 11px 0 0;\n overflow-x: hidden;\n overflow-y: auto;\n list-style: none;\n transition: all 0.2s;\n"])));
|
|
39947
40653
|
|
|
39948
40654
|
var _rect$5, _path$1q;
|
|
39949
40655
|
function _extends$1u() {
|
|
@@ -39999,7 +40705,7 @@ function SvgVoicePreviewPause(props) {
|
|
|
39999
40705
|
})));
|
|
40000
40706
|
}
|
|
40001
40707
|
|
|
40002
|
-
var _templateObject$
|
|
40708
|
+
var _templateObject$S, _templateObject2$M, _templateObject3$E, _templateObject4$y, _templateObject5$u, _templateObject6$p, _templateObject7$n, _templateObject8$l;
|
|
40003
40709
|
var VoiceItem = function VoiceItem(_ref) {
|
|
40004
40710
|
var file = _ref.file,
|
|
40005
40711
|
voicePreviewPlayIcon = _ref.voicePreviewPlayIcon,
|
|
@@ -40124,32 +40830,32 @@ var VoiceItem = function VoiceItem(_ref) {
|
|
|
40124
40830
|
type: 'audio/mpeg'
|
|
40125
40831
|
})));
|
|
40126
40832
|
};
|
|
40127
|
-
var FileIconCont$1 = styled__default.span(_templateObject$
|
|
40833
|
+
var FileIconCont$1 = styled__default.span(_templateObject$S || (_templateObject$S = _taggedTemplateLiteralLoose(["\n cursor: pointer;\n display: inline-flex;\n fill: ", ";\n rect {\n fill: ", ";\n }\n"])), function (props) {
|
|
40128
40834
|
return props.fill || 'transparent';
|
|
40129
40835
|
}, function (props) {
|
|
40130
40836
|
return props.fill || 'transparent';
|
|
40131
40837
|
});
|
|
40132
|
-
var FileHoverIconCont$1 = styled__default.span(_templateObject2$
|
|
40838
|
+
var FileHoverIconCont$1 = styled__default.span(_templateObject2$M || (_templateObject2$M = _taggedTemplateLiteralLoose(["\n cursor: pointer;\n display: none;\n fill: ", ";\n rect {\n fill: ", ";\n }\n"])), function (props) {
|
|
40133
40839
|
return props.fill || 'transparent';
|
|
40134
40840
|
}, function (props) {
|
|
40135
40841
|
return props.fill || 'transparent';
|
|
40136
40842
|
});
|
|
40137
|
-
var FileItem$2 = styled__default.li(_templateObject3$
|
|
40843
|
+
var FileItem$2 = styled__default.li(_templateObject3$E || (_templateObject3$E = _taggedTemplateLiteralLoose(["\n padding: 9px 16px;\n display: flex;\n align-items: center;\n text-decoration: none;\n\n &:hover {\n background-color: ", ";\n }\n div {\n margin-left: 12px;\n width: 100%;\n }\n img {\n width: 42px;\n height: 42px;\n border: 0.5px solid rgba(0, 0, 0, 0.1);\n box-sizing: border-box;\n border-radius: 6px;\n }\n\n &.isHover {\n & ", " {\n display: none;\n }\n & ", " {\n display: inline-flex;\n }\n }\n"])), function (props) {
|
|
40138
40844
|
return props.hoverBackgroundColor;
|
|
40139
40845
|
}, FileIconCont$1, FileHoverIconCont$1);
|
|
40140
|
-
var AudioInfo = styled__default.div(_templateObject4$
|
|
40141
|
-
var AudioTitle = styled__default.span(_templateObject5$
|
|
40846
|
+
var AudioInfo = styled__default.div(_templateObject4$y || (_templateObject4$y = _taggedTemplateLiteralLoose(["\n position: relative;\n"])));
|
|
40847
|
+
var AudioTitle = styled__default.span(_templateObject5$u || (_templateObject5$u = _taggedTemplateLiteralLoose(["\n display: block;\n font-style: normal;\n font-weight: 500;\n font-size: 15px;\n line-height: 20px;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n max-width: calc(100% - 72px);\n color: ", ";\n"])), function (props) {
|
|
40142
40848
|
return props.color;
|
|
40143
40849
|
});
|
|
40144
|
-
var AudioDate = styled__default.span(_templateObject6$
|
|
40850
|
+
var AudioDate = styled__default.span(_templateObject6$p || (_templateObject6$p = _taggedTemplateLiteralLoose(["\n display: block;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n max-width: calc(100% - 72px);\n font-style: normal;\n font-weight: normal;\n font-size: 12px;\n line-height: 16px;\n color: ", ";\n"])), function (props) {
|
|
40145
40851
|
return props.color;
|
|
40146
40852
|
});
|
|
40147
|
-
var AudioSendTime = styled__default.span(_templateObject7$
|
|
40853
|
+
var AudioSendTime = styled__default.span(_templateObject7$n || (_templateObject7$n = _taggedTemplateLiteralLoose(["\n position: absolute;\n right: 0;\n top: 11px;\n color: ", ";\n font-size: 12px;\n line-height: 16px;\n"])), function (props) {
|
|
40148
40854
|
return props.color;
|
|
40149
40855
|
});
|
|
40150
|
-
var Audio = styled__default.audio(_templateObject8$
|
|
40856
|
+
var Audio = styled__default.audio(_templateObject8$l || (_templateObject8$l = _taggedTemplateLiteralLoose(["\n display: none;\n"])));
|
|
40151
40857
|
|
|
40152
|
-
var _templateObject$
|
|
40858
|
+
var _templateObject$T;
|
|
40153
40859
|
var Voices = function Voices(_ref) {
|
|
40154
40860
|
var channelId = _ref.channelId,
|
|
40155
40861
|
voicePreviewPlayIcon = _ref.voicePreviewPlayIcon,
|
|
@@ -40180,9 +40886,9 @@ var Voices = function Voices(_ref) {
|
|
|
40180
40886
|
});
|
|
40181
40887
|
}));
|
|
40182
40888
|
};
|
|
40183
|
-
var Container$q = styled__default.ul(_templateObject$
|
|
40889
|
+
var Container$q = styled__default.ul(_templateObject$T || (_templateObject$T = _taggedTemplateLiteralLoose(["\n margin: 0;\n padding: 11px 0 0;\n overflow-x: hidden;\n overflow-y: auto;\n list-style: none;\n transition: all 0.2s;\n"])));
|
|
40184
40890
|
|
|
40185
|
-
var _templateObject$
|
|
40891
|
+
var _templateObject$U, _templateObject2$N;
|
|
40186
40892
|
var DetailsTab = function DetailsTab(_ref) {
|
|
40187
40893
|
var channel = _ref.channel,
|
|
40188
40894
|
theme = _ref.theme,
|
|
@@ -40331,8 +41037,8 @@ var DetailsTab = function DetailsTab(_ref) {
|
|
|
40331
41037
|
voicePreviewHoverBackgroundColor: voicePreviewHoverBackgroundColor
|
|
40332
41038
|
})));
|
|
40333
41039
|
};
|
|
40334
|
-
var Container$r = styled__default.div(_templateObject$
|
|
40335
|
-
var DetailsTabHeader = styled__default.div(_templateObject2$
|
|
41040
|
+
var Container$r = styled__default.div(_templateObject$U || (_templateObject$U = _taggedTemplateLiteralLoose(["\n min-height: calc(100vh - 64px);\n"])));
|
|
41041
|
+
var DetailsTabHeader = styled__default.div(_templateObject2$N || (_templateObject2$N = _taggedTemplateLiteralLoose(["\n overflow-x: auto;\n overflow-y: hidden;\n border-bottom: 1px solid ", ";\n background-color: ", ";\n display: flex;\n justify-content: space-between;\n position: sticky;\n top: 0;\n z-index: 12;\n /* width */\n &::-webkit-scrollbar {\n width: 0;\n height: 0;\n }\n\n /* Track */\n &::-webkit-scrollbar-track {\n background: transparent;\n }\n\n /* Handle */\n &::-webkit-scrollbar-thumb {\n background: transparent;\n }\n\n /* Handle on hover */\n &::-webkit-scrollbar-thumb:hover {\n background: transparent;\n }\n button {\n position: relative;\n border: none;\n background: transparent;\n outline: none;\n height: 44px;\n text-transform: capitalize;\n font-style: normal;\n font-weight: 500;\n font-size: ", ";\n line-height: ", ";\n color: ", ";\n min-width: ", ";\n cursor: pointer;\n }\n\n & span {\n position: relative;\n display: inline-flex;\n align-items: center;\n height: 100%;\n }\n\n & .active span {\n color: ", ";\n\n &:after {\n content: '';\n width: 100%;\n border-radius: 2px;\n height: 2px;\n background-color: ", ";\n position: absolute;\n top: calc(100% - 1px);\n left: 0;\n }\n }\n"])), function (props) {
|
|
40336
41042
|
return props.borderColor;
|
|
40337
41043
|
}, function (props) {
|
|
40338
41044
|
return props.backgroundColor || 'transparent';
|
|
@@ -40350,17 +41056,17 @@ var DetailsTabHeader = styled__default.div(_templateObject2$M || (_templateObjec
|
|
|
40350
41056
|
return props.activeTabColor;
|
|
40351
41057
|
});
|
|
40352
41058
|
|
|
40353
|
-
var _templateObject$
|
|
40354
|
-
var Container$s = styled__default.div(_templateObject$
|
|
41059
|
+
var _templateObject$V, _templateObject2$O, _templateObject3$F, _templateObject4$z;
|
|
41060
|
+
var Container$s = styled__default.div(_templateObject$V || (_templateObject$V = _taggedTemplateLiteralLoose(["\n ", ";\n height: ", ";\n position: absolute;\n padding: 24px 16px;\n background-color: ", ";\n z-index: 25;\n"])), function (props) {
|
|
40355
41061
|
return props.active ? 'display: block' : 'display: none';
|
|
40356
41062
|
}, function (props) {
|
|
40357
41063
|
return "calc(100vh - " + (props.heightOffset ? props.heightOffset + 48 : 48) + "px)";
|
|
40358
41064
|
}, function (props) {
|
|
40359
41065
|
return props.backgroundColor;
|
|
40360
41066
|
});
|
|
40361
|
-
var AvatarCont = styled__default.div(_templateObject2$
|
|
40362
|
-
var DropDownWrapper = styled__default.div(_templateObject3$
|
|
40363
|
-
var EditChannelFooter = styled__default(ButtonBlock)(_templateObject4$
|
|
41067
|
+
var AvatarCont = styled__default.div(_templateObject2$O || (_templateObject2$O = _taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: center;\n align-items: center;\n position: relative;\n margin-bottom: 4px;\n\n &::after {\n content: '';\n position: absolute;\n width: 120px;\n height: 120px;\n border-radius: 50%;\n background-color: rgba(0, 0, 0, 0.4);\n }\n .dropdown-body {\n top: inherit;\n right: inherit;\n bottom: -90px;\n }\n"])));
|
|
41068
|
+
var DropDownWrapper = styled__default.div(_templateObject3$F || (_templateObject3$F = _taggedTemplateLiteralLoose(["\n position: absolute;\n z-index: 4;\n width: 40px;\n height: 40px;\n"])));
|
|
41069
|
+
var EditChannelFooter = styled__default(ButtonBlock)(_templateObject4$z || (_templateObject4$z = _taggedTemplateLiteralLoose(["\n margin-top: 24px;\n\n & > button {\n margin-left: 12px;\n }\n"])));
|
|
40364
41070
|
var EditChannel = function EditChannel(_ref) {
|
|
40365
41071
|
var channel = _ref.channel,
|
|
40366
41072
|
theme = _ref.theme,
|
|
@@ -40615,7 +41321,7 @@ var EditChannel = function EditChannel(_ref) {
|
|
|
40615
41321
|
})));
|
|
40616
41322
|
};
|
|
40617
41323
|
|
|
40618
|
-
var _templateObject$
|
|
41324
|
+
var _templateObject$W, _templateObject2$P, _templateObject3$G, _templateObject4$A, _templateObject5$v, _templateObject6$q, _templateObject7$o, _templateObject8$m, _templateObject9$h, _templateObject0$f, _templateObject1$c, _templateObject10$7;
|
|
40619
41325
|
var Details = function Details(_ref) {
|
|
40620
41326
|
var _activeChannel$member;
|
|
40621
41327
|
var detailsTitleText = _ref.detailsTitleText,
|
|
@@ -41002,17 +41708,17 @@ var Details = function Details(_ref) {
|
|
|
41002
41708
|
onTabChange: handleTabChange
|
|
41003
41709
|
}))));
|
|
41004
41710
|
};
|
|
41005
|
-
var Container$t = styled__default.div(_templateObject$
|
|
41711
|
+
var Container$t = styled__default.div(_templateObject$W || (_templateObject$W = _taggedTemplateLiteralLoose(["\n flex: 0 0 auto;\n width: 0;\n border-left: 1px solid ", ";\n //transition: all 0.1s;\n ", "\n background-color: ", ";\n}\n"])), function (props) {
|
|
41006
41712
|
return props.borderColor;
|
|
41007
41713
|
}, function (props) {
|
|
41008
41714
|
return props.mounted && " width: " + (props.size === 'small' ? '300px' : props.size === 'medium' ? '350px' : '400px') + ";";
|
|
41009
41715
|
}, function (props) {
|
|
41010
41716
|
return props.backgroundColor;
|
|
41011
41717
|
});
|
|
41012
|
-
var ChannelDetailsHeader = styled__default.div(_templateObject2$
|
|
41718
|
+
var ChannelDetailsHeader = styled__default.div(_templateObject2$P || (_templateObject2$P = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n padding: 16px;\n position: relative;\n height: 64px;\n box-sizing: border-box;\n border-bottom: 1px solid ", ";\n\n & svg {\n cursor: pointer;\n }\n"])), function (props) {
|
|
41013
41719
|
return props.borderColor;
|
|
41014
41720
|
});
|
|
41015
|
-
var ChatDetails = styled__default.div(_templateObject3$
|
|
41721
|
+
var ChatDetails = styled__default.div(_templateObject3$G || (_templateObject3$G = _taggedTemplateLiteralLoose(["\n //position: relative;\n width: ", ";\n //height: ", ";\n height: ", ";\n overflow-y: auto;\n\n &::-webkit-scrollbar {\n width: 8px;\n background: transparent;\n }\n &::-webkit-scrollbar-thumb {\n background: transparent;\n }\n\n &.show-scrollbar::-webkit-scrollbar-thumb {\n background: ", ";\n border-radius: 4px;\n }\n &.show-scrollbar::-webkit-scrollbar-track {\n background: transparent;\n }\n"])), function (props) {
|
|
41016
41722
|
return props.size === 'small' ? '300px' : props.size === 'medium' ? '350px' : '400px';
|
|
41017
41723
|
}, function (props) {
|
|
41018
41724
|
return props.height ? "calc(100vh - " + props.heightOffset + "px)" : '100vh';
|
|
@@ -41021,37 +41727,37 @@ var ChatDetails = styled__default.div(_templateObject3$F || (_templateObject3$F
|
|
|
41021
41727
|
}, function (props) {
|
|
41022
41728
|
return props.thumbColor;
|
|
41023
41729
|
});
|
|
41024
|
-
var AboutChannel = styled__default.div(_templateObject4$
|
|
41025
|
-
var AboutChannelTitle = styled__default.h4(_templateObject5$
|
|
41730
|
+
var AboutChannel = styled__default.div(_templateObject4$A || (_templateObject4$A = _taggedTemplateLiteralLoose(["\n margin-top: 20px;\n"])));
|
|
41731
|
+
var AboutChannelTitle = styled__default.h4(_templateObject5$v || (_templateObject5$v = _taggedTemplateLiteralLoose(["\n font-size: 12px;\n margin: 0;\n line-height: 16px;\n color: ", ";\n"])), function (props) {
|
|
41026
41732
|
return props.color;
|
|
41027
41733
|
});
|
|
41028
|
-
var AboutChannelText = styled__default.h3(_templateObject6$
|
|
41734
|
+
var AboutChannelText = styled__default.h3(_templateObject6$q || (_templateObject6$q = _taggedTemplateLiteralLoose(["\n font-size: 15px;\n margin: 0;\n font-weight: 400;\n line-height: 20px;\n color: ", ";\n"])), function (props) {
|
|
41029
41735
|
return props.color;
|
|
41030
41736
|
});
|
|
41031
|
-
var ChannelInfo$4 = styled__default.div(_templateObject7$
|
|
41737
|
+
var ChannelInfo$4 = styled__default.div(_templateObject7$o || (_templateObject7$o = _taggedTemplateLiteralLoose(["\n position: relative;\n margin-left: ", ";\n margin-top: ", ";\n text-align: ", ";\n"])), function (props) {
|
|
41032
41738
|
return (!props.direction || props.direction !== 'column') && '16px';
|
|
41033
41739
|
}, function (props) {
|
|
41034
41740
|
return props.direction && props.direction === 'column' && '16px';
|
|
41035
41741
|
}, function (props) {
|
|
41036
41742
|
return props.direction && props.direction === 'column' && 'center';
|
|
41037
41743
|
});
|
|
41038
|
-
var DetailsHeader = styled__default.div(_templateObject8$
|
|
41744
|
+
var DetailsHeader = styled__default.div(_templateObject8$m || (_templateObject8$m = _taggedTemplateLiteralLoose(["\n border-bottom: 6px solid ", ";\n align-items: center;\n box-sizing: border-box;\n padding: 20px 16px;\n"])), function (props) {
|
|
41039
41745
|
return props.borderColor;
|
|
41040
41746
|
});
|
|
41041
|
-
var ChannelAvatarAndName = styled__default.div(_templateObject9$
|
|
41747
|
+
var ChannelAvatarAndName = styled__default.div(_templateObject9$h || (_templateObject9$h = _taggedTemplateLiteralLoose(["\n position: relative;\n display: flex;\n align-items: center;\n box-sizing: border-box;\n flex-direction: ", ";\n"])), function (props) {
|
|
41042
41748
|
return props.direction;
|
|
41043
41749
|
});
|
|
41044
|
-
var ChannelName$1 = styled__default(SectionHeader)(_templateObject0$
|
|
41750
|
+
var ChannelName$1 = styled__default(SectionHeader)(_templateObject0$f || (_templateObject0$f = _taggedTemplateLiteralLoose(["\n white-space: nowrap;\n max-width: ", ";\n text-overflow: ellipsis;\n text-color: ", ";\n overflow: hidden;\n text-transform: ", ";\n"])), function (props) {
|
|
41045
41751
|
return props.isDirect ? '200px' : '168px';
|
|
41046
41752
|
}, function (props) {
|
|
41047
41753
|
return props.color;
|
|
41048
41754
|
}, function (props) {
|
|
41049
41755
|
return props.uppercase && 'uppercase';
|
|
41050
41756
|
});
|
|
41051
|
-
var ChannelNameWrapper = styled__default.div(_templateObject1$
|
|
41757
|
+
var ChannelNameWrapper = styled__default.div(_templateObject1$c || (_templateObject1$c = _taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: center;\n"])));
|
|
41052
41758
|
var EditButton = styled__default.span(_templateObject10$7 || (_templateObject10$7 = _taggedTemplateLiteralLoose(["\n margin-left: 6px;\n cursor: pointer;\n color: #b2b6be;\n"])));
|
|
41053
41759
|
|
|
41054
|
-
var _templateObject$
|
|
41760
|
+
var _templateObject$X;
|
|
41055
41761
|
var ChannelDetailsContainer = function ChannelDetailsContainer(_ref) {
|
|
41056
41762
|
var _ref$size = _ref.size,
|
|
41057
41763
|
size = _ref$size === void 0 ? 'large' : _ref$size,
|
|
@@ -41280,7 +41986,7 @@ var ChannelDetailsContainer = function ChannelDetailsContainer(_ref) {
|
|
|
41280
41986
|
showPhoneNumber: showPhoneNumber
|
|
41281
41987
|
})));
|
|
41282
41988
|
};
|
|
41283
|
-
var DetailsWrapper = styled__default.div(_templateObject$
|
|
41989
|
+
var DetailsWrapper = styled__default.div(_templateObject$X || (_templateObject$X = _taggedTemplateLiteralLoose([""])));
|
|
41284
41990
|
|
|
41285
41991
|
var _path$1s;
|
|
41286
41992
|
function _extends$1w() {
|
|
@@ -41304,7 +42010,7 @@ function SvgChevronDown(props) {
|
|
|
41304
42010
|
})));
|
|
41305
42011
|
}
|
|
41306
42012
|
|
|
41307
|
-
var _templateObject$
|
|
42013
|
+
var _templateObject$Y, _templateObject2$Q;
|
|
41308
42014
|
var MessagesScrollToBottomButton = function MessagesScrollToBottomButton(_ref) {
|
|
41309
42015
|
var buttonIcon = _ref.buttonIcon,
|
|
41310
42016
|
buttonWidth = _ref.buttonWidth,
|
|
@@ -41387,7 +42093,7 @@ var MessagesScrollToBottomButton = function MessagesScrollToBottomButton(_ref) {
|
|
|
41387
42093
|
isMuted: channel.muted
|
|
41388
42094
|
}, channel.newMessageCount ? channel.newMessageCount > 99 ? '99+' : channel.newMessageCount : '')), buttonIcon || /*#__PURE__*/React__default.createElement(SvgChevronDown, null)));
|
|
41389
42095
|
};
|
|
41390
|
-
var BottomButton = styled__default.div(_templateObject$
|
|
42096
|
+
var BottomButton = styled__default.div(_templateObject$Y || (_templateObject$Y = _taggedTemplateLiteralLoose(["\n transition: all 0.3s ease-in-out;\n position: absolute;\n ", ";\n\n ", ";\n\n ", ";\n right: ", "px;\n\n margin-right: 16px;\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: ", ";\n border: 0.5px solid rgba(0, 0, 0, 0.1);\n border-radius: 50px;\n width: 48px;\n height: 48px;\n cursor: pointer;\n z-index: 14;\n & > svg {\n color: rgba(129, 140, 153, 1);\n }\n\n & > span {\n bottom: 32px;\n right: 0;\n }\n"])), function (props) {
|
|
41391
42097
|
return props.animateFrom === 'bottom' && "bottom: " + (props.bottomOffset + (props.bottomPosition === undefined ? 45 : props.bottomPosition) - 130) + "px";
|
|
41392
42098
|
}, function (props) {
|
|
41393
42099
|
return props.animateFrom === 'right' && "right: " + (props.rightPosition === undefined ? 16 : props.rightPosition - 100) + "px";
|
|
@@ -41398,7 +42104,7 @@ var BottomButton = styled__default.div(_templateObject$X || (_templateObject$X =
|
|
|
41398
42104
|
}, function (props) {
|
|
41399
42105
|
return props.backgroundColor;
|
|
41400
42106
|
});
|
|
41401
|
-
var UnreadCount$1 = styled__default.span(_templateObject2$
|
|
42107
|
+
var UnreadCount$1 = styled__default.span(_templateObject2$Q || (_templateObject2$Q = _taggedTemplateLiteralLoose(["\n position: absolute;\n bottom: 11px;\n right: 16px;\n flex: 0 0 auto;\n margin-left: auto;\n background-color: ", ";\n padding: 0 4px;\n font-size: ", ";\n line-height: 20px;\n min-width: ", ";\n height: ", ";\n text-align: center;\n font-weight: 500;\n color: ", ";\n border-radius: 10px;\n box-sizing: border-box;\n"])), function (props) {
|
|
41402
42108
|
return props.backgroundColor;
|
|
41403
42109
|
}, function (props) {
|
|
41404
42110
|
return props.fontSize || '13px';
|
|
@@ -41441,7 +42147,7 @@ function SvgMention(props) {
|
|
|
41441
42147
|
})));
|
|
41442
42148
|
}
|
|
41443
42149
|
|
|
41444
|
-
var _templateObject$
|
|
42150
|
+
var _templateObject$Z, _templateObject2$R;
|
|
41445
42151
|
var MessagesScrollToUnreadMentionsButton = function MessagesScrollToUnreadMentionsButton(_ref) {
|
|
41446
42152
|
var buttonIcon = _ref.buttonIcon,
|
|
41447
42153
|
buttonWidth = _ref.buttonWidth,
|
|
@@ -41584,7 +42290,7 @@ var MessagesScrollToUnreadMentionsButton = function MessagesScrollToUnreadMentio
|
|
|
41584
42290
|
isMuted: channel.muted
|
|
41585
42291
|
}, channel.newMentionCount ? channel.newMentionCount > 99 ? '99+' : channel.newMentionCount : '')), buttonIcon || /*#__PURE__*/React__default.createElement(SvgMention, null)));
|
|
41586
42292
|
};
|
|
41587
|
-
var BottomButton$1 = styled__default.div(_templateObject$
|
|
42293
|
+
var BottomButton$1 = styled__default.div(_templateObject$Z || (_templateObject$Z = _taggedTemplateLiteralLoose(["\n transition: all 0.3s ease-in-out;\n position: absolute;\n ", ";\n\n ", ";\n\n ", ";\n right: ", ";\n margin-right: 16px;\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: ", ";\n border: 0.5px solid rgba(0, 0, 0, 0.1);\n border-radius: 50px;\n width: 48px;\n height: 48px;\n cursor: pointer;\n z-index: 14;\n\n & > svg {\n color: rgba(129, 140, 153, 1);\n }\n\n & > span {\n bottom: 32px;\n right: 0;\n }\n"])), function (props) {
|
|
41588
42294
|
return props.animateFrom === 'bottom' && "bottom: " + (props.bottomOffset + (props.bottomPosition === undefined ? 45 : props.bottomPosition) + (props.showsUnreadMentionsButton ? 60 : 0) - 180) + "px";
|
|
41589
42295
|
}, function (props) {
|
|
41590
42296
|
return props.animateFrom === 'right' && "right: " + (props.rightPosition === undefined ? 16 : props.rightPosition - 100) + "px";
|
|
@@ -41595,7 +42301,7 @@ var BottomButton$1 = styled__default.div(_templateObject$Y || (_templateObject$Y
|
|
|
41595
42301
|
}, function (props) {
|
|
41596
42302
|
return props.backgroundColor;
|
|
41597
42303
|
});
|
|
41598
|
-
var UnreadCount$2 = styled__default.span(_templateObject2$
|
|
42304
|
+
var UnreadCount$2 = styled__default.span(_templateObject2$R || (_templateObject2$R = _taggedTemplateLiteralLoose(["\n position: absolute;\n bottom: 11px;\n right: 16px;\n flex: 0 0 auto;\n margin-left: auto;\n background-color: ", ";\n padding: 0 4px;\n font-size: ", ";\n line-height: 20px;\n min-width: ", ";\n height: ", ";\n text-align: center;\n font-weight: 500;\n color: ", ";\n border-radius: 10px;\n box-sizing: border-box;\n"])), function (props) {
|
|
41599
42305
|
return props.backgroundColor;
|
|
41600
42306
|
}, function (props) {
|
|
41601
42307
|
return props.fontSize || '13px';
|