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