sceyt-chat-react-uikit 1.7.2-beta.8 → 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
@@ -20,6 +20,7 @@ import { OnChangePlugin } from '@lexical/react/LexicalOnChangePlugin';
20
20
  import { createPortal } from 'react-dom';
21
21
  import { useBasicTypeaheadTriggerMatch, LexicalTypeaheadMenuPlugin, MenuOption } from '@lexical/react/LexicalTypeaheadMenuPlugin';
22
22
  import { $createOffsetView } from '@lexical/offset';
23
+ import MicRecorder from 'mic-recorder-to-mp3';
23
24
  import { HistoryPlugin } from '@lexical/react/LexicalHistoryPlugin';
24
25
 
25
26
  // src/utils/formatProdErrorMessage.ts
@@ -2593,7 +2594,8 @@ var MESSAGE_DELIVERY_STATUS = {
2593
2594
  PENDING: 'pending',
2594
2595
  SENT: 'sent',
2595
2596
  DELIVERED: 'received',
2596
- READ: 'displayed'
2597
+ READ: 'displayed',
2598
+ PLAYED: 'played'
2597
2599
  };
2598
2600
  var MESSAGE_STATUS = {
2599
2601
  UNMODIFIED: 'unmodified',
@@ -9564,6 +9566,7 @@ var UPDATE_CHANNEL = 'UPDATE_CHANNEL';
9564
9566
  var REMOVE_CHANNEL_CACHES = 'REMOVE_CHANNEL_CACHES';
9565
9567
  var MARK_MESSAGES_AS_READ = 'MARK_MESSAGES_AS_READ';
9566
9568
  var MARK_MESSAGES_AS_DELIVERED = 'MARK_MESSAGES_AS_DELIVERED';
9569
+ var MARK_VOICE_MESSAGE_AS_PLAYED = 'MARK_VOICE_MESSAGE_AS_PLAYED';
9567
9570
  var SEND_TYPING = 'SEND_TYPING';
9568
9571
  var SEND_RECORDING = 'SEND_RECORDING';
9569
9572
  var JOIN_TO_CHANNEL = 'JOIN_TO_CHANNEL';
@@ -10336,7 +10339,9 @@ var initialState$1 = {
10336
10339
  playingAudioId: null,
10337
10340
  selectedMessagesMap: null,
10338
10341
  oGMetadata: {},
10339
- attachmentUpdatedMap: {}
10342
+ attachmentUpdatedMap: {},
10343
+ messageMarkers: {},
10344
+ messagesMarkersLoadingState: null
10340
10345
  };
10341
10346
  var messageSlice = createSlice({
10342
10347
  name: 'messages',
@@ -10663,6 +10668,66 @@ var messageSlice = createSlice({
10663
10668
  var existing = state.oGMetadata[url];
10664
10669
  state.oGMetadata[url] = existing ? _extends({}, existing, metadata) : metadata;
10665
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;
10666
10731
  }
10667
10732
  },
10668
10733
  extraReducers: function extraReducers(builder) {
@@ -10714,7 +10779,10 @@ var _messageSlice$actions = messageSlice.actions,
10714
10779
  removeSelectedMessage = _messageSlice$actions.removeSelectedMessage,
10715
10780
  clearSelectedMessages = _messageSlice$actions.clearSelectedMessages,
10716
10781
  setOGMetadata = _messageSlice$actions.setOGMetadata,
10717
- updateOGMetadata = _messageSlice$actions.updateOGMetadata;
10782
+ updateOGMetadata = _messageSlice$actions.updateOGMetadata,
10783
+ setMessageMarkers = _messageSlice$actions.setMessageMarkers,
10784
+ setMessagesMarkersLoadingState = _messageSlice$actions.setMessagesMarkersLoadingState,
10785
+ updateMessagesMarkers = _messageSlice$actions.updateMessagesMarkers;
10718
10786
  var MessageReducer = messageSlice.reducer;
10719
10787
 
10720
10788
  var initialState$2 = {
@@ -11326,6 +11394,15 @@ var markMessagesAsDeliveredAC = function markMessagesAsDeliveredAC(channelId, me
11326
11394
  }
11327
11395
  };
11328
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
+ };
11329
11406
  var sendTypingAC = function sendTypingAC(state) {
11330
11407
  return {
11331
11408
  type: SEND_TYPING,
@@ -11501,6 +11578,7 @@ var getChannelMentionsAC = function getChannelMentionsAC(channelId) {
11501
11578
 
11502
11579
  var GET_MESSAGES = 'GET_MESSAGES';
11503
11580
  var GET_MESSAGE = 'GET_MESSAGE';
11581
+ var GET_MESSAGE_MARKERS = 'GET_MESSAGE_MARKERS';
11504
11582
  var LOAD_MORE_MESSAGES = 'LOAD_MORE_MESSAGES';
11505
11583
  var SEND_MESSAGE = 'SEND_MESSAGE';
11506
11584
  var SEND_TEXT_MESSAGE = 'SEND_TEXT_MESSAGE';
@@ -11934,6 +12012,36 @@ function removeSelectedMessageAC(messageId) {
11934
12012
  function clearSelectedMessagesAC() {
11935
12013
  return clearSelectedMessages();
11936
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
+ }
11937
12045
 
11938
12046
  var SET_CONTACT_LOADING_STATE = 'SET_CONTACT_LOADING_STATE';
11939
12047
  var GET_CONTACTS = 'GET_CONTACTS';
@@ -14208,6 +14316,8 @@ function watchForEvents() {
14208
14316
  name: markerList.name,
14209
14317
  markersMap: markersMap
14210
14318
  });
14319
+ _context.n = 71;
14320
+ return put(updateMessagesMarkersAC(channelId, markerList.name, markerList));
14211
14321
  case 71:
14212
14322
  return _context.a(3, 142);
14213
14323
  case 72:
@@ -14742,27 +14852,28 @@ var _marked$2 = /*#__PURE__*/_regenerator().m(createChannel),
14742
14852
  _marked7 = /*#__PURE__*/_regenerator().m(getChannelMentions),
14743
14853
  _marked8 = /*#__PURE__*/_regenerator().m(channelsForForwardLoadMore),
14744
14854
  _marked9 = /*#__PURE__*/_regenerator().m(markMessagesRead),
14745
- _marked0 = /*#__PURE__*/_regenerator().m(markMessagesDelivered),
14746
- _marked1 = /*#__PURE__*/_regenerator().m(switchChannel),
14747
- _marked10 = /*#__PURE__*/_regenerator().m(notificationsTurnOff),
14748
- _marked11 = /*#__PURE__*/_regenerator().m(notificationsTurnOn),
14749
- _marked12 = /*#__PURE__*/_regenerator().m(markChannelAsRead),
14750
- _marked13 = /*#__PURE__*/_regenerator().m(markChannelAsUnRead),
14751
- _marked14 = /*#__PURE__*/_regenerator().m(pinChannel),
14752
- _marked15 = /*#__PURE__*/_regenerator().m(unpinChannel),
14753
- _marked16 = /*#__PURE__*/_regenerator().m(removeChannelCaches),
14754
- _marked17 = /*#__PURE__*/_regenerator().m(leaveChannel),
14755
- _marked18 = /*#__PURE__*/_regenerator().m(deleteChannel),
14756
- _marked19 = /*#__PURE__*/_regenerator().m(blockChannel),
14757
- _marked20 = /*#__PURE__*/_regenerator().m(updateChannel),
14758
- _marked21 = /*#__PURE__*/_regenerator().m(checkUsersStatus),
14759
- _marked22 = /*#__PURE__*/_regenerator().m(sendTyping),
14760
- _marked23 = /*#__PURE__*/_regenerator().m(sendRecording),
14761
- _marked24 = /*#__PURE__*/_regenerator().m(clearHistory),
14762
- _marked25 = /*#__PURE__*/_regenerator().m(deleteAllMessages),
14763
- _marked26 = /*#__PURE__*/_regenerator().m(joinChannel),
14764
- _marked27 = /*#__PURE__*/_regenerator().m(watchForChannelEvents),
14765
- _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);
14766
14877
  function createChannel(action) {
14767
14878
  var payload, channelData, dontCreateIfNotExists, callback, SceytChatClient, createChannelData, fileToUpload, isSelfChannel, channelIsExistOnAllChannels, createdChannel, allChannels, memberId, checkChannelExist, messageToSend, _allChannels, _memberId, _t;
14768
14879
  return _regenerator().w(function (_context) {
@@ -15660,7 +15771,7 @@ function markMessagesRead(action) {
15660
15771
  deliveryStatus: MESSAGE_DELIVERY_STATUS.READ,
15661
15772
  userMarkers: [{
15662
15773
  user: messageListMarker.user,
15663
- createdAt: messageListMarker.createAt,
15774
+ createdAt: messageListMarker.createdAt,
15664
15775
  messageId: messageId,
15665
15776
  name: MESSAGE_DELIVERY_STATUS.READ
15666
15777
  }]
@@ -15688,7 +15799,7 @@ function markMessagesRead(action) {
15688
15799
  }
15689
15800
  }, _marked9, null, [[2, 9]]);
15690
15801
  }
15691
- function markMessagesDelivered(action) {
15802
+ function markVoiceMessageAsPlayed(action) {
15692
15803
  var payload, channelId, messageIds, channel, _t10;
15693
15804
  return _regenerator().w(function (_context0) {
15694
15805
  while (1) switch (_context0.p = _context0.n) {
@@ -15710,151 +15821,148 @@ function markMessagesDelivered(action) {
15710
15821
  _context0.n = 3;
15711
15822
  break;
15712
15823
  }
15713
- log.info('send delivered marker ', messageIds);
15714
15824
  _context0.n = 3;
15715
- return call(channel.markMessagesAsReceived, messageIds);
15825
+ return call(channel.markVoiceMessagesAsPlayed, messageIds);
15716
15826
  case 3:
15717
15827
  _context0.n = 5;
15718
15828
  break;
15719
15829
  case 4:
15720
15830
  _context0.p = 4;
15721
15831
  _t10 = _context0.v;
15722
- log.error(_t10, 'Error on mark messages delivered');
15832
+ log.error(_t10, 'Error on mark voice messages read');
15723
15833
  case 5:
15724
15834
  return _context0.a(2);
15725
15835
  }
15726
15836
  }, _marked0, null, [[1, 4]]);
15727
15837
  }
15728
- function switchChannel(action) {
15729
- var payload, channel, updateActiveChannel, channelToSwitch, existingChannel, addChannel, _SceytChatClient5, fetchedChannel, channelFromMap, currentActiveChannel, _t11;
15838
+ function markMessagesDelivered(action) {
15839
+ var payload, channelId, messageIds, channel, _t11;
15730
15840
  return _regenerator().w(function (_context1) {
15731
15841
  while (1) switch (_context1.p = _context1.n) {
15732
15842
  case 0:
15733
- _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;
15734
15881
  payload = action.payload;
15735
15882
  channel = payload.channel, updateActiveChannel = payload.updateActiveChannel;
15736
15883
  channelToSwitch = channel;
15737
15884
  if (!(!(channel !== null && channel !== void 0 && channel.id) && updateActiveChannel)) {
15738
- _context1.n = 3;
15885
+ _context10.n = 3;
15739
15886
  break;
15740
15887
  }
15741
- _context1.n = 1;
15888
+ _context10.n = 1;
15742
15889
  return call(setActiveChannelId, '');
15743
15890
  case 1:
15744
- _context1.n = 2;
15891
+ _context10.n = 2;
15745
15892
  return put(setActiveChannelAC({}));
15746
15893
  case 2:
15747
- return _context1.a(2);
15894
+ return _context10.a(2);
15748
15895
  case 3:
15749
15896
  existingChannel = checkChannelExists(channel.id);
15750
15897
  if (existingChannel) {
15751
- _context1.n = 9;
15898
+ _context10.n = 9;
15752
15899
  break;
15753
15900
  }
15754
15901
  addChannel = getChannelFromAllChannels(channel.id);
15755
15902
  if (!addChannel) {
15756
- _context1.n = 5;
15903
+ _context10.n = 5;
15757
15904
  break;
15758
15905
  }
15759
15906
  setChannelInMap(addChannel);
15760
- _context1.n = 4;
15907
+ _context10.n = 4;
15761
15908
  return put(addChannelAC(JSON.parse(JSON.stringify(addChannel))));
15762
15909
  case 4:
15763
15910
  channelToSwitch = _extends({}, channelToSwitch, addChannel);
15764
- _context1.n = 8;
15911
+ _context10.n = 8;
15765
15912
  break;
15766
15913
  case 5:
15767
15914
  _SceytChatClient5 = getClient();
15768
- _context1.n = 6;
15915
+ _context10.n = 6;
15769
15916
  return call(_SceytChatClient5.getChannel, channel.id);
15770
15917
  case 6:
15771
- fetchedChannel = _context1.v;
15918
+ fetchedChannel = _context10.v;
15772
15919
  addChannelToAllChannels(fetchedChannel);
15773
15920
  setChannelInMap(fetchedChannel);
15774
- _context1.n = 7;
15921
+ _context10.n = 7;
15775
15922
  return put(addChannelAC(JSON.parse(JSON.stringify(fetchedChannel))));
15776
15923
  case 7:
15777
15924
  channelToSwitch = _extends({}, channelToSwitch, fetchedChannel);
15778
15925
  case 8:
15779
- _context1.n = 10;
15926
+ _context10.n = 10;
15780
15927
  break;
15781
15928
  case 9:
15782
15929
  channelFromMap = getChannelFromMap(channel.id);
15783
15930
  channelToSwitch = _extends({}, channelToSwitch, channelFromMap);
15784
15931
  case 10:
15785
15932
  if (!updateActiveChannel) {
15786
- _context1.n = 13;
15933
+ _context10.n = 13;
15787
15934
  break;
15788
15935
  }
15789
15936
  currentActiveChannel = getChannelFromMap(getActiveChannelId());
15790
- _context1.n = 11;
15937
+ _context10.n = 11;
15791
15938
  return call(setUnreadScrollTo, true);
15792
15939
  case 11:
15793
- _context1.n = 12;
15940
+ _context10.n = 12;
15794
15941
  return call(setActiveChannelId, channel && channel.id);
15795
15942
  case 12:
15796
15943
  if (channel.isLinkedChannel) {
15797
15944
  channelToSwitch.linkedFrom = currentActiveChannel;
15798
15945
  }
15799
- _context1.n = 13;
15946
+ _context10.n = 13;
15800
15947
  return put(setActiveChannelAC(_extends({}, channelToSwitch)));
15801
15948
  case 13:
15802
- _context1.n = 15;
15949
+ _context10.n = 15;
15803
15950
  break;
15804
15951
  case 14:
15805
- _context1.p = 14;
15806
- _t11 = _context1.v;
15807
- log.error('error in switch channel', _t11);
15808
- case 15:
15809
- return _context1.a(2);
15810
- }
15811
- }, _marked1, null, [[0, 14]]);
15812
- }
15813
- function notificationsTurnOff(action) {
15814
- var expireTime, activeChannelId, channel, updatedChannel, _t12;
15815
- return _regenerator().w(function (_context10) {
15816
- while (1) switch (_context10.p = _context10.n) {
15817
- case 0:
15818
- expireTime = action.payload.expireTime;
15819
- _context10.n = 1;
15820
- return call(getActiveChannelId);
15821
- case 1:
15822
- activeChannelId = _context10.v;
15823
- _context10.n = 2;
15824
- return call(getChannelFromMap, activeChannelId);
15825
- case 2:
15826
- channel = _context10.v;
15827
- _context10.p = 3;
15828
- _context10.n = 4;
15829
- return call(channel.mute, expireTime);
15830
- case 4:
15831
- updatedChannel = _context10.v;
15832
- updateChannelOnAllChannels(channel.id, {
15833
- muted: updatedChannel.muted,
15834
- mutedTill: updatedChannel.mutedTill
15835
- });
15836
- _context10.n = 5;
15837
- return put(updateChannelDataAC(updatedChannel.id, {
15838
- muted: updatedChannel.muted,
15839
- mutedTill: updatedChannel.mutedTill
15840
- }));
15841
- case 5:
15842
- _context10.n = 7;
15843
- break;
15844
- case 6:
15845
- _context10.p = 6;
15952
+ _context10.p = 14;
15846
15953
  _t12 = _context10.v;
15847
- log.error('ERROR turn off notifications', _t12.message);
15848
- case 7:
15954
+ log.error('error in switch channel', _t12);
15955
+ case 15:
15849
15956
  return _context10.a(2);
15850
15957
  }
15851
- }, _marked10, null, [[3, 6]]);
15958
+ }, _marked10, null, [[0, 14]]);
15852
15959
  }
15853
- function notificationsTurnOn() {
15854
- var activeChannelId, channel, updatedChannel, _t13;
15960
+ function notificationsTurnOff(action) {
15961
+ var expireTime, activeChannelId, channel, updatedChannel, _t13;
15855
15962
  return _regenerator().w(function (_context11) {
15856
15963
  while (1) switch (_context11.p = _context11.n) {
15857
15964
  case 0:
15965
+ expireTime = action.payload.expireTime;
15858
15966
  _context11.n = 1;
15859
15967
  return call(getActiveChannelId);
15860
15968
  case 1:
@@ -15865,7 +15973,7 @@ function notificationsTurnOn() {
15865
15973
  channel = _context11.v;
15866
15974
  _context11.p = 3;
15867
15975
  _context11.n = 4;
15868
- return call(channel.unmute);
15976
+ return call(channel.mute, expireTime);
15869
15977
  case 4:
15870
15978
  updatedChannel = _context11.v;
15871
15979
  updateChannelOnAllChannels(channel.id, {
@@ -15883,51 +15991,53 @@ function notificationsTurnOn() {
15883
15991
  case 6:
15884
15992
  _context11.p = 6;
15885
15993
  _t13 = _context11.v;
15886
- log.error('ERROR turn on notifications: ', _t13.message);
15994
+ log.error('ERROR turn off notifications', _t13.message);
15887
15995
  case 7:
15888
15996
  return _context11.a(2);
15889
15997
  }
15890
15998
  }, _marked11, null, [[3, 6]]);
15891
15999
  }
15892
- function markChannelAsRead(action) {
15893
- var channelId, channel, updateData, _t14;
16000
+ function notificationsTurnOn() {
16001
+ var activeChannelId, channel, updatedChannel, _t14;
15894
16002
  return _regenerator().w(function (_context12) {
15895
16003
  while (1) switch (_context12.p = _context12.n) {
15896
16004
  case 0:
15897
- _context12.p = 0;
15898
- channelId = action.payload.channelId;
15899
16005
  _context12.n = 1;
15900
- return call(getChannelFromMap, channelId);
16006
+ return call(getActiveChannelId);
15901
16007
  case 1:
15902
- channel = _context12.v;
15903
- if (!channel) {
15904
- channel = getChannelFromAllChannels(channelId);
15905
- }
16008
+ activeChannelId = _context12.v;
15906
16009
  _context12.n = 2;
15907
- return call(channel.markAsRead);
16010
+ return call(getChannelFromMap, activeChannelId);
15908
16011
  case 2:
15909
- updateData = {
15910
- unread: false,
15911
- newMessageCount: 0,
15912
- newMentionCount: 0
15913
- };
15914
- updateChannelOnAllChannels(channel.id, updateData);
15915
- _context12.n = 3;
15916
- return put(updateChannelDataAC(channel.id, updateData));
15917
- 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
+ });
15918
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;
15919
16029
  break;
15920
- case 4:
15921
- _context12.p = 4;
16030
+ case 6:
16031
+ _context12.p = 6;
15922
16032
  _t14 = _context12.v;
15923
- log.error(_t14, 'Error in set channel unread');
15924
- case 5:
16033
+ log.error('ERROR turn on notifications: ', _t14.message);
16034
+ case 7:
15925
16035
  return _context12.a(2);
15926
16036
  }
15927
- }, _marked12, null, [[0, 4]]);
16037
+ }, _marked12, null, [[3, 6]]);
15928
16038
  }
15929
- function markChannelAsUnRead(action) {
15930
- var channelId, channel, _t15;
16039
+ function markChannelAsRead(action) {
16040
+ var channelId, channel, updateData, _t15;
15931
16041
  return _regenerator().w(function (_context13) {
15932
16042
  while (1) switch (_context13.p = _context13.n) {
15933
16043
  case 0:
@@ -15941,15 +16051,16 @@ function markChannelAsUnRead(action) {
15941
16051
  channel = getChannelFromAllChannels(channelId);
15942
16052
  }
15943
16053
  _context13.n = 2;
15944
- return call(channel.markAsUnRead);
16054
+ return call(channel.markAsRead);
15945
16055
  case 2:
15946
- updateChannelOnAllChannels(channel.id, {
15947
- unread: true
15948
- });
16056
+ updateData = {
16057
+ unread: false,
16058
+ newMessageCount: 0,
16059
+ newMentionCount: 0
16060
+ };
16061
+ updateChannelOnAllChannels(channel.id, updateData);
15949
16062
  _context13.n = 3;
15950
- return put(updateChannelDataAC(channel.id, {
15951
- unread: true
15952
- }));
16063
+ return put(updateChannelDataAC(channel.id, updateData));
15953
16064
  case 3:
15954
16065
  _context13.n = 5;
15955
16066
  break;
@@ -15962,8 +16073,8 @@ function markChannelAsUnRead(action) {
15962
16073
  }
15963
16074
  }, _marked13, null, [[0, 4]]);
15964
16075
  }
15965
- function pinChannel(action) {
15966
- var channelId, channel, updatedChannel, _t16;
16076
+ function markChannelAsUnRead(action) {
16077
+ var channelId, channel, _t16;
15967
16078
  return _regenerator().w(function (_context14) {
15968
16079
  while (1) switch (_context14.p = _context14.n) {
15969
16080
  case 0:
@@ -15977,29 +16088,28 @@ function pinChannel(action) {
15977
16088
  channel = getChannelFromAllChannels(channelId);
15978
16089
  }
15979
16090
  _context14.n = 2;
15980
- return call(channel.pin);
16091
+ return call(channel.markAsUnRead);
15981
16092
  case 2:
15982
- updatedChannel = _context14.v;
15983
16093
  updateChannelOnAllChannels(channel.id, {
15984
- pinnedAt: updatedChannel.pinnedAt
16094
+ unread: true
15985
16095
  });
15986
16096
  _context14.n = 3;
15987
- return put(updateChannelDataAC(updatedChannel.id, {
15988
- pinnedAt: updatedChannel.pinnedAt
15989
- }, true));
16097
+ return put(updateChannelDataAC(channel.id, {
16098
+ unread: true
16099
+ }));
15990
16100
  case 3:
15991
16101
  _context14.n = 5;
15992
16102
  break;
15993
16103
  case 4:
15994
16104
  _context14.p = 4;
15995
16105
  _t16 = _context14.v;
15996
- log.error(_t16, 'Error in pinChannel');
16106
+ log.error(_t16, 'Error in set channel unread');
15997
16107
  case 5:
15998
16108
  return _context14.a(2);
15999
16109
  }
16000
16110
  }, _marked14, null, [[0, 4]]);
16001
16111
  }
16002
- function unpinChannel(action) {
16112
+ function pinChannel(action) {
16003
16113
  var channelId, channel, updatedChannel, _t17;
16004
16114
  return _regenerator().w(function (_context15) {
16005
16115
  while (1) switch (_context15.p = _context15.n) {
@@ -16014,7 +16124,7 @@ function unpinChannel(action) {
16014
16124
  channel = getChannelFromAllChannels(channelId);
16015
16125
  }
16016
16126
  _context15.n = 2;
16017
- return call(channel.unpin);
16127
+ return call(channel.pin);
16018
16128
  case 2:
16019
16129
  updatedChannel = _context15.v;
16020
16130
  updateChannelOnAllChannels(channel.id, {
@@ -16023,197 +16133,234 @@ function unpinChannel(action) {
16023
16133
  _context15.n = 3;
16024
16134
  return put(updateChannelDataAC(updatedChannel.id, {
16025
16135
  pinnedAt: updatedChannel.pinnedAt
16026
- }, false, true));
16136
+ }, true));
16027
16137
  case 3:
16028
16138
  _context15.n = 5;
16029
16139
  break;
16030
16140
  case 4:
16031
16141
  _context15.p = 4;
16032
16142
  _t17 = _context15.v;
16033
- log.error(_t17, 'Error in unpinChannel');
16143
+ log.error(_t17, 'Error in pinChannel');
16034
16144
  case 5:
16035
16145
  return _context15.a(2);
16036
16146
  }
16037
16147
  }, _marked15, null, [[0, 4]]);
16038
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
+ }
16039
16186
  function removeChannelCaches(action) {
16040
16187
  var payload, channelId, activeChannelId, activeChannel;
16041
- return _regenerator().w(function (_context16) {
16042
- while (1) switch (_context16.n) {
16188
+ return _regenerator().w(function (_context17) {
16189
+ while (1) switch (_context17.n) {
16043
16190
  case 0:
16044
16191
  payload = action.payload;
16045
16192
  channelId = payload.channelId;
16046
- _context16.n = 1;
16193
+ _context17.n = 1;
16047
16194
  return call(getActiveChannelId);
16048
16195
  case 1:
16049
- activeChannelId = _context16.v;
16196
+ activeChannelId = _context17.v;
16050
16197
  removeChannelFromMap(channelId);
16051
16198
  removeMessagesFromMap(channelId);
16052
16199
  if (!(activeChannelId === channelId)) {
16053
- _context16.n = 3;
16200
+ _context17.n = 3;
16054
16201
  break;
16055
16202
  }
16056
- _context16.n = 2;
16203
+ _context17.n = 2;
16057
16204
  return call(getLastChannelFromMap);
16058
16205
  case 2:
16059
- activeChannel = _context16.v;
16206
+ activeChannel = _context17.v;
16060
16207
  if (!activeChannel) {
16061
- _context16.n = 3;
16208
+ _context17.n = 3;
16062
16209
  break;
16063
16210
  }
16064
- _context16.n = 3;
16211
+ _context17.n = 3;
16065
16212
  return put(switchChannelActionAC(JSON.parse(JSON.stringify(activeChannel))));
16066
16213
  case 3:
16067
- return _context16.a(2);
16214
+ return _context17.a(2);
16068
16215
  }
16069
- }, _marked16);
16216
+ }, _marked17);
16070
16217
  }
16071
16218
  function leaveChannel(action) {
16072
- var payload, channelId, channel, messageBuilder, messageToSend, _t18;
16073
- return _regenerator().w(function (_context17) {
16074
- 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) {
16075
16222
  case 0:
16076
- _context17.p = 0;
16223
+ _context18.p = 0;
16077
16224
  payload = action.payload;
16078
16225
  channelId = payload.channelId;
16079
- _context17.n = 1;
16226
+ _context18.n = 1;
16080
16227
  return call(getChannelFromMap, channelId);
16081
16228
  case 1:
16082
- channel = _context17.v;
16229
+ channel = _context18.v;
16083
16230
  if (!channel) {
16084
16231
  channel = getChannelFromAllChannels(channelId);
16085
16232
  }
16086
16233
  if (!channel) {
16087
- _context17.n = 5;
16234
+ _context18.n = 5;
16088
16235
  break;
16089
16236
  }
16090
16237
  if (!(channel.type === DEFAULT_CHANNEL_TYPE.GROUP || channel.type === DEFAULT_CHANNEL_TYPE.PRIVATE)) {
16091
- _context17.n = 2;
16238
+ _context18.n = 2;
16092
16239
  break;
16093
16240
  }
16094
16241
  messageBuilder = channel.createMessageBuilder();
16095
16242
  messageBuilder.setBody('LG').setType('system').setDisplayCount(0).setSilent(true);
16096
16243
  messageToSend = messageBuilder.create();
16097
16244
  log.info('send message for left');
16098
- _context17.n = 2;
16245
+ _context18.n = 2;
16099
16246
  return call(channel.sendMessage, messageToSend);
16100
16247
  case 2:
16101
16248
  log.info('leave');
16102
- _context17.n = 3;
16249
+ _context18.n = 3;
16103
16250
  return call(channel.leave);
16104
16251
  case 3:
16105
- _context17.n = 4;
16252
+ _context18.n = 4;
16106
16253
  return put(removeChannelAC(channelId));
16107
16254
  case 4:
16108
16255
  deleteChannelFromAllChannels(channelId);
16109
- _context17.n = 5;
16256
+ _context18.n = 5;
16110
16257
  return put(removeChannelCachesAC(channelId));
16111
16258
  case 5:
16112
- _context17.n = 7;
16259
+ _context18.n = 7;
16113
16260
  break;
16114
16261
  case 6:
16115
- _context17.p = 6;
16116
- _t18 = _context17.v;
16117
- 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);
16118
16265
  case 7:
16119
- return _context17.a(2);
16266
+ return _context18.a(2);
16120
16267
  }
16121
- }, _marked17, null, [[0, 6]]);
16268
+ }, _marked18, null, [[0, 6]]);
16122
16269
  }
16123
16270
  function deleteChannel(action) {
16124
- var payload, channelId, channel, _t19;
16125
- return _regenerator().w(function (_context18) {
16126
- 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) {
16127
16274
  case 0:
16128
- _context18.p = 0;
16275
+ _context19.p = 0;
16129
16276
  payload = action.payload;
16130
16277
  channelId = payload.channelId;
16131
- _context18.n = 1;
16278
+ _context19.n = 1;
16132
16279
  return call(getChannelFromMap, channelId);
16133
16280
  case 1:
16134
- channel = _context18.v;
16281
+ channel = _context19.v;
16135
16282
  if (!channel) {
16136
16283
  channel = getChannelFromAllChannels(channelId);
16137
16284
  }
16138
16285
  if (!channel) {
16139
- _context18.n = 5;
16286
+ _context19.n = 5;
16140
16287
  break;
16141
16288
  }
16142
- _context18.n = 2;
16289
+ _context19.n = 2;
16143
16290
  return call(channel["delete"]);
16144
16291
  case 2:
16145
- _context18.n = 3;
16292
+ _context19.n = 3;
16146
16293
  return put(setChannelToRemoveAC(channel));
16147
16294
  case 3:
16148
- _context18.n = 4;
16295
+ _context19.n = 4;
16149
16296
  return put(removeChannelAC(channelId));
16150
16297
  case 4:
16151
- _context18.n = 5;
16298
+ _context19.n = 5;
16152
16299
  return put(removeChannelCachesAC(channelId));
16153
16300
  case 5:
16154
- _context18.n = 7;
16301
+ _context19.n = 7;
16155
16302
  break;
16156
16303
  case 6:
16157
- _context18.p = 6;
16158
- _t19 = _context18.v;
16159
- log.error('ERROR in delete channel', _t19);
16304
+ _context19.p = 6;
16305
+ _t20 = _context19.v;
16306
+ log.error('ERROR in delete channel', _t20);
16160
16307
  case 7:
16161
- return _context18.a(2);
16308
+ return _context19.a(2);
16162
16309
  }
16163
- }, _marked18, null, [[0, 6]]);
16310
+ }, _marked19, null, [[0, 6]]);
16164
16311
  }
16165
16312
  function blockChannel(action) {
16166
- var payload, channelId, channel, _t20;
16167
- return _regenerator().w(function (_context19) {
16168
- 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) {
16169
16316
  case 0:
16170
- _context19.p = 0;
16317
+ _context20.p = 0;
16171
16318
  payload = action.payload;
16172
16319
  channelId = payload.channelId;
16173
- _context19.n = 1;
16320
+ _context20.n = 1;
16174
16321
  return call(getChannelFromMap, channelId);
16175
16322
  case 1:
16176
- channel = _context19.v;
16323
+ channel = _context20.v;
16177
16324
  if (!channel) {
16178
16325
  channel = getChannelFromAllChannels(channelId);
16179
16326
  }
16180
16327
  if (!channel) {
16181
- _context19.n = 4;
16328
+ _context20.n = 4;
16182
16329
  break;
16183
16330
  }
16184
- _context19.n = 2;
16331
+ _context20.n = 2;
16185
16332
  return call(channel.block);
16186
16333
  case 2:
16187
- _context19.n = 3;
16334
+ _context20.n = 3;
16188
16335
  return put(removeChannelAC(channelId));
16189
16336
  case 3:
16190
- _context19.n = 4;
16337
+ _context20.n = 4;
16191
16338
  return put(removeChannelCachesAC(channelId));
16192
16339
  case 4:
16193
- _context19.n = 6;
16340
+ _context20.n = 6;
16194
16341
  break;
16195
16342
  case 5:
16196
- _context19.p = 5;
16197
- _t20 = _context19.v;
16198
- 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);
16199
16346
  case 6:
16200
- return _context19.a(2);
16347
+ return _context20.a(2);
16201
16348
  }
16202
- }, _marked19, null, [[0, 5]]);
16349
+ }, _marked20, null, [[0, 5]]);
16203
16350
  }
16204
16351
  function updateChannel(action) {
16205
- var payload, channelId, config, _SceytChatClient6, channel, paramsToUpdate, fileToUpload, _yield$call5, subject, avatarUrl, metadata, _t21;
16206
- return _regenerator().w(function (_context20) {
16207
- 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) {
16208
16355
  case 0:
16209
- _context20.p = 0;
16356
+ _context21.p = 0;
16210
16357
  payload = action.payload;
16211
16358
  channelId = payload.channelId, config = payload.config;
16212
16359
  _SceytChatClient6 = getClient();
16213
- _context20.n = 1;
16360
+ _context21.n = 1;
16214
16361
  return call(getChannelFromMap, channelId);
16215
16362
  case 1:
16216
- channel = _context20.v;
16363
+ channel = _context21.v;
16217
16364
  if (!channel) {
16218
16365
  channel = getChannelFromAllChannels(channelId);
16219
16366
  }
@@ -16224,7 +16371,7 @@ function updateChannel(action) {
16224
16371
  avatarUrl: channel.avatarUrl
16225
16372
  };
16226
16373
  if (!config.avatar) {
16227
- _context20.n = 3;
16374
+ _context21.n = 3;
16228
16375
  break;
16229
16376
  }
16230
16377
  fileToUpload = {
@@ -16233,10 +16380,10 @@ function updateChannel(action) {
16233
16380
  log.info('upload percent - ', progressPercent);
16234
16381
  }
16235
16382
  };
16236
- _context20.n = 2;
16383
+ _context21.n = 2;
16237
16384
  return call(_SceytChatClient6.uploadFile, fileToUpload);
16238
16385
  case 2:
16239
- paramsToUpdate.avatarUrl = _context20.v;
16386
+ paramsToUpdate.avatarUrl = _context21.v;
16240
16387
  case 3:
16241
16388
  if (config.subject) {
16242
16389
  paramsToUpdate.subject = config.subject;
@@ -16247,14 +16394,14 @@ function updateChannel(action) {
16247
16394
  if (config.avatarUrl === '') {
16248
16395
  paramsToUpdate.avatarUrl = '';
16249
16396
  }
16250
- _context20.n = 4;
16397
+ _context21.n = 4;
16251
16398
  return call(channel.update, paramsToUpdate);
16252
16399
  case 4:
16253
- _yield$call5 = _context20.v;
16400
+ _yield$call5 = _context21.v;
16254
16401
  subject = _yield$call5.subject;
16255
16402
  avatarUrl = _yield$call5.avatarUrl;
16256
16403
  metadata = _yield$call5.metadata;
16257
- _context20.n = 5;
16404
+ _context21.n = 5;
16258
16405
  return put(updateChannelDataAC(channelId, {
16259
16406
  subject: subject,
16260
16407
  avatarUrl: avatarUrl,
@@ -16266,29 +16413,29 @@ function updateChannel(action) {
16266
16413
  avatarUrl: avatarUrl,
16267
16414
  metadata: isJSON(metadata) ? JSON.parse(metadata) : metadata
16268
16415
  });
16269
- _context20.n = 7;
16416
+ _context21.n = 7;
16270
16417
  break;
16271
16418
  case 6:
16272
- _context20.p = 6;
16273
- _t21 = _context20.v;
16274
- 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);
16275
16422
  case 7:
16276
- return _context20.a(2);
16423
+ return _context21.a(2);
16277
16424
  }
16278
- }, _marked20, null, [[0, 6]]);
16425
+ }, _marked21, null, [[0, 6]]);
16279
16426
  }
16280
16427
  function checkUsersStatus() {
16281
- var _SceytChatClient7, usersForUpdate, updatedUsers, usersToUpdateMap, update, updateData, _t22;
16282
- return _regenerator().w(function (_context21) {
16283
- 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) {
16284
16431
  case 0:
16285
- _context21.p = 0;
16432
+ _context22.p = 0;
16286
16433
  _SceytChatClient7 = getClient();
16287
16434
  usersForUpdate = Object.keys(usersMap);
16288
- _context21.n = 1;
16435
+ _context22.n = 1;
16289
16436
  return call(_SceytChatClient7.getUsers, usersForUpdate);
16290
16437
  case 1:
16291
- updatedUsers = _context21.v;
16438
+ updatedUsers = _context22.v;
16292
16439
  usersToUpdateMap = {};
16293
16440
  update = false;
16294
16441
  updatedUsers.forEach(function (updatedUser) {
@@ -16300,180 +16447,113 @@ function checkUsersStatus() {
16300
16447
  }
16301
16448
  });
16302
16449
  if (!update) {
16303
- _context21.n = 4;
16450
+ _context22.n = 4;
16304
16451
  break;
16305
16452
  }
16306
16453
  updateData = JSON.parse(JSON.stringify(usersToUpdateMap));
16307
- _context21.n = 2;
16454
+ _context22.n = 2;
16308
16455
  return put(updateMembersPresenceAC(updateData));
16309
16456
  case 2:
16310
- _context21.n = 3;
16457
+ _context22.n = 3;
16311
16458
  return put(updateUserStatusOnMapAC(updateData));
16312
16459
  case 3:
16313
- _context21.n = 4;
16460
+ _context22.n = 4;
16314
16461
  return put(updateUserStatusOnChannelAC(updateData));
16315
16462
  case 4:
16316
- _context21.n = 6;
16463
+ _context22.n = 6;
16317
16464
  break;
16318
16465
  case 5:
16319
- _context21.p = 5;
16320
- _t22 = _context21.v;
16321
- 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);
16322
16469
  case 6:
16323
- return _context21.a(2);
16470
+ return _context22.a(2);
16324
16471
  }
16325
- }, _marked21, null, [[0, 5]]);
16472
+ }, _marked22, null, [[0, 5]]);
16326
16473
  }
16327
16474
  function sendTyping(action) {
16328
- var state, activeChannelId, channel, _t23;
16329
- return _regenerator().w(function (_context22) {
16330
- 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) {
16331
16478
  case 0:
16332
16479
  state = action.payload.state;
16333
- _context22.n = 1;
16480
+ _context23.n = 1;
16334
16481
  return call(getActiveChannelId);
16335
16482
  case 1:
16336
- activeChannelId = _context22.v;
16337
- _context22.n = 2;
16483
+ activeChannelId = _context23.v;
16484
+ _context23.n = 2;
16338
16485
  return call(getChannelFromMap, activeChannelId);
16339
16486
  case 2:
16340
- channel = _context22.v;
16341
- _context22.p = 3;
16487
+ channel = _context23.v;
16488
+ _context23.p = 3;
16342
16489
  if (!channel) {
16343
- _context22.n = 6;
16490
+ _context23.n = 6;
16344
16491
  break;
16345
16492
  }
16346
16493
  if (!state) {
16347
- _context22.n = 5;
16494
+ _context23.n = 5;
16348
16495
  break;
16349
16496
  }
16350
- _context22.n = 4;
16497
+ _context23.n = 4;
16351
16498
  return call(channel.startTyping);
16352
16499
  case 4:
16353
- _context22.n = 6;
16500
+ _context23.n = 6;
16354
16501
  break;
16355
16502
  case 5:
16356
- _context22.n = 6;
16503
+ _context23.n = 6;
16357
16504
  return call(channel.stopTyping);
16358
16505
  case 6:
16359
- _context22.n = 8;
16506
+ _context23.n = 8;
16360
16507
  break;
16361
16508
  case 7:
16362
- _context22.p = 7;
16363
- _t23 = _context22.v;
16364
- log.error('ERROR in send typing', _t23);
16365
- case 8:
16366
- return _context22.a(2);
16367
- }
16368
- }, _marked22, null, [[3, 7]]);
16369
- }
16370
- function sendRecording(action) {
16371
- var _action$payload, state, channelId, channel, _t24;
16372
- return _regenerator().w(function (_context23) {
16373
- while (1) switch (_context23.p = _context23.n) {
16374
- case 0:
16375
- _action$payload = action.payload, state = _action$payload.state, channelId = _action$payload.channelId;
16376
- _context23.n = 1;
16377
- return call(getChannelFromMap, channelId);
16378
- case 1:
16379
- channel = _context23.v;
16380
- _context23.p = 2;
16381
- if (!channel) {
16382
- _context23.n = 5;
16383
- break;
16384
- }
16385
- if (!state) {
16386
- _context23.n = 4;
16387
- break;
16388
- }
16389
- _context23.n = 3;
16390
- return call(channel.startRecording);
16391
- case 3:
16392
- _context23.n = 5;
16393
- break;
16394
- case 4:
16395
- _context23.n = 5;
16396
- return call(channel.stopRecording);
16397
- case 5:
16398
- _context23.n = 7;
16399
- break;
16400
- case 6:
16401
- _context23.p = 6;
16509
+ _context23.p = 7;
16402
16510
  _t24 = _context23.v;
16403
- log.error('ERROR in send recording', _t24);
16404
- case 7:
16511
+ log.error('ERROR in send typing', _t24);
16512
+ case 8:
16405
16513
  return _context23.a(2);
16406
16514
  }
16407
- }, _marked23, null, [[2, 6]]);
16515
+ }, _marked23, null, [[3, 7]]);
16408
16516
  }
16409
- function clearHistory(action) {
16410
- var payload, channelId, channel, activeChannelId, groupName, _t25;
16517
+ function sendRecording(action) {
16518
+ var _action$payload, state, channelId, channel, _t25;
16411
16519
  return _regenerator().w(function (_context24) {
16412
16520
  while (1) switch (_context24.p = _context24.n) {
16413
16521
  case 0:
16414
- _context24.p = 0;
16415
- payload = action.payload;
16416
- channelId = payload.channelId;
16522
+ _action$payload = action.payload, state = _action$payload.state, channelId = _action$payload.channelId;
16417
16523
  _context24.n = 1;
16418
16524
  return call(getChannelFromMap, channelId);
16419
16525
  case 1:
16420
16526
  channel = _context24.v;
16527
+ _context24.p = 2;
16421
16528
  if (!channel) {
16422
- channel = getChannelFromAllChannels(channelId);
16529
+ _context24.n = 5;
16530
+ break;
16423
16531
  }
16424
- _context24.n = 2;
16425
- return call(getActiveChannelId);
16426
- case 2:
16427
- activeChannelId = _context24.v;
16428
- if (!channel) {
16429
- _context24.n = 7;
16532
+ if (!state) {
16533
+ _context24.n = 4;
16430
16534
  break;
16431
16535
  }
16432
16536
  _context24.n = 3;
16433
- return call(channel.deleteAllMessages);
16537
+ return call(channel.startRecording);
16434
16538
  case 3:
16435
- _context24.n = 4;
16436
- return put(clearMessagesAC());
16539
+ _context24.n = 5;
16540
+ break;
16437
16541
  case 4:
16438
- removeMessagesFromMap(channelId);
16439
- if (channelId === activeChannelId) {
16440
- removeAllMessages();
16441
- }
16442
16542
  _context24.n = 5;
16443
- return put(clearSelectedMessagesAC());
16543
+ return call(channel.stopRecording);
16444
16544
  case 5:
16445
- _context24.n = 6;
16446
- return put(updateChannelDataAC(channel.id, {
16447
- lastMessage: null,
16448
- newMessageCount: 0,
16449
- newMentionCount: 0
16450
- }));
16451
- case 6:
16452
- updateChannelOnAllChannels(channel.id, {
16453
- lastMessage: null,
16454
- newMessageCount: 0,
16455
- newMentionCount: 0
16456
- });
16457
- groupName = getChannelGroupName(channel);
16458
16545
  _context24.n = 7;
16459
- return put(updateSearchedChannelDataAC(channel.id, {
16460
- lastMessage: null,
16461
- newMessageCount: 0,
16462
- newMentionCount: 0
16463
- }, groupName));
16464
- case 7:
16465
- _context24.n = 9;
16466
16546
  break;
16467
- case 8:
16468
- _context24.p = 8;
16547
+ case 6:
16548
+ _context24.p = 6;
16469
16549
  _t25 = _context24.v;
16470
- log.error('ERROR in clear history', _t25);
16471
- case 9:
16550
+ log.error('ERROR in send recording', _t25);
16551
+ case 7:
16472
16552
  return _context24.a(2);
16473
16553
  }
16474
- }, _marked24, null, [[0, 8]]);
16554
+ }, _marked24, null, [[2, 6]]);
16475
16555
  }
16476
- function deleteAllMessages(action) {
16556
+ function clearHistory(action) {
16477
16557
  var payload, channelId, channel, activeChannelId, groupName, _t26;
16478
16558
  return _regenerator().w(function (_context25) {
16479
16559
  while (1) switch (_context25.p = _context25.n) {
@@ -16493,26 +16573,93 @@ function deleteAllMessages(action) {
16493
16573
  case 2:
16494
16574
  activeChannelId = _context25.v;
16495
16575
  if (!channel) {
16496
- _context25.n = 8;
16576
+ _context25.n = 7;
16497
16577
  break;
16498
16578
  }
16499
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;
16500
16647
  return call(channel.deleteAllMessages, true);
16501
16648
  case 3:
16502
16649
  removeMessagesFromMap(channelId);
16503
16650
  if (!(channelId === activeChannelId)) {
16504
- _context25.n = 5;
16651
+ _context26.n = 5;
16505
16652
  break;
16506
16653
  }
16507
- _context25.n = 4;
16654
+ _context26.n = 4;
16508
16655
  return put(clearMessagesAC());
16509
16656
  case 4:
16510
16657
  removeAllMessages();
16511
16658
  case 5:
16512
- _context25.n = 6;
16659
+ _context26.n = 6;
16513
16660
  return put(clearSelectedMessagesAC());
16514
16661
  case 6:
16515
- _context25.n = 7;
16662
+ _context26.n = 7;
16516
16663
  return put(updateChannelDataAC(channel.id, {
16517
16664
  lastMessage: null,
16518
16665
  newMessageCount: 0,
@@ -16525,182 +16672,185 @@ function deleteAllMessages(action) {
16525
16672
  newMentionCount: 0
16526
16673
  });
16527
16674
  groupName = getChannelGroupName(channel);
16528
- _context25.n = 8;
16675
+ _context26.n = 8;
16529
16676
  return put(updateSearchedChannelDataAC(channel.id, {
16530
16677
  lastMessage: null,
16531
16678
  newMessageCount: 0,
16532
16679
  newMentionCount: 0
16533
16680
  }, groupName));
16534
16681
  case 8:
16535
- _context25.n = 10;
16682
+ _context26.n = 10;
16536
16683
  break;
16537
16684
  case 9:
16538
- _context25.p = 9;
16539
- _t26 = _context25.v;
16540
- log.error('ERROR in clear history', _t26);
16685
+ _context26.p = 9;
16686
+ _t27 = _context26.v;
16687
+ log.error('ERROR in clear history', _t27);
16541
16688
  case 10:
16542
- return _context25.a(2);
16689
+ return _context26.a(2);
16543
16690
  }
16544
- }, _marked25, null, [[0, 9]]);
16691
+ }, _marked26, null, [[0, 9]]);
16545
16692
  }
16546
16693
  function joinChannel(action) {
16547
- var payload, channelId, _SceytChatClient8, channel, joinedChannel, _t27;
16548
- return _regenerator().w(function (_context26) {
16549
- 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) {
16550
16697
  case 0:
16551
- _context26.p = 0;
16698
+ _context27.p = 0;
16552
16699
  payload = action.payload;
16553
16700
  channelId = payload.channelId;
16554
16701
  _SceytChatClient8 = getClient();
16555
- _context26.n = 1;
16702
+ _context27.n = 1;
16556
16703
  return call(getChannelFromMap, channelId);
16557
16704
  case 1:
16558
- channel = _context26.v;
16705
+ channel = _context27.v;
16559
16706
  if (!channel) {
16560
16707
  channel = getChannelFromAllChannels(channelId);
16561
16708
  }
16562
16709
  if (channel) {
16563
- _context26.n = 3;
16710
+ _context27.n = 3;
16564
16711
  break;
16565
16712
  }
16566
- _context26.n = 2;
16713
+ _context27.n = 2;
16567
16714
  return call(_SceytChatClient8.getChannel, channelId);
16568
16715
  case 2:
16569
- channel = _context26.v;
16716
+ channel = _context27.v;
16570
16717
  case 3:
16571
- _context26.n = 4;
16718
+ _context27.n = 4;
16572
16719
  return call(channel.join);
16573
16720
  case 4:
16574
- joinedChannel = _context26.v;
16575
- _context26.n = 5;
16721
+ joinedChannel = _context27.v;
16722
+ _context27.n = 5;
16576
16723
  return put(setCloseSearchChannelsAC(true));
16577
16724
  case 5:
16578
- _context26.n = 6;
16725
+ _context27.n = 6;
16579
16726
  return put(setChannelToAddAC(JSON.parse(JSON.stringify(joinedChannel))));
16580
16727
  case 6:
16581
- _context26.n = 7;
16728
+ _context27.n = 7;
16582
16729
  return put(switchChannelActionAC(JSON.parse(JSON.stringify(joinedChannel))));
16583
16730
  case 7:
16584
16731
  addChannelToAllChannels(joinedChannel);
16585
- _context26.n = 8;
16732
+ _context27.n = 8;
16586
16733
  return call(setActiveChannelId, joinedChannel.id);
16587
16734
  case 8:
16588
- _context26.n = 10;
16735
+ _context27.n = 10;
16589
16736
  break;
16590
16737
  case 9:
16591
- _context26.p = 9;
16592
- _t27 = _context26.v;
16593
- 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');
16594
16741
  case 10:
16595
- return _context26.a(2);
16742
+ return _context27.a(2);
16596
16743
  }
16597
- }, _marked26, null, [[0, 9]]);
16744
+ }, _marked27, null, [[0, 9]]);
16598
16745
  }
16599
16746
  function watchForChannelEvents() {
16600
- return _regenerator().w(function (_context27) {
16601
- while (1) switch (_context27.n) {
16747
+ return _regenerator().w(function (_context28) {
16748
+ while (1) switch (_context28.n) {
16602
16749
  case 0:
16603
- _context27.n = 1;
16750
+ _context28.n = 1;
16604
16751
  return call(watchForEvents);
16605
16752
  case 1:
16606
- return _context27.a(2);
16753
+ return _context28.a(2);
16607
16754
  }
16608
- }, _marked27);
16755
+ }, _marked28);
16609
16756
  }
16610
16757
  function ChannelsSaga() {
16611
- return _regenerator().w(function (_context28) {
16612
- while (1) switch (_context28.n) {
16758
+ return _regenerator().w(function (_context29) {
16759
+ while (1) switch (_context29.n) {
16613
16760
  case 0:
16614
- _context28.n = 1;
16761
+ _context29.n = 1;
16615
16762
  return takeLatest(CREATE_CHANNEL, createChannel);
16616
16763
  case 1:
16617
- _context28.n = 2;
16764
+ _context29.n = 2;
16618
16765
  return takeLatest(GET_CHANNELS, getChannels);
16619
16766
  case 2:
16620
- _context28.n = 3;
16767
+ _context29.n = 3;
16621
16768
  return takeLatest(SEARCH_CHANNELS, searchChannels);
16622
16769
  case 3:
16623
- _context28.n = 4;
16770
+ _context29.n = 4;
16624
16771
  return takeLatest(GET_CHANNELS_FOR_FORWARD, getChannelsForForward);
16625
16772
  case 4:
16626
- _context28.n = 5;
16773
+ _context29.n = 5;
16627
16774
  return takeLatest(SEARCH_CHANNELS_FOR_FORWARD, searchChannelsForForward);
16628
16775
  case 5:
16629
- _context28.n = 6;
16776
+ _context29.n = 6;
16630
16777
  return takeLatest(LOAD_MORE_CHANNEL, channelsLoadMore);
16631
16778
  case 6:
16632
- _context28.n = 7;
16779
+ _context29.n = 7;
16633
16780
  return takeLatest(LOAD_MORE_CHANNELS_FOR_FORWARD, channelsForForwardLoadMore);
16634
16781
  case 7:
16635
- _context28.n = 8;
16782
+ _context29.n = 8;
16636
16783
  return takeEvery(SWITCH_CHANNEL, switchChannel);
16637
16784
  case 8:
16638
- _context28.n = 9;
16785
+ _context29.n = 9;
16639
16786
  return takeLatest(LEAVE_CHANNEL, leaveChannel);
16640
16787
  case 9:
16641
- _context28.n = 10;
16788
+ _context29.n = 10;
16642
16789
  return takeLatest(DELETE_CHANNEL, deleteChannel);
16643
16790
  case 10:
16644
- _context28.n = 11;
16791
+ _context29.n = 11;
16645
16792
  return takeLatest(BLOCK_CHANNEL, blockChannel);
16646
16793
  case 11:
16647
- _context28.n = 12;
16794
+ _context29.n = 12;
16648
16795
  return takeLatest(UPDATE_CHANNEL, updateChannel);
16649
16796
  case 12:
16650
- _context28.n = 13;
16797
+ _context29.n = 13;
16651
16798
  return takeEvery(MARK_MESSAGES_AS_READ, markMessagesRead);
16652
16799
  case 13:
16653
- _context28.n = 14;
16800
+ _context29.n = 14;
16654
16801
  return takeLatest(MARK_MESSAGES_AS_DELIVERED, markMessagesDelivered);
16655
16802
  case 14:
16656
- _context28.n = 15;
16657
- return takeLatest(WATCH_FOR_EVENTS, watchForChannelEvents);
16803
+ _context29.n = 15;
16804
+ return takeLatest(MARK_VOICE_MESSAGE_AS_PLAYED, markVoiceMessageAsPlayed);
16658
16805
  case 15:
16659
- _context28.n = 16;
16660
- return takeLatest(TURN_OFF_NOTIFICATION, notificationsTurnOff);
16806
+ _context29.n = 16;
16807
+ return takeLatest(WATCH_FOR_EVENTS, watchForChannelEvents);
16661
16808
  case 16:
16662
- _context28.n = 17;
16663
- return takeLatest(TURN_ON_NOTIFICATION, notificationsTurnOn);
16809
+ _context29.n = 17;
16810
+ return takeLatest(TURN_OFF_NOTIFICATION, notificationsTurnOff);
16664
16811
  case 17:
16665
- _context28.n = 18;
16666
- return takeLatest(MARK_CHANNEL_AS_READ, markChannelAsRead);
16812
+ _context29.n = 18;
16813
+ return takeLatest(TURN_ON_NOTIFICATION, notificationsTurnOn);
16667
16814
  case 18:
16668
- _context28.n = 19;
16669
- return takeLatest(MARK_CHANNEL_AS_UNREAD, markChannelAsUnRead);
16815
+ _context29.n = 19;
16816
+ return takeLatest(MARK_CHANNEL_AS_READ, markChannelAsRead);
16670
16817
  case 19:
16671
- _context28.n = 20;
16672
- return takeLatest(CHECK_USER_STATUS, checkUsersStatus);
16818
+ _context29.n = 20;
16819
+ return takeLatest(MARK_CHANNEL_AS_UNREAD, markChannelAsUnRead);
16673
16820
  case 20:
16674
- _context28.n = 21;
16675
- return takeLatest(SEND_TYPING, sendTyping);
16821
+ _context29.n = 21;
16822
+ return takeLatest(CHECK_USER_STATUS, checkUsersStatus);
16676
16823
  case 21:
16677
- _context28.n = 22;
16678
- return takeLatest(SEND_RECORDING, sendRecording);
16824
+ _context29.n = 22;
16825
+ return takeLatest(SEND_TYPING, sendTyping);
16679
16826
  case 22:
16680
- _context28.n = 23;
16681
- return takeLatest(PIN_CHANNEL, pinChannel);
16827
+ _context29.n = 23;
16828
+ return takeLatest(SEND_RECORDING, sendRecording);
16682
16829
  case 23:
16683
- _context28.n = 24;
16684
- return takeLatest(UNPIN_CHANNEL, unpinChannel);
16830
+ _context29.n = 24;
16831
+ return takeLatest(PIN_CHANNEL, pinChannel);
16685
16832
  case 24:
16686
- _context28.n = 25;
16687
- return takeLatest(CLEAR_HISTORY, clearHistory);
16833
+ _context29.n = 25;
16834
+ return takeLatest(UNPIN_CHANNEL, unpinChannel);
16688
16835
  case 25:
16689
- _context28.n = 26;
16690
- return takeLatest(JOIN_TO_CHANNEL, joinChannel);
16836
+ _context29.n = 26;
16837
+ return takeLatest(CLEAR_HISTORY, clearHistory);
16691
16838
  case 26:
16692
- _context28.n = 27;
16693
- return takeLatest(DELETE_ALL_MESSAGES, deleteAllMessages);
16839
+ _context29.n = 27;
16840
+ return takeLatest(JOIN_TO_CHANNEL, joinChannel);
16694
16841
  case 27:
16695
- _context28.n = 28;
16696
- return takeLatest(REMOVE_CHANNEL_CACHES, removeChannelCaches);
16842
+ _context29.n = 28;
16843
+ return takeLatest(DELETE_ALL_MESSAGES, deleteAllMessages);
16697
16844
  case 28:
16698
- _context28.n = 29;
16699
- return takeLatest(GET_CHANNEL_MENTIONS, getChannelMentions);
16845
+ _context29.n = 29;
16846
+ return takeLatest(REMOVE_CHANNEL_CACHES, removeChannelCaches);
16700
16847
  case 29:
16701
- return _context28.a(2);
16848
+ _context29.n = 30;
16849
+ return takeLatest(GET_CHANNEL_MENTIONS, getChannelMentions);
16850
+ case 30:
16851
+ return _context29.a(2);
16702
16852
  }
16703
- }, _marked28);
16853
+ }, _marked29);
16704
16854
  }
16705
16855
 
16706
16856
  function rgbaToThumbHash(w, h, rgba) {
@@ -17123,6 +17273,12 @@ var selectedMessagesMapSelector = function selectedMessagesMapSelector(store) {
17123
17273
  var attachmentUpdatedMapSelector = function attachmentUpdatedMapSelector(store) {
17124
17274
  return store.MessageReducer.attachmentUpdatedMap;
17125
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
+ };
17126
17282
 
17127
17283
  var getFrame = function getFrame(videoSrc, time) {
17128
17284
  try {
@@ -17193,7 +17349,8 @@ var _marked$3 = /*#__PURE__*/_regenerator().m(sendMessage),
17193
17349
  _marked13$1 = /*#__PURE__*/_regenerator().m(loadMoreMessageAttachments),
17194
17350
  _marked14$1 = /*#__PURE__*/_regenerator().m(pauseAttachmentUploading),
17195
17351
  _marked15$1 = /*#__PURE__*/_regenerator().m(resumeAttachmentUploading),
17196
- _marked16$1 = /*#__PURE__*/_regenerator().m(MessageSaga);
17352
+ _marked16$1 = /*#__PURE__*/_regenerator().m(getMessageMarkers),
17353
+ _marked17$1 = /*#__PURE__*/_regenerator().m(MessageSaga);
17197
17354
  var handleUploadAttachments = function handleUploadAttachments(attachments, message, channel) {
17198
17355
  try {
17199
17356
  return Promise.resolve(Promise.all(attachments.map(function (attachment) {
@@ -17207,7 +17364,7 @@ var handleUploadAttachments = function handleUploadAttachments(attachments, mess
17207
17364
  }, thumbnailMetas.duration ? {
17208
17365
  dur: thumbnailMetas.duration
17209
17366
  } : {})));
17210
- var attachmentBuilder = channel.createAttachmentBuilder(uri, attachment.type);
17367
+ var attachmentBuilder = channel.createdAttachmentBuilder(uri, attachment.type);
17211
17368
  var attachmentToSend = attachmentBuilder.setName(attachment.name).setMetadata(attachmentMeta).setFileSize(fileSize || attachment.size).setUpload(false).create();
17212
17369
  return attachmentToSend;
17213
17370
  }
@@ -17367,7 +17524,7 @@ function sendMessage(action) {
17367
17524
  if (attachment.cachedUrl) {
17368
17525
  uri = attachment.cachedUrl;
17369
17526
  }
17370
- attachmentBuilder = channel.createAttachmentBuilder(uri || attachment.data, attachment.type);
17527
+ attachmentBuilder = channel.createdAttachmentBuilder(uri || attachment.data, attachment.type);
17371
17528
  messageAttachment = attachmentBuilder.setName(attachment.name).setMetadata(attachment.metadata).setUpload(customUploader ? false : attachment.upload).setFileSize(attachment.size).create();
17372
17529
  if (!customUploader) {
17373
17530
  handleUpdateUploadProgress = function handleUpdateUploadProgress(percent) {
@@ -17515,7 +17672,7 @@ function sendMessage(action) {
17515
17672
  case 3:
17516
17673
  linkAttachmentToSend = null;
17517
17674
  if (_i === 0 && linkAttachment) {
17518
- linkAttachmentBuilder = channel.createAttachmentBuilder(linkAttachment.data, linkAttachment.type);
17675
+ linkAttachmentBuilder = channel.createdAttachmentBuilder(linkAttachment.data, linkAttachment.type);
17519
17676
  linkAttachmentToSend = linkAttachmentBuilder.setName(linkAttachment.name).setUpload(linkAttachment.upload).create();
17520
17677
  }
17521
17678
  if (linkAttachmentToSend) {
@@ -17723,7 +17880,7 @@ function sendTextMessage(action) {
17723
17880
  }) : [];
17724
17881
  attachments = message.attachments;
17725
17882
  if (message.attachments && message.attachments.length) {
17726
- attachmentBuilder = channel.createAttachmentBuilder(attachments[0].data, attachments[0].type);
17883
+ attachmentBuilder = channel.createdAttachmentBuilder(attachments[0].data, attachments[0].type);
17727
17884
  att = attachmentBuilder.setName('').setUpload(attachments[0].upload).create();
17728
17885
  attachments = [att];
17729
17886
  }
@@ -17905,7 +18062,7 @@ function forwardMessage(action) {
17905
18062
  break;
17906
18063
  }
17907
18064
  if (message.attachments && message.attachments.length) {
17908
- attachmentBuilder = channel.createAttachmentBuilder(attachments[0].url, attachments[0].type);
18065
+ attachmentBuilder = channel.createdAttachmentBuilder(attachments[0].url, attachments[0].type);
17909
18066
  att = attachmentBuilder.setName(attachments[0].name).setMetadata(attachments[0].metadata).setFileSize(attachments[0].size).setUpload(false).create();
17910
18067
  attachments = [att];
17911
18068
  }
@@ -18191,7 +18348,7 @@ function resendMessage(action) {
18191
18348
  } : {})));
18192
18349
  }
18193
18350
  log.info('attachmentMeta ... ', attachmentMeta);
18194
- attachmentBuilder = channel.createAttachmentBuilder(uri, messageAttachment.type);
18351
+ attachmentBuilder = channel.createdAttachmentBuilder(uri, messageAttachment.type);
18195
18352
  attachmentToSend = attachmentBuilder.setName(messageAttachment.name).setMetadata(attachmentMeta).setFileSize(fileSize).setUpload(false).create();
18196
18353
  log.info('attachmentToSend ... ', attachmentToSend);
18197
18354
  attachmentToSend.tid = messageAttachment.tid;
@@ -18450,7 +18607,7 @@ function editMessage(action) {
18450
18607
  });
18451
18608
  linkAttachmentsToSend = [];
18452
18609
  linkAttachments.forEach(function (linkAttachment) {
18453
- var linkAttachmentBuilder = channel.createAttachmentBuilder(linkAttachment.data, linkAttachment.type);
18610
+ var linkAttachmentBuilder = channel.createdAttachmentBuilder(linkAttachment.data, linkAttachment.type);
18454
18611
  var linkAttachmentToSend = linkAttachmentBuilder.setName(linkAttachment.name).setUpload(linkAttachment.upload).create();
18455
18612
  linkAttachmentsToSend.push(linkAttachmentToSend);
18456
18613
  });
@@ -19404,64 +19561,111 @@ function resumeAttachmentUploading(action) {
19404
19561
  }
19405
19562
  }, _marked15$1, null, [[0, 2]]);
19406
19563
  }
19407
- function MessageSaga() {
19564
+ function getMessageMarkers(action) {
19565
+ var _action$payload4, messageId, channelId, deliveryStatus, sceytChatClient, messageMarkerListQueryBuilder, messageMarkerListQuery, messageMarkers, _t18;
19408
19566
  return _regenerator().w(function (_context18) {
19409
- while (1) switch (_context18.n) {
19567
+ while (1) switch (_context18.p = _context18.n) {
19410
19568
  case 0:
19569
+ _context18.p = 0;
19411
19570
  _context18.n = 1;
19412
- return takeEvery(SEND_MESSAGE, sendMessage);
19571
+ return put(setMessagesMarkersLoadingStateAC(LOADING_STATE.LOADING));
19413
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);
19414
19580
  _context18.n = 2;
19415
- return takeEvery(SEND_TEXT_MESSAGE, sendTextMessage);
19581
+ return call(messageMarkerListQueryBuilder.build);
19416
19582
  case 2:
19583
+ messageMarkerListQuery = _context18.v;
19417
19584
  _context18.n = 3;
19418
- return takeEvery(FORWARD_MESSAGE, forwardMessage);
19585
+ return call(messageMarkerListQuery.loadNext);
19419
19586
  case 3:
19587
+ messageMarkers = _context18.v;
19420
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;
19421
19622
  return takeEvery(RESEND_MESSAGE, resendMessage);
19422
19623
  case 4:
19423
- _context18.n = 5;
19624
+ _context19.n = 5;
19424
19625
  return takeLatest(EDIT_MESSAGE, editMessage);
19425
19626
  case 5:
19426
- _context18.n = 6;
19627
+ _context19.n = 6;
19427
19628
  return takeEvery(DELETE_MESSAGE, deleteMessage);
19428
19629
  case 6:
19429
- _context18.n = 7;
19630
+ _context19.n = 7;
19430
19631
  return takeLatest(GET_MESSAGES, getMessagesQuery);
19431
19632
  case 7:
19432
- _context18.n = 8;
19633
+ _context19.n = 8;
19433
19634
  return takeEvery(GET_MESSAGE, getMessageQuery);
19434
19635
  case 8:
19435
- _context18.n = 9;
19436
- return takeLatest(GET_MESSAGES_ATTACHMENTS, getMessageAttachments);
19636
+ _context19.n = 9;
19637
+ return takeLatest(GET_MESSAGE_MARKERS, getMessageMarkers);
19437
19638
  case 9:
19438
- _context18.n = 10;
19439
- return takeLatest(LOAD_MORE_MESSAGES_ATTACHMENTS, loadMoreMessageAttachments);
19639
+ _context19.n = 10;
19640
+ return takeLatest(GET_MESSAGES_ATTACHMENTS, getMessageAttachments);
19440
19641
  case 10:
19441
- _context18.n = 11;
19442
- return takeLatest(ADD_REACTION, addReaction);
19642
+ _context19.n = 11;
19643
+ return takeLatest(LOAD_MORE_MESSAGES_ATTACHMENTS, loadMoreMessageAttachments);
19443
19644
  case 11:
19444
- _context18.n = 12;
19445
- return takeLatest(DELETE_REACTION, deleteReaction);
19645
+ _context19.n = 12;
19646
+ return takeLatest(ADD_REACTION, addReaction);
19446
19647
  case 12:
19447
- _context18.n = 13;
19448
- return takeEvery(LOAD_MORE_MESSAGES, loadMoreMessages);
19648
+ _context19.n = 13;
19649
+ return takeLatest(DELETE_REACTION, deleteReaction);
19449
19650
  case 13:
19450
- _context18.n = 14;
19451
- return takeEvery(GET_REACTIONS, getReactions);
19651
+ _context19.n = 14;
19652
+ return takeEvery(LOAD_MORE_MESSAGES, loadMoreMessages);
19452
19653
  case 14:
19453
- _context18.n = 15;
19454
- return takeEvery(LOAD_MORE_REACTIONS, loadMoreReactions);
19654
+ _context19.n = 15;
19655
+ return takeEvery(GET_REACTIONS, getReactions);
19455
19656
  case 15:
19456
- _context18.n = 16;
19457
- return takeEvery(PAUSE_ATTACHMENT_UPLOADING, pauseAttachmentUploading);
19657
+ _context19.n = 16;
19658
+ return takeEvery(LOAD_MORE_REACTIONS, loadMoreReactions);
19458
19659
  case 16:
19459
- _context18.n = 17;
19460
- return takeEvery(RESUME_ATTACHMENT_UPLOADING, resumeAttachmentUploading);
19660
+ _context19.n = 17;
19661
+ return takeEvery(PAUSE_ATTACHMENT_UPLOADING, pauseAttachmentUploading);
19461
19662
  case 17:
19462
- return _context18.a(2);
19663
+ _context19.n = 18;
19664
+ return takeEvery(RESUME_ATTACHMENT_UPLOADING, resumeAttachmentUploading);
19665
+ case 18:
19666
+ return _context19.a(2);
19463
19667
  }
19464
- }, _marked16$1);
19668
+ }, _marked17$1);
19465
19669
  }
19466
19670
 
19467
19671
  var _marked$4 = /*#__PURE__*/_regenerator().m(getMembers),
@@ -26534,7 +26738,10 @@ function ReactionsPopup(_ref) {
26534
26738
  }, reactions.map(function (reaction) {
26535
26739
  return /*#__PURE__*/React__default.createElement(ReactionItem$1, {
26536
26740
  key: reaction.id,
26537
- hoverBackgroundColor: backgroundHovered
26741
+ hoverBackgroundColor: backgroundHovered,
26742
+ onClick: function onClick() {
26743
+ return handleAddDeleteEmoji(reaction.key);
26744
+ }
26538
26745
  }, /*#__PURE__*/React__default.createElement(AvatarWrapper, null, /*#__PURE__*/React__default.createElement(Avatar, {
26539
26746
  name: reaction.user.firstName || reaction.user.id,
26540
26747
  image: reaction.user.avatarUrl,
@@ -26545,11 +26752,7 @@ function ReactionsPopup(_ref) {
26545
26752
  color: textPrimary
26546
26753
  }, makeUsername(reaction.user.id === user.id ? reaction.user : contactsMap[reaction.user.id], reaction.user, getFromContacts)), /*#__PURE__*/React__default.createElement(SubTitle, {
26547
26754
  color: textSecondary
26548
- }, reaction.user.presence && reaction.user.presence.state === USER_PRESENCE_STATUS.ONLINE ? 'Online' : reaction.user.presence && reaction.user.presence.lastActiveAt && userLastActiveDateFormat(reaction.user.presence.lastActiveAt))), /*#__PURE__*/React__default.createElement(ReactionKey, {
26549
- onClick: function onClick() {
26550
- return handleAddDeleteEmoji(reaction.key);
26551
- }
26552
- }, reaction.key));
26755
+ }, reaction.user.presence && reaction.user.presence.state === USER_PRESENCE_STATUS.ONLINE ? 'Online' : reaction.user.presence && reaction.user.presence.lastActiveAt && userLastActiveDateFormat(reaction.user.presence.lastActiveAt))), /*#__PURE__*/React__default.createElement(ReactionKey, null, reaction.key));
26553
26756
  })));
26554
26757
  }
26555
26758
  var Container$d = styled.div(_templateObject$q || (_templateObject$q = _taggedTemplateLiteralLoose(["\n position: absolute;\n /*right: ", ";*/\n right: ", ";\n /*left: ", ";*/\n left: ", ";\n top: ", ";\n bottom: ", ";\n width: 340px;\n height: ", "px;\n //overflow: ", ";\n overflow: hidden;\n max-height: 320px;\n background: ", ";\n //border: 1px solid #dfe0eb;\n box-shadow:\n 0 6px 24px -6px rgba(15, 34, 67, 0.12),\n 0px 1px 3px rgba(24, 23, 37, 0.14);\n box-sizing: border-box;\n //box-shadow: 0 0 12px rgba(0, 0, 0, 0.08);\n border-radius: ", ";\n visibility: ", ";\n transition: all 0.2s;\n\n direction: initial;\n z-index: 12;\n &::after {\n content: '';\n position: absolute;\n width: 12px;\n height: 12px;\n\n right: ", ";\n left: ", ";\n top: ", ";\n bottom: ", ";\n transform: rotate(45deg);\n box-shadow: ", ";\n border-radius: 2px;\n visibility: ", ";\n transition-delay: 150ms;\n transition-property: visibility;\n\n background: ", ";\n }\n"])), function (props) {
@@ -26619,7 +26822,7 @@ var ReactionScoreItem = styled.div(_templateObject8$9 || (_templateObject8$9 = _
26619
26822
  return props.active && !props.bubbleStyle && "\n &::after {\n content: '';\n position: absolute;\n left: 0;\n bottom: -13px;\n width: 100%;\n height: 2px;\n background-color: " + props.activeColor + ";\n border-radius: 2px;\n }\n ";
26620
26823
  }, TabKey);
26621
26824
  var ReactionKey = styled.span(_templateObject9$9 || (_templateObject9$9 = _taggedTemplateLiteralLoose(["\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 font-size: 20px;\n cursor: pointer;\n"])));
26622
- var ReactionItem$1 = styled.li(_templateObject0$8 || (_templateObject0$8 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n font-size: 15px;\n padding: 6px 16px;\n transition: all 0.2s;\n\n &:hover {\n background-color: ", ";\n }\n\n & ", " {\n width: 10px;\n height: 10px;\n }\n"])), function (props) {
26825
+ var ReactionItem$1 = styled.li(_templateObject0$8 || (_templateObject0$8 = _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\n &:hover {\n background-color: ", ";\n }\n\n & ", " {\n width: 10px;\n height: 10px;\n }\n"])), function (props) {
26623
26826
  return props.hoverBackgroundColor;
26624
26827
  }, UserStatus);
26625
26828
 
@@ -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,
@@ -36485,29 +37191,20 @@ var AudioRecord = function AudioRecord(_ref) {
36485
37191
  }, [currentRecordedFile, currentChannelId]);
36486
37192
  useEffect(function () {
36487
37193
  if (!currentRecordedFile) {
36488
- (function () {
36489
- try {
36490
- var _temp5 = function () {
36491
- if (!recorder) {
36492
- var _temp4 = _catch(function () {
36493
- return Promise.resolve(import('mic-recorder-to-mp3')).then(function (MicRecorderModule) {
36494
- var MicRecorder = MicRecorderModule["default"];
36495
- var recorder = new MicRecorder({
36496
- bitRate: 128
36497
- });
36498
- setRecorder(recorder);
36499
- });
36500
- }, function (e) {
36501
- log.error('Failed to init mic-recorder-to-mp3', e);
36502
- });
36503
- if (_temp4 && _temp4.then) return _temp4.then(function () {});
36504
- }
36505
- }();
36506
- return _temp5 && _temp5.then ? _temp5.then(function () {}) : void 0;
36507
- } catch (e) {
36508
- Promise.reject(e);
37194
+ try {
37195
+ if (!recorder) {
37196
+ try {
37197
+ var newRecorder = new MicRecorder({
37198
+ bitRate: 128
37199
+ });
37200
+ setRecorder(newRecorder);
37201
+ } catch (e) {
37202
+ log.error('Failed to init mic-recorder-to-mp3', e);
37203
+ }
36509
37204
  }
36510
- })();
37205
+ } catch (e) {
37206
+ Promise.reject(e);
37207
+ }
36511
37208
  }
36512
37209
  }, [currentRecordedFile]);
36513
37210
  useEffect(function () {
@@ -36586,10 +37283,10 @@ var AudioRecord = function AudioRecord(_ref) {
36586
37283
  iconColor: accentColor
36587
37284
  }, showRecording || currentRecordedFile ? /*#__PURE__*/React__default.createElement(SvgSend, null) : /*#__PURE__*/React__default.createElement(SvgRecordButton, null)));
36588
37285
  };
36589
- 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) {
36590
37287
  return props.recording && "width: 400px";
36591
37288
  });
36592
- 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) {
36593
37290
  return props.recording ? 'calc(100% - 84px)' : '0';
36594
37291
  }, function (props) {
36595
37292
  return props.recording ? '0 8px' : '0';
@@ -36598,10 +37295,10 @@ var AudioWrapper = styled.div(_templateObject2$C || (_templateObject2$C = _tagge
36598
37295
  }, function (props) {
36599
37296
  return props.recording ? '0 12px 0 0' : '0';
36600
37297
  });
36601
- 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) {
36602
37299
  return props.iconColor;
36603
37300
  });
36604
- 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) {
36605
37302
  var show = _ref5.show;
36606
37303
  return show ? '1' : '0';
36607
37304
  }, function (_ref6) {
@@ -36613,10 +37310,10 @@ var AudioVisualization$1 = styled.div(_templateObject4$r || (_templateObject4$r
36613
37310
  }, function (props) {
36614
37311
  return props.color;
36615
37312
  });
36616
- 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) {
36617
37314
  return props.iconColor;
36618
37315
  });
36619
- 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) {
36620
37317
  var recording = _ref8.recording;
36621
37318
  return recording ? '300px' : '0';
36622
37319
  }, function (_ref9) {
@@ -36626,14 +37323,14 @@ var Canvas = styled.canvas(_templateObject6$j || (_templateObject6$j = _taggedTe
36626
37323
  var hide = _ref0.hide;
36627
37324
  return hide && '-1';
36628
37325
  });
36629
- 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) {
36630
37327
  return props.color;
36631
37328
  });
36632
37329
 
36633
- var _templateObject$I, _templateObject2$D, _templateObject3$w;
36634
- 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"])));
36635
- 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"])));
36636
- 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) {
36637
37334
  return props.borderColor;
36638
37335
  }, wave, function (_ref) {
36639
37336
  var delay = _ref.delay;
@@ -36659,7 +37356,7 @@ var RecordingAnimation = function RecordingAnimation(_ref2) {
36659
37356
  }));
36660
37357
  };
36661
37358
 
36662
- 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;
36663
37360
  function AutoFocusPlugin(_ref) {
36664
37361
  var messageForReply = _ref.messageForReply;
36665
37362
  var _useLexicalComposerCo = useLexicalComposerContext(),
@@ -38246,10 +38943,10 @@ var SendMessageInput = function SendMessageInput(_ref3) {
38246
38943
  channelId: activeChannel.id
38247
38944
  }))))))))));
38248
38945
  };
38249
- 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) {
38250
38947
  return props.backgroundColor;
38251
38948
  });
38252
- 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) {
38253
38950
  return props.margin || '30px 0 16px';
38254
38951
  }, function (props) {
38255
38952
  return props.border || '';
@@ -38266,7 +38963,7 @@ var Container$k = styled.div(_templateObject2$E || (_templateObject2$E = _tagged
38266
38963
  }, function (props) {
38267
38964
  return props.mentionColor;
38268
38965
  });
38269
- 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) {
38270
38967
  return props.left || '0';
38271
38968
  }, function (props) {
38272
38969
  return props.bottom || '0';
@@ -38281,19 +38978,19 @@ var EditReplyMessageCont = styled.div(_templateObject3$x || (_templateObject3$x
38281
38978
  }, function (props) {
38282
38979
  return props.backgroundColor;
38283
38980
  });
38284
- 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"])));
38285
- 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) {
38286
38983
  return props.color;
38287
38984
  });
38288
- 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) {
38289
38986
  return props.color;
38290
38987
  });
38291
- var UserName$1 = styled.span(_templateObject7$i || (_templateObject7$i = _taggedTemplateLiteralLoose(["\n font-weight: 500;\n margin-left: 4px;\n"])));
38292
- 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"])));
38293
- 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) {
38294
38991
  return props.color;
38295
38992
  });
38296
- 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) {
38297
38994
  return props.height ? props.height + "px" : '36px';
38298
38995
  }, function (props) {
38299
38996
  return props.order === 0 || props.order ? props.order : 1;
@@ -38302,7 +38999,7 @@ var AddAttachmentIcon = styled.span(_templateObject0$c || (_templateObject0$c =
38302
38999
  }, function (props) {
38303
39000
  return props.hoverColor;
38304
39001
  });
38305
- 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) {
38306
39003
  return props.minHeight || '36px';
38307
39004
  }, function (props) {
38308
39005
  return props.messageForReply ? '0 0 4px 4px' : '4px';
@@ -38598,7 +39295,7 @@ function SvgUnpin(props) {
38598
39295
  })));
38599
39296
  }
38600
39297
 
38601
- 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;
38602
39299
  var Actions = function Actions(_ref) {
38603
39300
  var setActionsHeight = _ref.setActionsHeight,
38604
39301
  channel = _ref.channel,
@@ -39062,21 +39759,21 @@ var Actions = function Actions(_ref) {
39062
39759
  title: popupTitle
39063
39760
  })));
39064
39761
  };
39065
- 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) {
39066
39763
  return props.borderColor;
39067
39764
  });
39068
- 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"])));
39069
- 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) {
39070
39767
  return !props.isOpen && ' transform: rotate(-90deg);';
39071
39768
  });
39072
- 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"])));
39073
- var DefaultMutedIcon = styled(SvgUnmuteNotifications)(_templateObject5$p || (_templateObject5$p = _taggedTemplateLiteralLoose([""])));
39074
- var DefaultMuteIcon = styled(SvgNotifications)(_templateObject6$l || (_templateObject6$l = _taggedTemplateLiteralLoose([""])));
39075
- var DefaultStarIcon = styled(SvgStar)(_templateObject7$j || (_templateObject7$j = _taggedTemplateLiteralLoose([""])));
39076
- var DefaultUnpinIcon = styled(SvgUnpin)(_templateObject8$h || (_templateObject8$h = _taggedTemplateLiteralLoose([""])));
39077
- var DefaultPinIcon = styled(SvgPin)(_templateObject9$e || (_templateObject9$e = _taggedTemplateLiteralLoose([""])));
39078
- var DefaultMarkAsRead = styled(SvgMarkAsRead)(_templateObject0$d || (_templateObject0$d = _taggedTemplateLiteralLoose([""])));
39079
- 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([""])));
39080
39777
  var DefaultBlockIcon = styled(SvgBlockChannel)(_templateObject10$6 || (_templateObject10$6 = _taggedTemplateLiteralLoose([""])));
39081
39778
  var DefaultReportIcon = styled(SvgReport)(_templateObject11$6 || (_templateObject11$6 = _taggedTemplateLiteralLoose([""])));
39082
39779
  var DefaultClearIcon = styled(SvgClear)(_templateObject12$5 || (_templateObject12$5 = _taggedTemplateLiteralLoose([""])));
@@ -39156,7 +39853,7 @@ function SvgMoreVert(props) {
39156
39853
  })));
39157
39854
  }
39158
39855
 
39159
- var _templateObject$L, _templateObject2$G, _templateObject3$z;
39856
+ var _templateObject$M, _templateObject2$H, _templateObject3$A;
39160
39857
  var ChangeMemberRole = function ChangeMemberRole(_ref) {
39161
39858
  var theme = _ref.theme,
39162
39859
  channelId = _ref.channelId,
@@ -39256,14 +39953,14 @@ var ChangeMemberRole = function ChangeMemberRole(_ref) {
39256
39953
  onClick: handleSave
39257
39954
  }, "Save"))));
39258
39955
  };
39259
- var RolesSelect = styled.div(_templateObject$L || (_templateObject$L = _taggedTemplateLiteralLoose(["\n margin-bottom: 32px;\n"])));
39260
- 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) {
39261
39958
  var color = _ref2.color;
39262
39959
  return color;
39263
39960
  });
39264
- 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"])));
39265
39962
 
39266
- 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;
39267
39964
  var Members = function Members(_ref) {
39268
39965
  var channel = _ref.channel,
39269
39966
  theme = _ref.theme,
@@ -39566,18 +40263,18 @@ var Members = function Members(_ref) {
39566
40263
  toggleCreatePopup: handleAddMemberPopup
39567
40264
  })));
39568
40265
  };
39569
- var Container$m = styled.div(_templateObject$M || (_templateObject$M = _taggedTemplateLiteralLoose([""])));
39570
- var ActionsMenu$1 = styled.div(_templateObject2$H || (_templateObject2$H = _taggedTemplateLiteralLoose(["\n position: relative;\n transition: all 0.2s;\n"])));
39571
- 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);
39572
- var MemberNameWrapper = styled.div(_templateObject4$u || (_templateObject4$u = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n"])));
39573
- 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) {
39574
40271
  return props.color;
39575
40272
  });
39576
- 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) {
39577
40274
  return props.color;
39578
40275
  });
39579
- 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"])));
39580
- 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) {
39581
40278
  return props.fontSize || '15px';
39582
40279
  }, function (props) {
39583
40280
  return props.color;
@@ -39588,13 +40285,13 @@ var MemberItem$1 = styled.li(_templateObject8$i || (_templateObject8$i = _tagged
39588
40285
  }, function (props) {
39589
40286
  return props.hoverBackground;
39590
40287
  }, EditMemberIcon, UserStatus);
39591
- 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) {
39592
40289
  return props.color;
39593
40290
  }, function (props) {
39594
40291
  return props.backgroundColor;
39595
40292
  });
39596
40293
 
39597
- var _templateObject$N, _templateObject2$I;
40294
+ var _templateObject$O, _templateObject2$J;
39598
40295
  var Media = function Media(_ref) {
39599
40296
  var channel = _ref.channel;
39600
40297
  var _useColor = useColors(),
@@ -39640,8 +40337,8 @@ var Media = function Media(_ref) {
39640
40337
  currentMediaFile: mediaFile
39641
40338
  })));
39642
40339
  };
39643
- 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"])));
39644
- 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"])));
39645
40342
 
39646
40343
  var _rect$3, _path$1n;
39647
40344
  function _extends$1r() {
@@ -39697,7 +40394,7 @@ function SvgDownloadFile(props) {
39697
40394
  })));
39698
40395
  }
39699
40396
 
39700
- 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;
39701
40398
  var Files = function Files(_ref) {
39702
40399
  var channelId = _ref.channelId,
39703
40400
  filePreviewIcon = _ref.filePreviewIcon,
@@ -39814,30 +40511,30 @@ var Files = function Files(_ref) {
39814
40511
  }))) : filePreviewDownloadIcon || /*#__PURE__*/React__default.createElement(SvgDownloadFile, null)));
39815
40512
  }));
39816
40513
  };
39817
- 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"])));
39818
- 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) {
39819
40516
  return props.visible ? 'visible' : 'hidden';
39820
40517
  }, function (props) {
39821
40518
  return props.iconColor;
39822
40519
  }, function (props) {
39823
40520
  return props.iconColor;
39824
40521
  });
39825
- 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"])));
39826
- 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) {
39827
40524
  return props.iconColor;
39828
40525
  }, function (props) {
39829
40526
  return props.fillColor;
39830
40527
  });
39831
- 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) {
39832
40529
  return props.iconColor;
39833
40530
  }, function (props) {
39834
40531
  return props.fillColor;
39835
40532
  });
39836
- 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"])));
39837
- 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) {
39838
40535
  return props.hoverBackgroundColor;
39839
40536
  }, DownloadWrapper, FileIconCont, FileHoverIconCont);
39840
- 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) {
39841
40538
  return props.fontSize || '13px';
39842
40539
  }, function (props) {
39843
40540
  return props.lineHeight || '16px';
@@ -39876,7 +40573,7 @@ function SvgLinkIcon(props) {
39876
40573
  })));
39877
40574
  }
39878
40575
 
39879
- var _templateObject$P, _templateObject2$K, _templateObject3$C, _templateObject4$w, _templateObject5$s;
40576
+ var _templateObject$Q, _templateObject2$L, _templateObject3$D, _templateObject4$x, _templateObject5$t;
39880
40577
  var LinkItem = function LinkItem(_ref) {
39881
40578
  var link = _ref.link,
39882
40579
  linkPreviewIcon = _ref.linkPreviewIcon,
@@ -39907,25 +40604,25 @@ var LinkItem = function LinkItem(_ref) {
39907
40604
  color: linkPreviewColor || textPrimary
39908
40605
  }, link))));
39909
40606
  };
39910
- 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) {
39911
40608
  return props.iconColor;
39912
40609
  }, function (props) {
39913
40610
  return props.fillColor;
39914
40611
  });
39915
- 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) {
39916
40613
  return props.iconColor;
39917
40614
  }, function (props) {
39918
40615
  return props.fillColor;
39919
40616
  });
39920
- var LinkInfoCont = styled.div(_templateObject3$C || (_templateObject3$C = _taggedTemplateLiteralLoose(["\n margin-left: 12px;\n width: calc(100% - 40px);\n"])));
39921
- 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) {
39922
40619
  return props.hoverBackgroundColor;
39923
40620
  }, LinkIconCont, LinkHoverIconCont);
39924
- 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) {
39925
40622
  return props.color;
39926
40623
  });
39927
40624
 
39928
- var _templateObject$Q;
40625
+ var _templateObject$R;
39929
40626
  var Links = function Links(_ref) {
39930
40627
  var channelId = _ref.channelId,
39931
40628
  linkPreviewIcon = _ref.linkPreviewIcon,
@@ -39950,7 +40647,7 @@ var Links = function Links(_ref) {
39950
40647
  });
39951
40648
  }));
39952
40649
  };
39953
- 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"])));
39954
40651
 
39955
40652
  var _rect$5, _path$1q;
39956
40653
  function _extends$1u() {
@@ -40006,7 +40703,7 @@ function SvgVoicePreviewPause(props) {
40006
40703
  })));
40007
40704
  }
40008
40705
 
40009
- 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;
40010
40707
  var VoiceItem = function VoiceItem(_ref) {
40011
40708
  var file = _ref.file,
40012
40709
  voicePreviewPlayIcon = _ref.voicePreviewPlayIcon,
@@ -40131,32 +40828,32 @@ var VoiceItem = function VoiceItem(_ref) {
40131
40828
  type: 'audio/mpeg'
40132
40829
  })));
40133
40830
  };
40134
- 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) {
40135
40832
  return props.fill || 'transparent';
40136
40833
  }, function (props) {
40137
40834
  return props.fill || 'transparent';
40138
40835
  });
40139
- 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) {
40140
40837
  return props.fill || 'transparent';
40141
40838
  }, function (props) {
40142
40839
  return props.fill || 'transparent';
40143
40840
  });
40144
- 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) {
40145
40842
  return props.hoverBackgroundColor;
40146
40843
  }, FileIconCont$1, FileHoverIconCont$1);
40147
- var AudioInfo = styled.div(_templateObject4$x || (_templateObject4$x = _taggedTemplateLiteralLoose(["\n position: relative;\n"])));
40148
- 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) {
40149
40846
  return props.color;
40150
40847
  });
40151
- 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) {
40152
40849
  return props.color;
40153
40850
  });
40154
- 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) {
40155
40852
  return props.color;
40156
40853
  });
40157
- 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"])));
40158
40855
 
40159
- var _templateObject$S;
40856
+ var _templateObject$T;
40160
40857
  var Voices = function Voices(_ref) {
40161
40858
  var channelId = _ref.channelId,
40162
40859
  voicePreviewPlayIcon = _ref.voicePreviewPlayIcon,
@@ -40187,9 +40884,9 @@ var Voices = function Voices(_ref) {
40187
40884
  });
40188
40885
  }));
40189
40886
  };
40190
- 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"])));
40191
40888
 
40192
- var _templateObject$T, _templateObject2$M;
40889
+ var _templateObject$U, _templateObject2$N;
40193
40890
  var DetailsTab = function DetailsTab(_ref) {
40194
40891
  var channel = _ref.channel,
40195
40892
  theme = _ref.theme,
@@ -40338,8 +41035,8 @@ var DetailsTab = function DetailsTab(_ref) {
40338
41035
  voicePreviewHoverBackgroundColor: voicePreviewHoverBackgroundColor
40339
41036
  })));
40340
41037
  };
40341
- var Container$r = styled.div(_templateObject$T || (_templateObject$T = _taggedTemplateLiteralLoose(["\n min-height: calc(100vh - 64px);\n"])));
40342
- 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) {
40343
41040
  return props.borderColor;
40344
41041
  }, function (props) {
40345
41042
  return props.backgroundColor || 'transparent';
@@ -40357,17 +41054,17 @@ var DetailsTabHeader = styled.div(_templateObject2$M || (_templateObject2$M = _t
40357
41054
  return props.activeTabColor;
40358
41055
  });
40359
41056
 
40360
- var _templateObject$U, _templateObject2$N, _templateObject3$E, _templateObject4$y;
40361
- 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) {
40362
41059
  return props.active ? 'display: block' : 'display: none';
40363
41060
  }, function (props) {
40364
41061
  return "calc(100vh - " + (props.heightOffset ? props.heightOffset + 48 : 48) + "px)";
40365
41062
  }, function (props) {
40366
41063
  return props.backgroundColor;
40367
41064
  });
40368
- 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"])));
40369
- var DropDownWrapper = styled.div(_templateObject3$E || (_templateObject3$E = _taggedTemplateLiteralLoose(["\n position: absolute;\n z-index: 4;\n width: 40px;\n height: 40px;\n"])));
40370
- 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"])));
40371
41068
  var EditChannel = function EditChannel(_ref) {
40372
41069
  var channel = _ref.channel,
40373
41070
  theme = _ref.theme,
@@ -40622,7 +41319,7 @@ var EditChannel = function EditChannel(_ref) {
40622
41319
  })));
40623
41320
  };
40624
41321
 
40625
- 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;
40626
41323
  var Details = function Details(_ref) {
40627
41324
  var _activeChannel$member;
40628
41325
  var detailsTitleText = _ref.detailsTitleText,
@@ -41009,17 +41706,17 @@ var Details = function Details(_ref) {
41009
41706
  onTabChange: handleTabChange
41010
41707
  }))));
41011
41708
  };
41012
- 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) {
41013
41710
  return props.borderColor;
41014
41711
  }, function (props) {
41015
41712
  return props.mounted && " width: " + (props.size === 'small' ? '300px' : props.size === 'medium' ? '350px' : '400px') + ";";
41016
41713
  }, function (props) {
41017
41714
  return props.backgroundColor;
41018
41715
  });
41019
- 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) {
41020
41717
  return props.borderColor;
41021
41718
  });
41022
- 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) {
41023
41720
  return props.size === 'small' ? '300px' : props.size === 'medium' ? '350px' : '400px';
41024
41721
  }, function (props) {
41025
41722
  return props.height ? "calc(100vh - " + props.heightOffset + "px)" : '100vh';
@@ -41028,37 +41725,37 @@ var ChatDetails = styled.div(_templateObject3$F || (_templateObject3$F = _tagged
41028
41725
  }, function (props) {
41029
41726
  return props.thumbColor;
41030
41727
  });
41031
- var AboutChannel = styled.div(_templateObject4$z || (_templateObject4$z = _taggedTemplateLiteralLoose(["\n margin-top: 20px;\n"])));
41032
- 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) {
41033
41730
  return props.color;
41034
41731
  });
41035
- 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) {
41036
41733
  return props.color;
41037
41734
  });
41038
- 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) {
41039
41736
  return (!props.direction || props.direction !== 'column') && '16px';
41040
41737
  }, function (props) {
41041
41738
  return props.direction && props.direction === 'column' && '16px';
41042
41739
  }, function (props) {
41043
41740
  return props.direction && props.direction === 'column' && 'center';
41044
41741
  });
41045
- 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) {
41046
41743
  return props.borderColor;
41047
41744
  });
41048
- 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) {
41049
41746
  return props.direction;
41050
41747
  });
41051
- 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) {
41052
41749
  return props.isDirect ? '200px' : '168px';
41053
41750
  }, function (props) {
41054
41751
  return props.color;
41055
41752
  }, function (props) {
41056
41753
  return props.uppercase && 'uppercase';
41057
41754
  });
41058
- 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"])));
41059
41756
  var EditButton = styled.span(_templateObject10$7 || (_templateObject10$7 = _taggedTemplateLiteralLoose(["\n margin-left: 6px;\n cursor: pointer;\n color: #b2b6be;\n"])));
41060
41757
 
41061
- var _templateObject$W;
41758
+ var _templateObject$X;
41062
41759
  var ChannelDetailsContainer = function ChannelDetailsContainer(_ref) {
41063
41760
  var _ref$size = _ref.size,
41064
41761
  size = _ref$size === void 0 ? 'large' : _ref$size,
@@ -41287,7 +41984,7 @@ var ChannelDetailsContainer = function ChannelDetailsContainer(_ref) {
41287
41984
  showPhoneNumber: showPhoneNumber
41288
41985
  })));
41289
41986
  };
41290
- var DetailsWrapper = styled.div(_templateObject$W || (_templateObject$W = _taggedTemplateLiteralLoose([""])));
41987
+ var DetailsWrapper = styled.div(_templateObject$X || (_templateObject$X = _taggedTemplateLiteralLoose([""])));
41291
41988
 
41292
41989
  var _path$1s;
41293
41990
  function _extends$1w() {
@@ -41311,7 +42008,7 @@ function SvgChevronDown(props) {
41311
42008
  })));
41312
42009
  }
41313
42010
 
41314
- var _templateObject$X, _templateObject2$P;
42011
+ var _templateObject$Y, _templateObject2$Q;
41315
42012
  var MessagesScrollToBottomButton = function MessagesScrollToBottomButton(_ref) {
41316
42013
  var buttonIcon = _ref.buttonIcon,
41317
42014
  buttonWidth = _ref.buttonWidth,
@@ -41394,7 +42091,7 @@ var MessagesScrollToBottomButton = function MessagesScrollToBottomButton(_ref) {
41394
42091
  isMuted: channel.muted
41395
42092
  }, channel.newMessageCount ? channel.newMessageCount > 99 ? '99+' : channel.newMessageCount : '')), buttonIcon || /*#__PURE__*/React__default.createElement(SvgChevronDown, null)));
41396
42093
  };
41397
- 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) {
41398
42095
  return props.animateFrom === 'bottom' && "bottom: " + (props.bottomOffset + (props.bottomPosition === undefined ? 45 : props.bottomPosition) - 130) + "px";
41399
42096
  }, function (props) {
41400
42097
  return props.animateFrom === 'right' && "right: " + (props.rightPosition === undefined ? 16 : props.rightPosition - 100) + "px";
@@ -41405,7 +42102,7 @@ var BottomButton = styled.div(_templateObject$X || (_templateObject$X = _taggedT
41405
42102
  }, function (props) {
41406
42103
  return props.backgroundColor;
41407
42104
  });
41408
- 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) {
41409
42106
  return props.backgroundColor;
41410
42107
  }, function (props) {
41411
42108
  return props.fontSize || '13px';
@@ -41448,7 +42145,7 @@ function SvgMention(props) {
41448
42145
  })));
41449
42146
  }
41450
42147
 
41451
- var _templateObject$Y, _templateObject2$Q;
42148
+ var _templateObject$Z, _templateObject2$R;
41452
42149
  var MessagesScrollToUnreadMentionsButton = function MessagesScrollToUnreadMentionsButton(_ref) {
41453
42150
  var buttonIcon = _ref.buttonIcon,
41454
42151
  buttonWidth = _ref.buttonWidth,
@@ -41591,7 +42288,7 @@ var MessagesScrollToUnreadMentionsButton = function MessagesScrollToUnreadMentio
41591
42288
  isMuted: channel.muted
41592
42289
  }, channel.newMentionCount ? channel.newMentionCount > 99 ? '99+' : channel.newMentionCount : '')), buttonIcon || /*#__PURE__*/React__default.createElement(SvgMention, null)));
41593
42290
  };
41594
- 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) {
41595
42292
  return props.animateFrom === 'bottom' && "bottom: " + (props.bottomOffset + (props.bottomPosition === undefined ? 45 : props.bottomPosition) + (props.showsUnreadMentionsButton ? 60 : 0) - 180) + "px";
41596
42293
  }, function (props) {
41597
42294
  return props.animateFrom === 'right' && "right: " + (props.rightPosition === undefined ? 16 : props.rightPosition - 100) + "px";
@@ -41602,7 +42299,7 @@ var BottomButton$1 = styled.div(_templateObject$Y || (_templateObject$Y = _tagge
41602
42299
  }, function (props) {
41603
42300
  return props.backgroundColor;
41604
42301
  });
41605
- 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) {
41606
42303
  return props.backgroundColor;
41607
42304
  }, function (props) {
41608
42305
  return props.fontSize || '13px';