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