sceyt-chat-react-uikit 1.7.2-beta.9 → 1.7.3-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.modern.js CHANGED
@@ -2594,7 +2594,8 @@ var MESSAGE_DELIVERY_STATUS = {
2594
2594
  PENDING: 'pending',
2595
2595
  SENT: 'sent',
2596
2596
  DELIVERED: 'received',
2597
- READ: 'displayed'
2597
+ READ: 'displayed',
2598
+ PLAYED: 'played'
2598
2599
  };
2599
2600
  var MESSAGE_STATUS = {
2600
2601
  UNMODIFIED: 'unmodified',
@@ -9565,6 +9566,7 @@ var UPDATE_CHANNEL = 'UPDATE_CHANNEL';
9565
9566
  var REMOVE_CHANNEL_CACHES = 'REMOVE_CHANNEL_CACHES';
9566
9567
  var MARK_MESSAGES_AS_READ = 'MARK_MESSAGES_AS_READ';
9567
9568
  var MARK_MESSAGES_AS_DELIVERED = 'MARK_MESSAGES_AS_DELIVERED';
9569
+ var MARK_VOICE_MESSAGE_AS_PLAYED = 'MARK_VOICE_MESSAGE_AS_PLAYED';
9568
9570
  var SEND_TYPING = 'SEND_TYPING';
9569
9571
  var SEND_RECORDING = 'SEND_RECORDING';
9570
9572
  var JOIN_TO_CHANNEL = 'JOIN_TO_CHANNEL';
@@ -10337,7 +10339,9 @@ var initialState$1 = {
10337
10339
  playingAudioId: null,
10338
10340
  selectedMessagesMap: null,
10339
10341
  oGMetadata: {},
10340
- attachmentUpdatedMap: {}
10342
+ attachmentUpdatedMap: {},
10343
+ messageMarkers: {},
10344
+ messagesMarkersLoadingState: null
10341
10345
  };
10342
10346
  var messageSlice = createSlice({
10343
10347
  name: 'messages',
@@ -10372,7 +10376,6 @@ var messageSlice = createSlice({
10372
10376
  state.showScrollToNewMessageButton = action.payload.state;
10373
10377
  },
10374
10378
  setMessages: function setMessages(state, action) {
10375
- log.info('setMessages ... ', action.payload);
10376
10379
  state.activeChannelMessages = action.payload.messages;
10377
10380
  },
10378
10381
  addMessages: function addMessages(state, action) {
@@ -10459,7 +10462,6 @@ var messageSlice = createSlice({
10459
10462
  return message;
10460
10463
  });
10461
10464
  if (!messageFound && addIfNotExists) {
10462
- log.info('message not found on update message, add message to list .. ...', params);
10463
10465
  state.activeChannelMessages.push(params);
10464
10466
  }
10465
10467
  },
@@ -10664,6 +10666,66 @@ var messageSlice = createSlice({
10664
10666
  var existing = state.oGMetadata[url];
10665
10667
  state.oGMetadata[url] = existing ? _extends({}, existing, metadata) : metadata;
10666
10668
  }
10669
+ },
10670
+ setMessageMarkers: function setMessageMarkers(state, action) {
10671
+ var _action$payload12 = action.payload,
10672
+ channelId = _action$payload12.channelId,
10673
+ messageId = _action$payload12.messageId,
10674
+ messageMarkers = _action$payload12.messageMarkers,
10675
+ deliveryStatus = _action$payload12.deliveryStatus;
10676
+ if (!state.messageMarkers[channelId]) {
10677
+ state.messageMarkers[channelId] = {};
10678
+ }
10679
+ if (!state.messageMarkers[channelId][messageId]) {
10680
+ state.messageMarkers[channelId][messageId] = {};
10681
+ }
10682
+ if (!state.messageMarkers[channelId][messageId][deliveryStatus]) {
10683
+ state.messageMarkers[channelId][messageId][deliveryStatus] = [];
10684
+ }
10685
+ state.messageMarkers[channelId][messageId][deliveryStatus] = [].concat(messageMarkers);
10686
+ },
10687
+ updateMessagesMarkers: function updateMessagesMarkers(state, action) {
10688
+ var _marker$user;
10689
+ var _action$payload13 = action.payload,
10690
+ channelId = _action$payload13.channelId,
10691
+ deliveryStatus = _action$payload13.deliveryStatus,
10692
+ marker = _action$payload13.marker;
10693
+ var userId = (_marker$user = marker.user) === null || _marker$user === void 0 ? void 0 : _marker$user.id;
10694
+ var messageIds = marker.messageIds;
10695
+ for (var _iterator = _createForOfIteratorHelperLoose(messageIds), _step; !(_step = _iterator()).done;) {
10696
+ var messageId = _step.value;
10697
+ if (!state.messageMarkers[channelId]) {
10698
+ state.messageMarkers[channelId] = {};
10699
+ }
10700
+ if (!state.messageMarkers[channelId][messageId]) {
10701
+ state.messageMarkers[channelId][messageId] = {};
10702
+ }
10703
+ if (!state.messageMarkers[channelId][messageId][deliveryStatus]) {
10704
+ state.messageMarkers[channelId][messageId][deliveryStatus] = [];
10705
+ }
10706
+ var isUserMarkered = state.messageMarkers[channelId][messageId][deliveryStatus].some(function (marker) {
10707
+ var _marker$user2;
10708
+ return ((_marker$user2 = marker.user) === null || _marker$user2 === void 0 ? void 0 : _marker$user2.id) === userId;
10709
+ });
10710
+ if (!isUserMarkered) {
10711
+ var time = marker.createdAt;
10712
+ try {
10713
+ time = new Date(marker.createdAt);
10714
+ if (isNaN(time.getTime())) {
10715
+ time = new Date();
10716
+ }
10717
+ } catch (e) {
10718
+ log.error('error in update messages markers', e);
10719
+ time = new Date();
10720
+ }
10721
+ state.messageMarkers[channelId][messageId][deliveryStatus].push(_extends({}, marker, {
10722
+ createdAt: time
10723
+ }));
10724
+ }
10725
+ }
10726
+ },
10727
+ setMessagesMarkersLoadingState: function setMessagesMarkersLoadingState(state, action) {
10728
+ state.messagesMarkersLoadingState = action.payload.state;
10667
10729
  }
10668
10730
  },
10669
10731
  extraReducers: function extraReducers(builder) {
@@ -10715,7 +10777,10 @@ var _messageSlice$actions = messageSlice.actions,
10715
10777
  removeSelectedMessage = _messageSlice$actions.removeSelectedMessage,
10716
10778
  clearSelectedMessages = _messageSlice$actions.clearSelectedMessages,
10717
10779
  setOGMetadata = _messageSlice$actions.setOGMetadata,
10718
- updateOGMetadata = _messageSlice$actions.updateOGMetadata;
10780
+ updateOGMetadata = _messageSlice$actions.updateOGMetadata,
10781
+ setMessageMarkers = _messageSlice$actions.setMessageMarkers,
10782
+ setMessagesMarkersLoadingState = _messageSlice$actions.setMessagesMarkersLoadingState,
10783
+ updateMessagesMarkers = _messageSlice$actions.updateMessagesMarkers;
10719
10784
  var MessageReducer = messageSlice.reducer;
10720
10785
 
10721
10786
  var initialState$2 = {
@@ -11327,6 +11392,15 @@ var markMessagesAsDeliveredAC = function markMessagesAsDeliveredAC(channelId, me
11327
11392
  }
11328
11393
  };
11329
11394
  };
11395
+ var markVoiceMessageAsPlayedAC = function markVoiceMessageAsPlayedAC(channelId, messageIds) {
11396
+ return {
11397
+ type: MARK_VOICE_MESSAGE_AS_PLAYED,
11398
+ payload: {
11399
+ channelId: channelId,
11400
+ messageIds: messageIds
11401
+ }
11402
+ };
11403
+ };
11330
11404
  var sendTypingAC = function sendTypingAC(state) {
11331
11405
  return {
11332
11406
  type: SEND_TYPING,
@@ -11502,6 +11576,7 @@ var getChannelMentionsAC = function getChannelMentionsAC(channelId) {
11502
11576
 
11503
11577
  var GET_MESSAGES = 'GET_MESSAGES';
11504
11578
  var GET_MESSAGE = 'GET_MESSAGE';
11579
+ var GET_MESSAGE_MARKERS = 'GET_MESSAGE_MARKERS';
11505
11580
  var LOAD_MORE_MESSAGES = 'LOAD_MORE_MESSAGES';
11506
11581
  var SEND_MESSAGE = 'SEND_MESSAGE';
11507
11582
  var SEND_TEXT_MESSAGE = 'SEND_TEXT_MESSAGE';
@@ -11935,6 +12010,36 @@ function removeSelectedMessageAC(messageId) {
11935
12010
  function clearSelectedMessagesAC() {
11936
12011
  return clearSelectedMessages();
11937
12012
  }
12013
+ function getMessageMarkersAC(messageId, channelId, deliveryStatus) {
12014
+ return {
12015
+ type: GET_MESSAGE_MARKERS,
12016
+ payload: {
12017
+ messageId: messageId,
12018
+ channelId: channelId,
12019
+ deliveryStatus: deliveryStatus
12020
+ }
12021
+ };
12022
+ }
12023
+ function setMessageMarkersAC(channelId, messageId, messageMarkers, deliveryStatus) {
12024
+ return setMessageMarkers({
12025
+ channelId: channelId,
12026
+ messageId: messageId,
12027
+ messageMarkers: messageMarkers,
12028
+ deliveryStatus: deliveryStatus
12029
+ });
12030
+ }
12031
+ function updateMessagesMarkersAC(channelId, deliveryStatus, marker) {
12032
+ return updateMessagesMarkers({
12033
+ channelId: channelId,
12034
+ deliveryStatus: deliveryStatus,
12035
+ marker: marker
12036
+ });
12037
+ }
12038
+ function setMessagesMarkersLoadingStateAC(state) {
12039
+ return setMessagesMarkersLoadingState({
12040
+ state: state
12041
+ });
12042
+ }
11938
12043
 
11939
12044
  var SET_CONTACT_LOADING_STATE = 'SET_CONTACT_LOADING_STATE';
11940
12045
  var GET_CONTACTS = 'GET_CONTACTS';
@@ -13255,7 +13360,6 @@ var MessageTextFormat = function MessageTextFormat(_ref2) {
13255
13360
  return messageText.length > 1 ? asSampleText ? messageText.join('') : messageText : text;
13256
13361
  } catch (e) {
13257
13362
  log.error(' failed to format message .>>> ', e);
13258
- log.info('message: ', message);
13259
13363
  return text;
13260
13364
  }
13261
13365
  };
@@ -13979,7 +14083,7 @@ function watchForEvents() {
13979
14083
  return _context.a(3, 142);
13980
14084
  case 48:
13981
14085
  _channel5 = args.channel, message = args.message;
13982
- log.info('channel MESSAGE ... id : ', message.id, ' message: ', message, ' channel.id: ', _channel5.id);
14086
+ log.info('channel MESSAGE ... id : ', message.id, ', channel.id: ', _channel5.id);
13983
14087
  messageToHandle = handleNewMessages ? handleNewMessages(message, _channel5) : message;
13984
14088
  _channelFilterTypes = getChannelTypesFilter();
13985
14089
  if (!(messageToHandle && _channel5 && (_channelFilterTypes !== null && _channelFilterTypes !== void 0 && _channelFilterTypes.length ? _channelFilterTypes.includes(_channel5.type) : true))) {
@@ -14111,7 +14215,6 @@ function watchForEvents() {
14111
14215
  return att.type !== attachmentTypes.link;
14112
14216
  }) : undefined);
14113
14217
  case 60:
14114
- log.info('send delivered for message . .. . ', message);
14115
14218
  if (!(message.repliedInThread && message.parentMessage.id)) {
14116
14219
  _context.n = 62;
14117
14220
  break;
@@ -14209,6 +14312,8 @@ function watchForEvents() {
14209
14312
  name: markerList.name,
14210
14313
  markersMap: markersMap
14211
14314
  });
14315
+ _context.n = 71;
14316
+ return put(updateMessagesMarkersAC(channelId, markerList.name, markerList));
14212
14317
  case 71:
14213
14318
  return _context.a(3, 142);
14214
14319
  case 72:
@@ -14263,7 +14368,6 @@ function watchForEvents() {
14263
14368
  return _context.a(3, 142);
14264
14369
  case 78:
14265
14370
  _channel9 = args.channel, _message = args.message;
14266
- log.info('channel EDIT_MESSAGE ... ', _message);
14267
14371
  _activeChannelId8 = getActiveChannelId();
14268
14372
  _channelExists8 = checkChannelExists(_channel9.id);
14269
14373
  if (!(_channel9.id === _activeChannelId8)) {
@@ -14310,7 +14414,6 @@ function watchForEvents() {
14310
14414
  return _context.a(3, 142);
14311
14415
  case 82:
14312
14416
  _channel0 = args.channel, user = args.user, _message2 = args.message, reaction = args.reaction;
14313
- log.info('channel REACTION_ADDED ... ', args);
14314
14417
  isSelf = user.id === SceytChatClient.user.id;
14315
14418
  _activeChannelId9 = getActiveChannelId();
14316
14419
  if (!(_channel0.id === _activeChannelId9)) {
@@ -14743,27 +14846,28 @@ var _marked$2 = /*#__PURE__*/_regenerator().m(createChannel),
14743
14846
  _marked7 = /*#__PURE__*/_regenerator().m(getChannelMentions),
14744
14847
  _marked8 = /*#__PURE__*/_regenerator().m(channelsForForwardLoadMore),
14745
14848
  _marked9 = /*#__PURE__*/_regenerator().m(markMessagesRead),
14746
- _marked0 = /*#__PURE__*/_regenerator().m(markMessagesDelivered),
14747
- _marked1 = /*#__PURE__*/_regenerator().m(switchChannel),
14748
- _marked10 = /*#__PURE__*/_regenerator().m(notificationsTurnOff),
14749
- _marked11 = /*#__PURE__*/_regenerator().m(notificationsTurnOn),
14750
- _marked12 = /*#__PURE__*/_regenerator().m(markChannelAsRead),
14751
- _marked13 = /*#__PURE__*/_regenerator().m(markChannelAsUnRead),
14752
- _marked14 = /*#__PURE__*/_regenerator().m(pinChannel),
14753
- _marked15 = /*#__PURE__*/_regenerator().m(unpinChannel),
14754
- _marked16 = /*#__PURE__*/_regenerator().m(removeChannelCaches),
14755
- _marked17 = /*#__PURE__*/_regenerator().m(leaveChannel),
14756
- _marked18 = /*#__PURE__*/_regenerator().m(deleteChannel),
14757
- _marked19 = /*#__PURE__*/_regenerator().m(blockChannel),
14758
- _marked20 = /*#__PURE__*/_regenerator().m(updateChannel),
14759
- _marked21 = /*#__PURE__*/_regenerator().m(checkUsersStatus),
14760
- _marked22 = /*#__PURE__*/_regenerator().m(sendTyping),
14761
- _marked23 = /*#__PURE__*/_regenerator().m(sendRecording),
14762
- _marked24 = /*#__PURE__*/_regenerator().m(clearHistory),
14763
- _marked25 = /*#__PURE__*/_regenerator().m(deleteAllMessages),
14764
- _marked26 = /*#__PURE__*/_regenerator().m(joinChannel),
14765
- _marked27 = /*#__PURE__*/_regenerator().m(watchForChannelEvents),
14766
- _marked28 = /*#__PURE__*/_regenerator().m(ChannelsSaga);
14849
+ _marked0 = /*#__PURE__*/_regenerator().m(markVoiceMessageAsPlayed),
14850
+ _marked1 = /*#__PURE__*/_regenerator().m(markMessagesDelivered),
14851
+ _marked10 = /*#__PURE__*/_regenerator().m(switchChannel),
14852
+ _marked11 = /*#__PURE__*/_regenerator().m(notificationsTurnOff),
14853
+ _marked12 = /*#__PURE__*/_regenerator().m(notificationsTurnOn),
14854
+ _marked13 = /*#__PURE__*/_regenerator().m(markChannelAsRead),
14855
+ _marked14 = /*#__PURE__*/_regenerator().m(markChannelAsUnRead),
14856
+ _marked15 = /*#__PURE__*/_regenerator().m(pinChannel),
14857
+ _marked16 = /*#__PURE__*/_regenerator().m(unpinChannel),
14858
+ _marked17 = /*#__PURE__*/_regenerator().m(removeChannelCaches),
14859
+ _marked18 = /*#__PURE__*/_regenerator().m(leaveChannel),
14860
+ _marked19 = /*#__PURE__*/_regenerator().m(deleteChannel),
14861
+ _marked20 = /*#__PURE__*/_regenerator().m(blockChannel),
14862
+ _marked21 = /*#__PURE__*/_regenerator().m(updateChannel),
14863
+ _marked22 = /*#__PURE__*/_regenerator().m(checkUsersStatus),
14864
+ _marked23 = /*#__PURE__*/_regenerator().m(sendTyping),
14865
+ _marked24 = /*#__PURE__*/_regenerator().m(sendRecording),
14866
+ _marked25 = /*#__PURE__*/_regenerator().m(clearHistory),
14867
+ _marked26 = /*#__PURE__*/_regenerator().m(deleteAllMessages),
14868
+ _marked27 = /*#__PURE__*/_regenerator().m(joinChannel),
14869
+ _marked28 = /*#__PURE__*/_regenerator().m(watchForChannelEvents),
14870
+ _marked29 = /*#__PURE__*/_regenerator().m(ChannelsSaga);
14767
14871
  function createChannel(action) {
14768
14872
  var payload, channelData, dontCreateIfNotExists, callback, SceytChatClient, createChannelData, fileToUpload, isSelfChannel, channelIsExistOnAllChannels, createdChannel, allChannels, memberId, checkChannelExist, messageToSend, _allChannels, _memberId, _t;
14769
14873
  return _regenerator().w(function (_context) {
@@ -15661,7 +15765,7 @@ function markMessagesRead(action) {
15661
15765
  deliveryStatus: MESSAGE_DELIVERY_STATUS.READ,
15662
15766
  userMarkers: [{
15663
15767
  user: messageListMarker.user,
15664
- createdAt: messageListMarker.createAt,
15768
+ createdAt: messageListMarker.createdAt,
15665
15769
  messageId: messageId,
15666
15770
  name: MESSAGE_DELIVERY_STATUS.READ
15667
15771
  }]
@@ -15689,7 +15793,7 @@ function markMessagesRead(action) {
15689
15793
  }
15690
15794
  }, _marked9, null, [[2, 9]]);
15691
15795
  }
15692
- function markMessagesDelivered(action) {
15796
+ function markVoiceMessageAsPlayed(action) {
15693
15797
  var payload, channelId, messageIds, channel, _t10;
15694
15798
  return _regenerator().w(function (_context0) {
15695
15799
  while (1) switch (_context0.p = _context0.n) {
@@ -15711,151 +15815,148 @@ function markMessagesDelivered(action) {
15711
15815
  _context0.n = 3;
15712
15816
  break;
15713
15817
  }
15714
- log.info('send delivered marker ', messageIds);
15715
15818
  _context0.n = 3;
15716
- return call(channel.markMessagesAsReceived, messageIds);
15819
+ return call(channel.markVoiceMessagesAsPlayed, messageIds);
15717
15820
  case 3:
15718
15821
  _context0.n = 5;
15719
15822
  break;
15720
15823
  case 4:
15721
15824
  _context0.p = 4;
15722
15825
  _t10 = _context0.v;
15723
- log.error(_t10, 'Error on mark messages delivered');
15826
+ log.error(_t10, 'Error on mark voice messages read');
15724
15827
  case 5:
15725
15828
  return _context0.a(2);
15726
15829
  }
15727
15830
  }, _marked0, null, [[1, 4]]);
15728
15831
  }
15729
- function switchChannel(action) {
15730
- var payload, channel, updateActiveChannel, channelToSwitch, existingChannel, addChannel, _SceytChatClient5, fetchedChannel, channelFromMap, currentActiveChannel, _t11;
15832
+ function markMessagesDelivered(action) {
15833
+ var payload, channelId, messageIds, channel, _t11;
15731
15834
  return _regenerator().w(function (_context1) {
15732
15835
  while (1) switch (_context1.p = _context1.n) {
15733
15836
  case 0:
15734
- _context1.p = 0;
15837
+ payload = action.payload;
15838
+ channelId = payload.channelId, messageIds = payload.messageIds;
15839
+ _context1.p = 1;
15840
+ _context1.n = 2;
15841
+ return call(getChannelFromMap, channelId);
15842
+ case 2:
15843
+ channel = _context1.v;
15844
+ if (!channel) {
15845
+ channel = getChannelFromAllChannels(channelId);
15846
+ if (channel) {
15847
+ setChannelInMap(channel);
15848
+ }
15849
+ }
15850
+ if (!channel) {
15851
+ _context1.n = 3;
15852
+ break;
15853
+ }
15854
+ log.info('send delivered marker ', messageIds);
15855
+ _context1.n = 3;
15856
+ return call(channel.markMessagesAsReceived, messageIds);
15857
+ case 3:
15858
+ _context1.n = 5;
15859
+ break;
15860
+ case 4:
15861
+ _context1.p = 4;
15862
+ _t11 = _context1.v;
15863
+ log.error(_t11, 'Error on mark messages delivered');
15864
+ case 5:
15865
+ return _context1.a(2);
15866
+ }
15867
+ }, _marked1, null, [[1, 4]]);
15868
+ }
15869
+ function switchChannel(action) {
15870
+ var payload, channel, updateActiveChannel, channelToSwitch, existingChannel, addChannel, _SceytChatClient5, fetchedChannel, channelFromMap, currentActiveChannel, _t12;
15871
+ return _regenerator().w(function (_context10) {
15872
+ while (1) switch (_context10.p = _context10.n) {
15873
+ case 0:
15874
+ _context10.p = 0;
15735
15875
  payload = action.payload;
15736
15876
  channel = payload.channel, updateActiveChannel = payload.updateActiveChannel;
15737
15877
  channelToSwitch = channel;
15738
15878
  if (!(!(channel !== null && channel !== void 0 && channel.id) && updateActiveChannel)) {
15739
- _context1.n = 3;
15879
+ _context10.n = 3;
15740
15880
  break;
15741
15881
  }
15742
- _context1.n = 1;
15882
+ _context10.n = 1;
15743
15883
  return call(setActiveChannelId, '');
15744
15884
  case 1:
15745
- _context1.n = 2;
15885
+ _context10.n = 2;
15746
15886
  return put(setActiveChannelAC({}));
15747
15887
  case 2:
15748
- return _context1.a(2);
15888
+ return _context10.a(2);
15749
15889
  case 3:
15750
15890
  existingChannel = checkChannelExists(channel.id);
15751
15891
  if (existingChannel) {
15752
- _context1.n = 9;
15892
+ _context10.n = 9;
15753
15893
  break;
15754
15894
  }
15755
15895
  addChannel = getChannelFromAllChannels(channel.id);
15756
15896
  if (!addChannel) {
15757
- _context1.n = 5;
15897
+ _context10.n = 5;
15758
15898
  break;
15759
15899
  }
15760
15900
  setChannelInMap(addChannel);
15761
- _context1.n = 4;
15901
+ _context10.n = 4;
15762
15902
  return put(addChannelAC(JSON.parse(JSON.stringify(addChannel))));
15763
15903
  case 4:
15764
15904
  channelToSwitch = _extends({}, channelToSwitch, addChannel);
15765
- _context1.n = 8;
15905
+ _context10.n = 8;
15766
15906
  break;
15767
15907
  case 5:
15768
15908
  _SceytChatClient5 = getClient();
15769
- _context1.n = 6;
15909
+ _context10.n = 6;
15770
15910
  return call(_SceytChatClient5.getChannel, channel.id);
15771
15911
  case 6:
15772
- fetchedChannel = _context1.v;
15912
+ fetchedChannel = _context10.v;
15773
15913
  addChannelToAllChannels(fetchedChannel);
15774
15914
  setChannelInMap(fetchedChannel);
15775
- _context1.n = 7;
15915
+ _context10.n = 7;
15776
15916
  return put(addChannelAC(JSON.parse(JSON.stringify(fetchedChannel))));
15777
15917
  case 7:
15778
15918
  channelToSwitch = _extends({}, channelToSwitch, fetchedChannel);
15779
15919
  case 8:
15780
- _context1.n = 10;
15920
+ _context10.n = 10;
15781
15921
  break;
15782
15922
  case 9:
15783
15923
  channelFromMap = getChannelFromMap(channel.id);
15784
15924
  channelToSwitch = _extends({}, channelToSwitch, channelFromMap);
15785
15925
  case 10:
15786
15926
  if (!updateActiveChannel) {
15787
- _context1.n = 13;
15927
+ _context10.n = 13;
15788
15928
  break;
15789
15929
  }
15790
15930
  currentActiveChannel = getChannelFromMap(getActiveChannelId());
15791
- _context1.n = 11;
15931
+ _context10.n = 11;
15792
15932
  return call(setUnreadScrollTo, true);
15793
15933
  case 11:
15794
- _context1.n = 12;
15934
+ _context10.n = 12;
15795
15935
  return call(setActiveChannelId, channel && channel.id);
15796
15936
  case 12:
15797
15937
  if (channel.isLinkedChannel) {
15798
15938
  channelToSwitch.linkedFrom = currentActiveChannel;
15799
15939
  }
15800
- _context1.n = 13;
15940
+ _context10.n = 13;
15801
15941
  return put(setActiveChannelAC(_extends({}, channelToSwitch)));
15802
15942
  case 13:
15803
- _context1.n = 15;
15943
+ _context10.n = 15;
15804
15944
  break;
15805
15945
  case 14:
15806
- _context1.p = 14;
15807
- _t11 = _context1.v;
15808
- log.error('error in switch channel', _t11);
15809
- case 15:
15810
- return _context1.a(2);
15811
- }
15812
- }, _marked1, null, [[0, 14]]);
15813
- }
15814
- function notificationsTurnOff(action) {
15815
- var expireTime, activeChannelId, channel, updatedChannel, _t12;
15816
- return _regenerator().w(function (_context10) {
15817
- while (1) switch (_context10.p = _context10.n) {
15818
- case 0:
15819
- expireTime = action.payload.expireTime;
15820
- _context10.n = 1;
15821
- return call(getActiveChannelId);
15822
- case 1:
15823
- activeChannelId = _context10.v;
15824
- _context10.n = 2;
15825
- return call(getChannelFromMap, activeChannelId);
15826
- case 2:
15827
- channel = _context10.v;
15828
- _context10.p = 3;
15829
- _context10.n = 4;
15830
- return call(channel.mute, expireTime);
15831
- case 4:
15832
- updatedChannel = _context10.v;
15833
- updateChannelOnAllChannels(channel.id, {
15834
- muted: updatedChannel.muted,
15835
- mutedTill: updatedChannel.mutedTill
15836
- });
15837
- _context10.n = 5;
15838
- return put(updateChannelDataAC(updatedChannel.id, {
15839
- muted: updatedChannel.muted,
15840
- mutedTill: updatedChannel.mutedTill
15841
- }));
15842
- case 5:
15843
- _context10.n = 7;
15844
- break;
15845
- case 6:
15846
- _context10.p = 6;
15946
+ _context10.p = 14;
15847
15947
  _t12 = _context10.v;
15848
- log.error('ERROR turn off notifications', _t12.message);
15849
- case 7:
15948
+ log.error('error in switch channel', _t12);
15949
+ case 15:
15850
15950
  return _context10.a(2);
15851
15951
  }
15852
- }, _marked10, null, [[3, 6]]);
15952
+ }, _marked10, null, [[0, 14]]);
15853
15953
  }
15854
- function notificationsTurnOn() {
15855
- var activeChannelId, channel, updatedChannel, _t13;
15954
+ function notificationsTurnOff(action) {
15955
+ var expireTime, activeChannelId, channel, updatedChannel, _t13;
15856
15956
  return _regenerator().w(function (_context11) {
15857
15957
  while (1) switch (_context11.p = _context11.n) {
15858
15958
  case 0:
15959
+ expireTime = action.payload.expireTime;
15859
15960
  _context11.n = 1;
15860
15961
  return call(getActiveChannelId);
15861
15962
  case 1:
@@ -15866,7 +15967,7 @@ function notificationsTurnOn() {
15866
15967
  channel = _context11.v;
15867
15968
  _context11.p = 3;
15868
15969
  _context11.n = 4;
15869
- return call(channel.unmute);
15970
+ return call(channel.mute, expireTime);
15870
15971
  case 4:
15871
15972
  updatedChannel = _context11.v;
15872
15973
  updateChannelOnAllChannels(channel.id, {
@@ -15884,51 +15985,53 @@ function notificationsTurnOn() {
15884
15985
  case 6:
15885
15986
  _context11.p = 6;
15886
15987
  _t13 = _context11.v;
15887
- log.error('ERROR turn on notifications: ', _t13.message);
15988
+ log.error('ERROR turn off notifications', _t13.message);
15888
15989
  case 7:
15889
15990
  return _context11.a(2);
15890
15991
  }
15891
15992
  }, _marked11, null, [[3, 6]]);
15892
15993
  }
15893
- function markChannelAsRead(action) {
15894
- var channelId, channel, updateData, _t14;
15994
+ function notificationsTurnOn() {
15995
+ var activeChannelId, channel, updatedChannel, _t14;
15895
15996
  return _regenerator().w(function (_context12) {
15896
15997
  while (1) switch (_context12.p = _context12.n) {
15897
15998
  case 0:
15898
- _context12.p = 0;
15899
- channelId = action.payload.channelId;
15900
15999
  _context12.n = 1;
15901
- return call(getChannelFromMap, channelId);
16000
+ return call(getActiveChannelId);
15902
16001
  case 1:
15903
- channel = _context12.v;
15904
- if (!channel) {
15905
- channel = getChannelFromAllChannels(channelId);
15906
- }
16002
+ activeChannelId = _context12.v;
15907
16003
  _context12.n = 2;
15908
- return call(channel.markAsRead);
16004
+ return call(getChannelFromMap, activeChannelId);
15909
16005
  case 2:
15910
- updateData = {
15911
- unread: false,
15912
- newMessageCount: 0,
15913
- newMentionCount: 0
15914
- };
15915
- updateChannelOnAllChannels(channel.id, updateData);
15916
- _context12.n = 3;
15917
- return put(updateChannelDataAC(channel.id, updateData));
15918
- case 3:
16006
+ channel = _context12.v;
16007
+ _context12.p = 3;
16008
+ _context12.n = 4;
16009
+ return call(channel.unmute);
16010
+ case 4:
16011
+ updatedChannel = _context12.v;
16012
+ updateChannelOnAllChannels(channel.id, {
16013
+ muted: updatedChannel.muted,
16014
+ mutedTill: updatedChannel.mutedTill
16015
+ });
15919
16016
  _context12.n = 5;
16017
+ return put(updateChannelDataAC(updatedChannel.id, {
16018
+ muted: updatedChannel.muted,
16019
+ mutedTill: updatedChannel.mutedTill
16020
+ }));
16021
+ case 5:
16022
+ _context12.n = 7;
15920
16023
  break;
15921
- case 4:
15922
- _context12.p = 4;
16024
+ case 6:
16025
+ _context12.p = 6;
15923
16026
  _t14 = _context12.v;
15924
- log.error(_t14, 'Error in set channel unread');
15925
- case 5:
16027
+ log.error('ERROR turn on notifications: ', _t14.message);
16028
+ case 7:
15926
16029
  return _context12.a(2);
15927
16030
  }
15928
- }, _marked12, null, [[0, 4]]);
16031
+ }, _marked12, null, [[3, 6]]);
15929
16032
  }
15930
- function markChannelAsUnRead(action) {
15931
- var channelId, channel, _t15;
16033
+ function markChannelAsRead(action) {
16034
+ var channelId, channel, updateData, _t15;
15932
16035
  return _regenerator().w(function (_context13) {
15933
16036
  while (1) switch (_context13.p = _context13.n) {
15934
16037
  case 0:
@@ -15942,15 +16045,16 @@ function markChannelAsUnRead(action) {
15942
16045
  channel = getChannelFromAllChannels(channelId);
15943
16046
  }
15944
16047
  _context13.n = 2;
15945
- return call(channel.markAsUnRead);
16048
+ return call(channel.markAsRead);
15946
16049
  case 2:
15947
- updateChannelOnAllChannels(channel.id, {
15948
- unread: true
15949
- });
16050
+ updateData = {
16051
+ unread: false,
16052
+ newMessageCount: 0,
16053
+ newMentionCount: 0
16054
+ };
16055
+ updateChannelOnAllChannels(channel.id, updateData);
15950
16056
  _context13.n = 3;
15951
- return put(updateChannelDataAC(channel.id, {
15952
- unread: true
15953
- }));
16057
+ return put(updateChannelDataAC(channel.id, updateData));
15954
16058
  case 3:
15955
16059
  _context13.n = 5;
15956
16060
  break;
@@ -15963,8 +16067,8 @@ function markChannelAsUnRead(action) {
15963
16067
  }
15964
16068
  }, _marked13, null, [[0, 4]]);
15965
16069
  }
15966
- function pinChannel(action) {
15967
- var channelId, channel, updatedChannel, _t16;
16070
+ function markChannelAsUnRead(action) {
16071
+ var channelId, channel, _t16;
15968
16072
  return _regenerator().w(function (_context14) {
15969
16073
  while (1) switch (_context14.p = _context14.n) {
15970
16074
  case 0:
@@ -15978,29 +16082,28 @@ function pinChannel(action) {
15978
16082
  channel = getChannelFromAllChannels(channelId);
15979
16083
  }
15980
16084
  _context14.n = 2;
15981
- return call(channel.pin);
16085
+ return call(channel.markAsUnRead);
15982
16086
  case 2:
15983
- updatedChannel = _context14.v;
15984
16087
  updateChannelOnAllChannels(channel.id, {
15985
- pinnedAt: updatedChannel.pinnedAt
16088
+ unread: true
15986
16089
  });
15987
16090
  _context14.n = 3;
15988
- return put(updateChannelDataAC(updatedChannel.id, {
15989
- pinnedAt: updatedChannel.pinnedAt
15990
- }, true));
16091
+ return put(updateChannelDataAC(channel.id, {
16092
+ unread: true
16093
+ }));
15991
16094
  case 3:
15992
16095
  _context14.n = 5;
15993
16096
  break;
15994
16097
  case 4:
15995
16098
  _context14.p = 4;
15996
16099
  _t16 = _context14.v;
15997
- log.error(_t16, 'Error in pinChannel');
16100
+ log.error(_t16, 'Error in set channel unread');
15998
16101
  case 5:
15999
16102
  return _context14.a(2);
16000
16103
  }
16001
16104
  }, _marked14, null, [[0, 4]]);
16002
16105
  }
16003
- function unpinChannel(action) {
16106
+ function pinChannel(action) {
16004
16107
  var channelId, channel, updatedChannel, _t17;
16005
16108
  return _regenerator().w(function (_context15) {
16006
16109
  while (1) switch (_context15.p = _context15.n) {
@@ -16015,7 +16118,7 @@ function unpinChannel(action) {
16015
16118
  channel = getChannelFromAllChannels(channelId);
16016
16119
  }
16017
16120
  _context15.n = 2;
16018
- return call(channel.unpin);
16121
+ return call(channel.pin);
16019
16122
  case 2:
16020
16123
  updatedChannel = _context15.v;
16021
16124
  updateChannelOnAllChannels(channel.id, {
@@ -16024,197 +16127,234 @@ function unpinChannel(action) {
16024
16127
  _context15.n = 3;
16025
16128
  return put(updateChannelDataAC(updatedChannel.id, {
16026
16129
  pinnedAt: updatedChannel.pinnedAt
16027
- }, false, true));
16130
+ }, true));
16028
16131
  case 3:
16029
16132
  _context15.n = 5;
16030
16133
  break;
16031
16134
  case 4:
16032
16135
  _context15.p = 4;
16033
16136
  _t17 = _context15.v;
16034
- log.error(_t17, 'Error in unpinChannel');
16137
+ log.error(_t17, 'Error in pinChannel');
16035
16138
  case 5:
16036
16139
  return _context15.a(2);
16037
16140
  }
16038
16141
  }, _marked15, null, [[0, 4]]);
16039
16142
  }
16143
+ function unpinChannel(action) {
16144
+ var channelId, channel, updatedChannel, _t18;
16145
+ return _regenerator().w(function (_context16) {
16146
+ while (1) switch (_context16.p = _context16.n) {
16147
+ case 0:
16148
+ _context16.p = 0;
16149
+ channelId = action.payload.channelId;
16150
+ _context16.n = 1;
16151
+ return call(getChannelFromMap, channelId);
16152
+ case 1:
16153
+ channel = _context16.v;
16154
+ if (!channel) {
16155
+ channel = getChannelFromAllChannels(channelId);
16156
+ }
16157
+ _context16.n = 2;
16158
+ return call(channel.unpin);
16159
+ case 2:
16160
+ updatedChannel = _context16.v;
16161
+ updateChannelOnAllChannels(channel.id, {
16162
+ pinnedAt: updatedChannel.pinnedAt
16163
+ });
16164
+ _context16.n = 3;
16165
+ return put(updateChannelDataAC(updatedChannel.id, {
16166
+ pinnedAt: updatedChannel.pinnedAt
16167
+ }, false, true));
16168
+ case 3:
16169
+ _context16.n = 5;
16170
+ break;
16171
+ case 4:
16172
+ _context16.p = 4;
16173
+ _t18 = _context16.v;
16174
+ log.error(_t18, 'Error in unpinChannel');
16175
+ case 5:
16176
+ return _context16.a(2);
16177
+ }
16178
+ }, _marked16, null, [[0, 4]]);
16179
+ }
16040
16180
  function removeChannelCaches(action) {
16041
16181
  var payload, channelId, activeChannelId, activeChannel;
16042
- return _regenerator().w(function (_context16) {
16043
- while (1) switch (_context16.n) {
16182
+ return _regenerator().w(function (_context17) {
16183
+ while (1) switch (_context17.n) {
16044
16184
  case 0:
16045
16185
  payload = action.payload;
16046
16186
  channelId = payload.channelId;
16047
- _context16.n = 1;
16187
+ _context17.n = 1;
16048
16188
  return call(getActiveChannelId);
16049
16189
  case 1:
16050
- activeChannelId = _context16.v;
16190
+ activeChannelId = _context17.v;
16051
16191
  removeChannelFromMap(channelId);
16052
16192
  removeMessagesFromMap(channelId);
16053
16193
  if (!(activeChannelId === channelId)) {
16054
- _context16.n = 3;
16194
+ _context17.n = 3;
16055
16195
  break;
16056
16196
  }
16057
- _context16.n = 2;
16197
+ _context17.n = 2;
16058
16198
  return call(getLastChannelFromMap);
16059
16199
  case 2:
16060
- activeChannel = _context16.v;
16200
+ activeChannel = _context17.v;
16061
16201
  if (!activeChannel) {
16062
- _context16.n = 3;
16202
+ _context17.n = 3;
16063
16203
  break;
16064
16204
  }
16065
- _context16.n = 3;
16205
+ _context17.n = 3;
16066
16206
  return put(switchChannelActionAC(JSON.parse(JSON.stringify(activeChannel))));
16067
16207
  case 3:
16068
- return _context16.a(2);
16208
+ return _context17.a(2);
16069
16209
  }
16070
- }, _marked16);
16210
+ }, _marked17);
16071
16211
  }
16072
16212
  function leaveChannel(action) {
16073
- var payload, channelId, channel, messageBuilder, messageToSend, _t18;
16074
- return _regenerator().w(function (_context17) {
16075
- while (1) switch (_context17.p = _context17.n) {
16213
+ var payload, channelId, channel, messageBuilder, messageToSend, _t19;
16214
+ return _regenerator().w(function (_context18) {
16215
+ while (1) switch (_context18.p = _context18.n) {
16076
16216
  case 0:
16077
- _context17.p = 0;
16217
+ _context18.p = 0;
16078
16218
  payload = action.payload;
16079
16219
  channelId = payload.channelId;
16080
- _context17.n = 1;
16220
+ _context18.n = 1;
16081
16221
  return call(getChannelFromMap, channelId);
16082
16222
  case 1:
16083
- channel = _context17.v;
16223
+ channel = _context18.v;
16084
16224
  if (!channel) {
16085
16225
  channel = getChannelFromAllChannels(channelId);
16086
16226
  }
16087
16227
  if (!channel) {
16088
- _context17.n = 5;
16228
+ _context18.n = 5;
16089
16229
  break;
16090
16230
  }
16091
16231
  if (!(channel.type === DEFAULT_CHANNEL_TYPE.GROUP || channel.type === DEFAULT_CHANNEL_TYPE.PRIVATE)) {
16092
- _context17.n = 2;
16232
+ _context18.n = 2;
16093
16233
  break;
16094
16234
  }
16095
16235
  messageBuilder = channel.createMessageBuilder();
16096
16236
  messageBuilder.setBody('LG').setType('system').setDisplayCount(0).setSilent(true);
16097
16237
  messageToSend = messageBuilder.create();
16098
16238
  log.info('send message for left');
16099
- _context17.n = 2;
16239
+ _context18.n = 2;
16100
16240
  return call(channel.sendMessage, messageToSend);
16101
16241
  case 2:
16102
16242
  log.info('leave');
16103
- _context17.n = 3;
16243
+ _context18.n = 3;
16104
16244
  return call(channel.leave);
16105
16245
  case 3:
16106
- _context17.n = 4;
16246
+ _context18.n = 4;
16107
16247
  return put(removeChannelAC(channelId));
16108
16248
  case 4:
16109
16249
  deleteChannelFromAllChannels(channelId);
16110
- _context17.n = 5;
16250
+ _context18.n = 5;
16111
16251
  return put(removeChannelCachesAC(channelId));
16112
16252
  case 5:
16113
- _context17.n = 7;
16253
+ _context18.n = 7;
16114
16254
  break;
16115
16255
  case 6:
16116
- _context17.p = 6;
16117
- _t18 = _context17.v;
16118
- log.error('ERROR in leave channel - ', _t18.message);
16256
+ _context18.p = 6;
16257
+ _t19 = _context18.v;
16258
+ log.error('ERROR in leave channel - ', _t19.message);
16119
16259
  case 7:
16120
- return _context17.a(2);
16260
+ return _context18.a(2);
16121
16261
  }
16122
- }, _marked17, null, [[0, 6]]);
16262
+ }, _marked18, null, [[0, 6]]);
16123
16263
  }
16124
16264
  function deleteChannel(action) {
16125
- var payload, channelId, channel, _t19;
16126
- return _regenerator().w(function (_context18) {
16127
- while (1) switch (_context18.p = _context18.n) {
16265
+ var payload, channelId, channel, _t20;
16266
+ return _regenerator().w(function (_context19) {
16267
+ while (1) switch (_context19.p = _context19.n) {
16128
16268
  case 0:
16129
- _context18.p = 0;
16269
+ _context19.p = 0;
16130
16270
  payload = action.payload;
16131
16271
  channelId = payload.channelId;
16132
- _context18.n = 1;
16272
+ _context19.n = 1;
16133
16273
  return call(getChannelFromMap, channelId);
16134
16274
  case 1:
16135
- channel = _context18.v;
16275
+ channel = _context19.v;
16136
16276
  if (!channel) {
16137
16277
  channel = getChannelFromAllChannels(channelId);
16138
16278
  }
16139
16279
  if (!channel) {
16140
- _context18.n = 5;
16280
+ _context19.n = 5;
16141
16281
  break;
16142
16282
  }
16143
- _context18.n = 2;
16283
+ _context19.n = 2;
16144
16284
  return call(channel["delete"]);
16145
16285
  case 2:
16146
- _context18.n = 3;
16286
+ _context19.n = 3;
16147
16287
  return put(setChannelToRemoveAC(channel));
16148
16288
  case 3:
16149
- _context18.n = 4;
16289
+ _context19.n = 4;
16150
16290
  return put(removeChannelAC(channelId));
16151
16291
  case 4:
16152
- _context18.n = 5;
16292
+ _context19.n = 5;
16153
16293
  return put(removeChannelCachesAC(channelId));
16154
16294
  case 5:
16155
- _context18.n = 7;
16295
+ _context19.n = 7;
16156
16296
  break;
16157
16297
  case 6:
16158
- _context18.p = 6;
16159
- _t19 = _context18.v;
16160
- log.error('ERROR in delete channel', _t19);
16298
+ _context19.p = 6;
16299
+ _t20 = _context19.v;
16300
+ log.error('ERROR in delete channel', _t20);
16161
16301
  case 7:
16162
- return _context18.a(2);
16302
+ return _context19.a(2);
16163
16303
  }
16164
- }, _marked18, null, [[0, 6]]);
16304
+ }, _marked19, null, [[0, 6]]);
16165
16305
  }
16166
16306
  function blockChannel(action) {
16167
- var payload, channelId, channel, _t20;
16168
- return _regenerator().w(function (_context19) {
16169
- while (1) switch (_context19.p = _context19.n) {
16307
+ var payload, channelId, channel, _t21;
16308
+ return _regenerator().w(function (_context20) {
16309
+ while (1) switch (_context20.p = _context20.n) {
16170
16310
  case 0:
16171
- _context19.p = 0;
16311
+ _context20.p = 0;
16172
16312
  payload = action.payload;
16173
16313
  channelId = payload.channelId;
16174
- _context19.n = 1;
16314
+ _context20.n = 1;
16175
16315
  return call(getChannelFromMap, channelId);
16176
16316
  case 1:
16177
- channel = _context19.v;
16317
+ channel = _context20.v;
16178
16318
  if (!channel) {
16179
16319
  channel = getChannelFromAllChannels(channelId);
16180
16320
  }
16181
16321
  if (!channel) {
16182
- _context19.n = 4;
16322
+ _context20.n = 4;
16183
16323
  break;
16184
16324
  }
16185
- _context19.n = 2;
16325
+ _context20.n = 2;
16186
16326
  return call(channel.block);
16187
16327
  case 2:
16188
- _context19.n = 3;
16328
+ _context20.n = 3;
16189
16329
  return put(removeChannelAC(channelId));
16190
16330
  case 3:
16191
- _context19.n = 4;
16331
+ _context20.n = 4;
16192
16332
  return put(removeChannelCachesAC(channelId));
16193
16333
  case 4:
16194
- _context19.n = 6;
16334
+ _context20.n = 6;
16195
16335
  break;
16196
16336
  case 5:
16197
- _context19.p = 5;
16198
- _t20 = _context19.v;
16199
- log.error('ERROR in block channel - ', _t20.message);
16337
+ _context20.p = 5;
16338
+ _t21 = _context20.v;
16339
+ log.error('ERROR in block channel - ', _t21.message);
16200
16340
  case 6:
16201
- return _context19.a(2);
16341
+ return _context20.a(2);
16202
16342
  }
16203
- }, _marked19, null, [[0, 5]]);
16343
+ }, _marked20, null, [[0, 5]]);
16204
16344
  }
16205
16345
  function updateChannel(action) {
16206
- var payload, channelId, config, _SceytChatClient6, channel, paramsToUpdate, fileToUpload, _yield$call5, subject, avatarUrl, metadata, _t21;
16207
- return _regenerator().w(function (_context20) {
16208
- while (1) switch (_context20.p = _context20.n) {
16346
+ var payload, channelId, config, _SceytChatClient6, channel, paramsToUpdate, fileToUpload, _yield$call5, subject, avatarUrl, metadata, _t22;
16347
+ return _regenerator().w(function (_context21) {
16348
+ while (1) switch (_context21.p = _context21.n) {
16209
16349
  case 0:
16210
- _context20.p = 0;
16350
+ _context21.p = 0;
16211
16351
  payload = action.payload;
16212
16352
  channelId = payload.channelId, config = payload.config;
16213
16353
  _SceytChatClient6 = getClient();
16214
- _context20.n = 1;
16354
+ _context21.n = 1;
16215
16355
  return call(getChannelFromMap, channelId);
16216
16356
  case 1:
16217
- channel = _context20.v;
16357
+ channel = _context21.v;
16218
16358
  if (!channel) {
16219
16359
  channel = getChannelFromAllChannels(channelId);
16220
16360
  }
@@ -16225,7 +16365,7 @@ function updateChannel(action) {
16225
16365
  avatarUrl: channel.avatarUrl
16226
16366
  };
16227
16367
  if (!config.avatar) {
16228
- _context20.n = 3;
16368
+ _context21.n = 3;
16229
16369
  break;
16230
16370
  }
16231
16371
  fileToUpload = {
@@ -16234,10 +16374,10 @@ function updateChannel(action) {
16234
16374
  log.info('upload percent - ', progressPercent);
16235
16375
  }
16236
16376
  };
16237
- _context20.n = 2;
16377
+ _context21.n = 2;
16238
16378
  return call(_SceytChatClient6.uploadFile, fileToUpload);
16239
16379
  case 2:
16240
- paramsToUpdate.avatarUrl = _context20.v;
16380
+ paramsToUpdate.avatarUrl = _context21.v;
16241
16381
  case 3:
16242
16382
  if (config.subject) {
16243
16383
  paramsToUpdate.subject = config.subject;
@@ -16248,14 +16388,14 @@ function updateChannel(action) {
16248
16388
  if (config.avatarUrl === '') {
16249
16389
  paramsToUpdate.avatarUrl = '';
16250
16390
  }
16251
- _context20.n = 4;
16391
+ _context21.n = 4;
16252
16392
  return call(channel.update, paramsToUpdate);
16253
16393
  case 4:
16254
- _yield$call5 = _context20.v;
16394
+ _yield$call5 = _context21.v;
16255
16395
  subject = _yield$call5.subject;
16256
16396
  avatarUrl = _yield$call5.avatarUrl;
16257
16397
  metadata = _yield$call5.metadata;
16258
- _context20.n = 5;
16398
+ _context21.n = 5;
16259
16399
  return put(updateChannelDataAC(channelId, {
16260
16400
  subject: subject,
16261
16401
  avatarUrl: avatarUrl,
@@ -16267,29 +16407,29 @@ function updateChannel(action) {
16267
16407
  avatarUrl: avatarUrl,
16268
16408
  metadata: isJSON(metadata) ? JSON.parse(metadata) : metadata
16269
16409
  });
16270
- _context20.n = 7;
16410
+ _context21.n = 7;
16271
16411
  break;
16272
16412
  case 6:
16273
- _context20.p = 6;
16274
- _t21 = _context20.v;
16275
- log.error('ERROR in update channel', _t21.message);
16413
+ _context21.p = 6;
16414
+ _t22 = _context21.v;
16415
+ log.error('ERROR in update channel', _t22.message);
16276
16416
  case 7:
16277
- return _context20.a(2);
16417
+ return _context21.a(2);
16278
16418
  }
16279
- }, _marked20, null, [[0, 6]]);
16419
+ }, _marked21, null, [[0, 6]]);
16280
16420
  }
16281
16421
  function checkUsersStatus() {
16282
- var _SceytChatClient7, usersForUpdate, updatedUsers, usersToUpdateMap, update, updateData, _t22;
16283
- return _regenerator().w(function (_context21) {
16284
- while (1) switch (_context21.p = _context21.n) {
16422
+ var _SceytChatClient7, usersForUpdate, updatedUsers, usersToUpdateMap, update, updateData, _t23;
16423
+ return _regenerator().w(function (_context22) {
16424
+ while (1) switch (_context22.p = _context22.n) {
16285
16425
  case 0:
16286
- _context21.p = 0;
16426
+ _context22.p = 0;
16287
16427
  _SceytChatClient7 = getClient();
16288
16428
  usersForUpdate = Object.keys(usersMap);
16289
- _context21.n = 1;
16429
+ _context22.n = 1;
16290
16430
  return call(_SceytChatClient7.getUsers, usersForUpdate);
16291
16431
  case 1:
16292
- updatedUsers = _context21.v;
16432
+ updatedUsers = _context22.v;
16293
16433
  usersToUpdateMap = {};
16294
16434
  update = false;
16295
16435
  updatedUsers.forEach(function (updatedUser) {
@@ -16301,180 +16441,113 @@ function checkUsersStatus() {
16301
16441
  }
16302
16442
  });
16303
16443
  if (!update) {
16304
- _context21.n = 4;
16444
+ _context22.n = 4;
16305
16445
  break;
16306
16446
  }
16307
16447
  updateData = JSON.parse(JSON.stringify(usersToUpdateMap));
16308
- _context21.n = 2;
16448
+ _context22.n = 2;
16309
16449
  return put(updateMembersPresenceAC(updateData));
16310
16450
  case 2:
16311
- _context21.n = 3;
16451
+ _context22.n = 3;
16312
16452
  return put(updateUserStatusOnMapAC(updateData));
16313
16453
  case 3:
16314
- _context21.n = 4;
16454
+ _context22.n = 4;
16315
16455
  return put(updateUserStatusOnChannelAC(updateData));
16316
16456
  case 4:
16317
- _context21.n = 6;
16457
+ _context22.n = 6;
16318
16458
  break;
16319
16459
  case 5:
16320
- _context21.p = 5;
16321
- _t22 = _context21.v;
16322
- log.error('ERROR in check user status : ', _t22.message);
16460
+ _context22.p = 5;
16461
+ _t23 = _context22.v;
16462
+ log.error('ERROR in check user status : ', _t23.message);
16323
16463
  case 6:
16324
- return _context21.a(2);
16464
+ return _context22.a(2);
16325
16465
  }
16326
- }, _marked21, null, [[0, 5]]);
16466
+ }, _marked22, null, [[0, 5]]);
16327
16467
  }
16328
16468
  function sendTyping(action) {
16329
- var state, activeChannelId, channel, _t23;
16330
- return _regenerator().w(function (_context22) {
16331
- while (1) switch (_context22.p = _context22.n) {
16469
+ var state, activeChannelId, channel, _t24;
16470
+ return _regenerator().w(function (_context23) {
16471
+ while (1) switch (_context23.p = _context23.n) {
16332
16472
  case 0:
16333
16473
  state = action.payload.state;
16334
- _context22.n = 1;
16474
+ _context23.n = 1;
16335
16475
  return call(getActiveChannelId);
16336
16476
  case 1:
16337
- activeChannelId = _context22.v;
16338
- _context22.n = 2;
16477
+ activeChannelId = _context23.v;
16478
+ _context23.n = 2;
16339
16479
  return call(getChannelFromMap, activeChannelId);
16340
16480
  case 2:
16341
- channel = _context22.v;
16342
- _context22.p = 3;
16481
+ channel = _context23.v;
16482
+ _context23.p = 3;
16343
16483
  if (!channel) {
16344
- _context22.n = 6;
16484
+ _context23.n = 6;
16345
16485
  break;
16346
16486
  }
16347
16487
  if (!state) {
16348
- _context22.n = 5;
16488
+ _context23.n = 5;
16349
16489
  break;
16350
16490
  }
16351
- _context22.n = 4;
16491
+ _context23.n = 4;
16352
16492
  return call(channel.startTyping);
16353
16493
  case 4:
16354
- _context22.n = 6;
16494
+ _context23.n = 6;
16355
16495
  break;
16356
16496
  case 5:
16357
- _context22.n = 6;
16497
+ _context23.n = 6;
16358
16498
  return call(channel.stopTyping);
16359
16499
  case 6:
16360
- _context22.n = 8;
16500
+ _context23.n = 8;
16361
16501
  break;
16362
16502
  case 7:
16363
- _context22.p = 7;
16364
- _t23 = _context22.v;
16365
- log.error('ERROR in send typing', _t23);
16366
- case 8:
16367
- return _context22.a(2);
16368
- }
16369
- }, _marked22, null, [[3, 7]]);
16370
- }
16371
- function sendRecording(action) {
16372
- var _action$payload, state, channelId, channel, _t24;
16373
- return _regenerator().w(function (_context23) {
16374
- while (1) switch (_context23.p = _context23.n) {
16375
- case 0:
16376
- _action$payload = action.payload, state = _action$payload.state, channelId = _action$payload.channelId;
16377
- _context23.n = 1;
16378
- return call(getChannelFromMap, channelId);
16379
- case 1:
16380
- channel = _context23.v;
16381
- _context23.p = 2;
16382
- if (!channel) {
16383
- _context23.n = 5;
16384
- break;
16385
- }
16386
- if (!state) {
16387
- _context23.n = 4;
16388
- break;
16389
- }
16390
- _context23.n = 3;
16391
- return call(channel.startRecording);
16392
- case 3:
16393
- _context23.n = 5;
16394
- break;
16395
- case 4:
16396
- _context23.n = 5;
16397
- return call(channel.stopRecording);
16398
- case 5:
16399
- _context23.n = 7;
16400
- break;
16401
- case 6:
16402
- _context23.p = 6;
16503
+ _context23.p = 7;
16403
16504
  _t24 = _context23.v;
16404
- log.error('ERROR in send recording', _t24);
16405
- case 7:
16505
+ log.error('ERROR in send typing', _t24);
16506
+ case 8:
16406
16507
  return _context23.a(2);
16407
16508
  }
16408
- }, _marked23, null, [[2, 6]]);
16509
+ }, _marked23, null, [[3, 7]]);
16409
16510
  }
16410
- function clearHistory(action) {
16411
- var payload, channelId, channel, activeChannelId, groupName, _t25;
16511
+ function sendRecording(action) {
16512
+ var _action$payload, state, channelId, channel, _t25;
16412
16513
  return _regenerator().w(function (_context24) {
16413
16514
  while (1) switch (_context24.p = _context24.n) {
16414
16515
  case 0:
16415
- _context24.p = 0;
16416
- payload = action.payload;
16417
- channelId = payload.channelId;
16516
+ _action$payload = action.payload, state = _action$payload.state, channelId = _action$payload.channelId;
16418
16517
  _context24.n = 1;
16419
16518
  return call(getChannelFromMap, channelId);
16420
16519
  case 1:
16421
16520
  channel = _context24.v;
16521
+ _context24.p = 2;
16422
16522
  if (!channel) {
16423
- channel = getChannelFromAllChannels(channelId);
16523
+ _context24.n = 5;
16524
+ break;
16424
16525
  }
16425
- _context24.n = 2;
16426
- return call(getActiveChannelId);
16427
- case 2:
16428
- activeChannelId = _context24.v;
16429
- if (!channel) {
16430
- _context24.n = 7;
16526
+ if (!state) {
16527
+ _context24.n = 4;
16431
16528
  break;
16432
16529
  }
16433
16530
  _context24.n = 3;
16434
- return call(channel.deleteAllMessages);
16531
+ return call(channel.startRecording);
16435
16532
  case 3:
16436
- _context24.n = 4;
16437
- return put(clearMessagesAC());
16533
+ _context24.n = 5;
16534
+ break;
16438
16535
  case 4:
16439
- removeMessagesFromMap(channelId);
16440
- if (channelId === activeChannelId) {
16441
- removeAllMessages();
16442
- }
16443
16536
  _context24.n = 5;
16444
- return put(clearSelectedMessagesAC());
16537
+ return call(channel.stopRecording);
16445
16538
  case 5:
16446
- _context24.n = 6;
16447
- return put(updateChannelDataAC(channel.id, {
16448
- lastMessage: null,
16449
- newMessageCount: 0,
16450
- newMentionCount: 0
16451
- }));
16452
- case 6:
16453
- updateChannelOnAllChannels(channel.id, {
16454
- lastMessage: null,
16455
- newMessageCount: 0,
16456
- newMentionCount: 0
16457
- });
16458
- groupName = getChannelGroupName(channel);
16459
16539
  _context24.n = 7;
16460
- return put(updateSearchedChannelDataAC(channel.id, {
16461
- lastMessage: null,
16462
- newMessageCount: 0,
16463
- newMentionCount: 0
16464
- }, groupName));
16465
- case 7:
16466
- _context24.n = 9;
16467
16540
  break;
16468
- case 8:
16469
- _context24.p = 8;
16541
+ case 6:
16542
+ _context24.p = 6;
16470
16543
  _t25 = _context24.v;
16471
- log.error('ERROR in clear history', _t25);
16472
- case 9:
16544
+ log.error('ERROR in send recording', _t25);
16545
+ case 7:
16473
16546
  return _context24.a(2);
16474
16547
  }
16475
- }, _marked24, null, [[0, 8]]);
16548
+ }, _marked24, null, [[2, 6]]);
16476
16549
  }
16477
- function deleteAllMessages(action) {
16550
+ function clearHistory(action) {
16478
16551
  var payload, channelId, channel, activeChannelId, groupName, _t26;
16479
16552
  return _regenerator().w(function (_context25) {
16480
16553
  while (1) switch (_context25.p = _context25.n) {
@@ -16494,26 +16567,93 @@ function deleteAllMessages(action) {
16494
16567
  case 2:
16495
16568
  activeChannelId = _context25.v;
16496
16569
  if (!channel) {
16497
- _context25.n = 8;
16570
+ _context25.n = 7;
16498
16571
  break;
16499
16572
  }
16500
16573
  _context25.n = 3;
16574
+ return call(channel.deleteAllMessages);
16575
+ case 3:
16576
+ _context25.n = 4;
16577
+ return put(clearMessagesAC());
16578
+ case 4:
16579
+ removeMessagesFromMap(channelId);
16580
+ if (channelId === activeChannelId) {
16581
+ removeAllMessages();
16582
+ }
16583
+ _context25.n = 5;
16584
+ return put(clearSelectedMessagesAC());
16585
+ case 5:
16586
+ _context25.n = 6;
16587
+ return put(updateChannelDataAC(channel.id, {
16588
+ lastMessage: null,
16589
+ newMessageCount: 0,
16590
+ newMentionCount: 0
16591
+ }));
16592
+ case 6:
16593
+ updateChannelOnAllChannels(channel.id, {
16594
+ lastMessage: null,
16595
+ newMessageCount: 0,
16596
+ newMentionCount: 0
16597
+ });
16598
+ groupName = getChannelGroupName(channel);
16599
+ _context25.n = 7;
16600
+ return put(updateSearchedChannelDataAC(channel.id, {
16601
+ lastMessage: null,
16602
+ newMessageCount: 0,
16603
+ newMentionCount: 0
16604
+ }, groupName));
16605
+ case 7:
16606
+ _context25.n = 9;
16607
+ break;
16608
+ case 8:
16609
+ _context25.p = 8;
16610
+ _t26 = _context25.v;
16611
+ log.error('ERROR in clear history', _t26);
16612
+ case 9:
16613
+ return _context25.a(2);
16614
+ }
16615
+ }, _marked25, null, [[0, 8]]);
16616
+ }
16617
+ function deleteAllMessages(action) {
16618
+ var payload, channelId, channel, activeChannelId, groupName, _t27;
16619
+ return _regenerator().w(function (_context26) {
16620
+ while (1) switch (_context26.p = _context26.n) {
16621
+ case 0:
16622
+ _context26.p = 0;
16623
+ payload = action.payload;
16624
+ channelId = payload.channelId;
16625
+ _context26.n = 1;
16626
+ return call(getChannelFromMap, channelId);
16627
+ case 1:
16628
+ channel = _context26.v;
16629
+ if (!channel) {
16630
+ channel = getChannelFromAllChannels(channelId);
16631
+ }
16632
+ _context26.n = 2;
16633
+ return call(getActiveChannelId);
16634
+ case 2:
16635
+ activeChannelId = _context26.v;
16636
+ if (!channel) {
16637
+ _context26.n = 8;
16638
+ break;
16639
+ }
16640
+ _context26.n = 3;
16501
16641
  return call(channel.deleteAllMessages, true);
16502
16642
  case 3:
16503
16643
  removeMessagesFromMap(channelId);
16504
16644
  if (!(channelId === activeChannelId)) {
16505
- _context25.n = 5;
16645
+ _context26.n = 5;
16506
16646
  break;
16507
16647
  }
16508
- _context25.n = 4;
16648
+ _context26.n = 4;
16509
16649
  return put(clearMessagesAC());
16510
16650
  case 4:
16511
16651
  removeAllMessages();
16512
16652
  case 5:
16513
- _context25.n = 6;
16653
+ _context26.n = 6;
16514
16654
  return put(clearSelectedMessagesAC());
16515
16655
  case 6:
16516
- _context25.n = 7;
16656
+ _context26.n = 7;
16517
16657
  return put(updateChannelDataAC(channel.id, {
16518
16658
  lastMessage: null,
16519
16659
  newMessageCount: 0,
@@ -16526,182 +16666,185 @@ function deleteAllMessages(action) {
16526
16666
  newMentionCount: 0
16527
16667
  });
16528
16668
  groupName = getChannelGroupName(channel);
16529
- _context25.n = 8;
16669
+ _context26.n = 8;
16530
16670
  return put(updateSearchedChannelDataAC(channel.id, {
16531
16671
  lastMessage: null,
16532
16672
  newMessageCount: 0,
16533
16673
  newMentionCount: 0
16534
16674
  }, groupName));
16535
16675
  case 8:
16536
- _context25.n = 10;
16676
+ _context26.n = 10;
16537
16677
  break;
16538
16678
  case 9:
16539
- _context25.p = 9;
16540
- _t26 = _context25.v;
16541
- log.error('ERROR in clear history', _t26);
16679
+ _context26.p = 9;
16680
+ _t27 = _context26.v;
16681
+ log.error('ERROR in clear history', _t27);
16542
16682
  case 10:
16543
- return _context25.a(2);
16683
+ return _context26.a(2);
16544
16684
  }
16545
- }, _marked25, null, [[0, 9]]);
16685
+ }, _marked26, null, [[0, 9]]);
16546
16686
  }
16547
16687
  function joinChannel(action) {
16548
- var payload, channelId, _SceytChatClient8, channel, joinedChannel, _t27;
16549
- return _regenerator().w(function (_context26) {
16550
- while (1) switch (_context26.p = _context26.n) {
16688
+ var payload, channelId, _SceytChatClient8, channel, joinedChannel, _t28;
16689
+ return _regenerator().w(function (_context27) {
16690
+ while (1) switch (_context27.p = _context27.n) {
16551
16691
  case 0:
16552
- _context26.p = 0;
16692
+ _context27.p = 0;
16553
16693
  payload = action.payload;
16554
16694
  channelId = payload.channelId;
16555
16695
  _SceytChatClient8 = getClient();
16556
- _context26.n = 1;
16696
+ _context27.n = 1;
16557
16697
  return call(getChannelFromMap, channelId);
16558
16698
  case 1:
16559
- channel = _context26.v;
16699
+ channel = _context27.v;
16560
16700
  if (!channel) {
16561
16701
  channel = getChannelFromAllChannels(channelId);
16562
16702
  }
16563
16703
  if (channel) {
16564
- _context26.n = 3;
16704
+ _context27.n = 3;
16565
16705
  break;
16566
16706
  }
16567
- _context26.n = 2;
16707
+ _context27.n = 2;
16568
16708
  return call(_SceytChatClient8.getChannel, channelId);
16569
16709
  case 2:
16570
- channel = _context26.v;
16710
+ channel = _context27.v;
16571
16711
  case 3:
16572
- _context26.n = 4;
16712
+ _context27.n = 4;
16573
16713
  return call(channel.join);
16574
16714
  case 4:
16575
- joinedChannel = _context26.v;
16576
- _context26.n = 5;
16715
+ joinedChannel = _context27.v;
16716
+ _context27.n = 5;
16577
16717
  return put(setCloseSearchChannelsAC(true));
16578
16718
  case 5:
16579
- _context26.n = 6;
16719
+ _context27.n = 6;
16580
16720
  return put(setChannelToAddAC(JSON.parse(JSON.stringify(joinedChannel))));
16581
16721
  case 6:
16582
- _context26.n = 7;
16722
+ _context27.n = 7;
16583
16723
  return put(switchChannelActionAC(JSON.parse(JSON.stringify(joinedChannel))));
16584
16724
  case 7:
16585
16725
  addChannelToAllChannels(joinedChannel);
16586
- _context26.n = 8;
16726
+ _context27.n = 8;
16587
16727
  return call(setActiveChannelId, joinedChannel.id);
16588
16728
  case 8:
16589
- _context26.n = 10;
16729
+ _context27.n = 10;
16590
16730
  break;
16591
16731
  case 9:
16592
- _context26.p = 9;
16593
- _t27 = _context26.v;
16594
- log.error(_t27, 'Error in join to channel');
16732
+ _context27.p = 9;
16733
+ _t28 = _context27.v;
16734
+ log.error(_t28, 'Error in join to channel');
16595
16735
  case 10:
16596
- return _context26.a(2);
16736
+ return _context27.a(2);
16597
16737
  }
16598
- }, _marked26, null, [[0, 9]]);
16738
+ }, _marked27, null, [[0, 9]]);
16599
16739
  }
16600
16740
  function watchForChannelEvents() {
16601
- return _regenerator().w(function (_context27) {
16602
- while (1) switch (_context27.n) {
16741
+ return _regenerator().w(function (_context28) {
16742
+ while (1) switch (_context28.n) {
16603
16743
  case 0:
16604
- _context27.n = 1;
16744
+ _context28.n = 1;
16605
16745
  return call(watchForEvents);
16606
16746
  case 1:
16607
- return _context27.a(2);
16747
+ return _context28.a(2);
16608
16748
  }
16609
- }, _marked27);
16749
+ }, _marked28);
16610
16750
  }
16611
16751
  function ChannelsSaga() {
16612
- return _regenerator().w(function (_context28) {
16613
- while (1) switch (_context28.n) {
16752
+ return _regenerator().w(function (_context29) {
16753
+ while (1) switch (_context29.n) {
16614
16754
  case 0:
16615
- _context28.n = 1;
16755
+ _context29.n = 1;
16616
16756
  return takeLatest(CREATE_CHANNEL, createChannel);
16617
16757
  case 1:
16618
- _context28.n = 2;
16758
+ _context29.n = 2;
16619
16759
  return takeLatest(GET_CHANNELS, getChannels);
16620
16760
  case 2:
16621
- _context28.n = 3;
16761
+ _context29.n = 3;
16622
16762
  return takeLatest(SEARCH_CHANNELS, searchChannels);
16623
16763
  case 3:
16624
- _context28.n = 4;
16764
+ _context29.n = 4;
16625
16765
  return takeLatest(GET_CHANNELS_FOR_FORWARD, getChannelsForForward);
16626
16766
  case 4:
16627
- _context28.n = 5;
16767
+ _context29.n = 5;
16628
16768
  return takeLatest(SEARCH_CHANNELS_FOR_FORWARD, searchChannelsForForward);
16629
16769
  case 5:
16630
- _context28.n = 6;
16770
+ _context29.n = 6;
16631
16771
  return takeLatest(LOAD_MORE_CHANNEL, channelsLoadMore);
16632
16772
  case 6:
16633
- _context28.n = 7;
16773
+ _context29.n = 7;
16634
16774
  return takeLatest(LOAD_MORE_CHANNELS_FOR_FORWARD, channelsForForwardLoadMore);
16635
16775
  case 7:
16636
- _context28.n = 8;
16776
+ _context29.n = 8;
16637
16777
  return takeEvery(SWITCH_CHANNEL, switchChannel);
16638
16778
  case 8:
16639
- _context28.n = 9;
16779
+ _context29.n = 9;
16640
16780
  return takeLatest(LEAVE_CHANNEL, leaveChannel);
16641
16781
  case 9:
16642
- _context28.n = 10;
16782
+ _context29.n = 10;
16643
16783
  return takeLatest(DELETE_CHANNEL, deleteChannel);
16644
16784
  case 10:
16645
- _context28.n = 11;
16785
+ _context29.n = 11;
16646
16786
  return takeLatest(BLOCK_CHANNEL, blockChannel);
16647
16787
  case 11:
16648
- _context28.n = 12;
16788
+ _context29.n = 12;
16649
16789
  return takeLatest(UPDATE_CHANNEL, updateChannel);
16650
16790
  case 12:
16651
- _context28.n = 13;
16791
+ _context29.n = 13;
16652
16792
  return takeEvery(MARK_MESSAGES_AS_READ, markMessagesRead);
16653
16793
  case 13:
16654
- _context28.n = 14;
16794
+ _context29.n = 14;
16655
16795
  return takeLatest(MARK_MESSAGES_AS_DELIVERED, markMessagesDelivered);
16656
16796
  case 14:
16657
- _context28.n = 15;
16658
- return takeLatest(WATCH_FOR_EVENTS, watchForChannelEvents);
16797
+ _context29.n = 15;
16798
+ return takeLatest(MARK_VOICE_MESSAGE_AS_PLAYED, markVoiceMessageAsPlayed);
16659
16799
  case 15:
16660
- _context28.n = 16;
16661
- return takeLatest(TURN_OFF_NOTIFICATION, notificationsTurnOff);
16800
+ _context29.n = 16;
16801
+ return takeLatest(WATCH_FOR_EVENTS, watchForChannelEvents);
16662
16802
  case 16:
16663
- _context28.n = 17;
16664
- return takeLatest(TURN_ON_NOTIFICATION, notificationsTurnOn);
16803
+ _context29.n = 17;
16804
+ return takeLatest(TURN_OFF_NOTIFICATION, notificationsTurnOff);
16665
16805
  case 17:
16666
- _context28.n = 18;
16667
- return takeLatest(MARK_CHANNEL_AS_READ, markChannelAsRead);
16806
+ _context29.n = 18;
16807
+ return takeLatest(TURN_ON_NOTIFICATION, notificationsTurnOn);
16668
16808
  case 18:
16669
- _context28.n = 19;
16670
- return takeLatest(MARK_CHANNEL_AS_UNREAD, markChannelAsUnRead);
16809
+ _context29.n = 19;
16810
+ return takeLatest(MARK_CHANNEL_AS_READ, markChannelAsRead);
16671
16811
  case 19:
16672
- _context28.n = 20;
16673
- return takeLatest(CHECK_USER_STATUS, checkUsersStatus);
16812
+ _context29.n = 20;
16813
+ return takeLatest(MARK_CHANNEL_AS_UNREAD, markChannelAsUnRead);
16674
16814
  case 20:
16675
- _context28.n = 21;
16676
- return takeLatest(SEND_TYPING, sendTyping);
16815
+ _context29.n = 21;
16816
+ return takeLatest(CHECK_USER_STATUS, checkUsersStatus);
16677
16817
  case 21:
16678
- _context28.n = 22;
16679
- return takeLatest(SEND_RECORDING, sendRecording);
16818
+ _context29.n = 22;
16819
+ return takeLatest(SEND_TYPING, sendTyping);
16680
16820
  case 22:
16681
- _context28.n = 23;
16682
- return takeLatest(PIN_CHANNEL, pinChannel);
16821
+ _context29.n = 23;
16822
+ return takeLatest(SEND_RECORDING, sendRecording);
16683
16823
  case 23:
16684
- _context28.n = 24;
16685
- return takeLatest(UNPIN_CHANNEL, unpinChannel);
16824
+ _context29.n = 24;
16825
+ return takeLatest(PIN_CHANNEL, pinChannel);
16686
16826
  case 24:
16687
- _context28.n = 25;
16688
- return takeLatest(CLEAR_HISTORY, clearHistory);
16827
+ _context29.n = 25;
16828
+ return takeLatest(UNPIN_CHANNEL, unpinChannel);
16689
16829
  case 25:
16690
- _context28.n = 26;
16691
- return takeLatest(JOIN_TO_CHANNEL, joinChannel);
16830
+ _context29.n = 26;
16831
+ return takeLatest(CLEAR_HISTORY, clearHistory);
16692
16832
  case 26:
16693
- _context28.n = 27;
16694
- return takeLatest(DELETE_ALL_MESSAGES, deleteAllMessages);
16833
+ _context29.n = 27;
16834
+ return takeLatest(JOIN_TO_CHANNEL, joinChannel);
16695
16835
  case 27:
16696
- _context28.n = 28;
16697
- return takeLatest(REMOVE_CHANNEL_CACHES, removeChannelCaches);
16836
+ _context29.n = 28;
16837
+ return takeLatest(DELETE_ALL_MESSAGES, deleteAllMessages);
16698
16838
  case 28:
16699
- _context28.n = 29;
16700
- return takeLatest(GET_CHANNEL_MENTIONS, getChannelMentions);
16839
+ _context29.n = 29;
16840
+ return takeLatest(REMOVE_CHANNEL_CACHES, removeChannelCaches);
16701
16841
  case 29:
16702
- return _context28.a(2);
16842
+ _context29.n = 30;
16843
+ return takeLatest(GET_CHANNEL_MENTIONS, getChannelMentions);
16844
+ case 30:
16845
+ return _context29.a(2);
16703
16846
  }
16704
- }, _marked28);
16847
+ }, _marked29);
16705
16848
  }
16706
16849
 
16707
16850
  function rgbaToThumbHash(w, h, rgba) {
@@ -17124,6 +17267,12 @@ var selectedMessagesMapSelector = function selectedMessagesMapSelector(store) {
17124
17267
  var attachmentUpdatedMapSelector = function attachmentUpdatedMapSelector(store) {
17125
17268
  return store.MessageReducer.attachmentUpdatedMap;
17126
17269
  };
17270
+ var messageMarkersSelector = function messageMarkersSelector(store) {
17271
+ return store.MessageReducer.messageMarkers;
17272
+ };
17273
+ var messagesMarkersLoadingStateSelector = function messagesMarkersLoadingStateSelector(store) {
17274
+ return store.MessageReducer.messagesMarkersLoadingState;
17275
+ };
17127
17276
 
17128
17277
  var getFrame = function getFrame(videoSrc, time) {
17129
17278
  try {
@@ -17194,7 +17343,8 @@ var _marked$3 = /*#__PURE__*/_regenerator().m(sendMessage),
17194
17343
  _marked13$1 = /*#__PURE__*/_regenerator().m(loadMoreMessageAttachments),
17195
17344
  _marked14$1 = /*#__PURE__*/_regenerator().m(pauseAttachmentUploading),
17196
17345
  _marked15$1 = /*#__PURE__*/_regenerator().m(resumeAttachmentUploading),
17197
- _marked16$1 = /*#__PURE__*/_regenerator().m(MessageSaga);
17346
+ _marked16$1 = /*#__PURE__*/_regenerator().m(getMessageMarkers),
17347
+ _marked17$1 = /*#__PURE__*/_regenerator().m(MessageSaga);
17198
17348
  var handleUploadAttachments = function handleUploadAttachments(attachments, message, channel) {
17199
17349
  try {
17200
17350
  return Promise.resolve(Promise.all(attachments.map(function (attachment) {
@@ -18053,7 +18203,6 @@ function resendMessage(action) {
18053
18203
  case 2:
18054
18204
  channel = _context6.v;
18055
18205
  _context6.p = 3;
18056
- log.info('resend message .... ', message);
18057
18206
  if (!channel) {
18058
18207
  channel = getChannelFromAllChannels(channelId);
18059
18208
  if (channel) {
@@ -18291,7 +18440,6 @@ function resendMessage(action) {
18291
18440
  return call(channel.sendMessage, _messageCopy2);
18292
18441
  case 26:
18293
18442
  _messageResponse = _context6.v;
18294
- log.info('resend message response ... ', _messageResponse);
18295
18443
  _messageUpdateData = {
18296
18444
  id: _messageResponse.id,
18297
18445
  body: _messageResponse.body,
@@ -18395,7 +18543,6 @@ function deleteMessage(action) {
18395
18543
  return call(channel.deleteMessageById, messageId, deleteOption === 'forMe');
18396
18544
  case 2:
18397
18545
  deletedMessage = _context7.v;
18398
- log.info('deletedMessage . .. . .', deletedMessage);
18399
18546
  _context7.n = 3;
18400
18547
  return put(updateMessageAC(deletedMessage.id, deletedMessage));
18401
18548
  case 3:
@@ -18648,7 +18795,6 @@ function getMessagesQuery(action) {
18648
18795
  _context9.n = 20;
18649
18796
  return put(setMessagesHasPrevAC(_secondResult.hasNext));
18650
18797
  case 20:
18651
- log.info('result from server ....... ', result);
18652
18798
  _context9.n = 21;
18653
18799
  return put(setMessagesAC(JSON.parse(JSON.stringify(result.messages))));
18654
18800
  case 21:
@@ -18959,7 +19105,6 @@ function loadMoreMessages(action) {
18959
19105
  return call(messageQuery.loadNextMessageId, messageId);
18960
19106
  case 8:
18961
19107
  result = _context1.v;
18962
- log.info('result from server next ... ', result);
18963
19108
  if (result.messages.length) {
18964
19109
  addAllMessages(result.messages, MESSAGE_LOAD_DIRECTION.NEXT);
18965
19110
  }
@@ -19107,7 +19252,6 @@ function deleteReaction(action) {
19107
19252
  case 3:
19108
19253
  updateChannelOnAllChannels(channel.id, channelUpdateParam);
19109
19254
  case 4:
19110
- log.info('message received. ... ', _message3);
19111
19255
  _context11.n = 5;
19112
19256
  return put(deleteReactionFromListAC(reaction));
19113
19257
  case 5:
@@ -19405,64 +19549,111 @@ function resumeAttachmentUploading(action) {
19405
19549
  }
19406
19550
  }, _marked15$1, null, [[0, 2]]);
19407
19551
  }
19408
- function MessageSaga() {
19552
+ function getMessageMarkers(action) {
19553
+ var _action$payload4, messageId, channelId, deliveryStatus, sceytChatClient, messageMarkerListQueryBuilder, messageMarkerListQuery, messageMarkers, _t18;
19409
19554
  return _regenerator().w(function (_context18) {
19410
- while (1) switch (_context18.n) {
19555
+ while (1) switch (_context18.p = _context18.n) {
19411
19556
  case 0:
19557
+ _context18.p = 0;
19412
19558
  _context18.n = 1;
19413
- return takeEvery(SEND_MESSAGE, sendMessage);
19559
+ return put(setMessagesMarkersLoadingStateAC(LOADING_STATE.LOADING));
19414
19560
  case 1:
19561
+ _action$payload4 = action.payload, messageId = _action$payload4.messageId, channelId = _action$payload4.channelId, deliveryStatus = _action$payload4.deliveryStatus;
19562
+ sceytChatClient = getClient();
19563
+ if (!sceytChatClient) {
19564
+ _context18.n = 4;
19565
+ break;
19566
+ }
19567
+ messageMarkerListQueryBuilder = new sceytChatClient.MessageMarkerListQueryBuilder(channelId, String(messageId), deliveryStatus);
19415
19568
  _context18.n = 2;
19416
- return takeEvery(SEND_TEXT_MESSAGE, sendTextMessage);
19569
+ return call(messageMarkerListQueryBuilder.build);
19417
19570
  case 2:
19571
+ messageMarkerListQuery = _context18.v;
19418
19572
  _context18.n = 3;
19419
- return takeEvery(FORWARD_MESSAGE, forwardMessage);
19573
+ return call(messageMarkerListQuery.loadNext);
19420
19574
  case 3:
19575
+ messageMarkers = _context18.v;
19421
19576
  _context18.n = 4;
19577
+ return put(setMessageMarkersAC(channelId, messageId, messageMarkers.markers, deliveryStatus));
19578
+ case 4:
19579
+ _context18.n = 6;
19580
+ break;
19581
+ case 5:
19582
+ _context18.p = 5;
19583
+ _t18 = _context18.v;
19584
+ log.error('error in get message markers', _t18);
19585
+ case 6:
19586
+ _context18.p = 6;
19587
+ _context18.n = 7;
19588
+ return put(setMessagesMarkersLoadingStateAC(LOADING_STATE.LOADED));
19589
+ case 7:
19590
+ return _context18.f(6);
19591
+ case 8:
19592
+ return _context18.a(2);
19593
+ }
19594
+ }, _marked16$1, null, [[0, 5, 6, 8]]);
19595
+ }
19596
+ function MessageSaga() {
19597
+ return _regenerator().w(function (_context19) {
19598
+ while (1) switch (_context19.n) {
19599
+ case 0:
19600
+ _context19.n = 1;
19601
+ return takeEvery(SEND_MESSAGE, sendMessage);
19602
+ case 1:
19603
+ _context19.n = 2;
19604
+ return takeEvery(SEND_TEXT_MESSAGE, sendTextMessage);
19605
+ case 2:
19606
+ _context19.n = 3;
19607
+ return takeEvery(FORWARD_MESSAGE, forwardMessage);
19608
+ case 3:
19609
+ _context19.n = 4;
19422
19610
  return takeEvery(RESEND_MESSAGE, resendMessage);
19423
19611
  case 4:
19424
- _context18.n = 5;
19612
+ _context19.n = 5;
19425
19613
  return takeLatest(EDIT_MESSAGE, editMessage);
19426
19614
  case 5:
19427
- _context18.n = 6;
19615
+ _context19.n = 6;
19428
19616
  return takeEvery(DELETE_MESSAGE, deleteMessage);
19429
19617
  case 6:
19430
- _context18.n = 7;
19618
+ _context19.n = 7;
19431
19619
  return takeLatest(GET_MESSAGES, getMessagesQuery);
19432
19620
  case 7:
19433
- _context18.n = 8;
19621
+ _context19.n = 8;
19434
19622
  return takeEvery(GET_MESSAGE, getMessageQuery);
19435
19623
  case 8:
19436
- _context18.n = 9;
19437
- return takeLatest(GET_MESSAGES_ATTACHMENTS, getMessageAttachments);
19624
+ _context19.n = 9;
19625
+ return takeLatest(GET_MESSAGE_MARKERS, getMessageMarkers);
19438
19626
  case 9:
19439
- _context18.n = 10;
19440
- return takeLatest(LOAD_MORE_MESSAGES_ATTACHMENTS, loadMoreMessageAttachments);
19627
+ _context19.n = 10;
19628
+ return takeLatest(GET_MESSAGES_ATTACHMENTS, getMessageAttachments);
19441
19629
  case 10:
19442
- _context18.n = 11;
19443
- return takeLatest(ADD_REACTION, addReaction);
19630
+ _context19.n = 11;
19631
+ return takeLatest(LOAD_MORE_MESSAGES_ATTACHMENTS, loadMoreMessageAttachments);
19444
19632
  case 11:
19445
- _context18.n = 12;
19446
- return takeLatest(DELETE_REACTION, deleteReaction);
19633
+ _context19.n = 12;
19634
+ return takeLatest(ADD_REACTION, addReaction);
19447
19635
  case 12:
19448
- _context18.n = 13;
19449
- return takeEvery(LOAD_MORE_MESSAGES, loadMoreMessages);
19636
+ _context19.n = 13;
19637
+ return takeLatest(DELETE_REACTION, deleteReaction);
19450
19638
  case 13:
19451
- _context18.n = 14;
19452
- return takeEvery(GET_REACTIONS, getReactions);
19639
+ _context19.n = 14;
19640
+ return takeEvery(LOAD_MORE_MESSAGES, loadMoreMessages);
19453
19641
  case 14:
19454
- _context18.n = 15;
19455
- return takeEvery(LOAD_MORE_REACTIONS, loadMoreReactions);
19642
+ _context19.n = 15;
19643
+ return takeEvery(GET_REACTIONS, getReactions);
19456
19644
  case 15:
19457
- _context18.n = 16;
19458
- return takeEvery(PAUSE_ATTACHMENT_UPLOADING, pauseAttachmentUploading);
19645
+ _context19.n = 16;
19646
+ return takeEvery(LOAD_MORE_REACTIONS, loadMoreReactions);
19459
19647
  case 16:
19460
- _context18.n = 17;
19461
- return takeEvery(RESUME_ATTACHMENT_UPLOADING, resumeAttachmentUploading);
19648
+ _context19.n = 17;
19649
+ return takeEvery(PAUSE_ATTACHMENT_UPLOADING, pauseAttachmentUploading);
19462
19650
  case 17:
19463
- return _context18.a(2);
19651
+ _context19.n = 18;
19652
+ return takeEvery(RESUME_ATTACHMENT_UPLOADING, resumeAttachmentUploading);
19653
+ case 18:
19654
+ return _context19.a(2);
19464
19655
  }
19465
- }, _marked16$1);
19656
+ }, _marked17$1);
19466
19657
  }
19467
19658
 
19468
19659
  var _marked$4 = /*#__PURE__*/_regenerator().m(getMembers),
@@ -26884,6 +27075,7 @@ function MessageActions(_ref) {
26884
27075
  messageStatus = _ref.messageStatus,
26885
27076
  handleSelectMessage = _ref.handleSelectMessage,
26886
27077
  handleReplyMessage = _ref.handleReplyMessage,
27078
+ handleOpenInfoMessage = _ref.handleOpenInfoMessage,
26887
27079
  isThreadMessage = _ref.isThreadMessage,
26888
27080
  rtlDirection = _ref.rtlDirection,
26889
27081
  showMessageReaction = _ref.showMessageReaction,
@@ -26895,6 +27087,8 @@ function MessageActions(_ref) {
26895
27087
  showDeleteMessage = _ref.showDeleteMessage,
26896
27088
  showSelectMessage = _ref.showSelectMessage,
26897
27089
  showReportMessage = _ref.showReportMessage,
27090
+ showInfoMessage = _ref.showInfoMessage,
27091
+ infoIconOrder = _ref.infoIconOrder,
26898
27092
  reactionIcon = _ref.reactionIcon,
26899
27093
  editIcon = _ref.editIcon,
26900
27094
  copyIcon = _ref.copyIcon,
@@ -26902,6 +27096,7 @@ function MessageActions(_ref) {
26902
27096
  replyInThreadIcon = _ref.replyInThreadIcon,
26903
27097
  deleteIcon = _ref.deleteIcon,
26904
27098
  selectIcon = _ref.selectIcon,
27099
+ infoIcon = _ref.infoIcon,
26905
27100
  allowEditDeleteIncomingMessage = _ref.allowEditDeleteIncomingMessage,
26906
27101
  reportIcon = _ref.reportIcon,
26907
27102
  reactionIconOrder = _ref.reactionIconOrder,
@@ -26922,6 +27117,7 @@ function MessageActions(_ref) {
26922
27117
  forwardIconTooltipText = _ref.forwardIconTooltipText,
26923
27118
  deleteIconTooltipText = _ref.deleteIconTooltipText,
26924
27119
  selectIconTooltipText = _ref.selectIconTooltipText,
27120
+ infoIconTooltipText = _ref.infoIconTooltipText,
26925
27121
  reportIconTooltipText = _ref.reportIconTooltipText,
26926
27122
  myRole = _ref.myRole,
26927
27123
  isIncoming = _ref.isIncoming,
@@ -27050,8 +27246,20 @@ function MessageActions(_ref) {
27050
27246
  disabledColor: textSecondary,
27051
27247
  bgColor: tooltipBackground,
27052
27248
  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,
27249
+ }, selectIconTooltipText || 'Select', /*#__PURE__*/React__default.createElement(SvgArrowDown, null)), selectIcon || /*#__PURE__*/React__default.createElement(SvgCheckCircle, null))), showInfoMessage && !isIncoming && (/*#__PURE__*/React__default.createElement(Action, {
27250
+ order: infoIconOrder || 7,
27251
+ iconColor: messageActionIconsColor || iconInactive,
27252
+ hoverBackgroundColor: backgroundHovered,
27253
+ hoverIconColor: accentColor,
27254
+ onClick: function onClick() {
27255
+ return handleOpenInfoMessage();
27256
+ }
27257
+ }, /*#__PURE__*/React__default.createElement(ItemNote, {
27258
+ disabledColor: textSecondary,
27259
+ bgColor: tooltipBackground,
27260
+ direction: 'top'
27261
+ }, 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, {
27262
+ order: deleteIconOrder || 8,
27055
27263
  iconColor: messageActionIconsColor || warningColor,
27056
27264
  hoverBackgroundColor: backgroundHovered,
27057
27265
  hoverIconColor: accentColor,
@@ -27063,7 +27271,7 @@ function MessageActions(_ref) {
27063
27271
  bgColor: tooltipBackground,
27064
27272
  direction: 'top'
27065
27273
  }, 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,
27274
+ order: reportIconOrder || 9,
27067
27275
  iconColor: messageActionIconsColor || iconInactive,
27068
27276
  hoverBackgroundColor: backgroundHovered,
27069
27277
  hoverIconColor: accentColor,
@@ -29325,7 +29533,10 @@ WaveSurfer.dom = dom;
29325
29533
  var _templateObject$t, _templateObject2$p, _templateObject3$j, _templateObject4$g, _templateObject5$e, _templateObject6$c;
29326
29534
  var AudioPlayer = function AudioPlayer(_ref) {
29327
29535
  var url = _ref.url,
29328
- file = _ref.file;
29536
+ file = _ref.file,
29537
+ messagePlayed = _ref.messagePlayed,
29538
+ channelId = _ref.channelId,
29539
+ incoming = _ref.incoming;
29329
29540
  var recordingInitialState = {
29330
29541
  recordingSeconds: 0,
29331
29542
  recordingMilliseconds: 0,
@@ -29391,6 +29602,9 @@ var AudioPlayer = function AudioPlayer(_ref) {
29391
29602
  }
29392
29603
  }
29393
29604
  wavesurfer.current.playPause();
29605
+ if (!messagePlayed && incoming) {
29606
+ dispatch(markVoiceMessageAsPlayedAC(channelId, [file.messageId]));
29607
+ }
29394
29608
  }
29395
29609
  };
29396
29610
  useEffect(function () {
@@ -29568,7 +29782,10 @@ var Attachment = function Attachment(_ref) {
29568
29782
  imageAttachmentMaxHeight = _ref.imageAttachmentMaxHeight,
29569
29783
  videoAttachmentMaxWidth = _ref.videoAttachmentMaxWidth,
29570
29784
  videoAttachmentMaxHeight = _ref.videoAttachmentMaxHeight,
29571
- messageType = _ref.messageType;
29785
+ messageType = _ref.messageType,
29786
+ messagePlayed = _ref.messagePlayed,
29787
+ channelId = _ref.channelId,
29788
+ incoming = _ref.incoming;
29572
29789
  var _useColor = useColors(),
29573
29790
  accentColor = _useColor[THEME_COLORS.ACCENT],
29574
29791
  textPrimary = _useColor[THEME_COLORS.TEXT_PRIMARY],
@@ -30087,7 +30304,10 @@ var Attachment = function Attachment(_ref) {
30087
30304
  }
30088
30305
  }))))) : attachment.type === attachmentTypes.voice ? (/*#__PURE__*/React__default.createElement(AudioPlayer, {
30089
30306
  url: attachment.attachmentUrl || attachmentUrl,
30090
- file: attachment
30307
+ file: attachment,
30308
+ messagePlayed: messagePlayed,
30309
+ channelId: channelId,
30310
+ incoming: incoming
30091
30311
  })) : attachment.type === attachmentTypes.link ? null : (
30092
30312
  /*#__PURE__*/
30093
30313
  React__default.createElement(AttachmentFile$1, {
@@ -31682,6 +31902,7 @@ var MessageBody = function MessageBody(_ref) {
31682
31902
  deleteMessage = _ref$deleteMessage === void 0 ? true : _ref$deleteMessage,
31683
31903
  _ref$selectMessage = _ref.selectMessage,
31684
31904
  selectMessage = _ref$selectMessage === void 0 ? true : _ref$selectMessage,
31905
+ showInfoMessage = _ref.showInfoMessage,
31685
31906
  allowEditDeleteIncomingMessage = _ref.allowEditDeleteIncomingMessage,
31686
31907
  _ref$forwardMessage = _ref.forwardMessage,
31687
31908
  forwardMessage = _ref$forwardMessage === void 0 ? true : _ref$forwardMessage,
@@ -31694,6 +31915,7 @@ var MessageBody = function MessageBody(_ref) {
31694
31915
  replyInThreadIcon = _ref.replyInThreadIcon,
31695
31916
  forwardIcon = _ref.forwardIcon,
31696
31917
  deleteIcon = _ref.deleteIcon,
31918
+ infoIcon = _ref.infoIcon,
31697
31919
  selectIcon = _ref.selectIcon,
31698
31920
  starIcon = _ref.starIcon,
31699
31921
  staredIcon = _ref.staredIcon,
@@ -31705,6 +31927,7 @@ var MessageBody = function MessageBody(_ref) {
31705
31927
  replyInThreadIconOrder = _ref.replyInThreadIconOrder,
31706
31928
  forwardIconOrder = _ref.forwardIconOrder,
31707
31929
  deleteIconOrder = _ref.deleteIconOrder,
31930
+ infoIconOrder = _ref.infoIconOrder,
31708
31931
  selectIconOrder = _ref.selectIconOrder,
31709
31932
  starIconOrder = _ref.starIconOrder,
31710
31933
  reportIconOrder = _ref.reportIconOrder,
@@ -31718,6 +31941,7 @@ var MessageBody = function MessageBody(_ref) {
31718
31941
  selectIconTooltipText = _ref.selectIconTooltipText,
31719
31942
  starIconTooltipText = _ref.starIconTooltipText,
31720
31943
  reportIconTooltipText = _ref.reportIconTooltipText,
31944
+ infoIconTooltipText = _ref.infoIconTooltipText,
31721
31945
  messageActionIconsColor = _ref.messageActionIconsColor,
31722
31946
  messageStatusSize = _ref.messageStatusSize,
31723
31947
  messageStatusColor = _ref.messageStatusColor,
@@ -31746,6 +31970,7 @@ var MessageBody = function MessageBody(_ref) {
31746
31970
  messageTextFontSize = _ref.messageTextFontSize,
31747
31971
  messageTextLineHeight = _ref.messageTextLineHeight,
31748
31972
  handleToggleForwardMessagePopup = _ref.handleToggleForwardMessagePopup,
31973
+ handleToggleInfoMessagePopupOpen = _ref.handleToggleInfoMessagePopupOpen,
31749
31974
  messageActionsShow = _ref.messageActionsShow,
31750
31975
  closeMessageActions = _ref.closeMessageActions,
31751
31976
  handleDeletePendingMessage = _ref.handleDeletePendingMessage,
@@ -31894,6 +32119,7 @@ var MessageBody = function MessageBody(_ref) {
31894
32119
  handleCopyMessage: handleCopyMessage,
31895
32120
  handleDeletePendingMessage: handleDeletePendingMessage,
31896
32121
  handleOpenForwardMessage: handleToggleForwardMessagePopup,
32122
+ handleOpenInfoMessage: handleToggleInfoMessagePopupOpen,
31897
32123
  handleResendMessage: handleResendMessage,
31898
32124
  handleReplyMessage: _handleReplyMessage,
31899
32125
  handleReportMessage: handleToggleReportPopupOpen,
@@ -31945,7 +32171,11 @@ var MessageBody = function MessageBody(_ref) {
31945
32171
  reportIconTooltipText: reportIconTooltipText,
31946
32172
  messageActionIconsColor: messageActionIconsColor,
31947
32173
  myRole: channel.userRole,
31948
- isIncoming: message.incoming
32174
+ isIncoming: message.incoming,
32175
+ infoIconTooltipText: infoIconTooltipText,
32176
+ infoIcon: infoIcon,
32177
+ showInfoMessage: showInfoMessage,
32178
+ infoIconOrder: infoIconOrder
31949
32179
  }))), message.parentMessage && message.parentMessage.id && !isThreadMessage && (/*#__PURE__*/React__default.createElement(RepliedMessage$1, {
31950
32180
  message: message,
31951
32181
  theme: theme,
@@ -32065,7 +32295,10 @@ var MessageBody = function MessageBody(_ref) {
32065
32295
  imageAttachmentMaxHeight: imageAttachmentMaxHeight,
32066
32296
  videoAttachmentMaxWidth: videoAttachmentMaxWidth,
32067
32297
  videoAttachmentMaxHeight: videoAttachmentMaxHeight,
32068
- messageType: message.type
32298
+ messageType: message.type,
32299
+ messagePlayed: message.deliveryStatus === MESSAGE_DELIVERY_STATUS.PLAYED,
32300
+ channelId: message.channelId,
32301
+ incoming: message.incoming
32069
32302
  });
32070
32303
  }), emojisPopupOpen && emojisPopupPosition && (/*#__PURE__*/React__default.createElement(EmojiContainer, {
32071
32304
  id: message.id + "_emoji_popup_container",
@@ -32145,7 +32378,426 @@ var FrequentlyEmojisContainer = styled.div(_templateObject5$i || (_templateObjec
32145
32378
  return props.rtlDirection && '0';
32146
32379
  });
32147
32380
 
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;
32381
+ var _templateObject$C, _templateObject2$x, _templateObject3$r, _templateObject4$n, _templateObject5$j, _templateObject6$g, _templateObject7$e, _templateObject8$d, _templateObject9$b, _templateObject0$a, _templateObject1$7;
32382
+ var defaultFormatDate = function defaultFormatDate(date) {
32383
+ var m = moment(date);
32384
+ if (m.isSame(moment(), 'day')) {
32385
+ return "Today, " + m.format('HH:mm');
32386
+ }
32387
+ if (m.isSame(moment().subtract(1, 'day'), 'day')) {
32388
+ return "Yesterday, " + m.format('HH:mm');
32389
+ }
32390
+ return m.format('DD.MM.YYYY');
32391
+ };
32392
+ var MessageInfo = function MessageInfo(_ref) {
32393
+ var _tabsOrder$;
32394
+ var message = _ref.message,
32395
+ togglePopup = _ref.togglePopup,
32396
+ labels = _ref.labels,
32397
+ _ref$tabsOrder = _ref.tabsOrder,
32398
+ tabsOrder = _ref$tabsOrder === void 0 ? [].concat(message.attachments && message.attachments.length > 0 && message.attachments[0].type === 'voice' ? [{
32399
+ key: 'played',
32400
+ label: 'Played by',
32401
+ data: []
32402
+ }] : [], [{
32403
+ key: 'received',
32404
+ label: 'Delivered to',
32405
+ data: []
32406
+ }, {
32407
+ key: 'displayed',
32408
+ label: 'Seen by',
32409
+ data: []
32410
+ }]) : _ref$tabsOrder,
32411
+ _ref$showCounts = _ref.showCounts,
32412
+ showCounts = _ref$showCounts === void 0 ? false : _ref$showCounts,
32413
+ _ref$avatarSize = _ref.avatarSize,
32414
+ avatarSize = _ref$avatarSize === void 0 ? 32 : _ref$avatarSize,
32415
+ _ref$maxWidth = _ref.maxWidth,
32416
+ maxWidth = _ref$maxWidth === void 0 ? '340px' : _ref$maxWidth,
32417
+ _ref$minWidth = _ref.minWidth,
32418
+ minWidth = _ref$minWidth === void 0 ? '340px' : _ref$minWidth,
32419
+ _ref$height = _ref.height,
32420
+ height = _ref$height === void 0 ? '300px' : _ref$height,
32421
+ renderItem = _ref.renderItem,
32422
+ _ref$formatDate = _ref.formatDate,
32423
+ formatDate = _ref$formatDate === void 0 ? defaultFormatDate : _ref$formatDate,
32424
+ _ref$tabsStyles = _ref.tabsStyles,
32425
+ tabsStyles = _ref$tabsStyles === void 0 ? {} : _ref$tabsStyles,
32426
+ _ref$listItemStyles = _ref.listItemStyles,
32427
+ listItemStyles = _ref$listItemStyles === void 0 ? {} : _ref$listItemStyles,
32428
+ handleOpenUserProfile = _ref.handleOpenUserProfile,
32429
+ contacts = _ref.contacts;
32430
+ var _useColor = useColors(),
32431
+ accentColor = _useColor[THEME_COLORS.ACCENT],
32432
+ textPrimary = _useColor[THEME_COLORS.TEXT_PRIMARY],
32433
+ textSecondary = _useColor[THEME_COLORS.TEXT_SECONDARY],
32434
+ backgroundHovered = _useColor[THEME_COLORS.BACKGROUND_HOVERED],
32435
+ backgroundSections = _useColor[THEME_COLORS.BACKGROUND_SECTIONS],
32436
+ textOnPrimary = _useColor[THEME_COLORS.TEXT_ON_PRIMARY],
32437
+ border = _useColor[THEME_COLORS.BORDER];
32438
+ var dispatch = useDispatch();
32439
+ var messageMarkers = useSelector(messageMarkersSelector);
32440
+ var messagesMarkersLoadingState = useSelector(messagesMarkersLoadingStateSelector);
32441
+ var markers = useMemo(function () {
32442
+ return messageMarkers[message.channelId] && messageMarkers[message.channelId][message.id];
32443
+ }, [messageMarkers, message.channelId, message.id]);
32444
+ var _useState = useState(((_tabsOrder$ = tabsOrder[0]) === null || _tabsOrder$ === void 0 ? void 0 : _tabsOrder$.key) || 'played'),
32445
+ activeTab = _useState[0],
32446
+ setActiveTab = _useState[1];
32447
+ var _useState2 = useState(false),
32448
+ open = _useState2[0],
32449
+ setOpen = _useState2[1];
32450
+ var rootRef = useRef(null);
32451
+ var _useState3 = useState(false),
32452
+ flipAbove = _useState3[0],
32453
+ setFlipAbove = _useState3[1];
32454
+ var panelRef = useRef(null);
32455
+ var contentRef = useRef(null);
32456
+ var tabsRef = useRef(null);
32457
+ var listRef = useRef(null);
32458
+ var _useState4 = useState(0),
32459
+ panelHeightPx = _useState4[0],
32460
+ setPanelHeightPx = _useState4[1];
32461
+ var _useState5 = useState(false),
32462
+ isTransitioning = _useState5[0],
32463
+ setIsTransitioning = _useState5[1];
32464
+ var _useState6 = useState(false),
32465
+ ready = _useState6[0],
32466
+ setReady = _useState6[1];
32467
+ var _useState7 = useState(false),
32468
+ flipLocked = _useState7[0],
32469
+ setFlipLocked = _useState7[1];
32470
+ var getFromContacts = useMemo(function () {
32471
+ return getShowOnlyContactUsers();
32472
+ }, []);
32473
+ var activeMarkers = useMemo(function () {
32474
+ var list = markers && markers[activeTab] || [];
32475
+ return Array.isArray(list) ? [].concat(list).sort(sortByDateDesc) : [];
32476
+ }, [markers, activeTab]);
32477
+ var rowHeightPx = useMemo(function () {
32478
+ return (avatarSize || 32) + 24;
32479
+ }, [avatarSize]);
32480
+ var listMaxHeightPx = useMemo(function () {
32481
+ return rowHeightPx * 5 - 16;
32482
+ }, [rowHeightPx]);
32483
+ var tabItems = tabsOrder.map(function (tab) {
32484
+ switch (tab.key) {
32485
+ case 'played':
32486
+ return {
32487
+ key: tab.key,
32488
+ label: (labels === null || labels === void 0 ? void 0 : labels.playedBy) || 'Played by',
32489
+ data: activeMarkers
32490
+ };
32491
+ case 'received':
32492
+ return {
32493
+ key: tab.key,
32494
+ label: (labels === null || labels === void 0 ? void 0 : labels.receivedBy) || 'Delivered to',
32495
+ data: activeMarkers
32496
+ };
32497
+ case 'displayed':
32498
+ default:
32499
+ return {
32500
+ key: 'displayed',
32501
+ label: (labels === null || labels === void 0 ? void 0 : labels.displayedBy) || 'Seen by',
32502
+ data: activeMarkers
32503
+ };
32504
+ }
32505
+ });
32506
+ var renderRow = function renderRow(marker) {
32507
+ var _marker$user;
32508
+ var contact = contacts[((_marker$user = marker.user) === null || _marker$user === void 0 ? void 0 : _marker$user.id) || ''];
32509
+ var displayName = makeUsername(contact, marker.user, getFromContacts);
32510
+ var avatarUrl = marker.user ? marker.user.avatarUrl : '';
32511
+ var dateVal = marker.createdAt || marker.createdAt;
32512
+ var dateFormat = dateVal ? formatDate(new Date(dateVal)) : '';
32513
+ var node = /*#__PURE__*/React__default.createElement(Row$1, {
32514
+ backgroundHover: listItemStyles.hoverBackground || backgroundHovered,
32515
+ onClick: function onClick() {
32516
+ return handleOpenUserProfile === null || handleOpenUserProfile === void 0 ? void 0 : handleOpenUserProfile(marker.user);
32517
+ }
32518
+ }, /*#__PURE__*/React__default.createElement(Avatar, {
32519
+ name: displayName,
32520
+ image: avatarUrl,
32521
+ size: avatarSize,
32522
+ textSize: 12,
32523
+ setDefaultAvatar: true
32524
+ }), /*#__PURE__*/React__default.createElement(RowInfo, null, /*#__PURE__*/React__default.createElement(RowTitle, {
32525
+ color: listItemStyles.nameColor || textPrimary
32526
+ }, displayName), /*#__PURE__*/React__default.createElement(RowDate, {
32527
+ color: listItemStyles.dateColor || textSecondary
32528
+ }, dateFormat)));
32529
+ return renderItem ? renderItem(marker, node) : node;
32530
+ };
32531
+ useLayoutEffect(function () {
32532
+ var _rootRef$current;
32533
+ var container = document.getElementById('scrollableDiv');
32534
+ var anchorEl = (_rootRef$current = rootRef.current) === null || _rootRef$current === void 0 ? void 0 : _rootRef$current.parentElement;
32535
+ if (container && anchorEl) {
32536
+ var containerRect = container.getBoundingClientRect();
32537
+ var anchorRect = anchorEl.getBoundingClientRect();
32538
+ var contentEl = contentRef.current;
32539
+ var tabsEl = tabsRef.current;
32540
+ var listEl = listRef.current;
32541
+ var cs = contentEl ? getComputedStyle(contentEl) : {};
32542
+ var padTop = parseFloat((cs === null || cs === void 0 ? void 0 : cs.paddingTop) || '0') || 0;
32543
+ var padBottom = parseFloat((cs === null || cs === void 0 ? void 0 : cs.paddingBottom) || '0') || 0;
32544
+ var contentPaddingY = padTop + padBottom;
32545
+ var tabsHeight = tabsEl ? tabsEl.getBoundingClientRect().height : 0;
32546
+ var tabsMarginBottom = 8;
32547
+ var listMarginTop = 8;
32548
+ var desiredListHeight = Math.min(listEl ? listEl.scrollHeight : 0, listMaxHeightPx);
32549
+ var desiredHeight = contentPaddingY + tabsHeight + tabsMarginBottom + listMarginTop + desiredListHeight;
32550
+ var maxPx = parseInt(String(height || '300'), 10) || 300;
32551
+ var measuredTarget = Math.min(desiredHeight || 0, maxPx);
32552
+ var flipTarget = messagesMarkersLoadingState === LOADING_STATE.LOADING ? maxPx : measuredTarget;
32553
+ setPanelHeightPx(measuredTarget);
32554
+ var availableBelow = containerRect.bottom - anchorRect.bottom - 8;
32555
+ var availableAbove = anchorRect.top - containerRect.top - 8;
32556
+ var nextFlip = Boolean(flipTarget > availableBelow && flipTarget <= availableAbove);
32557
+ setFlipAbove(nextFlip);
32558
+ }
32559
+ setIsTransitioning(true);
32560
+ setOpen(true);
32561
+ setReady(true);
32562
+ setFlipLocked(true);
32563
+ }, []);
32564
+ useEffect(function () {
32565
+ var onDown = function onDown(e) {
32566
+ if (rootRef.current && !rootRef.current.contains(e.target)) {
32567
+ togglePopup();
32568
+ }
32569
+ };
32570
+ document.addEventListener('mousedown', onDown);
32571
+ return function () {
32572
+ document.removeEventListener('mousedown', onDown);
32573
+ };
32574
+ }, []);
32575
+ useEffect(function () {
32576
+ var container = document.getElementById('scrollableDiv');
32577
+ if (!container) return;
32578
+ var recalc = function recalc() {
32579
+ if (!rootRef.current || !ready) return;
32580
+ if (messagesMarkersLoadingState === LOADING_STATE.LOADING) return;
32581
+ var containerRect = container.getBoundingClientRect();
32582
+ var anchorEl = rootRef.current.parentElement;
32583
+ if (!anchorEl) return;
32584
+ var anchorRect = anchorEl.getBoundingClientRect();
32585
+ var dropdownHeight = panelHeightPx || 0;
32586
+ if (!dropdownHeight || dropdownHeight < 8) {
32587
+ var parsed = parseInt(String(height || '300'), 10);
32588
+ dropdownHeight = isNaN(parsed) ? 300 : parsed;
32589
+ }
32590
+ var availableBelow = containerRect.bottom - anchorRect.bottom - 8;
32591
+ var availableAbove = anchorRect.top - containerRect.top - 8;
32592
+ var overflowBelow = dropdownHeight > availableBelow;
32593
+ var overflowAbove = dropdownHeight > availableAbove;
32594
+ if (!isTransitioning && !flipLocked) {
32595
+ setFlipAbove(function (prev) {
32596
+ if (prev) {
32597
+ if (overflowAbove && !overflowBelow) return false;
32598
+ return true;
32599
+ }
32600
+ if (overflowBelow && !overflowAbove) return true;
32601
+ return false;
32602
+ });
32603
+ }
32604
+ };
32605
+ if (open) {
32606
+ recalc();
32607
+ var raf1 = requestAnimationFrame(recalc);
32608
+ var raf2 = requestAnimationFrame(function () {
32609
+ return requestAnimationFrame(recalc);
32610
+ });
32611
+ var t1 = setTimeout(recalc, 50);
32612
+ var t2 = setTimeout(recalc, 200);
32613
+ panelRef.current && panelRef.current.addEventListener('transitionend', recalc);
32614
+ container.addEventListener('scroll', recalc);
32615
+ window.addEventListener('resize', recalc);
32616
+ return function () {
32617
+ cancelAnimationFrame(raf1);
32618
+ cancelAnimationFrame(raf2);
32619
+ clearTimeout(t1);
32620
+ clearTimeout(t2);
32621
+ panelRef.current && panelRef.current.removeEventListener('transitionend', recalc);
32622
+ container.removeEventListener('scroll', recalc);
32623
+ window.removeEventListener('resize', recalc);
32624
+ };
32625
+ } else {
32626
+ container.addEventListener('scroll', recalc);
32627
+ window.addEventListener('resize', recalc);
32628
+ return function () {
32629
+ container.removeEventListener('scroll', recalc);
32630
+ window.removeEventListener('resize', recalc);
32631
+ };
32632
+ }
32633
+ }, [open, ready, message.id, panelHeightPx, isTransitioning, flipLocked, height]);
32634
+ useLayoutEffect(function () {
32635
+ var _rootRef$current2;
32636
+ var container = document.getElementById('scrollableDiv');
32637
+ var anchorEl = (_rootRef$current2 = rootRef.current) === null || _rootRef$current2 === void 0 ? void 0 : _rootRef$current2.parentElement;
32638
+ if (!container || !anchorEl || !ready) return;
32639
+ var containerRect = container.getBoundingClientRect();
32640
+ var anchorRect = anchorEl.getBoundingClientRect();
32641
+ var contentEl = contentRef.current;
32642
+ var tabsEl = tabsRef.current;
32643
+ var listEl = listRef.current;
32644
+ var cs = contentEl ? getComputedStyle(contentEl) : {};
32645
+ var padTop = parseFloat((cs === null || cs === void 0 ? void 0 : cs.paddingTop) || '0') || 0;
32646
+ var padBottom = parseFloat((cs === null || cs === void 0 ? void 0 : cs.paddingBottom) || '0') || 0;
32647
+ var contentPaddingY = padTop + padBottom;
32648
+ var tabsHeight = tabsEl ? tabsEl.getBoundingClientRect().height : 0;
32649
+ var tabsMarginBottom = 8;
32650
+ var listMarginTop = 8;
32651
+ var desiredListHeight = Math.min(listEl ? listEl.scrollHeight : 0, listMaxHeightPx);
32652
+ var desiredHeight = contentPaddingY + tabsHeight + tabsMarginBottom + listMarginTop + desiredListHeight;
32653
+ var maxPx = parseInt(String(height || '300'), 10);
32654
+ var measuredTarget = Math.min(desiredHeight || 0, isNaN(maxPx) ? 300 : Math.min(maxPx, desiredHeight));
32655
+ var nextHeight = Math.max(panelHeightPx || 0, measuredTarget);
32656
+ var availableBelow = containerRect.bottom - anchorRect.bottom - 8;
32657
+ var availableAbove = anchorRect.top - containerRect.top - 8;
32658
+ setFlipLocked(true);
32659
+ if (messagesMarkersLoadingState !== LOADING_STATE.LOADING) {
32660
+ var overflowBelow = nextHeight > availableBelow;
32661
+ var overflowAbove = nextHeight > availableAbove;
32662
+ setFlipAbove(function (prev) {
32663
+ if (prev) {
32664
+ if (overflowAbove && !overflowBelow) return false;
32665
+ return true;
32666
+ }
32667
+ if (overflowBelow && !overflowAbove) return true;
32668
+ return false;
32669
+ });
32670
+ }
32671
+ if (panelHeightPx !== nextHeight) {
32672
+ setIsTransitioning(true);
32673
+ setPanelHeightPx(nextHeight);
32674
+ }
32675
+ }, [ready, panelHeightPx, activeMarkers.length, messagesMarkersLoadingState, height]);
32676
+ useEffect(function () {
32677
+ if (messagesMarkersLoadingState === LOADING_STATE.LOADING) {
32678
+ setFlipLocked(true);
32679
+ }
32680
+ }, [messagesMarkersLoadingState]);
32681
+ useEffect(function () {
32682
+ var el = panelRef.current;
32683
+ if (!el) return;
32684
+ var onEnd = function onEnd(e) {
32685
+ if (e.propertyName === 'height') {
32686
+ setIsTransitioning(false);
32687
+ setTimeout(function () {
32688
+ setFlipLocked(false);
32689
+ }, 50);
32690
+ }
32691
+ };
32692
+ el.addEventListener('transitionend', onEnd);
32693
+ return function () {
32694
+ el.removeEventListener('transitionend', onEnd);
32695
+ };
32696
+ }, []);
32697
+ useEffect(function () {
32698
+ if (activeTab && message.id && message.channelId) {
32699
+ dispatch(getMessageMarkersAC(message.id, message.channelId, activeTab));
32700
+ }
32701
+ }, [activeTab, message.id, message.channelId]);
32702
+ return /*#__PURE__*/React__default.createElement(DropdownRoot, {
32703
+ ref: rootRef,
32704
+ rtl: message.incoming,
32705
+ backgroundColor: backgroundSections,
32706
+ flip: flipAbove,
32707
+ ready: ready
32708
+ }, /*#__PURE__*/React__default.createElement(Panel, {
32709
+ ref: panelRef,
32710
+ bg: backgroundSections,
32711
+ open: open,
32712
+ heightPx: panelHeightPx,
32713
+ maxHeight: height,
32714
+ maxWidth: maxWidth,
32715
+ minWidth: minWidth
32716
+ }, /*#__PURE__*/React__default.createElement(Content, {
32717
+ ref: contentRef
32718
+ }, /*#__PURE__*/React__default.createElement(Tabs, {
32719
+ ref: tabsRef
32720
+ }, tabItems.map(function (tab) {
32721
+ return /*#__PURE__*/React__default.createElement(Tab, {
32722
+ key: tab.key,
32723
+ active: activeTab === tab.key,
32724
+ activeColor: tabsStyles.activeColor || textOnPrimary,
32725
+ inactiveColor: tabsStyles.inactiveColor || textSecondary,
32726
+ onClick: function onClick() {
32727
+ return setActiveTab(tab.key);
32728
+ },
32729
+ textOnPrimary: textOnPrimary,
32730
+ textSecondary: textSecondary,
32731
+ background: activeTab === tab.key ? accentColor : 'transparent',
32732
+ borderColor: border
32733
+ }, tab.label, showCounts ? " (" + tab.data.length + ")" : '');
32734
+ })), /*#__PURE__*/React__default.createElement(List$1, {
32735
+ ref: listRef,
32736
+ maxHeight: listMaxHeightPx
32737
+ }, activeMarkers.map(function (marker) {
32738
+ var _marker$user2;
32739
+ return /*#__PURE__*/React__default.createElement(React__default.Fragment, {
32740
+ key: (((_marker$user2 = marker.user) === null || _marker$user2 === void 0 ? void 0 : _marker$user2.id) || 'deleted') + "-" + (marker.createdAt || '')
32741
+ }, renderRow(marker));
32742
+ }), !activeMarkers.length && messagesMarkersLoadingState !== LOADING_STATE.LOADING && (/*#__PURE__*/React__default.createElement(Empty, {
32743
+ color: textSecondary
32744
+ }, "No results"))))));
32745
+ };
32746
+ function sortByDateDesc(a, b) {
32747
+ var aDate = a.createdAt || a.createdAt;
32748
+ var bDate = b.createdAt || b.createdAt;
32749
+ var aTime = aDate ? new Date(aDate).getTime() : 0;
32750
+ var bTime = bDate ? new Date(bDate).getTime() : 0;
32751
+ return bTime - aTime;
32752
+ }
32753
+ var Tabs = styled.div(_templateObject$C || (_templateObject$C = _taggedTemplateLiteralLoose(["\n display: flex;\n gap: 8px;\n justify-content: start;\n margin-bottom: 8px;\n"])));
32754
+ 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) {
32755
+ return p.active ? p.textOnPrimary : p.textSecondary;
32756
+ }, function (p) {
32757
+ return p.background;
32758
+ }, function (p) {
32759
+ return p.active ? p.background : p.borderColor;
32760
+ });
32761
+ 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) {
32762
+ return p.maxHeight ? p.maxHeight + "px" : 'unset';
32763
+ });
32764
+ 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) {
32765
+ return p.backgroundHover;
32766
+ });
32767
+ 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"])));
32768
+ 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) {
32769
+ return p.color;
32770
+ });
32771
+ 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) {
32772
+ return p.color;
32773
+ });
32774
+ 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) {
32775
+ return p.color;
32776
+ });
32777
+ 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) {
32778
+ return p.flip ? 'auto' : 'calc(100% + 8px)';
32779
+ }, function (p) {
32780
+ return p.flip ? 'calc(100% + 8px)' : 'auto';
32781
+ }, function (p) {
32782
+ return p.rtl ? 'left: 4%;' : 'right: 4%;';
32783
+ }, function (_ref2) {
32784
+ var backgroundColor = _ref2.backgroundColor;
32785
+ return backgroundColor;
32786
+ }, function (p) {
32787
+ return p.ready ? 'visible' : 'hidden';
32788
+ });
32789
+ 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) {
32790
+ return p.bg;
32791
+ }, function (p) {
32792
+ return p.open ? Math.min(p.heightPx || 0, parseInt(String(p.maxHeight || '300'), 10) || 300) + "px" : '0';
32793
+ }, function (p) {
32794
+ return p.maxWidth || '340px';
32795
+ }, function (p) {
32796
+ return p.minWidth || '340px';
32797
+ });
32798
+ 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"])));
32799
+
32800
+ 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
32801
  var Message$1 = function Message(_ref) {
32150
32802
  var message = _ref.message,
32151
32803
  channel = _ref.channel,
@@ -32205,6 +32857,8 @@ var Message$1 = function Message(_ref) {
32205
32857
  deleteMessage = _ref$deleteMessage === void 0 ? true : _ref$deleteMessage,
32206
32858
  _ref$selectMessage = _ref.selectMessage,
32207
32859
  selectMessage = _ref$selectMessage === void 0 ? true : _ref$selectMessage,
32860
+ _ref$showInfoMessage = _ref.showInfoMessage,
32861
+ showInfoMessage = _ref$showInfoMessage === void 0 ? true : _ref$showInfoMessage,
32208
32862
  allowEditDeleteIncomingMessage = _ref.allowEditDeleteIncomingMessage,
32209
32863
  _ref$forwardMessage = _ref.forwardMessage,
32210
32864
  forwardMessage = _ref$forwardMessage === void 0 ? true : _ref$forwardMessage,
@@ -32233,6 +32887,7 @@ var Message$1 = function Message(_ref) {
32233
32887
  selectIconOrder = _ref.selectIconOrder,
32234
32888
  starIconOrder = _ref.starIconOrder,
32235
32889
  reportIconOrder = _ref.reportIconOrder,
32890
+ infoIconOrder = _ref.infoIconOrder,
32236
32891
  reactionIconTooltipText = _ref.reactionIconTooltipText,
32237
32892
  editIconTooltipText = _ref.editIconTooltipText,
32238
32893
  copyIconTooltipText = _ref.copyIconTooltipText,
@@ -32243,6 +32898,7 @@ var Message$1 = function Message(_ref) {
32243
32898
  selectIconTooltipText = _ref.selectIconTooltipText,
32244
32899
  starIconTooltipText = _ref.starIconTooltipText,
32245
32900
  reportIconTooltipText = _ref.reportIconTooltipText,
32901
+ infoIconTooltipText = _ref.infoIconTooltipText,
32246
32902
  messageActionIconsColor = _ref.messageActionIconsColor,
32247
32903
  messageStatusSize = _ref.messageStatusSize,
32248
32904
  messageStatusColor = _ref.messageStatusColor,
@@ -32294,7 +32950,9 @@ var Message$1 = function Message(_ref) {
32294
32950
  messageTextFontSize = _ref.messageTextFontSize,
32295
32951
  messageTextLineHeight = _ref.messageTextLineHeight,
32296
32952
  messageTimeColorOnAttachment = _ref.messageTimeColorOnAttachment,
32297
- shouldOpenUserProfileForMention = _ref.shouldOpenUserProfileForMention;
32953
+ shouldOpenUserProfileForMention = _ref.shouldOpenUserProfileForMention,
32954
+ _ref$showInfoMessageP = _ref.showInfoMessageProps,
32955
+ showInfoMessageProps = _ref$showInfoMessageP === void 0 ? {} : _ref$showInfoMessageP;
32298
32956
  var _useColor = useColors(),
32299
32957
  accentColor = _useColor[THEME_COLORS.ACCENT],
32300
32958
  backgroundSections = _useColor[THEME_COLORS.BACKGROUND_SECTIONS],
@@ -32316,29 +32974,32 @@ var Message$1 = function Message(_ref) {
32316
32974
  reportPopupOpen = _useState3[0],
32317
32975
  setReportPopupOpen = _useState3[1];
32318
32976
  var _useState4 = useState(false),
32319
- messageActionsShow = _useState4[0],
32320
- setMessageActionsShow = _useState4[1];
32977
+ infoPopupOpen = _useState4[0],
32978
+ setInfoPopupOpen = _useState4[1];
32321
32979
  var _useState5 = useState(false),
32322
- emojisPopupOpen = _useState5[0],
32323
- setEmojisPopupOpen = _useState5[1];
32980
+ messageActionsShow = _useState5[0],
32981
+ setMessageActionsShow = _useState5[1];
32324
32982
  var _useState6 = useState(false),
32325
- frequentlyEmojisOpen = _useState6[0],
32326
- setFrequentlyEmojisOpen = _useState6[1];
32983
+ emojisPopupOpen = _useState6[0],
32984
+ setEmojisPopupOpen = _useState6[1];
32327
32985
  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({
32986
+ frequentlyEmojisOpen = _useState7[0],
32987
+ setFrequentlyEmojisOpen = _useState7[1];
32988
+ var _useState8 = useState(false),
32989
+ reactionsPopupOpen = _useState8[0],
32990
+ setReactionsPopupOpen = _useState8[1];
32991
+ var _useState9 = useState(0),
32992
+ reactionsPopupPosition = _useState9[0],
32993
+ setReactionsPopupPosition = _useState9[1];
32994
+ var _useState0 = useState(''),
32995
+ emojisPopupPosition = _useState0[0],
32996
+ setEmojisPopupPosition = _useState0[1];
32997
+ var _useState1 = useState({
32337
32998
  left: 0,
32338
32999
  right: 0
32339
33000
  }),
32340
- reactionsPopupHorizontalPosition = _useState0[0],
32341
- setReactionsPopupHorizontalPosition = _useState0[1];
33001
+ reactionsPopupHorizontalPosition = _useState1[0],
33002
+ setReactionsPopupHorizontalPosition = _useState1[1];
32342
33003
  var scrollToNewMessage = useSelector(scrollToNewMessageSelector, shallowEqual);
32343
33004
  var messageItemRef = useRef();
32344
33005
  var isVisible = useOnScreen(messageItemRef);
@@ -32374,6 +33035,10 @@ var Message$1 = function Message(_ref) {
32374
33035
  setMessageActionsShow(false);
32375
33036
  stopScrolling(!forwardPopupOpen);
32376
33037
  };
33038
+ var handleToggleInfoMessagePopupOpen = function handleToggleInfoMessagePopupOpen() {
33039
+ setInfoPopupOpen(!infoPopupOpen);
33040
+ setMessageActionsShow(false);
33041
+ };
32377
33042
  var handleReplyMessage = function handleReplyMessage(threadReply) {
32378
33043
  if (threadReply) ; else {
32379
33044
  dispatch(setMessageForReplyAC(message));
@@ -32631,6 +33296,7 @@ var Message$1 = function Message(_ref) {
32631
33296
  emojisPopupPosition: emojisPopupPosition,
32632
33297
  handleSetMessageForEdit: toggleEditMode,
32633
33298
  handleResendMessage: handleResendMessage,
33299
+ handleOpenInfoMessage: handleToggleInfoMessagePopupOpen,
32634
33300
  handleOpenDeleteMessage: handleToggleDeleteMessagePopup,
32635
33301
  handleOpenForwardMessage: handleToggleForwardMessagePopup,
32636
33302
  handleCopyMessage: handleCopyMessage,
@@ -32683,6 +33349,7 @@ var Message$1 = function Message(_ref) {
32683
33349
  replyMessageInThread: replyMessageInThread,
32684
33350
  deleteMessage: deleteMessage,
32685
33351
  selectMessage: selectMessage,
33352
+ showInfoMessage: showInfoMessage,
32686
33353
  allowEditDeleteIncomingMessage: allowEditDeleteIncomingMessage,
32687
33354
  forwardMessage: forwardMessage,
32688
33355
  reportMessage: reportMessage,
@@ -32707,6 +33374,7 @@ var Message$1 = function Message(_ref) {
32707
33374
  selectIconOrder: selectIconOrder,
32708
33375
  starIconOrder: starIconOrder,
32709
33376
  reportIconOrder: reportIconOrder,
33377
+ infoIconOrder: infoIconOrder,
32710
33378
  reactionIconTooltipText: reactionIconTooltipText,
32711
33379
  editIconTooltipText: editIconTooltipText,
32712
33380
  copyIconTooltipText: copyIconTooltipText,
@@ -32717,6 +33385,7 @@ var Message$1 = function Message(_ref) {
32717
33385
  selectIconTooltipText: selectIconTooltipText,
32718
33386
  starIconTooltipText: starIconTooltipText,
32719
33387
  reportIconTooltipText: reportIconTooltipText,
33388
+ infoIconTooltipText: infoIconTooltipText,
32720
33389
  messageActionIconsColor: messageActionIconsColor,
32721
33390
  messageStatusSize: messageStatusSize,
32722
33391
  messageStatusColor: messageStatusColor,
@@ -32750,6 +33419,7 @@ var Message$1 = function Message(_ref) {
32750
33419
  setMessageActionsShow: setMessageActionsShow,
32751
33420
  closeMessageActions: closeMessageActions,
32752
33421
  handleToggleForwardMessagePopup: handleToggleForwardMessagePopup,
33422
+ handleToggleInfoMessagePopupOpen: handleToggleInfoMessagePopupOpen,
32753
33423
  handleReplyMessage: handleReplyMessage,
32754
33424
  handleToggleDeleteMessagePopup: handleToggleDeleteMessagePopup,
32755
33425
  handleToggleReportPopupOpen: handleToggleReportPopupOpen,
@@ -32857,16 +33527,22 @@ var Message$1 = function Message(_ref) {
32857
33527
  togglePopup: handleToggleForwardMessagePopup,
32858
33528
  buttonText: 'Forward',
32859
33529
  title: 'Forward message'
32860
- })));
33530
+ })), infoPopupOpen && (/*#__PURE__*/React__default.createElement(MessageInfo, Object.assign({
33531
+ message: message,
33532
+ togglePopup: handleToggleInfoMessagePopupOpen
33533
+ }, showInfoMessageProps, {
33534
+ contacts: contactsMap,
33535
+ handleOpenUserProfile: handleOpenUserProfile
33536
+ }))));
32861
33537
  };
32862
33538
  var Message$2 = /*#__PURE__*/React__default.memo(Message$1, function (prevProps, nextProps) {
32863
33539
  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
33540
  });
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) {
33541
+ 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"])));
33542
+ 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
33543
  return props.color;
32868
33544
  });
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) {
33545
+ 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
33546
  return props.margin || '0 8px 0 0';
32871
33547
  }, function (props) {
32872
33548
  return props.isLastReaction && '0';
@@ -32885,26 +33561,26 @@ var MessageReaction = styled.span(_templateObject3$r || (_templateObject3$r = _t
32885
33561
  }, function (props) {
32886
33562
  return props.backgroundColor;
32887
33563
  });
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) {
33564
+ 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
33565
  return props.color;
32890
33566
  });
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) {
33567
+ 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
33568
  return !props.rtl && '-24px';
32893
33569
  }, function (props) {
32894
33570
  return props.rtl && '-24px';
32895
33571
  });
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) {
33572
+ var ErrorIconWrapper = styled(SvgErrorIcon)(_templateObject6$h || (_templateObject6$h = _taggedTemplateLiteralLoose(["\n width: 20px;\n height: 20px;\n"])));
33573
+ 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
33574
  return !props.disabled && 'pointer';
32899
33575
  }, function (props) {
32900
33576
  return props.activeColor;
32901
33577
  });
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) {
33578
+ 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
33579
  return props.borderColor;
32904
33580
  }, function (props) {
32905
33581
  return props.disabled && '0.5';
32906
33582
  });
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) {
33583
+ 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
33584
  return props.rtlDirection && 'auto';
32909
33585
  }, function (props) {
32910
33586
  return !props.rtlDirection && 'auto';
@@ -32923,10 +33599,10 @@ var ReactionsContainer = styled.div(_templateObject9$b || (_templateObject9$b =
32923
33599
  }, function (props) {
32924
33600
  return props.isReacted ? '16px' : '0';
32925
33601
  });
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) {
33602
+ 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
33603
  return props.rtlDirection && 'ltr';
32928
33604
  });
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) {
33605
+ 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
33606
  return props.height || '14px';
32931
33607
  });
32932
33608
  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 +33647,7 @@ var HiddenMessageProperty;
32971
33647
  HiddenMessageProperty["hideAfterSendMessage"] = "hideAfterSendMessage";
32972
33648
  })(HiddenMessageProperty || (HiddenMessageProperty = {}));
32973
33649
 
32974
- var _templateObject$D, _templateObject2$y, _templateObject3$s, _templateObject4$o, _templateObject5$k, _templateObject6$h, _templateObject7$f, _templateObject8$e, _templateObject9$c, _templateObject0$b, _templateObject1$8;
33650
+ var _templateObject$E, _templateObject2$z, _templateObject3$t, _templateObject4$p, _templateObject5$l, _templateObject6$i, _templateObject7$g, _templateObject8$f, _templateObject9$d, _templateObject0$c, _templateObject1$9;
32975
33651
  var CreateMessageDateDivider = function CreateMessageDateDivider(_ref) {
32976
33652
  var lastIndex = _ref.lastIndex,
32977
33653
  currentMessageDate = _ref.currentMessageDate,
@@ -33048,6 +33724,7 @@ var MessageList = function MessageList(_ref2) {
33048
33724
  forwardMessage = _ref2.forwardMessage,
33049
33725
  deleteMessage = _ref2.deleteMessage,
33050
33726
  selectMessage = _ref2.selectMessage,
33727
+ showInfoMessage = _ref2.showInfoMessage,
33051
33728
  reportMessage = _ref2.reportMessage,
33052
33729
  reactionIcon = _ref2.reactionIcon,
33053
33730
  editIcon = _ref2.editIcon,
@@ -33094,6 +33771,7 @@ var MessageList = function MessageList(_ref2) {
33094
33771
  selectIconOrder = _ref2.selectIconOrder,
33095
33772
  starIconOrder = _ref2.starIconOrder,
33096
33773
  reportIconOrder = _ref2.reportIconOrder,
33774
+ infoIconOrder = _ref2.infoIconOrder,
33097
33775
  reactionIconTooltipText = _ref2.reactionIconTooltipText,
33098
33776
  editIconTooltipText = _ref2.editIconTooltipText,
33099
33777
  copyIconTooltipText = _ref2.copyIconTooltipText,
@@ -33101,6 +33779,7 @@ var MessageList = function MessageList(_ref2) {
33101
33779
  replyInThreadIconTooltipText = _ref2.replyInThreadIconTooltipText,
33102
33780
  forwardIconTooltipText = _ref2.forwardIconTooltipText,
33103
33781
  deleteIconTooltipText = _ref2.deleteIconTooltipText,
33782
+ infoIconTooltipText = _ref2.infoIconTooltipText,
33104
33783
  selectIconTooltipText = _ref2.selectIconTooltipText,
33105
33784
  starIconTooltipText = _ref2.starIconTooltipText,
33106
33785
  reportIconTooltipText = _ref2.reportIconTooltipText,
@@ -33153,7 +33832,9 @@ var MessageList = function MessageList(_ref2) {
33153
33832
  messageTimeColor = _ref2.messageTimeColor,
33154
33833
  messageStatusAndTimeLineHeight = _ref2.messageStatusAndTimeLineHeight,
33155
33834
  hiddenMessagesProperties = _ref2.hiddenMessagesProperties,
33156
- shouldOpenUserProfileForMention = _ref2.shouldOpenUserProfileForMention;
33835
+ shouldOpenUserProfileForMention = _ref2.shouldOpenUserProfileForMention,
33836
+ _ref2$showInfoMessage = _ref2.showInfoMessageProps,
33837
+ showInfoMessageProps = _ref2$showInfoMessage === void 0 ? {} : _ref2$showInfoMessage;
33157
33838
  var _useColor = useColors(),
33158
33839
  outgoingMessageBackground = _useColor[THEME_COLORS.OUTGOING_MESSAGE_BACKGROUND],
33159
33840
  themeBackgroundColor = _useColor[THEME_COLORS.BACKGROUND],
@@ -33896,6 +34577,7 @@ var MessageList = function MessageList(_ref2) {
33896
34577
  replyMessageInThread: replyMessageInThread,
33897
34578
  deleteMessage: deleteMessage,
33898
34579
  selectMessage: selectMessage,
34580
+ showInfoMessage: showInfoMessage,
33899
34581
  allowEditDeleteIncomingMessage: allowEditDeleteIncomingMessage,
33900
34582
  reportMessage: reportMessage,
33901
34583
  reactionIcon: reactionIcon,
@@ -33921,6 +34603,7 @@ var MessageList = function MessageList(_ref2) {
33921
34603
  replyInThreadIconOrder: replyInThreadIconOrder,
33922
34604
  forwardIconOrder: forwardIconOrder,
33923
34605
  deleteIconOrder: deleteIconOrder,
34606
+ infoIconOrder: infoIconOrder,
33924
34607
  selectIconOrder: selectIconOrder,
33925
34608
  starIconOrder: starIconOrder,
33926
34609
  reportIconOrder: reportIconOrder,
@@ -33931,6 +34614,7 @@ var MessageList = function MessageList(_ref2) {
33931
34614
  replyInThreadIconTooltipText: replyInThreadIconTooltipText,
33932
34615
  forwardIconTooltipText: forwardIconTooltipText,
33933
34616
  deleteIconTooltipText: deleteIconTooltipText,
34617
+ infoIconTooltipText: infoIconTooltipText,
33934
34618
  selectIconTooltipText: selectIconTooltipText,
33935
34619
  starIconTooltipText: starIconTooltipText,
33936
34620
  reportIconTooltipText: reportIconTooltipText,
@@ -33980,7 +34664,8 @@ var MessageList = function MessageList(_ref2) {
33980
34664
  messageTimeFontSize: messageTimeFontSize,
33981
34665
  messageTimeColor: messageTimeColor,
33982
34666
  messageStatusAndTimeLineHeight: messageStatusAndTimeLineHeight,
33983
- shouldOpenUserProfileForMention: shouldOpenUserProfileForMention
34667
+ shouldOpenUserProfileForMention: shouldOpenUserProfileForMention,
34668
+ showInfoMessageProps: showInfoMessageProps
33984
34669
  }))), isUnreadMessage ? (/*#__PURE__*/React__default.createElement(MessageDivider, {
33985
34670
  theme: theme,
33986
34671
  newMessagesSeparatorTextColor: newMessagesSeparatorTextColor,
@@ -34010,14 +34695,14 @@ var MessageList = function MessageList(_ref2) {
34010
34695
  attachmentsPreview: attachmentsPreview
34011
34696
  })))));
34012
34697
  };
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) {
34698
+ 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
34699
  return props.backgroundColor;
34015
34700
  }, function (props) {
34016
34701
  return props.thumbColor;
34017
34702
  });
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) {
34703
+ var EmptyDiv = styled.div(_templateObject2$z || (_templateObject2$z = _taggedTemplateLiteralLoose(["\n height: 300px;\n"])));
34704
+ 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"])));
34705
+ 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
34706
  return props.topOffset ? props.topOffset + 22 + "px" : '22px';
34022
34707
  }, function (props) {
34023
34708
  return props.marginTop;
@@ -34036,19 +34721,19 @@ var MessageTopDate = styled.div(_templateObject4$o || (_templateObject4$o = _tag
34036
34721
  }, function (props) {
34037
34722
  return props.dateDividerBorderRadius || '14px';
34038
34723
  });
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) {
34724
+ 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
34725
  return props.topOffset ? props.topOffset + 2 + "px" : 0;
34041
34726
  }, function (props) {
34042
34727
  return props.height ? props.height + 30 + "px" : '100%';
34043
34728
  }, function (props) {
34044
34729
  return props.backgroundColor;
34045
34730
  });
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) {
34731
+ 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
34732
  return props.backgroundColor;
34048
34733
  }, function (props) {
34049
34734
  return props.iconColor;
34050
34735
  });
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) {
34736
+ 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
34737
  return props.borderColor;
34053
34738
  }, function (props) {
34054
34739
  return props.margin || '12px 32px 32px';
@@ -34061,16 +34746,16 @@ var DropAttachmentArea = styled.div(_templateObject7$f || (_templateObject7$f =
34061
34746
  }, IconWrapper$1, function (props) {
34062
34747
  return props.iconBackgroundColor;
34063
34748
  });
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) {
34749
+ 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
34750
  return props.highlightBg || '#d5d5d5';
34066
34751
  });
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) {
34752
+ 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
34753
  return props.color;
34069
34754
  });
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) {
34755
+ 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
34756
  return props.color;
34072
34757
  });
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) {
34758
+ 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
34759
  return props.color;
34075
34760
  });
34076
34761
 
@@ -34110,6 +34795,7 @@ var MessagesContainer = function MessagesContainer(_ref) {
34110
34795
  forwardMessage = _ref.forwardMessage,
34111
34796
  deleteMessage = _ref.deleteMessage,
34112
34797
  selectMessage = _ref.selectMessage,
34798
+ showInfoMessage = _ref.showInfoMessage,
34113
34799
  reportMessage = _ref.reportMessage,
34114
34800
  reactionIcon = _ref.reactionIcon,
34115
34801
  editIcon = _ref.editIcon,
@@ -34156,6 +34842,7 @@ var MessagesContainer = function MessagesContainer(_ref) {
34156
34842
  selectIconOrder = _ref.selectIconOrder,
34157
34843
  starIconOrder = _ref.starIconOrder,
34158
34844
  reportIconOrder = _ref.reportIconOrder,
34845
+ infoIconOrder = _ref.infoIconOrder,
34159
34846
  reactionIconTooltipText = _ref.reactionIconTooltipText,
34160
34847
  editIconTooltipText = _ref.editIconTooltipText,
34161
34848
  copyIconTooltipText = _ref.copyIconTooltipText,
@@ -34166,6 +34853,7 @@ var MessagesContainer = function MessagesContainer(_ref) {
34166
34853
  selectIconTooltipText = _ref.selectIconTooltipText,
34167
34854
  starIconTooltipText = _ref.starIconTooltipText,
34168
34855
  reportIconTooltipText = _ref.reportIconTooltipText,
34856
+ infoIconTooltipText = _ref.infoIconTooltipText,
34169
34857
  messageActionIconsColor = _ref.messageActionIconsColor,
34170
34858
  dateDividerFontSize = _ref.dateDividerFontSize,
34171
34859
  dateDividerTextColor = _ref.dateDividerTextColor,
@@ -34216,7 +34904,9 @@ var MessagesContainer = function MessagesContainer(_ref) {
34216
34904
  messageStatusAndTimeLineHeight = _ref.messageStatusAndTimeLineHeight,
34217
34905
  _ref$hiddenMessagesPr = _ref.hiddenMessagesProperties,
34218
34906
  hiddenMessagesProperties = _ref$hiddenMessagesPr === void 0 ? [] : _ref$hiddenMessagesPr,
34219
- shouldOpenUserProfileForMention = _ref.shouldOpenUserProfileForMention;
34907
+ shouldOpenUserProfileForMention = _ref.shouldOpenUserProfileForMention,
34908
+ _ref$showInfoMessageP = _ref.showInfoMessageProps,
34909
+ showInfoMessageProps = _ref$showInfoMessageP === void 0 ? {} : _ref$showInfoMessageP;
34220
34910
  return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(MessageList, {
34221
34911
  fontFamily: fontFamily,
34222
34912
  ownMessageOnRightSide: ownMessageOnRightSide,
@@ -34247,6 +34937,7 @@ var MessagesContainer = function MessagesContainer(_ref) {
34247
34937
  forwardMessage: forwardMessage,
34248
34938
  deleteMessage: deleteMessage,
34249
34939
  selectMessage: selectMessage,
34940
+ showInfoMessage: showInfoMessage,
34250
34941
  reportMessage: reportMessage,
34251
34942
  reactionIcon: reactionIcon,
34252
34943
  editIcon: editIcon,
@@ -34289,6 +34980,7 @@ var MessagesContainer = function MessagesContainer(_ref) {
34289
34980
  forwardIconOrder: forwardIconOrder,
34290
34981
  deleteIconOrder: deleteIconOrder,
34291
34982
  selectIconOrder: selectIconOrder,
34983
+ infoIconOrder: infoIconOrder,
34292
34984
  starIconOrder: starIconOrder,
34293
34985
  reportIconOrder: reportIconOrder,
34294
34986
  reactionIconTooltipText: reactionIconTooltipText,
@@ -34301,6 +34993,7 @@ var MessagesContainer = function MessagesContainer(_ref) {
34301
34993
  selectIconTooltipText: selectIconTooltipText,
34302
34994
  starIconTooltipText: starIconTooltipText,
34303
34995
  reportIconTooltipText: reportIconTooltipText,
34996
+ infoIconTooltipText: infoIconTooltipText,
34304
34997
  messageActionIconsColor: messageActionIconsColor,
34305
34998
  dateDividerFontSize: dateDividerFontSize,
34306
34999
  dateDividerTextColor: dateDividerTextColor,
@@ -34343,7 +35036,8 @@ var MessagesContainer = function MessagesContainer(_ref) {
34343
35036
  messageTimeColor: messageTimeColor,
34344
35037
  messageStatusAndTimeLineHeight: messageStatusAndTimeLineHeight,
34345
35038
  hiddenMessagesProperties: hiddenMessagesProperties,
34346
- shouldOpenUserProfileForMention: shouldOpenUserProfileForMention
35039
+ shouldOpenUserProfileForMention: shouldOpenUserProfileForMention,
35040
+ showInfoMessageProps: showInfoMessageProps
34347
35041
  }));
34348
35042
  };
34349
35043
 
@@ -34455,7 +35149,7 @@ function $isMentionNode(node) {
34455
35149
  return node instanceof MentionNode;
34456
35150
  }
34457
35151
 
34458
- var _templateObject$E, _templateObject2$z, _templateObject3$t, _templateObject4$p, _templateObject5$l;
35152
+ var _templateObject$F, _templateObject2$A, _templateObject3$u, _templateObject4$q, _templateObject5$m;
34459
35153
  var PUNCTUATION = '\\.,\\+\\*\\?\\$\\@\\|#{}\\(\\)\\^\\-\\[\\]\\\\/!%\'"~=<>_:;';
34460
35154
  var NAME = '\\b[A-Z][^\\s' + PUNCTUATION + ']';
34461
35155
  var DocumentMentionsRegex = {
@@ -34735,8 +35429,8 @@ function MentionsPlugin(_ref3) {
34735
35429
  }
34736
35430
  });
34737
35431
  }
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) {
35432
+ 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"])));
35433
+ 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
35434
  return props.backgroundColor;
34741
35435
  }, function (props) {
34742
35436
  return props.withBorder && "1px solid " + props.borderColor;
@@ -34745,11 +35439,11 @@ var MentionsList = styled.ul(_templateObject2$z || (_templateObject2$z = _tagged
34745
35439
  }, function (props) {
34746
35440
  return props.hidden ? 'hidden' : 'visible';
34747
35441
  });
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) {
35442
+ 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
35443
  return props.isActiveItem && props.activeBackgroundColor;
34750
35444
  }, 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) {
35445
+ var UserNamePresence$2 = styled.div(_templateObject4$q || (_templateObject4$q = _taggedTemplateLiteralLoose(["\n width: calc(100% - 44px);\n margin-left: 12px;\n"])));
35446
+ 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
35447
  return props.color;
34754
35448
  });
34755
35449
 
@@ -34882,7 +35576,7 @@ function SvgUnderline(props) {
34882
35576
  }))));
34883
35577
  }
34884
35578
 
34885
- var _templateObject$F, _templateObject2$A;
35579
+ var _templateObject$G, _templateObject2$B;
34886
35580
  function mergeRegister() {
34887
35581
  for (var _len = arguments.length, func = new Array(_len), _key = 0; _key < _len; _key++) {
34888
35582
  func[_key] = arguments[_key];
@@ -35263,10 +35957,10 @@ function FloatingTextFormatToolbarPlugin(_ref3) {
35263
35957
  editor = _useLexicalComposerCo[0];
35264
35958
  return useFloatingTextFormatToolbar(editor, anchorElem);
35265
35959
  }
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) {
35960
+ 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
35961
  return props.popupColor;
35268
35962
  });
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) {
35963
+ 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
35964
  return props.iconColor;
35271
35965
  }, function (props) {
35272
35966
  return props.isActive && "\n color: " + props.hoverIconColor + ";\n background-color: " + props.hoverBackgroundColor + ";\n ";
@@ -35589,7 +36283,7 @@ function FormatMessagePlugin(_ref) {
35589
36283
  return null;
35590
36284
  }
35591
36285
 
35592
- var _templateObject$G, _templateObject2$B, _templateObject3$u, _templateObject4$q, _templateObject5$m, _templateObject6$i, _templateObject7$g, _templateObject8$f;
36286
+ var _templateObject$H, _templateObject2$C, _templateObject3$v, _templateObject4$r, _templateObject5$n, _templateObject6$j, _templateObject7$h, _templateObject8$g;
35593
36287
  var EmojiIcon$1 = function EmojiIcon(_ref) {
35594
36288
  var collectionName = _ref.collectionName;
35595
36289
  switch (collectionName) {
@@ -35784,7 +36478,7 @@ function EmojisPopup$1(_ref2) {
35784
36478
  }));
35785
36479
  }))));
35786
36480
  }
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) {
36481
+ 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
36482
  return props.leftPosition ? 'fixed' : props.relativePosition ? 'relative' : 'absolute';
35789
36483
  }, function (props) {
35790
36484
  return props.rightSide ? "calc(" + props.leftPosition + " - 250px)" : props.leftPosition || (props.rtlDirection ? '' : props.rightSide ? '' : '5px');
@@ -35805,23 +36499,23 @@ var Container$i = styled.div(_templateObject$G || (_templateObject$G = _taggedTe
35805
36499
  }, function (props) {
35806
36500
  return props.rendered && "\n height: 225px;\n ";
35807
36501
  });
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) {
36502
+ 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
36503
  return props.color;
35810
36504
  }, function (props) {
35811
36505
  return props.padding || '6px 18px';
35812
36506
  });
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) {
36507
+ 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"])));
36508
+ 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
36509
  return props.iconColor;
35816
36510
  });
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) {
36511
+ var CollectionPointer$1 = styled.span(_templateObject5$n || (_templateObject5$n = _taggedTemplateLiteralLoose([""])));
36512
+ var AllEmojis$1 = styled.ul(_templateObject6$j || (_templateObject6$j = _taggedTemplateLiteralLoose(["\n overflow: hidden;\n padding: 0 8px 8px;\n margin: 0;\n"])));
36513
+ 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
36514
  return props.emojisCategoryIconsPosition !== 'top' && "1px solid " + props.borderColor;
35821
36515
  }, function (props) {
35822
36516
  return props.emojisCategoryIconsPosition === 'top' && "1px solid " + props.borderColor;
35823
36517
  });
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) {
36518
+ 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
36519
  return props.hoverBackgroundColor;
35826
36520
  });
35827
36521
 
@@ -36022,7 +36716,7 @@ function SvgRecordButton(props) {
36022
36716
  })));
36023
36717
  }
36024
36718
 
36025
- var _templateObject$H, _templateObject2$C, _templateObject3$v, _templateObject4$r, _templateObject5$n, _templateObject6$j, _templateObject7$h;
36719
+ var _templateObject$I, _templateObject2$D, _templateObject3$w, _templateObject4$s, _templateObject5$o, _templateObject6$k, _templateObject7$i;
36026
36720
  var shouldDraw = false;
36027
36721
  var AudioRecord = function AudioRecord(_ref) {
36028
36722
  var sendRecordedFile = _ref.sendRecordedFile,
@@ -36577,10 +37271,10 @@ var AudioRecord = function AudioRecord(_ref) {
36577
37271
  iconColor: accentColor
36578
37272
  }, showRecording || currentRecordedFile ? /*#__PURE__*/React__default.createElement(SvgSend, null) : /*#__PURE__*/React__default.createElement(SvgRecordButton, null)));
36579
37273
  };
36580
- var Container$j = styled.div(_templateObject$H || (_templateObject$H = _taggedTemplateLiteralLoose(["\n width: 32px;\n position: relative;\n display: flex;\n align-items: center;\n justify-content: flex-end;\n ", ";\n transition: all 0.3s ease-in-out;\n"])), function (props) {
37274
+ var Container$j = styled.div(_templateObject$I || (_templateObject$I = _taggedTemplateLiteralLoose(["\n width: 32px;\n position: relative;\n display: flex;\n align-items: center;\n justify-content: flex-end;\n ", ";\n transition: all 0.3s ease-in-out;\n"])), function (props) {
36581
37275
  return props.recording && "width: 400px";
36582
37276
  });
36583
- var AudioWrapper = styled.div(_templateObject2$C || (_templateObject2$C = _taggedTemplateLiteralLoose(["\n position: relative;\n display: flex;\n align-items: center;\n height: 36px;\n width: ", ";\n overflow: hidden;\n margin: ", ";\n background-color: ", ";\n padding: ", ";\n border-radius: 20px;\n"])), function (props) {
37277
+ var AudioWrapper = styled.div(_templateObject2$D || (_templateObject2$D = _taggedTemplateLiteralLoose(["\n position: relative;\n display: flex;\n align-items: center;\n height: 36px;\n width: ", ";\n overflow: hidden;\n margin: ", ";\n background-color: ", ";\n padding: ", ";\n border-radius: 20px;\n"])), function (props) {
36584
37278
  return props.recording ? 'calc(100% - 84px)' : '0';
36585
37279
  }, function (props) {
36586
37280
  return props.recording ? '0 8px' : '0';
@@ -36589,10 +37283,10 @@ var AudioWrapper = styled.div(_templateObject2$C || (_templateObject2$C = _tagge
36589
37283
  }, function (props) {
36590
37284
  return props.recording ? '0 12px 0 0' : '0';
36591
37285
  });
36592
- var RecordIconWrapper = styled.span(_templateObject3$v || (_templateObject3$v = _taggedTemplateLiteralLoose(["\n display: flex;\n cursor: pointer;\n > svg {\n color: ", ";\n }\n"])), function (props) {
37286
+ var RecordIconWrapper = styled.span(_templateObject3$w || (_templateObject3$w = _taggedTemplateLiteralLoose(["\n display: flex;\n cursor: pointer;\n > svg {\n color: ", ";\n }\n"])), function (props) {
36593
37287
  return props.iconColor;
36594
37288
  });
36595
- var AudioVisualization$1 = styled.div(_templateObject4$r || (_templateObject4$r = _taggedTemplateLiteralLoose(["\n position: absolute;\n opacity: ", ";\n z-index: ", ";\n visibility: ", ";\n width: 300px;\n height: 28px;\n max-width: calc(100% - 100px);\n left: 40px;\n background-color: ", ";\n"])), function (_ref5) {
37289
+ var AudioVisualization$1 = styled.div(_templateObject4$s || (_templateObject4$s = _taggedTemplateLiteralLoose(["\n position: absolute;\n opacity: ", ";\n z-index: ", ";\n visibility: ", ";\n width: 300px;\n height: 28px;\n max-width: calc(100% - 100px);\n left: 40px;\n background-color: ", ";\n"])), function (_ref5) {
36596
37290
  var show = _ref5.show;
36597
37291
  return show ? '1' : '0';
36598
37292
  }, function (_ref6) {
@@ -36604,10 +37298,10 @@ var AudioVisualization$1 = styled.div(_templateObject4$r || (_templateObject4$r
36604
37298
  }, function (props) {
36605
37299
  return props.color;
36606
37300
  });
36607
- var PlayPause$1 = styled.div(_templateObject5$n || (_templateObject5$n = _taggedTemplateLiteralLoose(["\n cursor: pointer;\n padding: 10px;\n > svg {\n color: ", ";\n }\n"])), function (props) {
37301
+ var PlayPause$1 = styled.div(_templateObject5$o || (_templateObject5$o = _taggedTemplateLiteralLoose(["\n cursor: pointer;\n padding: 10px;\n > svg {\n color: ", ";\n }\n"])), function (props) {
36608
37302
  return props.iconColor;
36609
37303
  });
36610
- var Canvas = styled.canvas(_templateObject6$j || (_templateObject6$j = _taggedTemplateLiteralLoose(["\n height: 28px;\n width: ", ";\n max-width: calc(100% - 110px);\n position: absolute;\n opacity: ", ";\n z-index: ", ";\n left: 42px;\n"])), function (_ref8) {
37304
+ var Canvas = styled.canvas(_templateObject6$k || (_templateObject6$k = _taggedTemplateLiteralLoose(["\n height: 28px;\n width: ", ";\n max-width: calc(100% - 110px);\n position: absolute;\n opacity: ", ";\n z-index: ", ";\n left: 42px;\n"])), function (_ref8) {
36611
37305
  var recording = _ref8.recording;
36612
37306
  return recording ? '300px' : '0';
36613
37307
  }, function (_ref9) {
@@ -36617,14 +37311,14 @@ var Canvas = styled.canvas(_templateObject6$j || (_templateObject6$j = _taggedTe
36617
37311
  var hide = _ref0.hide;
36618
37312
  return hide && '-1';
36619
37313
  });
36620
- var Timer$2 = styled.div(_templateObject7$h || (_templateObject7$h = _taggedTemplateLiteralLoose(["\n width: 40px;\n font-weight: 400;\n font-size: 16px;\n line-height: 12px;\n color: ", ";\n margin-left: auto;\n"])), function (props) {
37314
+ var Timer$2 = styled.div(_templateObject7$i || (_templateObject7$i = _taggedTemplateLiteralLoose(["\n width: 40px;\n font-weight: 400;\n font-size: 16px;\n line-height: 12px;\n color: ", ";\n margin-left: auto;\n"])), function (props) {
36621
37315
  return props.color;
36622
37316
  });
36623
37317
 
36624
- var _templateObject$I, _templateObject2$D, _templateObject3$w;
36625
- var wave = keyframes(_templateObject$I || (_templateObject$I = _taggedTemplateLiteralLoose(["\n 0%, 100% {\n transform: scaleY(0.5);\n opacity: 0.6;\n }\n 50% {\n transform: scaleY(1.2);\n opacity: 1;\n }\n"])));
36626
- var Wrapper = styled.div(_templateObject2$D || (_templateObject2$D = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: flex-end;\n height: 8px;\n gap: 1.5px;\n"])));
36627
- var Bar = styled.span(_templateObject3$w || (_templateObject3$w = _taggedTemplateLiteralLoose(["\n display: block;\n width: 3px;\n height: 8px;\n border-radius: 2px;\n background: ", ";\n animation: ", " 1s infinite;\n animation-delay: ", "s;\n"])), function (props) {
37318
+ var _templateObject$J, _templateObject2$E, _templateObject3$x;
37319
+ 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"])));
37320
+ 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"])));
37321
+ var Bar = styled.span(_templateObject3$x || (_templateObject3$x = _taggedTemplateLiteralLoose(["\n display: block;\n width: 3px;\n height: 8px;\n border-radius: 2px;\n background: ", ";\n animation: ", " 1s infinite;\n animation-delay: ", "s;\n"])), function (props) {
36628
37322
  return props.borderColor;
36629
37323
  }, wave, function (_ref) {
36630
37324
  var delay = _ref.delay;
@@ -36650,7 +37344,7 @@ var RecordingAnimation = function RecordingAnimation(_ref2) {
36650
37344
  }));
36651
37345
  };
36652
37346
 
36653
- var _templateObject$J, _templateObject2$E, _templateObject3$x, _templateObject4$s, _templateObject5$o, _templateObject6$k, _templateObject7$i, _templateObject8$g, _templateObject9$d, _templateObject0$c, _templateObject1$9, _templateObject10$5, _templateObject11$5, _templateObject12$4, _templateObject13$3, _templateObject14$2, _templateObject15$2, _templateObject16$2, _templateObject17$2, _templateObject18$2, _templateObject19$2, _templateObject20$2, _templateObject21$1, _templateObject22$1, _templateObject23$1, _templateObject24$1, _templateObject25$1, _templateObject26$1, _templateObject27$1, _templateObject28$1, _templateObject29$1, _templateObject30$1, _templateObject31$1, _templateObject32$1, _templateObject33$1, _templateObject34$1;
37347
+ var _templateObject$K, _templateObject2$F, _templateObject3$y, _templateObject4$t, _templateObject5$p, _templateObject6$l, _templateObject7$j, _templateObject8$h, _templateObject9$e, _templateObject0$d, _templateObject1$a, _templateObject10$5, _templateObject11$5, _templateObject12$4, _templateObject13$3, _templateObject14$2, _templateObject15$2, _templateObject16$2, _templateObject17$2, _templateObject18$2, _templateObject19$2, _templateObject20$2, _templateObject21$1, _templateObject22$1, _templateObject23$1, _templateObject24$1, _templateObject25$1, _templateObject26$1, _templateObject27$1, _templateObject28$1, _templateObject29$1, _templateObject30$1, _templateObject31$1, _templateObject32$1, _templateObject33$1, _templateObject34$1;
36654
37348
  function AutoFocusPlugin(_ref) {
36655
37349
  var messageForReply = _ref.messageForReply;
36656
37350
  var _useLexicalComposerCo = useLexicalComposerContext(),
@@ -36982,7 +37676,6 @@ var SendMessageInput = function SendMessageInput(_ref3) {
36982
37676
  handleEditMessage();
36983
37677
  } else if (messageText.trim() || attachments.length && attachments.length > 0) {
36984
37678
  var messageTexToSend = messageText.trim();
36985
- log.info('messageTexToSend . . . . .', messageTexToSend);
36986
37679
  var messageToSend = {
36987
37680
  body: messageTexToSend,
36988
37681
  bodyAttributes: messageBodyAttributes,
@@ -37001,7 +37694,6 @@ var SendMessageInput = function SendMessageInput(_ref3) {
37001
37694
  });
37002
37695
  }
37003
37696
  messageToSend.mentionedUsers = mentionUsersToSend;
37004
- log.info('message to send ..........................................', JSON.stringify(messageToSend));
37005
37697
  if (messageForReply) {
37006
37698
  messageToSend.parentMessage = messageForReply;
37007
37699
  }
@@ -38237,10 +38929,10 @@ var SendMessageInput = function SendMessageInput(_ref3) {
38237
38929
  channelId: activeChannel.id
38238
38930
  }))))))))));
38239
38931
  };
38240
- var SendMessageWrapper = styled.div(_templateObject$J || (_templateObject$J = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n position: relative;\n z-index: 15;\n"])), function (props) {
38932
+ var SendMessageWrapper = styled.div(_templateObject$K || (_templateObject$K = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n position: relative;\n z-index: 15;\n"])), function (props) {
38241
38933
  return props.backgroundColor;
38242
38934
  });
38243
- var Container$k = styled.div(_templateObject2$E || (_templateObject2$E = _taggedTemplateLiteralLoose(["\n margin: ", ";\n border: ", ";\n border-radius: ", ";\n position: relative;\n padding: ", ";\n z-index: 15;\n\n & span.rdw-suggestion-dropdown {\n position: absolute;\n bottom: 100%;\n height: 160px;\n min-width: 150px;\n display: flex;\n flex-direction: column;\n overflow: auto;\n padding: 6px 12px;\n border: 1px solid #ccc;\n background: #fff;\n z-index: 99;\n }\n\n & .text_formatting_toolbar {\n display: ", ";\n position: fixed;\n top: ", ";\n left: ", ";\n }\n\n & .rdw-suggestion-option-active {\n background-color: rgb(243, 245, 248);\n }\n\n & .custom_editor {\n cursor: text;\n\n & .rdw-mention-link {\n color: ", ";\n }\n }\n"])), function (props) {
38935
+ var Container$k = styled.div(_templateObject2$F || (_templateObject2$F = _taggedTemplateLiteralLoose(["\n margin: ", ";\n border: ", ";\n border-radius: ", ";\n position: relative;\n padding: ", ";\n z-index: 15;\n\n & span.rdw-suggestion-dropdown {\n position: absolute;\n bottom: 100%;\n height: 160px;\n min-width: 150px;\n display: flex;\n flex-direction: column;\n overflow: auto;\n padding: 6px 12px;\n border: 1px solid #ccc;\n background: #fff;\n z-index: 99;\n }\n\n & .text_formatting_toolbar {\n display: ", ";\n position: fixed;\n top: ", ";\n left: ", ";\n }\n\n & .rdw-suggestion-option-active {\n background-color: rgb(243, 245, 248);\n }\n\n & .custom_editor {\n cursor: text;\n\n & .rdw-mention-link {\n color: ", ";\n }\n }\n"])), function (props) {
38244
38936
  return props.margin || '30px 0 16px';
38245
38937
  }, function (props) {
38246
38938
  return props.border || '';
@@ -38257,7 +38949,7 @@ var Container$k = styled.div(_templateObject2$E || (_templateObject2$E = _tagged
38257
38949
  }, function (props) {
38258
38950
  return props.mentionColor;
38259
38951
  });
38260
- var EditReplyMessageCont = styled.div(_templateObject3$x || (_templateObject3$x = _taggedTemplateLiteralLoose(["\n position: relative;\n left: ", ";\n bottom: ", ";\n width: ", ";\n border-radius: ", ";\n padding: ", ";\n font-weight: 400;\n font-size: 15px;\n line-height: 20px;\n letter-spacing: -0.2px;\n color: ", ";\n background-color: ", ";\n z-index: 19;\n box-sizing: content-box;\n"])), function (props) {
38952
+ var EditReplyMessageCont = styled.div(_templateObject3$y || (_templateObject3$y = _taggedTemplateLiteralLoose(["\n position: relative;\n left: ", ";\n bottom: ", ";\n width: ", ";\n border-radius: ", ";\n padding: ", ";\n font-weight: 400;\n font-size: 15px;\n line-height: 20px;\n letter-spacing: -0.2px;\n color: ", ";\n background-color: ", ";\n z-index: 19;\n box-sizing: content-box;\n"])), function (props) {
38261
38953
  return props.left || '0';
38262
38954
  }, function (props) {
38263
38955
  return props.bottom || '0';
@@ -38272,19 +38964,19 @@ var EditReplyMessageCont = styled.div(_templateObject3$x || (_templateObject3$x
38272
38964
  }, function (props) {
38273
38965
  return props.backgroundColor;
38274
38966
  });
38275
- var EditMessageText = styled.p(_templateObject4$s || (_templateObject4$s = _taggedTemplateLiteralLoose(["\n margin: 0;\n display: -webkit-box;\n -webkit-line-clamp: 3;\n -webkit-box-orient: vertical;\n overflow: hidden;\n text-overflow: ellipsis;\n word-break: break-word;\n"])));
38276
- var UploadErrorMessage = styled.p(_templateObject5$o || (_templateObject5$o = _taggedTemplateLiteralLoose(["\n margin: 0;\n position: absolute;\n top: -30px;\n color: ", ";\n"])), function (props) {
38967
+ 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"])));
38968
+ var UploadErrorMessage = styled.p(_templateObject5$p || (_templateObject5$p = _taggedTemplateLiteralLoose(["\n margin: 0;\n position: absolute;\n top: -30px;\n color: ", ";\n"])), function (props) {
38277
38969
  return props.color;
38278
38970
  });
38279
- var CloseEditMode = styled.span(_templateObject6$k || (_templateObject6$k = _taggedTemplateLiteralLoose(["\n position: absolute;\n top: 8px;\n right: 12px;\n width: 20px;\n height: 20px;\n text-align: center;\n line-height: 22px;\n cursor: pointer;\n\n & > svg {\n color: ", ";\n }\n"])), function (props) {
38971
+ var CloseEditMode = styled.span(_templateObject6$l || (_templateObject6$l = _taggedTemplateLiteralLoose(["\n position: absolute;\n top: 8px;\n right: 12px;\n width: 20px;\n height: 20px;\n text-align: center;\n line-height: 22px;\n cursor: pointer;\n\n & > svg {\n color: ", ";\n }\n"])), function (props) {
38280
38972
  return props.color;
38281
38973
  });
38282
- var UserName$1 = styled.span(_templateObject7$i || (_templateObject7$i = _taggedTemplateLiteralLoose(["\n font-weight: 500;\n margin-left: 4px;\n"])));
38283
- var ReplyMessageBody$1 = styled.div(_templateObject8$g || (_templateObject8$g = _taggedTemplateLiteralLoose(["\n word-break: break-word;\n display: -webkit-box;\n -webkit-line-clamp: 3;\n -webkit-box-orient: vertical;\n overflow: hidden;\n text-overflow: ellipsis;\n"])));
38284
- var EditReplyMessageHeader = styled.h4(_templateObject9$d || (_templateObject9$d = _taggedTemplateLiteralLoose(["\n display: flex;\n margin: 0 0 2px;\n font-weight: 400;\n font-size: 13px;\n line-height: 16px;\n color: ", ";\n\n > svg {\n margin-right: 4px;\n width: 16px;\n height: 16px;\n }\n"])), function (props) {
38974
+ var UserName$1 = styled.span(_templateObject7$j || (_templateObject7$j = _taggedTemplateLiteralLoose(["\n font-weight: 500;\n margin-left: 4px;\n"])));
38975
+ 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"])));
38976
+ var EditReplyMessageHeader = styled.h4(_templateObject9$e || (_templateObject9$e = _taggedTemplateLiteralLoose(["\n display: flex;\n margin: 0 0 2px;\n font-weight: 400;\n font-size: 13px;\n line-height: 16px;\n color: ", ";\n\n > svg {\n margin-right: 4px;\n width: 16px;\n height: 16px;\n }\n"])), function (props) {
38285
38977
  return props.color;
38286
38978
  });
38287
- var AddAttachmentIcon = styled.span(_templateObject0$c || (_templateObject0$c = _taggedTemplateLiteralLoose(["\n display: flex;\n height: ", ";\n align-items: center;\n margin: 0 8px;\n cursor: pointer;\n line-height: 13px;\n z-index: 2;\n order: ", ";\n\n > svg {\n ", ";\n width: 24px;\n }\n\n &:hover > svg {\n color: ", ";\n }\n"])), function (props) {
38979
+ var AddAttachmentIcon = styled.span(_templateObject0$d || (_templateObject0$d = _taggedTemplateLiteralLoose(["\n display: flex;\n height: ", ";\n align-items: center;\n margin: 0 8px;\n cursor: pointer;\n line-height: 13px;\n z-index: 2;\n order: ", ";\n\n > svg {\n ", ";\n width: 24px;\n }\n\n &:hover > svg {\n color: ", ";\n }\n"])), function (props) {
38288
38980
  return props.height ? props.height + "px" : '36px';
38289
38981
  }, function (props) {
38290
38982
  return props.order === 0 || props.order ? props.order : 1;
@@ -38293,7 +38985,7 @@ var AddAttachmentIcon = styled.span(_templateObject0$c || (_templateObject0$c =
38293
38985
  }, function (props) {
38294
38986
  return props.hoverColor;
38295
38987
  });
38296
- var SendMessageInputContainer = styled.div(_templateObject1$9 || (_templateObject1$9 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: flex-end;\n justify-content: space-between;\n position: relative;\n min-height: ", ";\n box-sizing: border-box;\n border-radius: ", ";\n\n & .dropdown-trigger.open {\n color: #ccc;\n\n & ", " {\n & > svg {\n color: ", ";\n }\n ;\n }\n }\n}\n"])), function (props) {
38988
+ var SendMessageInputContainer = styled.div(_templateObject1$a || (_templateObject1$a = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: flex-end;\n justify-content: space-between;\n position: relative;\n min-height: ", ";\n box-sizing: border-box;\n border-radius: ", ";\n\n & .dropdown-trigger.open {\n color: #ccc;\n\n & ", " {\n & > svg {\n color: ", ";\n }\n ;\n }\n }\n}\n"])), function (props) {
38297
38989
  return props.minHeight || '36px';
38298
38990
  }, function (props) {
38299
38991
  return props.messageForReply ? '0 0 4px 4px' : '4px';
@@ -38589,7 +39281,7 @@ function SvgUnpin(props) {
38589
39281
  })));
38590
39282
  }
38591
39283
 
38592
- var _templateObject$K, _templateObject2$F, _templateObject3$y, _templateObject4$t, _templateObject5$p, _templateObject6$l, _templateObject7$j, _templateObject8$h, _templateObject9$e, _templateObject0$d, _templateObject1$a, _templateObject10$6, _templateObject11$6, _templateObject12$5, _templateObject13$4, _templateObject14$3, _templateObject15$3, _templateObject16$3;
39284
+ var _templateObject$L, _templateObject2$G, _templateObject3$z, _templateObject4$u, _templateObject5$q, _templateObject6$m, _templateObject7$k, _templateObject8$i, _templateObject9$f, _templateObject0$e, _templateObject1$b, _templateObject10$6, _templateObject11$6, _templateObject12$5, _templateObject13$4, _templateObject14$3, _templateObject15$3, _templateObject16$3;
38593
39285
  var Actions = function Actions(_ref) {
38594
39286
  var setActionsHeight = _ref.setActionsHeight,
38595
39287
  channel = _ref.channel,
@@ -39053,21 +39745,21 @@ var Actions = function Actions(_ref) {
39053
39745
  title: popupTitle
39054
39746
  })));
39055
39747
  };
39056
- var Container$l = styled.div(_templateObject$K || (_templateObject$K = _taggedTemplateLiteralLoose(["\n padding: 10px 16px;\n border-bottom: 6px solid ", ";\n]"])), function (props) {
39748
+ var Container$l = styled.div(_templateObject$L || (_templateObject$L = _taggedTemplateLiteralLoose(["\n padding: 10px 16px;\n border-bottom: 6px solid ", ";\n]"])), function (props) {
39057
39749
  return props.borderColor;
39058
39750
  });
39059
- var ActionHeader = styled.div(_templateObject2$F || (_templateObject2$F = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin: 25px 0 22px;\n cursor: pointer;\n"])));
39060
- var MenuTriggerIcon = styled.span(_templateObject3$y || (_templateObject3$y = _taggedTemplateLiteralLoose(["\n transition: all 0.2s;\n ", "\n"])), function (props) {
39751
+ 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"])));
39752
+ var MenuTriggerIcon = styled.span(_templateObject3$z || (_templateObject3$z = _taggedTemplateLiteralLoose(["\n transition: all 0.2s;\n ", "\n"])), function (props) {
39061
39753
  return !props.isOpen && ' transform: rotate(-90deg);';
39062
39754
  });
39063
- var ActionsMenu = styled.ul(_templateObject4$t || (_templateObject4$t = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n margin: 0;\n padding: 0;\n list-style: none;\n transition: all 0.2s;\n"])));
39064
- var DefaultMutedIcon = styled(SvgUnmuteNotifications)(_templateObject5$p || (_templateObject5$p = _taggedTemplateLiteralLoose([""])));
39065
- var DefaultMuteIcon = styled(SvgNotifications)(_templateObject6$l || (_templateObject6$l = _taggedTemplateLiteralLoose([""])));
39066
- var DefaultStarIcon = styled(SvgStar)(_templateObject7$j || (_templateObject7$j = _taggedTemplateLiteralLoose([""])));
39067
- var DefaultUnpinIcon = styled(SvgUnpin)(_templateObject8$h || (_templateObject8$h = _taggedTemplateLiteralLoose([""])));
39068
- var DefaultPinIcon = styled(SvgPin)(_templateObject9$e || (_templateObject9$e = _taggedTemplateLiteralLoose([""])));
39069
- var DefaultMarkAsRead = styled(SvgMarkAsRead)(_templateObject0$d || (_templateObject0$d = _taggedTemplateLiteralLoose([""])));
39070
- var DefaultMarkAsUnRead = styled(SvgMarkAsUnRead)(_templateObject1$a || (_templateObject1$a = _taggedTemplateLiteralLoose([""])));
39755
+ 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"])));
39756
+ var DefaultMutedIcon = styled(SvgUnmuteNotifications)(_templateObject5$q || (_templateObject5$q = _taggedTemplateLiteralLoose([""])));
39757
+ var DefaultMuteIcon = styled(SvgNotifications)(_templateObject6$m || (_templateObject6$m = _taggedTemplateLiteralLoose([""])));
39758
+ var DefaultStarIcon = styled(SvgStar)(_templateObject7$k || (_templateObject7$k = _taggedTemplateLiteralLoose([""])));
39759
+ var DefaultUnpinIcon = styled(SvgUnpin)(_templateObject8$i || (_templateObject8$i = _taggedTemplateLiteralLoose([""])));
39760
+ var DefaultPinIcon = styled(SvgPin)(_templateObject9$f || (_templateObject9$f = _taggedTemplateLiteralLoose([""])));
39761
+ var DefaultMarkAsRead = styled(SvgMarkAsRead)(_templateObject0$e || (_templateObject0$e = _taggedTemplateLiteralLoose([""])));
39762
+ var DefaultMarkAsUnRead = styled(SvgMarkAsUnRead)(_templateObject1$b || (_templateObject1$b = _taggedTemplateLiteralLoose([""])));
39071
39763
  var DefaultBlockIcon = styled(SvgBlockChannel)(_templateObject10$6 || (_templateObject10$6 = _taggedTemplateLiteralLoose([""])));
39072
39764
  var DefaultReportIcon = styled(SvgReport)(_templateObject11$6 || (_templateObject11$6 = _taggedTemplateLiteralLoose([""])));
39073
39765
  var DefaultClearIcon = styled(SvgClear)(_templateObject12$5 || (_templateObject12$5 = _taggedTemplateLiteralLoose([""])));
@@ -39147,7 +39839,7 @@ function SvgMoreVert(props) {
39147
39839
  })));
39148
39840
  }
39149
39841
 
39150
- var _templateObject$L, _templateObject2$G, _templateObject3$z;
39842
+ var _templateObject$M, _templateObject2$H, _templateObject3$A;
39151
39843
  var ChangeMemberRole = function ChangeMemberRole(_ref) {
39152
39844
  var theme = _ref.theme,
39153
39845
  channelId = _ref.channelId,
@@ -39247,14 +39939,14 @@ var ChangeMemberRole = function ChangeMemberRole(_ref) {
39247
39939
  onClick: handleSave
39248
39940
  }, "Save"))));
39249
39941
  };
39250
- var RolesSelect = styled.div(_templateObject$L || (_templateObject$L = _taggedTemplateLiteralLoose(["\n margin-bottom: 32px;\n"])));
39251
- var RoleLabel = styled.div(_templateObject2$G || (_templateObject2$G = _taggedTemplateLiteralLoose(["\n font-style: normal;\n font-weight: 500;\n font-size: 14px;\n margin: 20px 0 8px;\n color: ", ";\n"])), function (_ref2) {
39942
+ var RolesSelect = styled.div(_templateObject$M || (_templateObject$M = _taggedTemplateLiteralLoose(["\n margin-bottom: 32px;\n"])));
39943
+ var RoleLabel = styled.div(_templateObject2$H || (_templateObject2$H = _taggedTemplateLiteralLoose(["\n font-style: normal;\n font-weight: 500;\n font-size: 14px;\n margin: 20px 0 8px;\n color: ", ";\n"])), function (_ref2) {
39252
39944
  var color = _ref2.color;
39253
39945
  return color;
39254
39946
  });
39255
- var RoleSpan = styled.span(_templateObject3$z || (_templateObject3$z = _taggedTemplateLiteralLoose(["\n font-style: normal;\n font-weight: normal;\n font-size: 14px;\n text-transform: capitalize;\n"])));
39947
+ var RoleSpan = styled.span(_templateObject3$A || (_templateObject3$A = _taggedTemplateLiteralLoose(["\n font-style: normal;\n font-weight: normal;\n font-size: 14px;\n text-transform: capitalize;\n"])));
39256
39948
 
39257
- var _templateObject$M, _templateObject2$H, _templateObject3$A, _templateObject4$u, _templateObject5$q, _templateObject6$m, _templateObject7$k, _templateObject8$i, _templateObject9$f;
39949
+ var _templateObject$N, _templateObject2$I, _templateObject3$B, _templateObject4$v, _templateObject5$r, _templateObject6$n, _templateObject7$l, _templateObject8$j, _templateObject9$g;
39258
39950
  var Members = function Members(_ref) {
39259
39951
  var channel = _ref.channel,
39260
39952
  theme = _ref.theme,
@@ -39557,18 +40249,18 @@ var Members = function Members(_ref) {
39557
40249
  toggleCreatePopup: handleAddMemberPopup
39558
40250
  })));
39559
40251
  };
39560
- var Container$m = styled.div(_templateObject$M || (_templateObject$M = _taggedTemplateLiteralLoose([""])));
39561
- var ActionsMenu$1 = styled.div(_templateObject2$H || (_templateObject2$H = _taggedTemplateLiteralLoose(["\n position: relative;\n transition: all 0.2s;\n"])));
39562
- var MemberNamePresence = styled.div(_templateObject3$A || (_templateObject3$A = _taggedTemplateLiteralLoose(["\n margin-left: 12px;\n max-width: calc(100% - 84px);\n\n & > ", " {\n display: block;\n }\n"])), SubTitle);
39563
- var MemberNameWrapper = styled.div(_templateObject4$u || (_templateObject4$u = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n"])));
39564
- var MemberName$3 = styled.h4(_templateObject5$q || (_templateObject5$q = _taggedTemplateLiteralLoose(["\n margin: 0;\n font-weight: 400;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n color: ", ";\n"])), function (props) {
40252
+ var Container$m = styled.div(_templateObject$N || (_templateObject$N = _taggedTemplateLiteralLoose([""])));
40253
+ var ActionsMenu$1 = styled.div(_templateObject2$I || (_templateObject2$I = _taggedTemplateLiteralLoose(["\n position: relative;\n transition: all 0.2s;\n"])));
40254
+ 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);
40255
+ var MemberNameWrapper = styled.div(_templateObject4$v || (_templateObject4$v = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n"])));
40256
+ var MemberName$3 = styled.h4(_templateObject5$r || (_templateObject5$r = _taggedTemplateLiteralLoose(["\n margin: 0;\n font-weight: 400;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n color: ", ";\n"])), function (props) {
39565
40257
  return props.color;
39566
40258
  });
39567
- var EditMemberIcon = styled.span(_templateObject6$m || (_templateObject6$m = _taggedTemplateLiteralLoose(["\n margin-left: auto;\n cursor: pointer;\n padding: 15px;\n opacity: 0;\n visibility: hidden;\n transition: all 0.2s;\n\n & svg {\n color: ", ";\n }\n"])), function (props) {
40259
+ var EditMemberIcon = styled.span(_templateObject6$n || (_templateObject6$n = _taggedTemplateLiteralLoose(["\n margin-left: auto;\n cursor: pointer;\n padding: 15px;\n opacity: 0;\n visibility: hidden;\n transition: all 0.2s;\n\n & svg {\n color: ", ";\n }\n"])), function (props) {
39568
40260
  return props.color;
39569
40261
  });
39570
- var MembersList = styled.ul(_templateObject7$k || (_templateObject7$k = _taggedTemplateLiteralLoose(["\n margin: 0;\n padding: 0;\n list-style: none;\n transition: all 0.2s;\n"])));
39571
- var MemberItem$1 = styled.li(_templateObject8$i || (_templateObject8$i = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n font-size: ", ";\n font-weight: 500;\n padding: 6px 16px;\n transition: all 0.2s;\n color: ", ";\n cursor: pointer;\n\n & > svg {\n rect {\n fill: transparent;\n }\n }\n\n &:first-child {\n cursor: pointer;\n\n > svg {\n color: ", ";\n margin-right: 12px;\n & > rect {\n fill: ", " !important;\n }\n }\n }\n\n &:hover {\n background-color: ", ";\n }\n\n &:hover ", " {\n opacity: 1;\n visibility: visible;\n }\n\n & .dropdown-wrapper {\n margin-left: auto;\n }\n\n & ", " {\n width: 12px;\n height: 12px;\n right: -1px;\n bottom: -1px;\n }\n"])), function (props) {
40262
+ 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"])));
40263
+ var MemberItem$1 = styled.li(_templateObject8$j || (_templateObject8$j = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n font-size: ", ";\n font-weight: 500;\n padding: 6px 16px;\n transition: all 0.2s;\n color: ", ";\n cursor: pointer;\n\n & > svg {\n rect {\n fill: transparent;\n }\n }\n\n &:first-child {\n cursor: pointer;\n\n > svg {\n color: ", ";\n margin-right: 12px;\n & > rect {\n fill: ", " !important;\n }\n }\n }\n\n &:hover {\n background-color: ", ";\n }\n\n &:hover ", " {\n opacity: 1;\n visibility: visible;\n }\n\n & .dropdown-wrapper {\n margin-left: auto;\n }\n\n & ", " {\n width: 12px;\n height: 12px;\n right: -1px;\n bottom: -1px;\n }\n"])), function (props) {
39572
40264
  return props.fontSize || '15px';
39573
40265
  }, function (props) {
39574
40266
  return props.color;
@@ -39579,13 +40271,13 @@ var MemberItem$1 = styled.li(_templateObject8$i || (_templateObject8$i = _tagged
39579
40271
  }, function (props) {
39580
40272
  return props.hoverBackground;
39581
40273
  }, EditMemberIcon, UserStatus);
39582
- var RoleBadge = styled.span(_templateObject9$f || (_templateObject9$f = _taggedTemplateLiteralLoose(["\n position: relative;\n padding: 2px 8px;\n border-radius: 12px;\n margin-left: 4px;\n font-weight: 500;\n font-size: 12px;\n line-height: 16px;\n color: ", ";\n\n &::after {\n content: '';\n position: absolute;\n top: 0;\n left: 0;\n border-radius: 12px;\n width: 100%;\n height: 100%;\n background-color: ", ";\n opacity: 0.1;\n }\n"])), function (props) {
40274
+ var RoleBadge = styled.span(_templateObject9$g || (_templateObject9$g = _taggedTemplateLiteralLoose(["\n position: relative;\n padding: 2px 8px;\n border-radius: 12px;\n margin-left: 4px;\n font-weight: 500;\n font-size: 12px;\n line-height: 16px;\n color: ", ";\n\n &::after {\n content: '';\n position: absolute;\n top: 0;\n left: 0;\n border-radius: 12px;\n width: 100%;\n height: 100%;\n background-color: ", ";\n opacity: 0.1;\n }\n"])), function (props) {
39583
40275
  return props.color;
39584
40276
  }, function (props) {
39585
40277
  return props.backgroundColor;
39586
40278
  });
39587
40279
 
39588
- var _templateObject$N, _templateObject2$I;
40280
+ var _templateObject$O, _templateObject2$J;
39589
40281
  var Media = function Media(_ref) {
39590
40282
  var channel = _ref.channel;
39591
40283
  var _useColor = useColors(),
@@ -39631,8 +40323,8 @@ var Media = function Media(_ref) {
39631
40323
  currentMediaFile: mediaFile
39632
40324
  })));
39633
40325
  };
39634
- var Container$n = styled.div(_templateObject$N || (_templateObject$N = _taggedTemplateLiteralLoose(["\n padding: 6px 4px;\n overflow-x: hidden;\n overflow-y: auto;\n list-style: none;\n transition: all 0.2s;\n align-items: flex-start;\n display: flex;\n flex-wrap: wrap;\n"])));
39635
- var MediaItem = styled.div(_templateObject2$I || (_templateObject2$I = _taggedTemplateLiteralLoose(["\n width: calc(33.3333% - 4px);\n height: 110px;\n box-sizing: border-box;\n //border: 1px solid #ccc;\n border: 0.5px solid rgba(0, 0, 0, 0.1);\n border-radius: 8px;\n overflow: hidden;\n margin: 2px;\n"])));
40326
+ 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"])));
40327
+ var MediaItem = styled.div(_templateObject2$J || (_templateObject2$J = _taggedTemplateLiteralLoose(["\n width: calc(33.3333% - 4px);\n height: 110px;\n box-sizing: border-box;\n //border: 1px solid #ccc;\n border: 0.5px solid rgba(0, 0, 0, 0.1);\n border-radius: 8px;\n overflow: hidden;\n margin: 2px;\n"])));
39636
40328
 
39637
40329
  var _rect$3, _path$1n;
39638
40330
  function _extends$1r() {
@@ -39688,7 +40380,7 @@ function SvgDownloadFile(props) {
39688
40380
  })));
39689
40381
  }
39690
40382
 
39691
- var _templateObject$O, _templateObject2$J, _templateObject3$B, _templateObject4$v, _templateObject5$r, _templateObject6$n, _templateObject7$l, _templateObject8$j;
40383
+ var _templateObject$P, _templateObject2$K, _templateObject3$C, _templateObject4$w, _templateObject5$s, _templateObject6$o, _templateObject7$m, _templateObject8$k;
39692
40384
  var Files = function Files(_ref) {
39693
40385
  var channelId = _ref.channelId,
39694
40386
  filePreviewIcon = _ref.filePreviewIcon,
@@ -39743,7 +40435,6 @@ var Files = function Files(_ref) {
39743
40435
  useEffect(function () {
39744
40436
  dispatch(getAttachmentsAC(channelId, channelDetailsTabs.file));
39745
40437
  }, [channelId]);
39746
- log.info('attachments. .. . ', attachments);
39747
40438
  return /*#__PURE__*/React__default.createElement(Container$o, null, attachments.map(function (file) {
39748
40439
  var metas = file.metadata && isJSON(file.metadata) ? JSON.parse(file.metadata) : file.metadata;
39749
40440
  var withPrefix = true;
@@ -39805,30 +40496,30 @@ var Files = function Files(_ref) {
39805
40496
  }))) : filePreviewDownloadIcon || /*#__PURE__*/React__default.createElement(SvgDownloadFile, null)));
39806
40497
  }));
39807
40498
  };
39808
- var Container$o = styled.ul(_templateObject$O || (_templateObject$O = _taggedTemplateLiteralLoose(["\n margin: 0;\n padding: 0;\n overflow-x: hidden;\n overflow-y: auto;\n list-style: none;\n transition: all 0.2s;\n"])));
39809
- var DownloadWrapper = styled.a(_templateObject2$J || (_templateObject2$J = _taggedTemplateLiteralLoose(["\n text-decoration: none;\n visibility: ", ";\n padding: 5px 6px;\n position: absolute;\n top: 25%;\n right: 16px;\n cursor: pointer;\n & > svg {\n & path {\n fill: ", ";\n }\n color: ", ";\n }\n"])), function (props) {
40499
+ 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"])));
40500
+ var DownloadWrapper = styled.a(_templateObject2$K || (_templateObject2$K = _taggedTemplateLiteralLoose(["\n text-decoration: none;\n visibility: ", ";\n padding: 5px 6px;\n position: absolute;\n top: 25%;\n right: 16px;\n cursor: pointer;\n & > svg {\n & path {\n fill: ", ";\n }\n color: ", ";\n }\n"])), function (props) {
39810
40501
  return props.visible ? 'visible' : 'hidden';
39811
40502
  }, function (props) {
39812
40503
  return props.iconColor;
39813
40504
  }, function (props) {
39814
40505
  return props.iconColor;
39815
40506
  });
39816
- var ProgressWrapper$2 = styled.span(_templateObject3$B || (_templateObject3$B = _taggedTemplateLiteralLoose(["\n display: inline-block;\n width: 20px;\n height: 20px;\n animation: preloader 1.5s linear infinite;\n\n @keyframes preloader {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n }\n"])));
39817
- var FileIconCont = styled.span(_templateObject4$v || (_templateObject4$v = _taggedTemplateLiteralLoose(["\n display: inline-flex;\n\n & > svg {\n width: 40px;\n height: 40px;\n color: ", ";\n fill: ", ";\n }\n"])), function (props) {
40507
+ 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"])));
40508
+ var FileIconCont = styled.span(_templateObject4$w || (_templateObject4$w = _taggedTemplateLiteralLoose(["\n display: inline-flex;\n\n & > svg {\n width: 40px;\n height: 40px;\n color: ", ";\n fill: ", ";\n }\n"])), function (props) {
39818
40509
  return props.iconColor;
39819
40510
  }, function (props) {
39820
40511
  return props.fillColor;
39821
40512
  });
39822
- var FileHoverIconCont = styled.span(_templateObject5$r || (_templateObject5$r = _taggedTemplateLiteralLoose(["\n display: none;\n & > svg {\n color: ", ";\n width: 40px;\n height: 40px;\n fill: ", ";\n }\n"])), function (props) {
40513
+ var FileHoverIconCont = styled.span(_templateObject5$s || (_templateObject5$s = _taggedTemplateLiteralLoose(["\n display: none;\n & > svg {\n color: ", ";\n width: 40px;\n height: 40px;\n fill: ", ";\n }\n"])), function (props) {
39823
40514
  return props.iconColor;
39824
40515
  }, function (props) {
39825
40516
  return props.fillColor;
39826
40517
  });
39827
- var FileThumb = styled.img(_templateObject6$n || (_templateObject6$n = _taggedTemplateLiteralLoose(["\n width: 40px;\n height: 40px;\n border: 0.5px solid rgba(0, 0, 0, 0.1);\n border-radius: 8px;\n object-fit: cover;\n"])));
39828
- var FileItem = styled.div(_templateObject7$l || (_templateObject7$l = _taggedTemplateLiteralLoose(["\n position: relative;\n padding: 11px 16px;\n display: flex;\n align-items: center;\n font-size: 15px;\n transition: all 0.2s;\n div {\n margin-left: 7px;\n width: calc(100% - 48px);\n }\n &:hover {\n background-color: ", ";\n ", " {\n visibility: visible;\n }\n & ", " {\n display: none;\n }\n & ", " {\n display: inline-flex;\n }\n }\n /*&.isHover {\n\n }*/\n"])), function (props) {
40518
+ 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"])));
40519
+ var FileItem = styled.div(_templateObject7$m || (_templateObject7$m = _taggedTemplateLiteralLoose(["\n position: relative;\n padding: 11px 16px;\n display: flex;\n align-items: center;\n font-size: 15px;\n transition: all 0.2s;\n div {\n margin-left: 7px;\n width: calc(100% - 48px);\n }\n &:hover {\n background-color: ", ";\n ", " {\n visibility: visible;\n }\n & ", " {\n display: none;\n }\n & ", " {\n display: inline-flex;\n }\n }\n /*&.isHover {\n\n }*/\n"])), function (props) {
39829
40520
  return props.hoverBackgroundColor;
39830
40521
  }, DownloadWrapper, FileIconCont, FileHoverIconCont);
39831
- var FileSizeAndDate = styled.span(_templateObject8$j || (_templateObject8$j = _taggedTemplateLiteralLoose(["\n display: block;\n font-style: normal;\n font-weight: normal;\n font-size: ", ";\n line-height: ", ";\n color: ", ";\n margin-top: 2px;\n"])), function (props) {
40522
+ var FileSizeAndDate = styled.span(_templateObject8$k || (_templateObject8$k = _taggedTemplateLiteralLoose(["\n display: block;\n font-style: normal;\n font-weight: normal;\n font-size: ", ";\n line-height: ", ";\n color: ", ";\n margin-top: 2px;\n"])), function (props) {
39832
40523
  return props.fontSize || '13px';
39833
40524
  }, function (props) {
39834
40525
  return props.lineHeight || '16px';
@@ -39867,7 +40558,7 @@ function SvgLinkIcon(props) {
39867
40558
  })));
39868
40559
  }
39869
40560
 
39870
- var _templateObject$P, _templateObject2$K, _templateObject3$C, _templateObject4$w, _templateObject5$s;
40561
+ var _templateObject$Q, _templateObject2$L, _templateObject3$D, _templateObject4$x, _templateObject5$t;
39871
40562
  var LinkItem = function LinkItem(_ref) {
39872
40563
  var link = _ref.link,
39873
40564
  linkPreviewIcon = _ref.linkPreviewIcon,
@@ -39898,25 +40589,25 @@ var LinkItem = function LinkItem(_ref) {
39898
40589
  color: linkPreviewColor || textPrimary
39899
40590
  }, link))));
39900
40591
  };
39901
- var LinkIconCont = styled.span(_templateObject$P || (_templateObject$P = _taggedTemplateLiteralLoose(["\n display: inline-flex;\n > svg {\n color: ", ";\n fill: ", ";\n }\n"])), function (props) {
40592
+ var LinkIconCont = styled.span(_templateObject$Q || (_templateObject$Q = _taggedTemplateLiteralLoose(["\n display: inline-flex;\n > svg {\n color: ", ";\n fill: ", ";\n }\n"])), function (props) {
39902
40593
  return props.iconColor;
39903
40594
  }, function (props) {
39904
40595
  return props.fillColor;
39905
40596
  });
39906
- var LinkHoverIconCont = styled.span(_templateObject2$K || (_templateObject2$K = _taggedTemplateLiteralLoose(["\n display: none;\n > svg {\n color: ", ";\n fill: ", ";\n }\n"])), function (props) {
40597
+ var LinkHoverIconCont = styled.span(_templateObject2$L || (_templateObject2$L = _taggedTemplateLiteralLoose(["\n display: none;\n > svg {\n color: ", ";\n fill: ", ";\n }\n"])), function (props) {
39907
40598
  return props.iconColor;
39908
40599
  }, function (props) {
39909
40600
  return props.fillColor;
39910
40601
  });
39911
- var LinkInfoCont = styled.div(_templateObject3$C || (_templateObject3$C = _taggedTemplateLiteralLoose(["\n margin-left: 12px;\n width: calc(100% - 40px);\n"])));
39912
- var FileItem$1 = styled.li(_templateObject4$w || (_templateObject4$w = _taggedTemplateLiteralLoose(["\n padding: 9px 16px;\n a {\n display: flex;\n align-items: center;\n text-decoration: none;\n }\n &:hover {\n background-color: ", ";\n & ", " {\n display: none;\n }\n & ", " {\n display: inline-flex;\n }\n }\n"])), function (props) {
40602
+ var LinkInfoCont = styled.div(_templateObject3$D || (_templateObject3$D = _taggedTemplateLiteralLoose(["\n margin-left: 12px;\n width: calc(100% - 40px);\n"])));
40603
+ var FileItem$1 = styled.li(_templateObject4$x || (_templateObject4$x = _taggedTemplateLiteralLoose(["\n padding: 9px 16px;\n a {\n display: flex;\n align-items: center;\n text-decoration: none;\n }\n &:hover {\n background-color: ", ";\n & ", " {\n display: none;\n }\n & ", " {\n display: inline-flex;\n }\n }\n"])), function (props) {
39913
40604
  return props.hoverBackgroundColor;
39914
40605
  }, LinkIconCont, LinkHoverIconCont);
39915
- var LinkUrl = styled.span(_templateObject5$s || (_templateObject5$s = _taggedTemplateLiteralLoose(["\n display: block;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n max-width: calc(100% - 52px);\n font-style: normal;\n font-weight: normal;\n font-size: 13px;\n line-height: 16px;\n text-decoration: underline;\n color: ", ";\n"])), function (props) {
40606
+ var LinkUrl = styled.span(_templateObject5$t || (_templateObject5$t = _taggedTemplateLiteralLoose(["\n display: block;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n max-width: calc(100% - 52px);\n font-style: normal;\n font-weight: normal;\n font-size: 13px;\n line-height: 16px;\n text-decoration: underline;\n color: ", ";\n"])), function (props) {
39916
40607
  return props.color;
39917
40608
  });
39918
40609
 
39919
- var _templateObject$Q;
40610
+ var _templateObject$R;
39920
40611
  var Links = function Links(_ref) {
39921
40612
  var channelId = _ref.channelId,
39922
40613
  linkPreviewIcon = _ref.linkPreviewIcon,
@@ -39941,7 +40632,7 @@ var Links = function Links(_ref) {
39941
40632
  });
39942
40633
  }));
39943
40634
  };
39944
- var Container$p = styled.ul(_templateObject$Q || (_templateObject$Q = _taggedTemplateLiteralLoose(["\n margin: 0;\n padding: 11px 0 0;\n overflow-x: hidden;\n overflow-y: auto;\n list-style: none;\n transition: all 0.2s;\n"])));
40635
+ var Container$p = styled.ul(_templateObject$R || (_templateObject$R = _taggedTemplateLiteralLoose(["\n margin: 0;\n padding: 11px 0 0;\n overflow-x: hidden;\n overflow-y: auto;\n list-style: none;\n transition: all 0.2s;\n"])));
39945
40636
 
39946
40637
  var _rect$5, _path$1q;
39947
40638
  function _extends$1u() {
@@ -39997,7 +40688,7 @@ function SvgVoicePreviewPause(props) {
39997
40688
  })));
39998
40689
  }
39999
40690
 
40000
- var _templateObject$R, _templateObject2$L, _templateObject3$D, _templateObject4$x, _templateObject5$t, _templateObject6$o, _templateObject7$m, _templateObject8$k;
40691
+ var _templateObject$S, _templateObject2$M, _templateObject3$E, _templateObject4$y, _templateObject5$u, _templateObject6$p, _templateObject7$n, _templateObject8$l;
40001
40692
  var VoiceItem = function VoiceItem(_ref) {
40002
40693
  var file = _ref.file,
40003
40694
  voicePreviewPlayIcon = _ref.voicePreviewPlayIcon,
@@ -40122,32 +40813,32 @@ var VoiceItem = function VoiceItem(_ref) {
40122
40813
  type: 'audio/mpeg'
40123
40814
  })));
40124
40815
  };
40125
- var FileIconCont$1 = styled.span(_templateObject$R || (_templateObject$R = _taggedTemplateLiteralLoose(["\n cursor: pointer;\n display: inline-flex;\n fill: ", ";\n rect {\n fill: ", ";\n }\n"])), function (props) {
40816
+ var FileIconCont$1 = styled.span(_templateObject$S || (_templateObject$S = _taggedTemplateLiteralLoose(["\n cursor: pointer;\n display: inline-flex;\n fill: ", ";\n rect {\n fill: ", ";\n }\n"])), function (props) {
40126
40817
  return props.fill || 'transparent';
40127
40818
  }, function (props) {
40128
40819
  return props.fill || 'transparent';
40129
40820
  });
40130
- var FileHoverIconCont$1 = styled.span(_templateObject2$L || (_templateObject2$L = _taggedTemplateLiteralLoose(["\n cursor: pointer;\n display: none;\n fill: ", ";\n rect {\n fill: ", ";\n }\n"])), function (props) {
40821
+ var FileHoverIconCont$1 = styled.span(_templateObject2$M || (_templateObject2$M = _taggedTemplateLiteralLoose(["\n cursor: pointer;\n display: none;\n fill: ", ";\n rect {\n fill: ", ";\n }\n"])), function (props) {
40131
40822
  return props.fill || 'transparent';
40132
40823
  }, function (props) {
40133
40824
  return props.fill || 'transparent';
40134
40825
  });
40135
- var FileItem$2 = styled.li(_templateObject3$D || (_templateObject3$D = _taggedTemplateLiteralLoose(["\n padding: 9px 16px;\n display: flex;\n align-items: center;\n text-decoration: none;\n\n &:hover {\n background-color: ", ";\n }\n div {\n margin-left: 12px;\n width: 100%;\n }\n img {\n width: 42px;\n height: 42px;\n border: 0.5px solid rgba(0, 0, 0, 0.1);\n box-sizing: border-box;\n border-radius: 6px;\n }\n\n &.isHover {\n & ", " {\n display: none;\n }\n & ", " {\n display: inline-flex;\n }\n }\n"])), function (props) {
40826
+ var FileItem$2 = styled.li(_templateObject3$E || (_templateObject3$E = _taggedTemplateLiteralLoose(["\n padding: 9px 16px;\n display: flex;\n align-items: center;\n text-decoration: none;\n\n &:hover {\n background-color: ", ";\n }\n div {\n margin-left: 12px;\n width: 100%;\n }\n img {\n width: 42px;\n height: 42px;\n border: 0.5px solid rgba(0, 0, 0, 0.1);\n box-sizing: border-box;\n border-radius: 6px;\n }\n\n &.isHover {\n & ", " {\n display: none;\n }\n & ", " {\n display: inline-flex;\n }\n }\n"])), function (props) {
40136
40827
  return props.hoverBackgroundColor;
40137
40828
  }, FileIconCont$1, FileHoverIconCont$1);
40138
- var AudioInfo = styled.div(_templateObject4$x || (_templateObject4$x = _taggedTemplateLiteralLoose(["\n position: relative;\n"])));
40139
- var AudioTitle = styled.span(_templateObject5$t || (_templateObject5$t = _taggedTemplateLiteralLoose(["\n display: block;\n font-style: normal;\n font-weight: 500;\n font-size: 15px;\n line-height: 20px;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n max-width: calc(100% - 72px);\n color: ", ";\n"])), function (props) {
40829
+ var AudioInfo = styled.div(_templateObject4$y || (_templateObject4$y = _taggedTemplateLiteralLoose(["\n position: relative;\n"])));
40830
+ var AudioTitle = styled.span(_templateObject5$u || (_templateObject5$u = _taggedTemplateLiteralLoose(["\n display: block;\n font-style: normal;\n font-weight: 500;\n font-size: 15px;\n line-height: 20px;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n max-width: calc(100% - 72px);\n color: ", ";\n"])), function (props) {
40140
40831
  return props.color;
40141
40832
  });
40142
- var AudioDate = styled.span(_templateObject6$o || (_templateObject6$o = _taggedTemplateLiteralLoose(["\n display: block;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n max-width: calc(100% - 72px);\n font-style: normal;\n font-weight: normal;\n font-size: 12px;\n line-height: 16px;\n color: ", ";\n"])), function (props) {
40833
+ var AudioDate = styled.span(_templateObject6$p || (_templateObject6$p = _taggedTemplateLiteralLoose(["\n display: block;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n max-width: calc(100% - 72px);\n font-style: normal;\n font-weight: normal;\n font-size: 12px;\n line-height: 16px;\n color: ", ";\n"])), function (props) {
40143
40834
  return props.color;
40144
40835
  });
40145
- var AudioSendTime = styled.span(_templateObject7$m || (_templateObject7$m = _taggedTemplateLiteralLoose(["\n position: absolute;\n right: 0;\n top: 11px;\n color: ", ";\n font-size: 12px;\n line-height: 16px;\n"])), function (props) {
40836
+ var AudioSendTime = styled.span(_templateObject7$n || (_templateObject7$n = _taggedTemplateLiteralLoose(["\n position: absolute;\n right: 0;\n top: 11px;\n color: ", ";\n font-size: 12px;\n line-height: 16px;\n"])), function (props) {
40146
40837
  return props.color;
40147
40838
  });
40148
- var Audio = styled.audio(_templateObject8$k || (_templateObject8$k = _taggedTemplateLiteralLoose(["\n display: none;\n"])));
40839
+ var Audio = styled.audio(_templateObject8$l || (_templateObject8$l = _taggedTemplateLiteralLoose(["\n display: none;\n"])));
40149
40840
 
40150
- var _templateObject$S;
40841
+ var _templateObject$T;
40151
40842
  var Voices = function Voices(_ref) {
40152
40843
  var channelId = _ref.channelId,
40153
40844
  voicePreviewPlayIcon = _ref.voicePreviewPlayIcon,
@@ -40178,9 +40869,9 @@ var Voices = function Voices(_ref) {
40178
40869
  });
40179
40870
  }));
40180
40871
  };
40181
- var Container$q = styled.ul(_templateObject$S || (_templateObject$S = _taggedTemplateLiteralLoose(["\n margin: 0;\n padding: 11px 0 0;\n overflow-x: hidden;\n overflow-y: auto;\n list-style: none;\n transition: all 0.2s;\n"])));
40872
+ var Container$q = styled.ul(_templateObject$T || (_templateObject$T = _taggedTemplateLiteralLoose(["\n margin: 0;\n padding: 11px 0 0;\n overflow-x: hidden;\n overflow-y: auto;\n list-style: none;\n transition: all 0.2s;\n"])));
40182
40873
 
40183
- var _templateObject$T, _templateObject2$M;
40874
+ var _templateObject$U, _templateObject2$N;
40184
40875
  var DetailsTab = function DetailsTab(_ref) {
40185
40876
  var channel = _ref.channel,
40186
40877
  theme = _ref.theme,
@@ -40329,8 +41020,8 @@ var DetailsTab = function DetailsTab(_ref) {
40329
41020
  voicePreviewHoverBackgroundColor: voicePreviewHoverBackgroundColor
40330
41021
  })));
40331
41022
  };
40332
- var Container$r = styled.div(_templateObject$T || (_templateObject$T = _taggedTemplateLiteralLoose(["\n min-height: calc(100vh - 64px);\n"])));
40333
- var DetailsTabHeader = styled.div(_templateObject2$M || (_templateObject2$M = _taggedTemplateLiteralLoose(["\n overflow-x: auto;\n overflow-y: hidden;\n border-bottom: 1px solid ", ";\n background-color: ", ";\n display: flex;\n justify-content: space-between;\n position: sticky;\n top: 0;\n z-index: 12;\n /* width */\n &::-webkit-scrollbar {\n width: 0;\n height: 0;\n }\n\n /* Track */\n &::-webkit-scrollbar-track {\n background: transparent;\n }\n\n /* Handle */\n &::-webkit-scrollbar-thumb {\n background: transparent;\n }\n\n /* Handle on hover */\n &::-webkit-scrollbar-thumb:hover {\n background: transparent;\n }\n button {\n position: relative;\n border: none;\n background: transparent;\n outline: none;\n height: 44px;\n text-transform: capitalize;\n font-style: normal;\n font-weight: 500;\n font-size: ", ";\n line-height: ", ";\n color: ", ";\n min-width: ", ";\n cursor: pointer;\n }\n\n & span {\n position: relative;\n display: inline-flex;\n align-items: center;\n height: 100%;\n }\n\n & .active span {\n color: ", ";\n\n &:after {\n content: '';\n width: 100%;\n border-radius: 2px;\n height: 2px;\n background-color: ", ";\n position: absolute;\n top: calc(100% - 1px);\n left: 0;\n }\n }\n"])), function (props) {
41023
+ var Container$r = styled.div(_templateObject$U || (_templateObject$U = _taggedTemplateLiteralLoose(["\n min-height: calc(100vh - 64px);\n"])));
41024
+ var DetailsTabHeader = styled.div(_templateObject2$N || (_templateObject2$N = _taggedTemplateLiteralLoose(["\n overflow-x: auto;\n overflow-y: hidden;\n border-bottom: 1px solid ", ";\n background-color: ", ";\n display: flex;\n justify-content: space-between;\n position: sticky;\n top: 0;\n z-index: 12;\n /* width */\n &::-webkit-scrollbar {\n width: 0;\n height: 0;\n }\n\n /* Track */\n &::-webkit-scrollbar-track {\n background: transparent;\n }\n\n /* Handle */\n &::-webkit-scrollbar-thumb {\n background: transparent;\n }\n\n /* Handle on hover */\n &::-webkit-scrollbar-thumb:hover {\n background: transparent;\n }\n button {\n position: relative;\n border: none;\n background: transparent;\n outline: none;\n height: 44px;\n text-transform: capitalize;\n font-style: normal;\n font-weight: 500;\n font-size: ", ";\n line-height: ", ";\n color: ", ";\n min-width: ", ";\n cursor: pointer;\n }\n\n & span {\n position: relative;\n display: inline-flex;\n align-items: center;\n height: 100%;\n }\n\n & .active span {\n color: ", ";\n\n &:after {\n content: '';\n width: 100%;\n border-radius: 2px;\n height: 2px;\n background-color: ", ";\n position: absolute;\n top: calc(100% - 1px);\n left: 0;\n }\n }\n"])), function (props) {
40334
41025
  return props.borderColor;
40335
41026
  }, function (props) {
40336
41027
  return props.backgroundColor || 'transparent';
@@ -40348,17 +41039,17 @@ var DetailsTabHeader = styled.div(_templateObject2$M || (_templateObject2$M = _t
40348
41039
  return props.activeTabColor;
40349
41040
  });
40350
41041
 
40351
- var _templateObject$U, _templateObject2$N, _templateObject3$E, _templateObject4$y;
40352
- var Container$s = styled.div(_templateObject$U || (_templateObject$U = _taggedTemplateLiteralLoose(["\n ", ";\n height: ", ";\n position: absolute;\n padding: 24px 16px;\n background-color: ", ";\n z-index: 25;\n"])), function (props) {
41042
+ var _templateObject$V, _templateObject2$O, _templateObject3$F, _templateObject4$z;
41043
+ var Container$s = styled.div(_templateObject$V || (_templateObject$V = _taggedTemplateLiteralLoose(["\n ", ";\n height: ", ";\n position: absolute;\n padding: 24px 16px;\n background-color: ", ";\n z-index: 25;\n"])), function (props) {
40353
41044
  return props.active ? 'display: block' : 'display: none';
40354
41045
  }, function (props) {
40355
41046
  return "calc(100vh - " + (props.heightOffset ? props.heightOffset + 48 : 48) + "px)";
40356
41047
  }, function (props) {
40357
41048
  return props.backgroundColor;
40358
41049
  });
40359
- var AvatarCont = styled.div(_templateObject2$N || (_templateObject2$N = _taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: center;\n align-items: center;\n position: relative;\n margin-bottom: 4px;\n\n &::after {\n content: '';\n position: absolute;\n width: 120px;\n height: 120px;\n border-radius: 50%;\n background-color: rgba(0, 0, 0, 0.4);\n }\n .dropdown-body {\n top: inherit;\n right: inherit;\n bottom: -90px;\n }\n"])));
40360
- var DropDownWrapper = styled.div(_templateObject3$E || (_templateObject3$E = _taggedTemplateLiteralLoose(["\n position: absolute;\n z-index: 4;\n width: 40px;\n height: 40px;\n"])));
40361
- var EditChannelFooter = styled(ButtonBlock)(_templateObject4$y || (_templateObject4$y = _taggedTemplateLiteralLoose(["\n margin-top: 24px;\n\n & > button {\n margin-left: 12px;\n }\n"])));
41050
+ 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"])));
41051
+ var DropDownWrapper = styled.div(_templateObject3$F || (_templateObject3$F = _taggedTemplateLiteralLoose(["\n position: absolute;\n z-index: 4;\n width: 40px;\n height: 40px;\n"])));
41052
+ var EditChannelFooter = styled(ButtonBlock)(_templateObject4$z || (_templateObject4$z = _taggedTemplateLiteralLoose(["\n margin-top: 24px;\n\n & > button {\n margin-left: 12px;\n }\n"])));
40362
41053
  var EditChannel = function EditChannel(_ref) {
40363
41054
  var channel = _ref.channel,
40364
41055
  theme = _ref.theme,
@@ -40613,7 +41304,7 @@ var EditChannel = function EditChannel(_ref) {
40613
41304
  })));
40614
41305
  };
40615
41306
 
40616
- var _templateObject$V, _templateObject2$O, _templateObject3$F, _templateObject4$z, _templateObject5$u, _templateObject6$p, _templateObject7$n, _templateObject8$l, _templateObject9$g, _templateObject0$e, _templateObject1$b, _templateObject10$7;
41307
+ var _templateObject$W, _templateObject2$P, _templateObject3$G, _templateObject4$A, _templateObject5$v, _templateObject6$q, _templateObject7$o, _templateObject8$m, _templateObject9$h, _templateObject0$f, _templateObject1$c, _templateObject10$7;
40617
41308
  var Details = function Details(_ref) {
40618
41309
  var _activeChannel$member;
40619
41310
  var detailsTitleText = _ref.detailsTitleText,
@@ -41000,17 +41691,17 @@ var Details = function Details(_ref) {
41000
41691
  onTabChange: handleTabChange
41001
41692
  }))));
41002
41693
  };
41003
- var Container$t = styled.div(_templateObject$V || (_templateObject$V = _taggedTemplateLiteralLoose(["\n flex: 0 0 auto;\n width: 0;\n border-left: 1px solid ", ";\n //transition: all 0.1s;\n ", "\n background-color: ", ";\n}\n"])), function (props) {
41694
+ var Container$t = styled.div(_templateObject$W || (_templateObject$W = _taggedTemplateLiteralLoose(["\n flex: 0 0 auto;\n width: 0;\n border-left: 1px solid ", ";\n //transition: all 0.1s;\n ", "\n background-color: ", ";\n}\n"])), function (props) {
41004
41695
  return props.borderColor;
41005
41696
  }, function (props) {
41006
41697
  return props.mounted && " width: " + (props.size === 'small' ? '300px' : props.size === 'medium' ? '350px' : '400px') + ";";
41007
41698
  }, function (props) {
41008
41699
  return props.backgroundColor;
41009
41700
  });
41010
- var ChannelDetailsHeader = styled.div(_templateObject2$O || (_templateObject2$O = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n padding: 16px;\n position: relative;\n height: 64px;\n box-sizing: border-box;\n border-bottom: 1px solid ", ";\n\n & svg {\n cursor: pointer;\n }\n"])), function (props) {
41701
+ var ChannelDetailsHeader = styled.div(_templateObject2$P || (_templateObject2$P = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n padding: 16px;\n position: relative;\n height: 64px;\n box-sizing: border-box;\n border-bottom: 1px solid ", ";\n\n & svg {\n cursor: pointer;\n }\n"])), function (props) {
41011
41702
  return props.borderColor;
41012
41703
  });
41013
- var ChatDetails = styled.div(_templateObject3$F || (_templateObject3$F = _taggedTemplateLiteralLoose(["\n //position: relative;\n width: ", ";\n //height: ", ";\n height: ", ";\n overflow-y: auto;\n\n &::-webkit-scrollbar {\n width: 8px;\n background: transparent;\n }\n &::-webkit-scrollbar-thumb {\n background: transparent;\n }\n\n &.show-scrollbar::-webkit-scrollbar-thumb {\n background: ", ";\n border-radius: 4px;\n }\n &.show-scrollbar::-webkit-scrollbar-track {\n background: transparent;\n }\n"])), function (props) {
41704
+ var ChatDetails = styled.div(_templateObject3$G || (_templateObject3$G = _taggedTemplateLiteralLoose(["\n //position: relative;\n width: ", ";\n //height: ", ";\n height: ", ";\n overflow-y: auto;\n\n &::-webkit-scrollbar {\n width: 8px;\n background: transparent;\n }\n &::-webkit-scrollbar-thumb {\n background: transparent;\n }\n\n &.show-scrollbar::-webkit-scrollbar-thumb {\n background: ", ";\n border-radius: 4px;\n }\n &.show-scrollbar::-webkit-scrollbar-track {\n background: transparent;\n }\n"])), function (props) {
41014
41705
  return props.size === 'small' ? '300px' : props.size === 'medium' ? '350px' : '400px';
41015
41706
  }, function (props) {
41016
41707
  return props.height ? "calc(100vh - " + props.heightOffset + "px)" : '100vh';
@@ -41019,37 +41710,37 @@ var ChatDetails = styled.div(_templateObject3$F || (_templateObject3$F = _tagged
41019
41710
  }, function (props) {
41020
41711
  return props.thumbColor;
41021
41712
  });
41022
- var AboutChannel = styled.div(_templateObject4$z || (_templateObject4$z = _taggedTemplateLiteralLoose(["\n margin-top: 20px;\n"])));
41023
- var AboutChannelTitle = styled.h4(_templateObject5$u || (_templateObject5$u = _taggedTemplateLiteralLoose(["\n font-size: 12px;\n margin: 0;\n line-height: 16px;\n color: ", ";\n"])), function (props) {
41713
+ var AboutChannel = styled.div(_templateObject4$A || (_templateObject4$A = _taggedTemplateLiteralLoose(["\n margin-top: 20px;\n"])));
41714
+ var AboutChannelTitle = styled.h4(_templateObject5$v || (_templateObject5$v = _taggedTemplateLiteralLoose(["\n font-size: 12px;\n margin: 0;\n line-height: 16px;\n color: ", ";\n"])), function (props) {
41024
41715
  return props.color;
41025
41716
  });
41026
- var AboutChannelText = styled.h3(_templateObject6$p || (_templateObject6$p = _taggedTemplateLiteralLoose(["\n font-size: 15px;\n margin: 0;\n font-weight: 400;\n line-height: 20px;\n color: ", ";\n"])), function (props) {
41717
+ var AboutChannelText = styled.h3(_templateObject6$q || (_templateObject6$q = _taggedTemplateLiteralLoose(["\n font-size: 15px;\n margin: 0;\n font-weight: 400;\n line-height: 20px;\n color: ", ";\n"])), function (props) {
41027
41718
  return props.color;
41028
41719
  });
41029
- var ChannelInfo$4 = styled.div(_templateObject7$n || (_templateObject7$n = _taggedTemplateLiteralLoose(["\n position: relative;\n margin-left: ", ";\n margin-top: ", ";\n text-align: ", ";\n"])), function (props) {
41720
+ var ChannelInfo$4 = styled.div(_templateObject7$o || (_templateObject7$o = _taggedTemplateLiteralLoose(["\n position: relative;\n margin-left: ", ";\n margin-top: ", ";\n text-align: ", ";\n"])), function (props) {
41030
41721
  return (!props.direction || props.direction !== 'column') && '16px';
41031
41722
  }, function (props) {
41032
41723
  return props.direction && props.direction === 'column' && '16px';
41033
41724
  }, function (props) {
41034
41725
  return props.direction && props.direction === 'column' && 'center';
41035
41726
  });
41036
- var DetailsHeader = styled.div(_templateObject8$l || (_templateObject8$l = _taggedTemplateLiteralLoose(["\n border-bottom: 6px solid ", ";\n align-items: center;\n box-sizing: border-box;\n padding: 20px 16px;\n"])), function (props) {
41727
+ var DetailsHeader = styled.div(_templateObject8$m || (_templateObject8$m = _taggedTemplateLiteralLoose(["\n border-bottom: 6px solid ", ";\n align-items: center;\n box-sizing: border-box;\n padding: 20px 16px;\n"])), function (props) {
41037
41728
  return props.borderColor;
41038
41729
  });
41039
- var ChannelAvatarAndName = styled.div(_templateObject9$g || (_templateObject9$g = _taggedTemplateLiteralLoose(["\n position: relative;\n display: flex;\n align-items: center;\n box-sizing: border-box;\n flex-direction: ", ";\n"])), function (props) {
41730
+ var ChannelAvatarAndName = styled.div(_templateObject9$h || (_templateObject9$h = _taggedTemplateLiteralLoose(["\n position: relative;\n display: flex;\n align-items: center;\n box-sizing: border-box;\n flex-direction: ", ";\n"])), function (props) {
41040
41731
  return props.direction;
41041
41732
  });
41042
- var ChannelName$1 = styled(SectionHeader)(_templateObject0$e || (_templateObject0$e = _taggedTemplateLiteralLoose(["\n white-space: nowrap;\n max-width: ", ";\n text-overflow: ellipsis;\n text-color: ", ";\n overflow: hidden;\n text-transform: ", ";\n"])), function (props) {
41733
+ var ChannelName$1 = styled(SectionHeader)(_templateObject0$f || (_templateObject0$f = _taggedTemplateLiteralLoose(["\n white-space: nowrap;\n max-width: ", ";\n text-overflow: ellipsis;\n text-color: ", ";\n overflow: hidden;\n text-transform: ", ";\n"])), function (props) {
41043
41734
  return props.isDirect ? '200px' : '168px';
41044
41735
  }, function (props) {
41045
41736
  return props.color;
41046
41737
  }, function (props) {
41047
41738
  return props.uppercase && 'uppercase';
41048
41739
  });
41049
- var ChannelNameWrapper = styled.div(_templateObject1$b || (_templateObject1$b = _taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: center;\n"])));
41740
+ var ChannelNameWrapper = styled.div(_templateObject1$c || (_templateObject1$c = _taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: center;\n"])));
41050
41741
  var EditButton = styled.span(_templateObject10$7 || (_templateObject10$7 = _taggedTemplateLiteralLoose(["\n margin-left: 6px;\n cursor: pointer;\n color: #b2b6be;\n"])));
41051
41742
 
41052
- var _templateObject$W;
41743
+ var _templateObject$X;
41053
41744
  var ChannelDetailsContainer = function ChannelDetailsContainer(_ref) {
41054
41745
  var _ref$size = _ref.size,
41055
41746
  size = _ref$size === void 0 ? 'large' : _ref$size,
@@ -41278,7 +41969,7 @@ var ChannelDetailsContainer = function ChannelDetailsContainer(_ref) {
41278
41969
  showPhoneNumber: showPhoneNumber
41279
41970
  })));
41280
41971
  };
41281
- var DetailsWrapper = styled.div(_templateObject$W || (_templateObject$W = _taggedTemplateLiteralLoose([""])));
41972
+ var DetailsWrapper = styled.div(_templateObject$X || (_templateObject$X = _taggedTemplateLiteralLoose([""])));
41282
41973
 
41283
41974
  var _path$1s;
41284
41975
  function _extends$1w() {
@@ -41302,7 +41993,7 @@ function SvgChevronDown(props) {
41302
41993
  })));
41303
41994
  }
41304
41995
 
41305
- var _templateObject$X, _templateObject2$P;
41996
+ var _templateObject$Y, _templateObject2$Q;
41306
41997
  var MessagesScrollToBottomButton = function MessagesScrollToBottomButton(_ref) {
41307
41998
  var buttonIcon = _ref.buttonIcon,
41308
41999
  buttonWidth = _ref.buttonWidth,
@@ -41385,7 +42076,7 @@ var MessagesScrollToBottomButton = function MessagesScrollToBottomButton(_ref) {
41385
42076
  isMuted: channel.muted
41386
42077
  }, channel.newMessageCount ? channel.newMessageCount > 99 ? '99+' : channel.newMessageCount : '')), buttonIcon || /*#__PURE__*/React__default.createElement(SvgChevronDown, null)));
41387
42078
  };
41388
- var BottomButton = styled.div(_templateObject$X || (_templateObject$X = _taggedTemplateLiteralLoose(["\n transition: all 0.3s ease-in-out;\n position: absolute;\n ", ";\n\n ", ";\n\n ", ";\n right: ", "px;\n\n margin-right: 16px;\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: ", ";\n border: 0.5px solid rgba(0, 0, 0, 0.1);\n border-radius: 50px;\n width: 48px;\n height: 48px;\n cursor: pointer;\n z-index: 14;\n & > svg {\n color: rgba(129, 140, 153, 1);\n }\n\n & > span {\n bottom: 32px;\n right: 0;\n }\n"])), function (props) {
42079
+ var BottomButton = styled.div(_templateObject$Y || (_templateObject$Y = _taggedTemplateLiteralLoose(["\n transition: all 0.3s ease-in-out;\n position: absolute;\n ", ";\n\n ", ";\n\n ", ";\n right: ", "px;\n\n margin-right: 16px;\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: ", ";\n border: 0.5px solid rgba(0, 0, 0, 0.1);\n border-radius: 50px;\n width: 48px;\n height: 48px;\n cursor: pointer;\n z-index: 14;\n & > svg {\n color: rgba(129, 140, 153, 1);\n }\n\n & > span {\n bottom: 32px;\n right: 0;\n }\n"])), function (props) {
41389
42080
  return props.animateFrom === 'bottom' && "bottom: " + (props.bottomOffset + (props.bottomPosition === undefined ? 45 : props.bottomPosition) - 130) + "px";
41390
42081
  }, function (props) {
41391
42082
  return props.animateFrom === 'right' && "right: " + (props.rightPosition === undefined ? 16 : props.rightPosition - 100) + "px";
@@ -41396,7 +42087,7 @@ var BottomButton = styled.div(_templateObject$X || (_templateObject$X = _taggedT
41396
42087
  }, function (props) {
41397
42088
  return props.backgroundColor;
41398
42089
  });
41399
- var UnreadCount$1 = styled.span(_templateObject2$P || (_templateObject2$P = _taggedTemplateLiteralLoose(["\n position: absolute;\n bottom: 11px;\n right: 16px;\n flex: 0 0 auto;\n margin-left: auto;\n background-color: ", ";\n padding: 0 4px;\n font-size: ", ";\n line-height: 20px;\n min-width: ", ";\n height: ", ";\n text-align: center;\n font-weight: 500;\n color: ", ";\n border-radius: 10px;\n box-sizing: border-box;\n"])), function (props) {
42090
+ var UnreadCount$1 = styled.span(_templateObject2$Q || (_templateObject2$Q = _taggedTemplateLiteralLoose(["\n position: absolute;\n bottom: 11px;\n right: 16px;\n flex: 0 0 auto;\n margin-left: auto;\n background-color: ", ";\n padding: 0 4px;\n font-size: ", ";\n line-height: 20px;\n min-width: ", ";\n height: ", ";\n text-align: center;\n font-weight: 500;\n color: ", ";\n border-radius: 10px;\n box-sizing: border-box;\n"])), function (props) {
41400
42091
  return props.backgroundColor;
41401
42092
  }, function (props) {
41402
42093
  return props.fontSize || '13px';
@@ -41439,7 +42130,7 @@ function SvgMention(props) {
41439
42130
  })));
41440
42131
  }
41441
42132
 
41442
- var _templateObject$Y, _templateObject2$Q;
42133
+ var _templateObject$Z, _templateObject2$R;
41443
42134
  var MessagesScrollToUnreadMentionsButton = function MessagesScrollToUnreadMentionsButton(_ref) {
41444
42135
  var buttonIcon = _ref.buttonIcon,
41445
42136
  buttonWidth = _ref.buttonWidth,
@@ -41582,7 +42273,7 @@ var MessagesScrollToUnreadMentionsButton = function MessagesScrollToUnreadMentio
41582
42273
  isMuted: channel.muted
41583
42274
  }, channel.newMentionCount ? channel.newMentionCount > 99 ? '99+' : channel.newMentionCount : '')), buttonIcon || /*#__PURE__*/React__default.createElement(SvgMention, null)));
41584
42275
  };
41585
- var BottomButton$1 = styled.div(_templateObject$Y || (_templateObject$Y = _taggedTemplateLiteralLoose(["\n transition: all 0.3s ease-in-out;\n position: absolute;\n ", ";\n\n ", ";\n\n ", ";\n right: ", ";\n margin-right: 16px;\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: ", ";\n border: 0.5px solid rgba(0, 0, 0, 0.1);\n border-radius: 50px;\n width: 48px;\n height: 48px;\n cursor: pointer;\n z-index: 14;\n\n & > svg {\n color: rgba(129, 140, 153, 1);\n }\n\n & > span {\n bottom: 32px;\n right: 0;\n }\n"])), function (props) {
42276
+ var BottomButton$1 = styled.div(_templateObject$Z || (_templateObject$Z = _taggedTemplateLiteralLoose(["\n transition: all 0.3s ease-in-out;\n position: absolute;\n ", ";\n\n ", ";\n\n ", ";\n right: ", ";\n margin-right: 16px;\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: ", ";\n border: 0.5px solid rgba(0, 0, 0, 0.1);\n border-radius: 50px;\n width: 48px;\n height: 48px;\n cursor: pointer;\n z-index: 14;\n\n & > svg {\n color: rgba(129, 140, 153, 1);\n }\n\n & > span {\n bottom: 32px;\n right: 0;\n }\n"])), function (props) {
41586
42277
  return props.animateFrom === 'bottom' && "bottom: " + (props.bottomOffset + (props.bottomPosition === undefined ? 45 : props.bottomPosition) + (props.showsUnreadMentionsButton ? 60 : 0) - 180) + "px";
41587
42278
  }, function (props) {
41588
42279
  return props.animateFrom === 'right' && "right: " + (props.rightPosition === undefined ? 16 : props.rightPosition - 100) + "px";
@@ -41593,7 +42284,7 @@ var BottomButton$1 = styled.div(_templateObject$Y || (_templateObject$Y = _tagge
41593
42284
  }, function (props) {
41594
42285
  return props.backgroundColor;
41595
42286
  });
41596
- var UnreadCount$2 = styled.span(_templateObject2$Q || (_templateObject2$Q = _taggedTemplateLiteralLoose(["\n position: absolute;\n bottom: 11px;\n right: 16px;\n flex: 0 0 auto;\n margin-left: auto;\n background-color: ", ";\n padding: 0 4px;\n font-size: ", ";\n line-height: 20px;\n min-width: ", ";\n height: ", ";\n text-align: center;\n font-weight: 500;\n color: ", ";\n border-radius: 10px;\n box-sizing: border-box;\n"])), function (props) {
42287
+ var UnreadCount$2 = styled.span(_templateObject2$R || (_templateObject2$R = _taggedTemplateLiteralLoose(["\n position: absolute;\n bottom: 11px;\n right: 16px;\n flex: 0 0 auto;\n margin-left: auto;\n background-color: ", ";\n padding: 0 4px;\n font-size: ", ";\n line-height: 20px;\n min-width: ", ";\n height: ", ";\n text-align: center;\n font-weight: 500;\n color: ", ";\n border-radius: 10px;\n box-sizing: border-box;\n"])), function (props) {
41597
42288
  return props.backgroundColor;
41598
42289
  }, function (props) {
41599
42290
  return props.fontSize || '13px';