sceyt-chat-react-uikit 1.7.2-beta.8 → 1.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -1,24 +1,5 @@
1
1
  function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
2
2
 
3
- function _interopNamespace(e) {
4
- if (e && e.__esModule) { return e; } else {
5
- var n = {};
6
- if (e) {
7
- Object.keys(e).forEach(function (k) {
8
- var d = Object.getOwnPropertyDescriptor(e, k);
9
- Object.defineProperty(n, k, d.get ? d : {
10
- enumerable: true,
11
- get: function () {
12
- return e[k];
13
- }
14
- });
15
- });
16
- }
17
- n['default'] = e;
18
- return n;
19
- }
20
- }
21
-
22
3
  var React = require('react');
23
4
  var React__default = _interopDefault(React);
24
5
  var reactRedux = require('react-redux');
@@ -44,6 +25,7 @@ var LexicalOnChangePlugin = require('@lexical/react/LexicalOnChangePlugin');
44
25
  var ReactDOM = require('react-dom');
45
26
  var LexicalTypeaheadMenuPlugin = require('@lexical/react/LexicalTypeaheadMenuPlugin');
46
27
  var offset = require('@lexical/offset');
28
+ var MicRecorder = _interopDefault(require('mic-recorder-to-mp3'));
47
29
  var LexicalHistoryPlugin = require('@lexical/react/LexicalHistoryPlugin');
48
30
 
49
31
  // src/utils/formatProdErrorMessage.ts
@@ -2614,7 +2596,8 @@ var MESSAGE_DELIVERY_STATUS = {
2614
2596
  PENDING: 'pending',
2615
2597
  SENT: 'sent',
2616
2598
  DELIVERED: 'received',
2617
- READ: 'displayed'
2599
+ READ: 'displayed',
2600
+ PLAYED: 'played'
2618
2601
  };
2619
2602
  var MESSAGE_STATUS = {
2620
2603
  UNMODIFIED: 'unmodified',
@@ -9585,6 +9568,7 @@ var UPDATE_CHANNEL = 'UPDATE_CHANNEL';
9585
9568
  var REMOVE_CHANNEL_CACHES = 'REMOVE_CHANNEL_CACHES';
9586
9569
  var MARK_MESSAGES_AS_READ = 'MARK_MESSAGES_AS_READ';
9587
9570
  var MARK_MESSAGES_AS_DELIVERED = 'MARK_MESSAGES_AS_DELIVERED';
9571
+ var MARK_VOICE_MESSAGE_AS_PLAYED = 'MARK_VOICE_MESSAGE_AS_PLAYED';
9588
9572
  var SEND_TYPING = 'SEND_TYPING';
9589
9573
  var SEND_RECORDING = 'SEND_RECORDING';
9590
9574
  var JOIN_TO_CHANNEL = 'JOIN_TO_CHANNEL';
@@ -10357,7 +10341,9 @@ var initialState$1 = {
10357
10341
  playingAudioId: null,
10358
10342
  selectedMessagesMap: null,
10359
10343
  oGMetadata: {},
10360
- attachmentUpdatedMap: {}
10344
+ attachmentUpdatedMap: {},
10345
+ messageMarkers: {},
10346
+ messagesMarkersLoadingState: null
10361
10347
  };
10362
10348
  var messageSlice = createSlice({
10363
10349
  name: 'messages',
@@ -10684,6 +10670,66 @@ var messageSlice = createSlice({
10684
10670
  var existing = state.oGMetadata[url];
10685
10671
  state.oGMetadata[url] = existing ? _extends({}, existing, metadata) : metadata;
10686
10672
  }
10673
+ },
10674
+ setMessageMarkers: function setMessageMarkers(state, action) {
10675
+ var _action$payload12 = action.payload,
10676
+ channelId = _action$payload12.channelId,
10677
+ messageId = _action$payload12.messageId,
10678
+ messageMarkers = _action$payload12.messageMarkers,
10679
+ deliveryStatus = _action$payload12.deliveryStatus;
10680
+ if (!state.messageMarkers[channelId]) {
10681
+ state.messageMarkers[channelId] = {};
10682
+ }
10683
+ if (!state.messageMarkers[channelId][messageId]) {
10684
+ state.messageMarkers[channelId][messageId] = {};
10685
+ }
10686
+ if (!state.messageMarkers[channelId][messageId][deliveryStatus]) {
10687
+ state.messageMarkers[channelId][messageId][deliveryStatus] = [];
10688
+ }
10689
+ state.messageMarkers[channelId][messageId][deliveryStatus] = [].concat(messageMarkers);
10690
+ },
10691
+ updateMessagesMarkers: function updateMessagesMarkers(state, action) {
10692
+ var _marker$user;
10693
+ var _action$payload13 = action.payload,
10694
+ channelId = _action$payload13.channelId,
10695
+ deliveryStatus = _action$payload13.deliveryStatus,
10696
+ marker = _action$payload13.marker;
10697
+ var userId = (_marker$user = marker.user) === null || _marker$user === void 0 ? void 0 : _marker$user.id;
10698
+ var messageIds = marker.messageIds;
10699
+ for (var _iterator = _createForOfIteratorHelperLoose(messageIds), _step; !(_step = _iterator()).done;) {
10700
+ var messageId = _step.value;
10701
+ if (!state.messageMarkers[channelId]) {
10702
+ state.messageMarkers[channelId] = {};
10703
+ }
10704
+ if (!state.messageMarkers[channelId][messageId]) {
10705
+ state.messageMarkers[channelId][messageId] = {};
10706
+ }
10707
+ if (!state.messageMarkers[channelId][messageId][deliveryStatus]) {
10708
+ state.messageMarkers[channelId][messageId][deliveryStatus] = [];
10709
+ }
10710
+ var isUserMarkered = state.messageMarkers[channelId][messageId][deliveryStatus].some(function (marker) {
10711
+ var _marker$user2;
10712
+ return ((_marker$user2 = marker.user) === null || _marker$user2 === void 0 ? void 0 : _marker$user2.id) === userId;
10713
+ });
10714
+ if (!isUserMarkered) {
10715
+ var time = marker.createdAt;
10716
+ try {
10717
+ time = new Date(marker.createdAt);
10718
+ if (isNaN(time.getTime())) {
10719
+ time = new Date();
10720
+ }
10721
+ } catch (e) {
10722
+ log.error('error in update messages markers', e);
10723
+ time = new Date();
10724
+ }
10725
+ state.messageMarkers[channelId][messageId][deliveryStatus].push(_extends({}, marker, {
10726
+ createdAt: time
10727
+ }));
10728
+ }
10729
+ }
10730
+ },
10731
+ setMessagesMarkersLoadingState: function setMessagesMarkersLoadingState(state, action) {
10732
+ state.messagesMarkersLoadingState = action.payload.state;
10687
10733
  }
10688
10734
  },
10689
10735
  extraReducers: function extraReducers(builder) {
@@ -10735,7 +10781,10 @@ var _messageSlice$actions = messageSlice.actions,
10735
10781
  removeSelectedMessage = _messageSlice$actions.removeSelectedMessage,
10736
10782
  clearSelectedMessages = _messageSlice$actions.clearSelectedMessages,
10737
10783
  setOGMetadata = _messageSlice$actions.setOGMetadata,
10738
- updateOGMetadata = _messageSlice$actions.updateOGMetadata;
10784
+ updateOGMetadata = _messageSlice$actions.updateOGMetadata,
10785
+ setMessageMarkers = _messageSlice$actions.setMessageMarkers,
10786
+ setMessagesMarkersLoadingState = _messageSlice$actions.setMessagesMarkersLoadingState,
10787
+ updateMessagesMarkers = _messageSlice$actions.updateMessagesMarkers;
10739
10788
  var MessageReducer = messageSlice.reducer;
10740
10789
 
10741
10790
  var initialState$2 = {
@@ -11347,6 +11396,15 @@ var markMessagesAsDeliveredAC = function markMessagesAsDeliveredAC(channelId, me
11347
11396
  }
11348
11397
  };
11349
11398
  };
11399
+ var markVoiceMessageAsPlayedAC = function markVoiceMessageAsPlayedAC(channelId, messageIds) {
11400
+ return {
11401
+ type: MARK_VOICE_MESSAGE_AS_PLAYED,
11402
+ payload: {
11403
+ channelId: channelId,
11404
+ messageIds: messageIds
11405
+ }
11406
+ };
11407
+ };
11350
11408
  var sendTypingAC = function sendTypingAC(state) {
11351
11409
  return {
11352
11410
  type: SEND_TYPING,
@@ -11522,6 +11580,7 @@ var getChannelMentionsAC = function getChannelMentionsAC(channelId) {
11522
11580
 
11523
11581
  var GET_MESSAGES = 'GET_MESSAGES';
11524
11582
  var GET_MESSAGE = 'GET_MESSAGE';
11583
+ var GET_MESSAGE_MARKERS = 'GET_MESSAGE_MARKERS';
11525
11584
  var LOAD_MORE_MESSAGES = 'LOAD_MORE_MESSAGES';
11526
11585
  var SEND_MESSAGE = 'SEND_MESSAGE';
11527
11586
  var SEND_TEXT_MESSAGE = 'SEND_TEXT_MESSAGE';
@@ -11955,6 +12014,36 @@ function removeSelectedMessageAC(messageId) {
11955
12014
  function clearSelectedMessagesAC() {
11956
12015
  return clearSelectedMessages();
11957
12016
  }
12017
+ function getMessageMarkersAC(messageId, channelId, deliveryStatus) {
12018
+ return {
12019
+ type: GET_MESSAGE_MARKERS,
12020
+ payload: {
12021
+ messageId: messageId,
12022
+ channelId: channelId,
12023
+ deliveryStatus: deliveryStatus
12024
+ }
12025
+ };
12026
+ }
12027
+ function setMessageMarkersAC(channelId, messageId, messageMarkers, deliveryStatus) {
12028
+ return setMessageMarkers({
12029
+ channelId: channelId,
12030
+ messageId: messageId,
12031
+ messageMarkers: messageMarkers,
12032
+ deliveryStatus: deliveryStatus
12033
+ });
12034
+ }
12035
+ function updateMessagesMarkersAC(channelId, deliveryStatus, marker) {
12036
+ return updateMessagesMarkers({
12037
+ channelId: channelId,
12038
+ deliveryStatus: deliveryStatus,
12039
+ marker: marker
12040
+ });
12041
+ }
12042
+ function setMessagesMarkersLoadingStateAC(state) {
12043
+ return setMessagesMarkersLoadingState({
12044
+ state: state
12045
+ });
12046
+ }
11958
12047
 
11959
12048
  var SET_CONTACT_LOADING_STATE = 'SET_CONTACT_LOADING_STATE';
11960
12049
  var GET_CONTACTS = 'GET_CONTACTS';
@@ -14229,6 +14318,8 @@ function watchForEvents() {
14229
14318
  name: markerList.name,
14230
14319
  markersMap: markersMap
14231
14320
  });
14321
+ _context.n = 71;
14322
+ return effects.put(updateMessagesMarkersAC(channelId, markerList.name, markerList));
14232
14323
  case 71:
14233
14324
  return _context.a(3, 142);
14234
14325
  case 72:
@@ -14763,27 +14854,28 @@ var _marked$2 = /*#__PURE__*/_regenerator().m(createChannel),
14763
14854
  _marked7 = /*#__PURE__*/_regenerator().m(getChannelMentions),
14764
14855
  _marked8 = /*#__PURE__*/_regenerator().m(channelsForForwardLoadMore),
14765
14856
  _marked9 = /*#__PURE__*/_regenerator().m(markMessagesRead),
14766
- _marked0 = /*#__PURE__*/_regenerator().m(markMessagesDelivered),
14767
- _marked1 = /*#__PURE__*/_regenerator().m(switchChannel),
14768
- _marked10 = /*#__PURE__*/_regenerator().m(notificationsTurnOff),
14769
- _marked11 = /*#__PURE__*/_regenerator().m(notificationsTurnOn),
14770
- _marked12 = /*#__PURE__*/_regenerator().m(markChannelAsRead),
14771
- _marked13 = /*#__PURE__*/_regenerator().m(markChannelAsUnRead),
14772
- _marked14 = /*#__PURE__*/_regenerator().m(pinChannel),
14773
- _marked15 = /*#__PURE__*/_regenerator().m(unpinChannel),
14774
- _marked16 = /*#__PURE__*/_regenerator().m(removeChannelCaches),
14775
- _marked17 = /*#__PURE__*/_regenerator().m(leaveChannel),
14776
- _marked18 = /*#__PURE__*/_regenerator().m(deleteChannel),
14777
- _marked19 = /*#__PURE__*/_regenerator().m(blockChannel),
14778
- _marked20 = /*#__PURE__*/_regenerator().m(updateChannel),
14779
- _marked21 = /*#__PURE__*/_regenerator().m(checkUsersStatus),
14780
- _marked22 = /*#__PURE__*/_regenerator().m(sendTyping),
14781
- _marked23 = /*#__PURE__*/_regenerator().m(sendRecording),
14782
- _marked24 = /*#__PURE__*/_regenerator().m(clearHistory),
14783
- _marked25 = /*#__PURE__*/_regenerator().m(deleteAllMessages),
14784
- _marked26 = /*#__PURE__*/_regenerator().m(joinChannel),
14785
- _marked27 = /*#__PURE__*/_regenerator().m(watchForChannelEvents),
14786
- _marked28 = /*#__PURE__*/_regenerator().m(ChannelsSaga);
14857
+ _marked0 = /*#__PURE__*/_regenerator().m(markVoiceMessageAsPlayed),
14858
+ _marked1 = /*#__PURE__*/_regenerator().m(markMessagesDelivered),
14859
+ _marked10 = /*#__PURE__*/_regenerator().m(switchChannel),
14860
+ _marked11 = /*#__PURE__*/_regenerator().m(notificationsTurnOff),
14861
+ _marked12 = /*#__PURE__*/_regenerator().m(notificationsTurnOn),
14862
+ _marked13 = /*#__PURE__*/_regenerator().m(markChannelAsRead),
14863
+ _marked14 = /*#__PURE__*/_regenerator().m(markChannelAsUnRead),
14864
+ _marked15 = /*#__PURE__*/_regenerator().m(pinChannel),
14865
+ _marked16 = /*#__PURE__*/_regenerator().m(unpinChannel),
14866
+ _marked17 = /*#__PURE__*/_regenerator().m(removeChannelCaches),
14867
+ _marked18 = /*#__PURE__*/_regenerator().m(leaveChannel),
14868
+ _marked19 = /*#__PURE__*/_regenerator().m(deleteChannel),
14869
+ _marked20 = /*#__PURE__*/_regenerator().m(blockChannel),
14870
+ _marked21 = /*#__PURE__*/_regenerator().m(updateChannel),
14871
+ _marked22 = /*#__PURE__*/_regenerator().m(checkUsersStatus),
14872
+ _marked23 = /*#__PURE__*/_regenerator().m(sendTyping),
14873
+ _marked24 = /*#__PURE__*/_regenerator().m(sendRecording),
14874
+ _marked25 = /*#__PURE__*/_regenerator().m(clearHistory),
14875
+ _marked26 = /*#__PURE__*/_regenerator().m(deleteAllMessages),
14876
+ _marked27 = /*#__PURE__*/_regenerator().m(joinChannel),
14877
+ _marked28 = /*#__PURE__*/_regenerator().m(watchForChannelEvents),
14878
+ _marked29 = /*#__PURE__*/_regenerator().m(ChannelsSaga);
14787
14879
  function createChannel(action) {
14788
14880
  var payload, channelData, dontCreateIfNotExists, callback, SceytChatClient, createChannelData, fileToUpload, isSelfChannel, channelIsExistOnAllChannels, createdChannel, allChannels, memberId, checkChannelExist, messageToSend, _allChannels, _memberId, _t;
14789
14881
  return _regenerator().w(function (_context) {
@@ -15681,7 +15773,7 @@ function markMessagesRead(action) {
15681
15773
  deliveryStatus: MESSAGE_DELIVERY_STATUS.READ,
15682
15774
  userMarkers: [{
15683
15775
  user: messageListMarker.user,
15684
- createdAt: messageListMarker.createAt,
15776
+ createdAt: messageListMarker.createdAt,
15685
15777
  messageId: messageId,
15686
15778
  name: MESSAGE_DELIVERY_STATUS.READ
15687
15779
  }]
@@ -15709,7 +15801,7 @@ function markMessagesRead(action) {
15709
15801
  }
15710
15802
  }, _marked9, null, [[2, 9]]);
15711
15803
  }
15712
- function markMessagesDelivered(action) {
15804
+ function markVoiceMessageAsPlayed(action) {
15713
15805
  var payload, channelId, messageIds, channel, _t10;
15714
15806
  return _regenerator().w(function (_context0) {
15715
15807
  while (1) switch (_context0.p = _context0.n) {
@@ -15731,151 +15823,148 @@ function markMessagesDelivered(action) {
15731
15823
  _context0.n = 3;
15732
15824
  break;
15733
15825
  }
15734
- log.info('send delivered marker ', messageIds);
15735
15826
  _context0.n = 3;
15736
- return effects.call(channel.markMessagesAsReceived, messageIds);
15827
+ return effects.call(channel.markVoiceMessagesAsPlayed, messageIds);
15737
15828
  case 3:
15738
15829
  _context0.n = 5;
15739
15830
  break;
15740
15831
  case 4:
15741
15832
  _context0.p = 4;
15742
15833
  _t10 = _context0.v;
15743
- log.error(_t10, 'Error on mark messages delivered');
15834
+ log.error(_t10, 'Error on mark voice messages read');
15744
15835
  case 5:
15745
15836
  return _context0.a(2);
15746
15837
  }
15747
15838
  }, _marked0, null, [[1, 4]]);
15748
15839
  }
15749
- function switchChannel(action) {
15750
- var payload, channel, updateActiveChannel, channelToSwitch, existingChannel, addChannel, _SceytChatClient5, fetchedChannel, channelFromMap, currentActiveChannel, _t11;
15840
+ function markMessagesDelivered(action) {
15841
+ var payload, channelId, messageIds, channel, _t11;
15751
15842
  return _regenerator().w(function (_context1) {
15752
15843
  while (1) switch (_context1.p = _context1.n) {
15753
15844
  case 0:
15754
- _context1.p = 0;
15845
+ payload = action.payload;
15846
+ channelId = payload.channelId, messageIds = payload.messageIds;
15847
+ _context1.p = 1;
15848
+ _context1.n = 2;
15849
+ return effects.call(getChannelFromMap, channelId);
15850
+ case 2:
15851
+ channel = _context1.v;
15852
+ if (!channel) {
15853
+ channel = getChannelFromAllChannels(channelId);
15854
+ if (channel) {
15855
+ setChannelInMap(channel);
15856
+ }
15857
+ }
15858
+ if (!channel) {
15859
+ _context1.n = 3;
15860
+ break;
15861
+ }
15862
+ log.info('send delivered marker ', messageIds);
15863
+ _context1.n = 3;
15864
+ return effects.call(channel.markMessagesAsReceived, messageIds);
15865
+ case 3:
15866
+ _context1.n = 5;
15867
+ break;
15868
+ case 4:
15869
+ _context1.p = 4;
15870
+ _t11 = _context1.v;
15871
+ log.error(_t11, 'Error on mark messages delivered');
15872
+ case 5:
15873
+ return _context1.a(2);
15874
+ }
15875
+ }, _marked1, null, [[1, 4]]);
15876
+ }
15877
+ function switchChannel(action) {
15878
+ var payload, channel, updateActiveChannel, channelToSwitch, existingChannel, addChannel, _SceytChatClient5, fetchedChannel, channelFromMap, currentActiveChannel, _t12;
15879
+ return _regenerator().w(function (_context10) {
15880
+ while (1) switch (_context10.p = _context10.n) {
15881
+ case 0:
15882
+ _context10.p = 0;
15755
15883
  payload = action.payload;
15756
15884
  channel = payload.channel, updateActiveChannel = payload.updateActiveChannel;
15757
15885
  channelToSwitch = channel;
15758
15886
  if (!(!(channel !== null && channel !== void 0 && channel.id) && updateActiveChannel)) {
15759
- _context1.n = 3;
15887
+ _context10.n = 3;
15760
15888
  break;
15761
15889
  }
15762
- _context1.n = 1;
15890
+ _context10.n = 1;
15763
15891
  return effects.call(setActiveChannelId, '');
15764
15892
  case 1:
15765
- _context1.n = 2;
15893
+ _context10.n = 2;
15766
15894
  return effects.put(setActiveChannelAC({}));
15767
15895
  case 2:
15768
- return _context1.a(2);
15896
+ return _context10.a(2);
15769
15897
  case 3:
15770
15898
  existingChannel = checkChannelExists(channel.id);
15771
15899
  if (existingChannel) {
15772
- _context1.n = 9;
15900
+ _context10.n = 9;
15773
15901
  break;
15774
15902
  }
15775
15903
  addChannel = getChannelFromAllChannels(channel.id);
15776
15904
  if (!addChannel) {
15777
- _context1.n = 5;
15905
+ _context10.n = 5;
15778
15906
  break;
15779
15907
  }
15780
15908
  setChannelInMap(addChannel);
15781
- _context1.n = 4;
15909
+ _context10.n = 4;
15782
15910
  return effects.put(addChannelAC(JSON.parse(JSON.stringify(addChannel))));
15783
15911
  case 4:
15784
15912
  channelToSwitch = _extends({}, channelToSwitch, addChannel);
15785
- _context1.n = 8;
15913
+ _context10.n = 8;
15786
15914
  break;
15787
15915
  case 5:
15788
15916
  _SceytChatClient5 = getClient();
15789
- _context1.n = 6;
15917
+ _context10.n = 6;
15790
15918
  return effects.call(_SceytChatClient5.getChannel, channel.id);
15791
15919
  case 6:
15792
- fetchedChannel = _context1.v;
15920
+ fetchedChannel = _context10.v;
15793
15921
  addChannelToAllChannels(fetchedChannel);
15794
15922
  setChannelInMap(fetchedChannel);
15795
- _context1.n = 7;
15923
+ _context10.n = 7;
15796
15924
  return effects.put(addChannelAC(JSON.parse(JSON.stringify(fetchedChannel))));
15797
15925
  case 7:
15798
15926
  channelToSwitch = _extends({}, channelToSwitch, fetchedChannel);
15799
15927
  case 8:
15800
- _context1.n = 10;
15928
+ _context10.n = 10;
15801
15929
  break;
15802
15930
  case 9:
15803
15931
  channelFromMap = getChannelFromMap(channel.id);
15804
15932
  channelToSwitch = _extends({}, channelToSwitch, channelFromMap);
15805
15933
  case 10:
15806
15934
  if (!updateActiveChannel) {
15807
- _context1.n = 13;
15935
+ _context10.n = 13;
15808
15936
  break;
15809
15937
  }
15810
15938
  currentActiveChannel = getChannelFromMap(getActiveChannelId());
15811
- _context1.n = 11;
15939
+ _context10.n = 11;
15812
15940
  return effects.call(setUnreadScrollTo, true);
15813
15941
  case 11:
15814
- _context1.n = 12;
15942
+ _context10.n = 12;
15815
15943
  return effects.call(setActiveChannelId, channel && channel.id);
15816
15944
  case 12:
15817
15945
  if (channel.isLinkedChannel) {
15818
15946
  channelToSwitch.linkedFrom = currentActiveChannel;
15819
15947
  }
15820
- _context1.n = 13;
15948
+ _context10.n = 13;
15821
15949
  return effects.put(setActiveChannelAC(_extends({}, channelToSwitch)));
15822
15950
  case 13:
15823
- _context1.n = 15;
15951
+ _context10.n = 15;
15824
15952
  break;
15825
15953
  case 14:
15826
- _context1.p = 14;
15827
- _t11 = _context1.v;
15828
- log.error('error in switch channel', _t11);
15829
- case 15:
15830
- return _context1.a(2);
15831
- }
15832
- }, _marked1, null, [[0, 14]]);
15833
- }
15834
- function notificationsTurnOff(action) {
15835
- var expireTime, activeChannelId, channel, updatedChannel, _t12;
15836
- return _regenerator().w(function (_context10) {
15837
- while (1) switch (_context10.p = _context10.n) {
15838
- case 0:
15839
- expireTime = action.payload.expireTime;
15840
- _context10.n = 1;
15841
- return effects.call(getActiveChannelId);
15842
- case 1:
15843
- activeChannelId = _context10.v;
15844
- _context10.n = 2;
15845
- return effects.call(getChannelFromMap, activeChannelId);
15846
- case 2:
15847
- channel = _context10.v;
15848
- _context10.p = 3;
15849
- _context10.n = 4;
15850
- return effects.call(channel.mute, expireTime);
15851
- case 4:
15852
- updatedChannel = _context10.v;
15853
- updateChannelOnAllChannels(channel.id, {
15854
- muted: updatedChannel.muted,
15855
- mutedTill: updatedChannel.mutedTill
15856
- });
15857
- _context10.n = 5;
15858
- return effects.put(updateChannelDataAC(updatedChannel.id, {
15859
- muted: updatedChannel.muted,
15860
- mutedTill: updatedChannel.mutedTill
15861
- }));
15862
- case 5:
15863
- _context10.n = 7;
15864
- break;
15865
- case 6:
15866
- _context10.p = 6;
15954
+ _context10.p = 14;
15867
15955
  _t12 = _context10.v;
15868
- log.error('ERROR turn off notifications', _t12.message);
15869
- case 7:
15956
+ log.error('error in switch channel', _t12);
15957
+ case 15:
15870
15958
  return _context10.a(2);
15871
15959
  }
15872
- }, _marked10, null, [[3, 6]]);
15960
+ }, _marked10, null, [[0, 14]]);
15873
15961
  }
15874
- function notificationsTurnOn() {
15875
- var activeChannelId, channel, updatedChannel, _t13;
15962
+ function notificationsTurnOff(action) {
15963
+ var expireTime, activeChannelId, channel, updatedChannel, _t13;
15876
15964
  return _regenerator().w(function (_context11) {
15877
15965
  while (1) switch (_context11.p = _context11.n) {
15878
15966
  case 0:
15967
+ expireTime = action.payload.expireTime;
15879
15968
  _context11.n = 1;
15880
15969
  return effects.call(getActiveChannelId);
15881
15970
  case 1:
@@ -15886,7 +15975,7 @@ function notificationsTurnOn() {
15886
15975
  channel = _context11.v;
15887
15976
  _context11.p = 3;
15888
15977
  _context11.n = 4;
15889
- return effects.call(channel.unmute);
15978
+ return effects.call(channel.mute, expireTime);
15890
15979
  case 4:
15891
15980
  updatedChannel = _context11.v;
15892
15981
  updateChannelOnAllChannels(channel.id, {
@@ -15904,51 +15993,53 @@ function notificationsTurnOn() {
15904
15993
  case 6:
15905
15994
  _context11.p = 6;
15906
15995
  _t13 = _context11.v;
15907
- log.error('ERROR turn on notifications: ', _t13.message);
15996
+ log.error('ERROR turn off notifications', _t13.message);
15908
15997
  case 7:
15909
15998
  return _context11.a(2);
15910
15999
  }
15911
16000
  }, _marked11, null, [[3, 6]]);
15912
16001
  }
15913
- function markChannelAsRead(action) {
15914
- var channelId, channel, updateData, _t14;
16002
+ function notificationsTurnOn() {
16003
+ var activeChannelId, channel, updatedChannel, _t14;
15915
16004
  return _regenerator().w(function (_context12) {
15916
16005
  while (1) switch (_context12.p = _context12.n) {
15917
16006
  case 0:
15918
- _context12.p = 0;
15919
- channelId = action.payload.channelId;
15920
16007
  _context12.n = 1;
15921
- return effects.call(getChannelFromMap, channelId);
16008
+ return effects.call(getActiveChannelId);
15922
16009
  case 1:
15923
- channel = _context12.v;
15924
- if (!channel) {
15925
- channel = getChannelFromAllChannels(channelId);
15926
- }
16010
+ activeChannelId = _context12.v;
15927
16011
  _context12.n = 2;
15928
- return effects.call(channel.markAsRead);
16012
+ return effects.call(getChannelFromMap, activeChannelId);
15929
16013
  case 2:
15930
- updateData = {
15931
- unread: false,
15932
- newMessageCount: 0,
15933
- newMentionCount: 0
15934
- };
15935
- updateChannelOnAllChannels(channel.id, updateData);
15936
- _context12.n = 3;
15937
- return effects.put(updateChannelDataAC(channel.id, updateData));
15938
- case 3:
16014
+ channel = _context12.v;
16015
+ _context12.p = 3;
16016
+ _context12.n = 4;
16017
+ return effects.call(channel.unmute);
16018
+ case 4:
16019
+ updatedChannel = _context12.v;
16020
+ updateChannelOnAllChannels(channel.id, {
16021
+ muted: updatedChannel.muted,
16022
+ mutedTill: updatedChannel.mutedTill
16023
+ });
15939
16024
  _context12.n = 5;
16025
+ return effects.put(updateChannelDataAC(updatedChannel.id, {
16026
+ muted: updatedChannel.muted,
16027
+ mutedTill: updatedChannel.mutedTill
16028
+ }));
16029
+ case 5:
16030
+ _context12.n = 7;
15940
16031
  break;
15941
- case 4:
15942
- _context12.p = 4;
16032
+ case 6:
16033
+ _context12.p = 6;
15943
16034
  _t14 = _context12.v;
15944
- log.error(_t14, 'Error in set channel unread');
15945
- case 5:
16035
+ log.error('ERROR turn on notifications: ', _t14.message);
16036
+ case 7:
15946
16037
  return _context12.a(2);
15947
16038
  }
15948
- }, _marked12, null, [[0, 4]]);
16039
+ }, _marked12, null, [[3, 6]]);
15949
16040
  }
15950
- function markChannelAsUnRead(action) {
15951
- var channelId, channel, _t15;
16041
+ function markChannelAsRead(action) {
16042
+ var channelId, channel, updateData, _t15;
15952
16043
  return _regenerator().w(function (_context13) {
15953
16044
  while (1) switch (_context13.p = _context13.n) {
15954
16045
  case 0:
@@ -15962,15 +16053,16 @@ function markChannelAsUnRead(action) {
15962
16053
  channel = getChannelFromAllChannels(channelId);
15963
16054
  }
15964
16055
  _context13.n = 2;
15965
- return effects.call(channel.markAsUnRead);
16056
+ return effects.call(channel.markAsRead);
15966
16057
  case 2:
15967
- updateChannelOnAllChannels(channel.id, {
15968
- unread: true
15969
- });
16058
+ updateData = {
16059
+ unread: false,
16060
+ newMessageCount: 0,
16061
+ newMentionCount: 0
16062
+ };
16063
+ updateChannelOnAllChannels(channel.id, updateData);
15970
16064
  _context13.n = 3;
15971
- return effects.put(updateChannelDataAC(channel.id, {
15972
- unread: true
15973
- }));
16065
+ return effects.put(updateChannelDataAC(channel.id, updateData));
15974
16066
  case 3:
15975
16067
  _context13.n = 5;
15976
16068
  break;
@@ -15983,8 +16075,8 @@ function markChannelAsUnRead(action) {
15983
16075
  }
15984
16076
  }, _marked13, null, [[0, 4]]);
15985
16077
  }
15986
- function pinChannel(action) {
15987
- var channelId, channel, updatedChannel, _t16;
16078
+ function markChannelAsUnRead(action) {
16079
+ var channelId, channel, _t16;
15988
16080
  return _regenerator().w(function (_context14) {
15989
16081
  while (1) switch (_context14.p = _context14.n) {
15990
16082
  case 0:
@@ -15998,29 +16090,28 @@ function pinChannel(action) {
15998
16090
  channel = getChannelFromAllChannels(channelId);
15999
16091
  }
16000
16092
  _context14.n = 2;
16001
- return effects.call(channel.pin);
16093
+ return effects.call(channel.markAsUnRead);
16002
16094
  case 2:
16003
- updatedChannel = _context14.v;
16004
16095
  updateChannelOnAllChannels(channel.id, {
16005
- pinnedAt: updatedChannel.pinnedAt
16096
+ unread: true
16006
16097
  });
16007
16098
  _context14.n = 3;
16008
- return effects.put(updateChannelDataAC(updatedChannel.id, {
16009
- pinnedAt: updatedChannel.pinnedAt
16010
- }, true));
16099
+ return effects.put(updateChannelDataAC(channel.id, {
16100
+ unread: true
16101
+ }));
16011
16102
  case 3:
16012
16103
  _context14.n = 5;
16013
16104
  break;
16014
16105
  case 4:
16015
16106
  _context14.p = 4;
16016
16107
  _t16 = _context14.v;
16017
- log.error(_t16, 'Error in pinChannel');
16108
+ log.error(_t16, 'Error in set channel unread');
16018
16109
  case 5:
16019
16110
  return _context14.a(2);
16020
16111
  }
16021
16112
  }, _marked14, null, [[0, 4]]);
16022
16113
  }
16023
- function unpinChannel(action) {
16114
+ function pinChannel(action) {
16024
16115
  var channelId, channel, updatedChannel, _t17;
16025
16116
  return _regenerator().w(function (_context15) {
16026
16117
  while (1) switch (_context15.p = _context15.n) {
@@ -16035,7 +16126,7 @@ function unpinChannel(action) {
16035
16126
  channel = getChannelFromAllChannels(channelId);
16036
16127
  }
16037
16128
  _context15.n = 2;
16038
- return effects.call(channel.unpin);
16129
+ return effects.call(channel.pin);
16039
16130
  case 2:
16040
16131
  updatedChannel = _context15.v;
16041
16132
  updateChannelOnAllChannels(channel.id, {
@@ -16044,197 +16135,234 @@ function unpinChannel(action) {
16044
16135
  _context15.n = 3;
16045
16136
  return effects.put(updateChannelDataAC(updatedChannel.id, {
16046
16137
  pinnedAt: updatedChannel.pinnedAt
16047
- }, false, true));
16138
+ }, true));
16048
16139
  case 3:
16049
16140
  _context15.n = 5;
16050
16141
  break;
16051
16142
  case 4:
16052
16143
  _context15.p = 4;
16053
16144
  _t17 = _context15.v;
16054
- log.error(_t17, 'Error in unpinChannel');
16145
+ log.error(_t17, 'Error in pinChannel');
16055
16146
  case 5:
16056
16147
  return _context15.a(2);
16057
16148
  }
16058
16149
  }, _marked15, null, [[0, 4]]);
16059
16150
  }
16151
+ function unpinChannel(action) {
16152
+ var channelId, channel, updatedChannel, _t18;
16153
+ return _regenerator().w(function (_context16) {
16154
+ while (1) switch (_context16.p = _context16.n) {
16155
+ case 0:
16156
+ _context16.p = 0;
16157
+ channelId = action.payload.channelId;
16158
+ _context16.n = 1;
16159
+ return effects.call(getChannelFromMap, channelId);
16160
+ case 1:
16161
+ channel = _context16.v;
16162
+ if (!channel) {
16163
+ channel = getChannelFromAllChannels(channelId);
16164
+ }
16165
+ _context16.n = 2;
16166
+ return effects.call(channel.unpin);
16167
+ case 2:
16168
+ updatedChannel = _context16.v;
16169
+ updateChannelOnAllChannels(channel.id, {
16170
+ pinnedAt: updatedChannel.pinnedAt
16171
+ });
16172
+ _context16.n = 3;
16173
+ return effects.put(updateChannelDataAC(updatedChannel.id, {
16174
+ pinnedAt: updatedChannel.pinnedAt
16175
+ }, false, true));
16176
+ case 3:
16177
+ _context16.n = 5;
16178
+ break;
16179
+ case 4:
16180
+ _context16.p = 4;
16181
+ _t18 = _context16.v;
16182
+ log.error(_t18, 'Error in unpinChannel');
16183
+ case 5:
16184
+ return _context16.a(2);
16185
+ }
16186
+ }, _marked16, null, [[0, 4]]);
16187
+ }
16060
16188
  function removeChannelCaches(action) {
16061
16189
  var payload, channelId, activeChannelId, activeChannel;
16062
- return _regenerator().w(function (_context16) {
16063
- while (1) switch (_context16.n) {
16190
+ return _regenerator().w(function (_context17) {
16191
+ while (1) switch (_context17.n) {
16064
16192
  case 0:
16065
16193
  payload = action.payload;
16066
16194
  channelId = payload.channelId;
16067
- _context16.n = 1;
16195
+ _context17.n = 1;
16068
16196
  return effects.call(getActiveChannelId);
16069
16197
  case 1:
16070
- activeChannelId = _context16.v;
16198
+ activeChannelId = _context17.v;
16071
16199
  removeChannelFromMap(channelId);
16072
16200
  removeMessagesFromMap(channelId);
16073
16201
  if (!(activeChannelId === channelId)) {
16074
- _context16.n = 3;
16202
+ _context17.n = 3;
16075
16203
  break;
16076
16204
  }
16077
- _context16.n = 2;
16205
+ _context17.n = 2;
16078
16206
  return effects.call(getLastChannelFromMap);
16079
16207
  case 2:
16080
- activeChannel = _context16.v;
16208
+ activeChannel = _context17.v;
16081
16209
  if (!activeChannel) {
16082
- _context16.n = 3;
16210
+ _context17.n = 3;
16083
16211
  break;
16084
16212
  }
16085
- _context16.n = 3;
16213
+ _context17.n = 3;
16086
16214
  return effects.put(switchChannelActionAC(JSON.parse(JSON.stringify(activeChannel))));
16087
16215
  case 3:
16088
- return _context16.a(2);
16216
+ return _context17.a(2);
16089
16217
  }
16090
- }, _marked16);
16218
+ }, _marked17);
16091
16219
  }
16092
16220
  function leaveChannel(action) {
16093
- var payload, channelId, channel, messageBuilder, messageToSend, _t18;
16094
- return _regenerator().w(function (_context17) {
16095
- while (1) switch (_context17.p = _context17.n) {
16221
+ var payload, channelId, channel, messageBuilder, messageToSend, _t19;
16222
+ return _regenerator().w(function (_context18) {
16223
+ while (1) switch (_context18.p = _context18.n) {
16096
16224
  case 0:
16097
- _context17.p = 0;
16225
+ _context18.p = 0;
16098
16226
  payload = action.payload;
16099
16227
  channelId = payload.channelId;
16100
- _context17.n = 1;
16228
+ _context18.n = 1;
16101
16229
  return effects.call(getChannelFromMap, channelId);
16102
16230
  case 1:
16103
- channel = _context17.v;
16231
+ channel = _context18.v;
16104
16232
  if (!channel) {
16105
16233
  channel = getChannelFromAllChannels(channelId);
16106
16234
  }
16107
16235
  if (!channel) {
16108
- _context17.n = 5;
16236
+ _context18.n = 5;
16109
16237
  break;
16110
16238
  }
16111
16239
  if (!(channel.type === DEFAULT_CHANNEL_TYPE.GROUP || channel.type === DEFAULT_CHANNEL_TYPE.PRIVATE)) {
16112
- _context17.n = 2;
16240
+ _context18.n = 2;
16113
16241
  break;
16114
16242
  }
16115
16243
  messageBuilder = channel.createMessageBuilder();
16116
16244
  messageBuilder.setBody('LG').setType('system').setDisplayCount(0).setSilent(true);
16117
16245
  messageToSend = messageBuilder.create();
16118
16246
  log.info('send message for left');
16119
- _context17.n = 2;
16247
+ _context18.n = 2;
16120
16248
  return effects.call(channel.sendMessage, messageToSend);
16121
16249
  case 2:
16122
16250
  log.info('leave');
16123
- _context17.n = 3;
16251
+ _context18.n = 3;
16124
16252
  return effects.call(channel.leave);
16125
16253
  case 3:
16126
- _context17.n = 4;
16254
+ _context18.n = 4;
16127
16255
  return effects.put(removeChannelAC(channelId));
16128
16256
  case 4:
16129
16257
  deleteChannelFromAllChannels(channelId);
16130
- _context17.n = 5;
16258
+ _context18.n = 5;
16131
16259
  return effects.put(removeChannelCachesAC(channelId));
16132
16260
  case 5:
16133
- _context17.n = 7;
16261
+ _context18.n = 7;
16134
16262
  break;
16135
16263
  case 6:
16136
- _context17.p = 6;
16137
- _t18 = _context17.v;
16138
- log.error('ERROR in leave channel - ', _t18.message);
16264
+ _context18.p = 6;
16265
+ _t19 = _context18.v;
16266
+ log.error('ERROR in leave channel - ', _t19.message);
16139
16267
  case 7:
16140
- return _context17.a(2);
16268
+ return _context18.a(2);
16141
16269
  }
16142
- }, _marked17, null, [[0, 6]]);
16270
+ }, _marked18, null, [[0, 6]]);
16143
16271
  }
16144
16272
  function deleteChannel(action) {
16145
- var payload, channelId, channel, _t19;
16146
- return _regenerator().w(function (_context18) {
16147
- while (1) switch (_context18.p = _context18.n) {
16273
+ var payload, channelId, channel, _t20;
16274
+ return _regenerator().w(function (_context19) {
16275
+ while (1) switch (_context19.p = _context19.n) {
16148
16276
  case 0:
16149
- _context18.p = 0;
16277
+ _context19.p = 0;
16150
16278
  payload = action.payload;
16151
16279
  channelId = payload.channelId;
16152
- _context18.n = 1;
16280
+ _context19.n = 1;
16153
16281
  return effects.call(getChannelFromMap, channelId);
16154
16282
  case 1:
16155
- channel = _context18.v;
16283
+ channel = _context19.v;
16156
16284
  if (!channel) {
16157
16285
  channel = getChannelFromAllChannels(channelId);
16158
16286
  }
16159
16287
  if (!channel) {
16160
- _context18.n = 5;
16288
+ _context19.n = 5;
16161
16289
  break;
16162
16290
  }
16163
- _context18.n = 2;
16291
+ _context19.n = 2;
16164
16292
  return effects.call(channel["delete"]);
16165
16293
  case 2:
16166
- _context18.n = 3;
16294
+ _context19.n = 3;
16167
16295
  return effects.put(setChannelToRemoveAC(channel));
16168
16296
  case 3:
16169
- _context18.n = 4;
16297
+ _context19.n = 4;
16170
16298
  return effects.put(removeChannelAC(channelId));
16171
16299
  case 4:
16172
- _context18.n = 5;
16300
+ _context19.n = 5;
16173
16301
  return effects.put(removeChannelCachesAC(channelId));
16174
16302
  case 5:
16175
- _context18.n = 7;
16303
+ _context19.n = 7;
16176
16304
  break;
16177
16305
  case 6:
16178
- _context18.p = 6;
16179
- _t19 = _context18.v;
16180
- log.error('ERROR in delete channel', _t19);
16306
+ _context19.p = 6;
16307
+ _t20 = _context19.v;
16308
+ log.error('ERROR in delete channel', _t20);
16181
16309
  case 7:
16182
- return _context18.a(2);
16310
+ return _context19.a(2);
16183
16311
  }
16184
- }, _marked18, null, [[0, 6]]);
16312
+ }, _marked19, null, [[0, 6]]);
16185
16313
  }
16186
16314
  function blockChannel(action) {
16187
- var payload, channelId, channel, _t20;
16188
- return _regenerator().w(function (_context19) {
16189
- while (1) switch (_context19.p = _context19.n) {
16315
+ var payload, channelId, channel, _t21;
16316
+ return _regenerator().w(function (_context20) {
16317
+ while (1) switch (_context20.p = _context20.n) {
16190
16318
  case 0:
16191
- _context19.p = 0;
16319
+ _context20.p = 0;
16192
16320
  payload = action.payload;
16193
16321
  channelId = payload.channelId;
16194
- _context19.n = 1;
16322
+ _context20.n = 1;
16195
16323
  return effects.call(getChannelFromMap, channelId);
16196
16324
  case 1:
16197
- channel = _context19.v;
16325
+ channel = _context20.v;
16198
16326
  if (!channel) {
16199
16327
  channel = getChannelFromAllChannels(channelId);
16200
16328
  }
16201
16329
  if (!channel) {
16202
- _context19.n = 4;
16330
+ _context20.n = 4;
16203
16331
  break;
16204
16332
  }
16205
- _context19.n = 2;
16333
+ _context20.n = 2;
16206
16334
  return effects.call(channel.block);
16207
16335
  case 2:
16208
- _context19.n = 3;
16336
+ _context20.n = 3;
16209
16337
  return effects.put(removeChannelAC(channelId));
16210
16338
  case 3:
16211
- _context19.n = 4;
16339
+ _context20.n = 4;
16212
16340
  return effects.put(removeChannelCachesAC(channelId));
16213
16341
  case 4:
16214
- _context19.n = 6;
16342
+ _context20.n = 6;
16215
16343
  break;
16216
16344
  case 5:
16217
- _context19.p = 5;
16218
- _t20 = _context19.v;
16219
- log.error('ERROR in block channel - ', _t20.message);
16345
+ _context20.p = 5;
16346
+ _t21 = _context20.v;
16347
+ log.error('ERROR in block channel - ', _t21.message);
16220
16348
  case 6:
16221
- return _context19.a(2);
16349
+ return _context20.a(2);
16222
16350
  }
16223
- }, _marked19, null, [[0, 5]]);
16351
+ }, _marked20, null, [[0, 5]]);
16224
16352
  }
16225
16353
  function updateChannel(action) {
16226
- var payload, channelId, config, _SceytChatClient6, channel, paramsToUpdate, fileToUpload, _yield$call5, subject, avatarUrl, metadata, _t21;
16227
- return _regenerator().w(function (_context20) {
16228
- while (1) switch (_context20.p = _context20.n) {
16354
+ var payload, channelId, config, _SceytChatClient6, channel, paramsToUpdate, fileToUpload, _yield$call5, subject, avatarUrl, metadata, _t22;
16355
+ return _regenerator().w(function (_context21) {
16356
+ while (1) switch (_context21.p = _context21.n) {
16229
16357
  case 0:
16230
- _context20.p = 0;
16358
+ _context21.p = 0;
16231
16359
  payload = action.payload;
16232
16360
  channelId = payload.channelId, config = payload.config;
16233
16361
  _SceytChatClient6 = getClient();
16234
- _context20.n = 1;
16362
+ _context21.n = 1;
16235
16363
  return effects.call(getChannelFromMap, channelId);
16236
16364
  case 1:
16237
- channel = _context20.v;
16365
+ channel = _context21.v;
16238
16366
  if (!channel) {
16239
16367
  channel = getChannelFromAllChannels(channelId);
16240
16368
  }
@@ -16245,7 +16373,7 @@ function updateChannel(action) {
16245
16373
  avatarUrl: channel.avatarUrl
16246
16374
  };
16247
16375
  if (!config.avatar) {
16248
- _context20.n = 3;
16376
+ _context21.n = 3;
16249
16377
  break;
16250
16378
  }
16251
16379
  fileToUpload = {
@@ -16254,10 +16382,10 @@ function updateChannel(action) {
16254
16382
  log.info('upload percent - ', progressPercent);
16255
16383
  }
16256
16384
  };
16257
- _context20.n = 2;
16385
+ _context21.n = 2;
16258
16386
  return effects.call(_SceytChatClient6.uploadFile, fileToUpload);
16259
16387
  case 2:
16260
- paramsToUpdate.avatarUrl = _context20.v;
16388
+ paramsToUpdate.avatarUrl = _context21.v;
16261
16389
  case 3:
16262
16390
  if (config.subject) {
16263
16391
  paramsToUpdate.subject = config.subject;
@@ -16268,14 +16396,14 @@ function updateChannel(action) {
16268
16396
  if (config.avatarUrl === '') {
16269
16397
  paramsToUpdate.avatarUrl = '';
16270
16398
  }
16271
- _context20.n = 4;
16399
+ _context21.n = 4;
16272
16400
  return effects.call(channel.update, paramsToUpdate);
16273
16401
  case 4:
16274
- _yield$call5 = _context20.v;
16402
+ _yield$call5 = _context21.v;
16275
16403
  subject = _yield$call5.subject;
16276
16404
  avatarUrl = _yield$call5.avatarUrl;
16277
16405
  metadata = _yield$call5.metadata;
16278
- _context20.n = 5;
16406
+ _context21.n = 5;
16279
16407
  return effects.put(updateChannelDataAC(channelId, {
16280
16408
  subject: subject,
16281
16409
  avatarUrl: avatarUrl,
@@ -16287,29 +16415,29 @@ function updateChannel(action) {
16287
16415
  avatarUrl: avatarUrl,
16288
16416
  metadata: isJSON(metadata) ? JSON.parse(metadata) : metadata
16289
16417
  });
16290
- _context20.n = 7;
16418
+ _context21.n = 7;
16291
16419
  break;
16292
16420
  case 6:
16293
- _context20.p = 6;
16294
- _t21 = _context20.v;
16295
- log.error('ERROR in update channel', _t21.message);
16421
+ _context21.p = 6;
16422
+ _t22 = _context21.v;
16423
+ log.error('ERROR in update channel', _t22.message);
16296
16424
  case 7:
16297
- return _context20.a(2);
16425
+ return _context21.a(2);
16298
16426
  }
16299
- }, _marked20, null, [[0, 6]]);
16427
+ }, _marked21, null, [[0, 6]]);
16300
16428
  }
16301
16429
  function checkUsersStatus() {
16302
- var _SceytChatClient7, usersForUpdate, updatedUsers, usersToUpdateMap, update, updateData, _t22;
16303
- return _regenerator().w(function (_context21) {
16304
- while (1) switch (_context21.p = _context21.n) {
16430
+ var _SceytChatClient7, usersForUpdate, updatedUsers, usersToUpdateMap, update, updateData, _t23;
16431
+ return _regenerator().w(function (_context22) {
16432
+ while (1) switch (_context22.p = _context22.n) {
16305
16433
  case 0:
16306
- _context21.p = 0;
16434
+ _context22.p = 0;
16307
16435
  _SceytChatClient7 = getClient();
16308
16436
  usersForUpdate = Object.keys(usersMap);
16309
- _context21.n = 1;
16437
+ _context22.n = 1;
16310
16438
  return effects.call(_SceytChatClient7.getUsers, usersForUpdate);
16311
16439
  case 1:
16312
- updatedUsers = _context21.v;
16440
+ updatedUsers = _context22.v;
16313
16441
  usersToUpdateMap = {};
16314
16442
  update = false;
16315
16443
  updatedUsers.forEach(function (updatedUser) {
@@ -16321,180 +16449,113 @@ function checkUsersStatus() {
16321
16449
  }
16322
16450
  });
16323
16451
  if (!update) {
16324
- _context21.n = 4;
16452
+ _context22.n = 4;
16325
16453
  break;
16326
16454
  }
16327
16455
  updateData = JSON.parse(JSON.stringify(usersToUpdateMap));
16328
- _context21.n = 2;
16456
+ _context22.n = 2;
16329
16457
  return effects.put(updateMembersPresenceAC(updateData));
16330
16458
  case 2:
16331
- _context21.n = 3;
16459
+ _context22.n = 3;
16332
16460
  return effects.put(updateUserStatusOnMapAC(updateData));
16333
16461
  case 3:
16334
- _context21.n = 4;
16462
+ _context22.n = 4;
16335
16463
  return effects.put(updateUserStatusOnChannelAC(updateData));
16336
16464
  case 4:
16337
- _context21.n = 6;
16465
+ _context22.n = 6;
16338
16466
  break;
16339
16467
  case 5:
16340
- _context21.p = 5;
16341
- _t22 = _context21.v;
16342
- log.error('ERROR in check user status : ', _t22.message);
16468
+ _context22.p = 5;
16469
+ _t23 = _context22.v;
16470
+ log.error('ERROR in check user status : ', _t23.message);
16343
16471
  case 6:
16344
- return _context21.a(2);
16472
+ return _context22.a(2);
16345
16473
  }
16346
- }, _marked21, null, [[0, 5]]);
16474
+ }, _marked22, null, [[0, 5]]);
16347
16475
  }
16348
16476
  function sendTyping(action) {
16349
- var state, activeChannelId, channel, _t23;
16350
- return _regenerator().w(function (_context22) {
16351
- while (1) switch (_context22.p = _context22.n) {
16477
+ var state, activeChannelId, channel, _t24;
16478
+ return _regenerator().w(function (_context23) {
16479
+ while (1) switch (_context23.p = _context23.n) {
16352
16480
  case 0:
16353
16481
  state = action.payload.state;
16354
- _context22.n = 1;
16482
+ _context23.n = 1;
16355
16483
  return effects.call(getActiveChannelId);
16356
16484
  case 1:
16357
- activeChannelId = _context22.v;
16358
- _context22.n = 2;
16485
+ activeChannelId = _context23.v;
16486
+ _context23.n = 2;
16359
16487
  return effects.call(getChannelFromMap, activeChannelId);
16360
16488
  case 2:
16361
- channel = _context22.v;
16362
- _context22.p = 3;
16489
+ channel = _context23.v;
16490
+ _context23.p = 3;
16363
16491
  if (!channel) {
16364
- _context22.n = 6;
16492
+ _context23.n = 6;
16365
16493
  break;
16366
16494
  }
16367
16495
  if (!state) {
16368
- _context22.n = 5;
16496
+ _context23.n = 5;
16369
16497
  break;
16370
16498
  }
16371
- _context22.n = 4;
16499
+ _context23.n = 4;
16372
16500
  return effects.call(channel.startTyping);
16373
16501
  case 4:
16374
- _context22.n = 6;
16502
+ _context23.n = 6;
16375
16503
  break;
16376
16504
  case 5:
16377
- _context22.n = 6;
16505
+ _context23.n = 6;
16378
16506
  return effects.call(channel.stopTyping);
16379
16507
  case 6:
16380
- _context22.n = 8;
16508
+ _context23.n = 8;
16381
16509
  break;
16382
16510
  case 7:
16383
- _context22.p = 7;
16384
- _t23 = _context22.v;
16385
- log.error('ERROR in send typing', _t23);
16386
- case 8:
16387
- return _context22.a(2);
16388
- }
16389
- }, _marked22, null, [[3, 7]]);
16390
- }
16391
- function sendRecording(action) {
16392
- var _action$payload, state, channelId, channel, _t24;
16393
- return _regenerator().w(function (_context23) {
16394
- while (1) switch (_context23.p = _context23.n) {
16395
- case 0:
16396
- _action$payload = action.payload, state = _action$payload.state, channelId = _action$payload.channelId;
16397
- _context23.n = 1;
16398
- return effects.call(getChannelFromMap, channelId);
16399
- case 1:
16400
- channel = _context23.v;
16401
- _context23.p = 2;
16402
- if (!channel) {
16403
- _context23.n = 5;
16404
- break;
16405
- }
16406
- if (!state) {
16407
- _context23.n = 4;
16408
- break;
16409
- }
16410
- _context23.n = 3;
16411
- return effects.call(channel.startRecording);
16412
- case 3:
16413
- _context23.n = 5;
16414
- break;
16415
- case 4:
16416
- _context23.n = 5;
16417
- return effects.call(channel.stopRecording);
16418
- case 5:
16419
- _context23.n = 7;
16420
- break;
16421
- case 6:
16422
- _context23.p = 6;
16511
+ _context23.p = 7;
16423
16512
  _t24 = _context23.v;
16424
- log.error('ERROR in send recording', _t24);
16425
- case 7:
16513
+ log.error('ERROR in send typing', _t24);
16514
+ case 8:
16426
16515
  return _context23.a(2);
16427
16516
  }
16428
- }, _marked23, null, [[2, 6]]);
16517
+ }, _marked23, null, [[3, 7]]);
16429
16518
  }
16430
- function clearHistory(action) {
16431
- var payload, channelId, channel, activeChannelId, groupName, _t25;
16519
+ function sendRecording(action) {
16520
+ var _action$payload, state, channelId, channel, _t25;
16432
16521
  return _regenerator().w(function (_context24) {
16433
16522
  while (1) switch (_context24.p = _context24.n) {
16434
16523
  case 0:
16435
- _context24.p = 0;
16436
- payload = action.payload;
16437
- channelId = payload.channelId;
16524
+ _action$payload = action.payload, state = _action$payload.state, channelId = _action$payload.channelId;
16438
16525
  _context24.n = 1;
16439
16526
  return effects.call(getChannelFromMap, channelId);
16440
16527
  case 1:
16441
16528
  channel = _context24.v;
16529
+ _context24.p = 2;
16442
16530
  if (!channel) {
16443
- channel = getChannelFromAllChannels(channelId);
16531
+ _context24.n = 5;
16532
+ break;
16444
16533
  }
16445
- _context24.n = 2;
16446
- return effects.call(getActiveChannelId);
16447
- case 2:
16448
- activeChannelId = _context24.v;
16449
- if (!channel) {
16450
- _context24.n = 7;
16534
+ if (!state) {
16535
+ _context24.n = 4;
16451
16536
  break;
16452
16537
  }
16453
16538
  _context24.n = 3;
16454
- return effects.call(channel.deleteAllMessages);
16539
+ return effects.call(channel.startRecording);
16455
16540
  case 3:
16456
- _context24.n = 4;
16457
- return effects.put(clearMessagesAC());
16541
+ _context24.n = 5;
16542
+ break;
16458
16543
  case 4:
16459
- removeMessagesFromMap(channelId);
16460
- if (channelId === activeChannelId) {
16461
- removeAllMessages();
16462
- }
16463
16544
  _context24.n = 5;
16464
- return effects.put(clearSelectedMessagesAC());
16545
+ return effects.call(channel.stopRecording);
16465
16546
  case 5:
16466
- _context24.n = 6;
16467
- return effects.put(updateChannelDataAC(channel.id, {
16468
- lastMessage: null,
16469
- newMessageCount: 0,
16470
- newMentionCount: 0
16471
- }));
16472
- case 6:
16473
- updateChannelOnAllChannels(channel.id, {
16474
- lastMessage: null,
16475
- newMessageCount: 0,
16476
- newMentionCount: 0
16477
- });
16478
- groupName = getChannelGroupName(channel);
16479
16547
  _context24.n = 7;
16480
- return effects.put(updateSearchedChannelDataAC(channel.id, {
16481
- lastMessage: null,
16482
- newMessageCount: 0,
16483
- newMentionCount: 0
16484
- }, groupName));
16485
- case 7:
16486
- _context24.n = 9;
16487
16548
  break;
16488
- case 8:
16489
- _context24.p = 8;
16549
+ case 6:
16550
+ _context24.p = 6;
16490
16551
  _t25 = _context24.v;
16491
- log.error('ERROR in clear history', _t25);
16492
- case 9:
16552
+ log.error('ERROR in send recording', _t25);
16553
+ case 7:
16493
16554
  return _context24.a(2);
16494
16555
  }
16495
- }, _marked24, null, [[0, 8]]);
16556
+ }, _marked24, null, [[2, 6]]);
16496
16557
  }
16497
- function deleteAllMessages(action) {
16558
+ function clearHistory(action) {
16498
16559
  var payload, channelId, channel, activeChannelId, groupName, _t26;
16499
16560
  return _regenerator().w(function (_context25) {
16500
16561
  while (1) switch (_context25.p = _context25.n) {
@@ -16514,26 +16575,93 @@ function deleteAllMessages(action) {
16514
16575
  case 2:
16515
16576
  activeChannelId = _context25.v;
16516
16577
  if (!channel) {
16517
- _context25.n = 8;
16578
+ _context25.n = 7;
16518
16579
  break;
16519
16580
  }
16520
16581
  _context25.n = 3;
16582
+ return effects.call(channel.deleteAllMessages);
16583
+ case 3:
16584
+ _context25.n = 4;
16585
+ return effects.put(clearMessagesAC());
16586
+ case 4:
16587
+ removeMessagesFromMap(channelId);
16588
+ if (channelId === activeChannelId) {
16589
+ removeAllMessages();
16590
+ }
16591
+ _context25.n = 5;
16592
+ return effects.put(clearSelectedMessagesAC());
16593
+ case 5:
16594
+ _context25.n = 6;
16595
+ return effects.put(updateChannelDataAC(channel.id, {
16596
+ lastMessage: null,
16597
+ newMessageCount: 0,
16598
+ newMentionCount: 0
16599
+ }));
16600
+ case 6:
16601
+ updateChannelOnAllChannels(channel.id, {
16602
+ lastMessage: null,
16603
+ newMessageCount: 0,
16604
+ newMentionCount: 0
16605
+ });
16606
+ groupName = getChannelGroupName(channel);
16607
+ _context25.n = 7;
16608
+ return effects.put(updateSearchedChannelDataAC(channel.id, {
16609
+ lastMessage: null,
16610
+ newMessageCount: 0,
16611
+ newMentionCount: 0
16612
+ }, groupName));
16613
+ case 7:
16614
+ _context25.n = 9;
16615
+ break;
16616
+ case 8:
16617
+ _context25.p = 8;
16618
+ _t26 = _context25.v;
16619
+ log.error('ERROR in clear history', _t26);
16620
+ case 9:
16621
+ return _context25.a(2);
16622
+ }
16623
+ }, _marked25, null, [[0, 8]]);
16624
+ }
16625
+ function deleteAllMessages(action) {
16626
+ var payload, channelId, channel, activeChannelId, groupName, _t27;
16627
+ return _regenerator().w(function (_context26) {
16628
+ while (1) switch (_context26.p = _context26.n) {
16629
+ case 0:
16630
+ _context26.p = 0;
16631
+ payload = action.payload;
16632
+ channelId = payload.channelId;
16633
+ _context26.n = 1;
16634
+ return effects.call(getChannelFromMap, channelId);
16635
+ case 1:
16636
+ channel = _context26.v;
16637
+ if (!channel) {
16638
+ channel = getChannelFromAllChannels(channelId);
16639
+ }
16640
+ _context26.n = 2;
16641
+ return effects.call(getActiveChannelId);
16642
+ case 2:
16643
+ activeChannelId = _context26.v;
16644
+ if (!channel) {
16645
+ _context26.n = 8;
16646
+ break;
16647
+ }
16648
+ _context26.n = 3;
16521
16649
  return effects.call(channel.deleteAllMessages, true);
16522
16650
  case 3:
16523
16651
  removeMessagesFromMap(channelId);
16524
16652
  if (!(channelId === activeChannelId)) {
16525
- _context25.n = 5;
16653
+ _context26.n = 5;
16526
16654
  break;
16527
16655
  }
16528
- _context25.n = 4;
16656
+ _context26.n = 4;
16529
16657
  return effects.put(clearMessagesAC());
16530
16658
  case 4:
16531
16659
  removeAllMessages();
16532
16660
  case 5:
16533
- _context25.n = 6;
16661
+ _context26.n = 6;
16534
16662
  return effects.put(clearSelectedMessagesAC());
16535
16663
  case 6:
16536
- _context25.n = 7;
16664
+ _context26.n = 7;
16537
16665
  return effects.put(updateChannelDataAC(channel.id, {
16538
16666
  lastMessage: null,
16539
16667
  newMessageCount: 0,
@@ -16546,182 +16674,185 @@ function deleteAllMessages(action) {
16546
16674
  newMentionCount: 0
16547
16675
  });
16548
16676
  groupName = getChannelGroupName(channel);
16549
- _context25.n = 8;
16677
+ _context26.n = 8;
16550
16678
  return effects.put(updateSearchedChannelDataAC(channel.id, {
16551
16679
  lastMessage: null,
16552
16680
  newMessageCount: 0,
16553
16681
  newMentionCount: 0
16554
16682
  }, groupName));
16555
16683
  case 8:
16556
- _context25.n = 10;
16684
+ _context26.n = 10;
16557
16685
  break;
16558
16686
  case 9:
16559
- _context25.p = 9;
16560
- _t26 = _context25.v;
16561
- log.error('ERROR in clear history', _t26);
16687
+ _context26.p = 9;
16688
+ _t27 = _context26.v;
16689
+ log.error('ERROR in clear history', _t27);
16562
16690
  case 10:
16563
- return _context25.a(2);
16691
+ return _context26.a(2);
16564
16692
  }
16565
- }, _marked25, null, [[0, 9]]);
16693
+ }, _marked26, null, [[0, 9]]);
16566
16694
  }
16567
16695
  function joinChannel(action) {
16568
- var payload, channelId, _SceytChatClient8, channel, joinedChannel, _t27;
16569
- return _regenerator().w(function (_context26) {
16570
- while (1) switch (_context26.p = _context26.n) {
16696
+ var payload, channelId, _SceytChatClient8, channel, joinedChannel, _t28;
16697
+ return _regenerator().w(function (_context27) {
16698
+ while (1) switch (_context27.p = _context27.n) {
16571
16699
  case 0:
16572
- _context26.p = 0;
16700
+ _context27.p = 0;
16573
16701
  payload = action.payload;
16574
16702
  channelId = payload.channelId;
16575
16703
  _SceytChatClient8 = getClient();
16576
- _context26.n = 1;
16704
+ _context27.n = 1;
16577
16705
  return effects.call(getChannelFromMap, channelId);
16578
16706
  case 1:
16579
- channel = _context26.v;
16707
+ channel = _context27.v;
16580
16708
  if (!channel) {
16581
16709
  channel = getChannelFromAllChannels(channelId);
16582
16710
  }
16583
16711
  if (channel) {
16584
- _context26.n = 3;
16712
+ _context27.n = 3;
16585
16713
  break;
16586
16714
  }
16587
- _context26.n = 2;
16715
+ _context27.n = 2;
16588
16716
  return effects.call(_SceytChatClient8.getChannel, channelId);
16589
16717
  case 2:
16590
- channel = _context26.v;
16718
+ channel = _context27.v;
16591
16719
  case 3:
16592
- _context26.n = 4;
16720
+ _context27.n = 4;
16593
16721
  return effects.call(channel.join);
16594
16722
  case 4:
16595
- joinedChannel = _context26.v;
16596
- _context26.n = 5;
16723
+ joinedChannel = _context27.v;
16724
+ _context27.n = 5;
16597
16725
  return effects.put(setCloseSearchChannelsAC(true));
16598
16726
  case 5:
16599
- _context26.n = 6;
16727
+ _context27.n = 6;
16600
16728
  return effects.put(setChannelToAddAC(JSON.parse(JSON.stringify(joinedChannel))));
16601
16729
  case 6:
16602
- _context26.n = 7;
16730
+ _context27.n = 7;
16603
16731
  return effects.put(switchChannelActionAC(JSON.parse(JSON.stringify(joinedChannel))));
16604
16732
  case 7:
16605
16733
  addChannelToAllChannels(joinedChannel);
16606
- _context26.n = 8;
16734
+ _context27.n = 8;
16607
16735
  return effects.call(setActiveChannelId, joinedChannel.id);
16608
16736
  case 8:
16609
- _context26.n = 10;
16737
+ _context27.n = 10;
16610
16738
  break;
16611
16739
  case 9:
16612
- _context26.p = 9;
16613
- _t27 = _context26.v;
16614
- log.error(_t27, 'Error in join to channel');
16740
+ _context27.p = 9;
16741
+ _t28 = _context27.v;
16742
+ log.error(_t28, 'Error in join to channel');
16615
16743
  case 10:
16616
- return _context26.a(2);
16744
+ return _context27.a(2);
16617
16745
  }
16618
- }, _marked26, null, [[0, 9]]);
16746
+ }, _marked27, null, [[0, 9]]);
16619
16747
  }
16620
16748
  function watchForChannelEvents() {
16621
- return _regenerator().w(function (_context27) {
16622
- while (1) switch (_context27.n) {
16749
+ return _regenerator().w(function (_context28) {
16750
+ while (1) switch (_context28.n) {
16623
16751
  case 0:
16624
- _context27.n = 1;
16752
+ _context28.n = 1;
16625
16753
  return effects.call(watchForEvents);
16626
16754
  case 1:
16627
- return _context27.a(2);
16755
+ return _context28.a(2);
16628
16756
  }
16629
- }, _marked27);
16757
+ }, _marked28);
16630
16758
  }
16631
16759
  function ChannelsSaga() {
16632
- return _regenerator().w(function (_context28) {
16633
- while (1) switch (_context28.n) {
16760
+ return _regenerator().w(function (_context29) {
16761
+ while (1) switch (_context29.n) {
16634
16762
  case 0:
16635
- _context28.n = 1;
16763
+ _context29.n = 1;
16636
16764
  return effects.takeLatest(CREATE_CHANNEL, createChannel);
16637
16765
  case 1:
16638
- _context28.n = 2;
16766
+ _context29.n = 2;
16639
16767
  return effects.takeLatest(GET_CHANNELS, getChannels);
16640
16768
  case 2:
16641
- _context28.n = 3;
16769
+ _context29.n = 3;
16642
16770
  return effects.takeLatest(SEARCH_CHANNELS, searchChannels);
16643
16771
  case 3:
16644
- _context28.n = 4;
16772
+ _context29.n = 4;
16645
16773
  return effects.takeLatest(GET_CHANNELS_FOR_FORWARD, getChannelsForForward);
16646
16774
  case 4:
16647
- _context28.n = 5;
16775
+ _context29.n = 5;
16648
16776
  return effects.takeLatest(SEARCH_CHANNELS_FOR_FORWARD, searchChannelsForForward);
16649
16777
  case 5:
16650
- _context28.n = 6;
16778
+ _context29.n = 6;
16651
16779
  return effects.takeLatest(LOAD_MORE_CHANNEL, channelsLoadMore);
16652
16780
  case 6:
16653
- _context28.n = 7;
16781
+ _context29.n = 7;
16654
16782
  return effects.takeLatest(LOAD_MORE_CHANNELS_FOR_FORWARD, channelsForForwardLoadMore);
16655
16783
  case 7:
16656
- _context28.n = 8;
16784
+ _context29.n = 8;
16657
16785
  return effects.takeEvery(SWITCH_CHANNEL, switchChannel);
16658
16786
  case 8:
16659
- _context28.n = 9;
16787
+ _context29.n = 9;
16660
16788
  return effects.takeLatest(LEAVE_CHANNEL, leaveChannel);
16661
16789
  case 9:
16662
- _context28.n = 10;
16790
+ _context29.n = 10;
16663
16791
  return effects.takeLatest(DELETE_CHANNEL, deleteChannel);
16664
16792
  case 10:
16665
- _context28.n = 11;
16793
+ _context29.n = 11;
16666
16794
  return effects.takeLatest(BLOCK_CHANNEL, blockChannel);
16667
16795
  case 11:
16668
- _context28.n = 12;
16796
+ _context29.n = 12;
16669
16797
  return effects.takeLatest(UPDATE_CHANNEL, updateChannel);
16670
16798
  case 12:
16671
- _context28.n = 13;
16799
+ _context29.n = 13;
16672
16800
  return effects.takeEvery(MARK_MESSAGES_AS_READ, markMessagesRead);
16673
16801
  case 13:
16674
- _context28.n = 14;
16802
+ _context29.n = 14;
16675
16803
  return effects.takeLatest(MARK_MESSAGES_AS_DELIVERED, markMessagesDelivered);
16676
16804
  case 14:
16677
- _context28.n = 15;
16678
- return effects.takeLatest(WATCH_FOR_EVENTS, watchForChannelEvents);
16805
+ _context29.n = 15;
16806
+ return effects.takeLatest(MARK_VOICE_MESSAGE_AS_PLAYED, markVoiceMessageAsPlayed);
16679
16807
  case 15:
16680
- _context28.n = 16;
16681
- return effects.takeLatest(TURN_OFF_NOTIFICATION, notificationsTurnOff);
16808
+ _context29.n = 16;
16809
+ return effects.takeLatest(WATCH_FOR_EVENTS, watchForChannelEvents);
16682
16810
  case 16:
16683
- _context28.n = 17;
16684
- return effects.takeLatest(TURN_ON_NOTIFICATION, notificationsTurnOn);
16811
+ _context29.n = 17;
16812
+ return effects.takeLatest(TURN_OFF_NOTIFICATION, notificationsTurnOff);
16685
16813
  case 17:
16686
- _context28.n = 18;
16687
- return effects.takeLatest(MARK_CHANNEL_AS_READ, markChannelAsRead);
16814
+ _context29.n = 18;
16815
+ return effects.takeLatest(TURN_ON_NOTIFICATION, notificationsTurnOn);
16688
16816
  case 18:
16689
- _context28.n = 19;
16690
- return effects.takeLatest(MARK_CHANNEL_AS_UNREAD, markChannelAsUnRead);
16817
+ _context29.n = 19;
16818
+ return effects.takeLatest(MARK_CHANNEL_AS_READ, markChannelAsRead);
16691
16819
  case 19:
16692
- _context28.n = 20;
16693
- return effects.takeLatest(CHECK_USER_STATUS, checkUsersStatus);
16820
+ _context29.n = 20;
16821
+ return effects.takeLatest(MARK_CHANNEL_AS_UNREAD, markChannelAsUnRead);
16694
16822
  case 20:
16695
- _context28.n = 21;
16696
- return effects.takeLatest(SEND_TYPING, sendTyping);
16823
+ _context29.n = 21;
16824
+ return effects.takeLatest(CHECK_USER_STATUS, checkUsersStatus);
16697
16825
  case 21:
16698
- _context28.n = 22;
16699
- return effects.takeLatest(SEND_RECORDING, sendRecording);
16826
+ _context29.n = 22;
16827
+ return effects.takeLatest(SEND_TYPING, sendTyping);
16700
16828
  case 22:
16701
- _context28.n = 23;
16702
- return effects.takeLatest(PIN_CHANNEL, pinChannel);
16829
+ _context29.n = 23;
16830
+ return effects.takeLatest(SEND_RECORDING, sendRecording);
16703
16831
  case 23:
16704
- _context28.n = 24;
16705
- return effects.takeLatest(UNPIN_CHANNEL, unpinChannel);
16832
+ _context29.n = 24;
16833
+ return effects.takeLatest(PIN_CHANNEL, pinChannel);
16706
16834
  case 24:
16707
- _context28.n = 25;
16708
- return effects.takeLatest(CLEAR_HISTORY, clearHistory);
16835
+ _context29.n = 25;
16836
+ return effects.takeLatest(UNPIN_CHANNEL, unpinChannel);
16709
16837
  case 25:
16710
- _context28.n = 26;
16711
- return effects.takeLatest(JOIN_TO_CHANNEL, joinChannel);
16838
+ _context29.n = 26;
16839
+ return effects.takeLatest(CLEAR_HISTORY, clearHistory);
16712
16840
  case 26:
16713
- _context28.n = 27;
16714
- return effects.takeLatest(DELETE_ALL_MESSAGES, deleteAllMessages);
16841
+ _context29.n = 27;
16842
+ return effects.takeLatest(JOIN_TO_CHANNEL, joinChannel);
16715
16843
  case 27:
16716
- _context28.n = 28;
16717
- return effects.takeLatest(REMOVE_CHANNEL_CACHES, removeChannelCaches);
16844
+ _context29.n = 28;
16845
+ return effects.takeLatest(DELETE_ALL_MESSAGES, deleteAllMessages);
16718
16846
  case 28:
16719
- _context28.n = 29;
16720
- return effects.takeLatest(GET_CHANNEL_MENTIONS, getChannelMentions);
16847
+ _context29.n = 29;
16848
+ return effects.takeLatest(REMOVE_CHANNEL_CACHES, removeChannelCaches);
16721
16849
  case 29:
16722
- return _context28.a(2);
16850
+ _context29.n = 30;
16851
+ return effects.takeLatest(GET_CHANNEL_MENTIONS, getChannelMentions);
16852
+ case 30:
16853
+ return _context29.a(2);
16723
16854
  }
16724
- }, _marked28);
16855
+ }, _marked29);
16725
16856
  }
16726
16857
 
16727
16858
  function rgbaToThumbHash(w, h, rgba) {
@@ -17144,6 +17275,12 @@ var selectedMessagesMapSelector = function selectedMessagesMapSelector(store) {
17144
17275
  var attachmentUpdatedMapSelector = function attachmentUpdatedMapSelector(store) {
17145
17276
  return store.MessageReducer.attachmentUpdatedMap;
17146
17277
  };
17278
+ var messageMarkersSelector = function messageMarkersSelector(store) {
17279
+ return store.MessageReducer.messageMarkers;
17280
+ };
17281
+ var messagesMarkersLoadingStateSelector = function messagesMarkersLoadingStateSelector(store) {
17282
+ return store.MessageReducer.messagesMarkersLoadingState;
17283
+ };
17147
17284
 
17148
17285
  var getFrame = function getFrame(videoSrc, time) {
17149
17286
  try {
@@ -17214,7 +17351,8 @@ var _marked$3 = /*#__PURE__*/_regenerator().m(sendMessage),
17214
17351
  _marked13$1 = /*#__PURE__*/_regenerator().m(loadMoreMessageAttachments),
17215
17352
  _marked14$1 = /*#__PURE__*/_regenerator().m(pauseAttachmentUploading),
17216
17353
  _marked15$1 = /*#__PURE__*/_regenerator().m(resumeAttachmentUploading),
17217
- _marked16$1 = /*#__PURE__*/_regenerator().m(MessageSaga);
17354
+ _marked16$1 = /*#__PURE__*/_regenerator().m(getMessageMarkers),
17355
+ _marked17$1 = /*#__PURE__*/_regenerator().m(MessageSaga);
17218
17356
  var handleUploadAttachments = function handleUploadAttachments(attachments, message, channel) {
17219
17357
  try {
17220
17358
  return Promise.resolve(Promise.all(attachments.map(function (attachment) {
@@ -17228,7 +17366,7 @@ var handleUploadAttachments = function handleUploadAttachments(attachments, mess
17228
17366
  }, thumbnailMetas.duration ? {
17229
17367
  dur: thumbnailMetas.duration
17230
17368
  } : {})));
17231
- var attachmentBuilder = channel.createAttachmentBuilder(uri, attachment.type);
17369
+ var attachmentBuilder = channel.createdAttachmentBuilder(uri, attachment.type);
17232
17370
  var attachmentToSend = attachmentBuilder.setName(attachment.name).setMetadata(attachmentMeta).setFileSize(fileSize || attachment.size).setUpload(false).create();
17233
17371
  return attachmentToSend;
17234
17372
  }
@@ -17388,7 +17526,7 @@ function sendMessage(action) {
17388
17526
  if (attachment.cachedUrl) {
17389
17527
  uri = attachment.cachedUrl;
17390
17528
  }
17391
- attachmentBuilder = channel.createAttachmentBuilder(uri || attachment.data, attachment.type);
17529
+ attachmentBuilder = channel.createdAttachmentBuilder(uri || attachment.data, attachment.type);
17392
17530
  messageAttachment = attachmentBuilder.setName(attachment.name).setMetadata(attachment.metadata).setUpload(customUploader ? false : attachment.upload).setFileSize(attachment.size).create();
17393
17531
  if (!customUploader) {
17394
17532
  handleUpdateUploadProgress = function handleUpdateUploadProgress(percent) {
@@ -17536,7 +17674,7 @@ function sendMessage(action) {
17536
17674
  case 3:
17537
17675
  linkAttachmentToSend = null;
17538
17676
  if (_i === 0 && linkAttachment) {
17539
- linkAttachmentBuilder = channel.createAttachmentBuilder(linkAttachment.data, linkAttachment.type);
17677
+ linkAttachmentBuilder = channel.createdAttachmentBuilder(linkAttachment.data, linkAttachment.type);
17540
17678
  linkAttachmentToSend = linkAttachmentBuilder.setName(linkAttachment.name).setUpload(linkAttachment.upload).create();
17541
17679
  }
17542
17680
  if (linkAttachmentToSend) {
@@ -17744,7 +17882,7 @@ function sendTextMessage(action) {
17744
17882
  }) : [];
17745
17883
  attachments = message.attachments;
17746
17884
  if (message.attachments && message.attachments.length) {
17747
- attachmentBuilder = channel.createAttachmentBuilder(attachments[0].data, attachments[0].type);
17885
+ attachmentBuilder = channel.createdAttachmentBuilder(attachments[0].data, attachments[0].type);
17748
17886
  att = attachmentBuilder.setName('').setUpload(attachments[0].upload).create();
17749
17887
  attachments = [att];
17750
17888
  }
@@ -17926,7 +18064,7 @@ function forwardMessage(action) {
17926
18064
  break;
17927
18065
  }
17928
18066
  if (message.attachments && message.attachments.length) {
17929
- attachmentBuilder = channel.createAttachmentBuilder(attachments[0].url, attachments[0].type);
18067
+ attachmentBuilder = channel.createdAttachmentBuilder(attachments[0].url, attachments[0].type);
17930
18068
  att = attachmentBuilder.setName(attachments[0].name).setMetadata(attachments[0].metadata).setFileSize(attachments[0].size).setUpload(false).create();
17931
18069
  attachments = [att];
17932
18070
  }
@@ -18212,7 +18350,7 @@ function resendMessage(action) {
18212
18350
  } : {})));
18213
18351
  }
18214
18352
  log.info('attachmentMeta ... ', attachmentMeta);
18215
- attachmentBuilder = channel.createAttachmentBuilder(uri, messageAttachment.type);
18353
+ attachmentBuilder = channel.createdAttachmentBuilder(uri, messageAttachment.type);
18216
18354
  attachmentToSend = attachmentBuilder.setName(messageAttachment.name).setMetadata(attachmentMeta).setFileSize(fileSize).setUpload(false).create();
18217
18355
  log.info('attachmentToSend ... ', attachmentToSend);
18218
18356
  attachmentToSend.tid = messageAttachment.tid;
@@ -18471,7 +18609,7 @@ function editMessage(action) {
18471
18609
  });
18472
18610
  linkAttachmentsToSend = [];
18473
18611
  linkAttachments.forEach(function (linkAttachment) {
18474
- var linkAttachmentBuilder = channel.createAttachmentBuilder(linkAttachment.data, linkAttachment.type);
18612
+ var linkAttachmentBuilder = channel.createdAttachmentBuilder(linkAttachment.data, linkAttachment.type);
18475
18613
  var linkAttachmentToSend = linkAttachmentBuilder.setName(linkAttachment.name).setUpload(linkAttachment.upload).create();
18476
18614
  linkAttachmentsToSend.push(linkAttachmentToSend);
18477
18615
  });
@@ -19425,64 +19563,111 @@ function resumeAttachmentUploading(action) {
19425
19563
  }
19426
19564
  }, _marked15$1, null, [[0, 2]]);
19427
19565
  }
19428
- function MessageSaga() {
19566
+ function getMessageMarkers(action) {
19567
+ var _action$payload4, messageId, channelId, deliveryStatus, sceytChatClient, messageMarkerListQueryBuilder, messageMarkerListQuery, messageMarkers, _t18;
19429
19568
  return _regenerator().w(function (_context18) {
19430
- while (1) switch (_context18.n) {
19569
+ while (1) switch (_context18.p = _context18.n) {
19431
19570
  case 0:
19571
+ _context18.p = 0;
19432
19572
  _context18.n = 1;
19433
- return effects.takeEvery(SEND_MESSAGE, sendMessage);
19573
+ return effects.put(setMessagesMarkersLoadingStateAC(LOADING_STATE.LOADING));
19434
19574
  case 1:
19575
+ _action$payload4 = action.payload, messageId = _action$payload4.messageId, channelId = _action$payload4.channelId, deliveryStatus = _action$payload4.deliveryStatus;
19576
+ sceytChatClient = getClient();
19577
+ if (!sceytChatClient) {
19578
+ _context18.n = 4;
19579
+ break;
19580
+ }
19581
+ messageMarkerListQueryBuilder = new sceytChatClient.MessageMarkerListQueryBuilder(channelId, String(messageId), deliveryStatus);
19435
19582
  _context18.n = 2;
19436
- return effects.takeEvery(SEND_TEXT_MESSAGE, sendTextMessage);
19583
+ return effects.call(messageMarkerListQueryBuilder.build);
19437
19584
  case 2:
19585
+ messageMarkerListQuery = _context18.v;
19438
19586
  _context18.n = 3;
19439
- return effects.takeEvery(FORWARD_MESSAGE, forwardMessage);
19587
+ return effects.call(messageMarkerListQuery.loadNext);
19440
19588
  case 3:
19589
+ messageMarkers = _context18.v;
19441
19590
  _context18.n = 4;
19591
+ return effects.put(setMessageMarkersAC(channelId, messageId, messageMarkers.markers, deliveryStatus));
19592
+ case 4:
19593
+ _context18.n = 6;
19594
+ break;
19595
+ case 5:
19596
+ _context18.p = 5;
19597
+ _t18 = _context18.v;
19598
+ log.error('error in get message markers', _t18);
19599
+ case 6:
19600
+ _context18.p = 6;
19601
+ _context18.n = 7;
19602
+ return effects.put(setMessagesMarkersLoadingStateAC(LOADING_STATE.LOADED));
19603
+ case 7:
19604
+ return _context18.f(6);
19605
+ case 8:
19606
+ return _context18.a(2);
19607
+ }
19608
+ }, _marked16$1, null, [[0, 5, 6, 8]]);
19609
+ }
19610
+ function MessageSaga() {
19611
+ return _regenerator().w(function (_context19) {
19612
+ while (1) switch (_context19.n) {
19613
+ case 0:
19614
+ _context19.n = 1;
19615
+ return effects.takeEvery(SEND_MESSAGE, sendMessage);
19616
+ case 1:
19617
+ _context19.n = 2;
19618
+ return effects.takeEvery(SEND_TEXT_MESSAGE, sendTextMessage);
19619
+ case 2:
19620
+ _context19.n = 3;
19621
+ return effects.takeEvery(FORWARD_MESSAGE, forwardMessage);
19622
+ case 3:
19623
+ _context19.n = 4;
19442
19624
  return effects.takeEvery(RESEND_MESSAGE, resendMessage);
19443
19625
  case 4:
19444
- _context18.n = 5;
19626
+ _context19.n = 5;
19445
19627
  return effects.takeLatest(EDIT_MESSAGE, editMessage);
19446
19628
  case 5:
19447
- _context18.n = 6;
19629
+ _context19.n = 6;
19448
19630
  return effects.takeEvery(DELETE_MESSAGE, deleteMessage);
19449
19631
  case 6:
19450
- _context18.n = 7;
19632
+ _context19.n = 7;
19451
19633
  return effects.takeLatest(GET_MESSAGES, getMessagesQuery);
19452
19634
  case 7:
19453
- _context18.n = 8;
19635
+ _context19.n = 8;
19454
19636
  return effects.takeEvery(GET_MESSAGE, getMessageQuery);
19455
19637
  case 8:
19456
- _context18.n = 9;
19457
- return effects.takeLatest(GET_MESSAGES_ATTACHMENTS, getMessageAttachments);
19638
+ _context19.n = 9;
19639
+ return effects.takeLatest(GET_MESSAGE_MARKERS, getMessageMarkers);
19458
19640
  case 9:
19459
- _context18.n = 10;
19460
- return effects.takeLatest(LOAD_MORE_MESSAGES_ATTACHMENTS, loadMoreMessageAttachments);
19641
+ _context19.n = 10;
19642
+ return effects.takeLatest(GET_MESSAGES_ATTACHMENTS, getMessageAttachments);
19461
19643
  case 10:
19462
- _context18.n = 11;
19463
- return effects.takeLatest(ADD_REACTION, addReaction);
19644
+ _context19.n = 11;
19645
+ return effects.takeLatest(LOAD_MORE_MESSAGES_ATTACHMENTS, loadMoreMessageAttachments);
19464
19646
  case 11:
19465
- _context18.n = 12;
19466
- return effects.takeLatest(DELETE_REACTION, deleteReaction);
19647
+ _context19.n = 12;
19648
+ return effects.takeLatest(ADD_REACTION, addReaction);
19467
19649
  case 12:
19468
- _context18.n = 13;
19469
- return effects.takeEvery(LOAD_MORE_MESSAGES, loadMoreMessages);
19650
+ _context19.n = 13;
19651
+ return effects.takeLatest(DELETE_REACTION, deleteReaction);
19470
19652
  case 13:
19471
- _context18.n = 14;
19472
- return effects.takeEvery(GET_REACTIONS, getReactions);
19653
+ _context19.n = 14;
19654
+ return effects.takeEvery(LOAD_MORE_MESSAGES, loadMoreMessages);
19473
19655
  case 14:
19474
- _context18.n = 15;
19475
- return effects.takeEvery(LOAD_MORE_REACTIONS, loadMoreReactions);
19656
+ _context19.n = 15;
19657
+ return effects.takeEvery(GET_REACTIONS, getReactions);
19476
19658
  case 15:
19477
- _context18.n = 16;
19478
- return effects.takeEvery(PAUSE_ATTACHMENT_UPLOADING, pauseAttachmentUploading);
19659
+ _context19.n = 16;
19660
+ return effects.takeEvery(LOAD_MORE_REACTIONS, loadMoreReactions);
19479
19661
  case 16:
19480
- _context18.n = 17;
19481
- return effects.takeEvery(RESUME_ATTACHMENT_UPLOADING, resumeAttachmentUploading);
19662
+ _context19.n = 17;
19663
+ return effects.takeEvery(PAUSE_ATTACHMENT_UPLOADING, pauseAttachmentUploading);
19482
19664
  case 17:
19483
- return _context18.a(2);
19665
+ _context19.n = 18;
19666
+ return effects.takeEvery(RESUME_ATTACHMENT_UPLOADING, resumeAttachmentUploading);
19667
+ case 18:
19668
+ return _context19.a(2);
19484
19669
  }
19485
- }, _marked16$1);
19670
+ }, _marked17$1);
19486
19671
  }
19487
19672
 
19488
19673
  var _marked$4 = /*#__PURE__*/_regenerator().m(getMembers),
@@ -26555,7 +26740,10 @@ function ReactionsPopup(_ref) {
26555
26740
  }, reactions.map(function (reaction) {
26556
26741
  return /*#__PURE__*/React__default.createElement(ReactionItem$1, {
26557
26742
  key: reaction.id,
26558
- hoverBackgroundColor: backgroundHovered
26743
+ hoverBackgroundColor: backgroundHovered,
26744
+ onClick: function onClick() {
26745
+ return handleAddDeleteEmoji(reaction.key);
26746
+ }
26559
26747
  }, /*#__PURE__*/React__default.createElement(AvatarWrapper, null, /*#__PURE__*/React__default.createElement(Avatar, {
26560
26748
  name: reaction.user.firstName || reaction.user.id,
26561
26749
  image: reaction.user.avatarUrl,
@@ -26566,11 +26754,7 @@ function ReactionsPopup(_ref) {
26566
26754
  color: textPrimary
26567
26755
  }, makeUsername(reaction.user.id === user.id ? reaction.user : contactsMap[reaction.user.id], reaction.user, getFromContacts)), /*#__PURE__*/React__default.createElement(SubTitle, {
26568
26756
  color: textSecondary
26569
- }, reaction.user.presence && reaction.user.presence.state === USER_PRESENCE_STATUS.ONLINE ? 'Online' : reaction.user.presence && reaction.user.presence.lastActiveAt && userLastActiveDateFormat(reaction.user.presence.lastActiveAt))), /*#__PURE__*/React__default.createElement(ReactionKey, {
26570
- onClick: function onClick() {
26571
- return handleAddDeleteEmoji(reaction.key);
26572
- }
26573
- }, reaction.key));
26757
+ }, reaction.user.presence && reaction.user.presence.state === USER_PRESENCE_STATUS.ONLINE ? 'Online' : reaction.user.presence && reaction.user.presence.lastActiveAt && userLastActiveDateFormat(reaction.user.presence.lastActiveAt))), /*#__PURE__*/React__default.createElement(ReactionKey, null, reaction.key));
26574
26758
  })));
26575
26759
  }
26576
26760
  var Container$d = styled__default.div(_templateObject$q || (_templateObject$q = _taggedTemplateLiteralLoose(["\n position: absolute;\n /*right: ", ";*/\n right: ", ";\n /*left: ", ";*/\n left: ", ";\n top: ", ";\n bottom: ", ";\n width: 340px;\n height: ", "px;\n //overflow: ", ";\n overflow: hidden;\n max-height: 320px;\n background: ", ";\n //border: 1px solid #dfe0eb;\n box-shadow:\n 0 6px 24px -6px rgba(15, 34, 67, 0.12),\n 0px 1px 3px rgba(24, 23, 37, 0.14);\n box-sizing: border-box;\n //box-shadow: 0 0 12px rgba(0, 0, 0, 0.08);\n border-radius: ", ";\n visibility: ", ";\n transition: all 0.2s;\n\n direction: initial;\n z-index: 12;\n &::after {\n content: '';\n position: absolute;\n width: 12px;\n height: 12px;\n\n right: ", ";\n left: ", ";\n top: ", ";\n bottom: ", ";\n transform: rotate(45deg);\n box-shadow: ", ";\n border-radius: 2px;\n visibility: ", ";\n transition-delay: 150ms;\n transition-property: visibility;\n\n background: ", ";\n }\n"])), function (props) {
@@ -26640,7 +26824,7 @@ var ReactionScoreItem = styled__default.div(_templateObject8$9 || (_templateObje
26640
26824
  return props.active && !props.bubbleStyle && "\n &::after {\n content: '';\n position: absolute;\n left: 0;\n bottom: -13px;\n width: 100%;\n height: 2px;\n background-color: " + props.activeColor + ";\n border-radius: 2px;\n }\n ";
26641
26825
  }, TabKey);
26642
26826
  var ReactionKey = styled__default.span(_templateObject9$9 || (_templateObject9$9 = _taggedTemplateLiteralLoose(["\n font-family:\n apple color emoji,\n segoe ui emoji,\n noto color emoji,\n android emoji,\n emojisymbols,\n emojione mozilla,\n twemoji mozilla,\n segoe ui symbol;\n font-size: 20px;\n cursor: pointer;\n"])));
26643
- var ReactionItem$1 = styled__default.li(_templateObject0$8 || (_templateObject0$8 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n font-size: 15px;\n padding: 6px 16px;\n transition: all 0.2s;\n\n &:hover {\n background-color: ", ";\n }\n\n & ", " {\n width: 10px;\n height: 10px;\n }\n"])), function (props) {
26827
+ var ReactionItem$1 = styled__default.li(_templateObject0$8 || (_templateObject0$8 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n font-size: 15px;\n padding: 6px 16px;\n transition: all 0.2s;\n cursor: pointer;\n\n &:hover {\n background-color: ", ";\n }\n\n & ", " {\n width: 10px;\n height: 10px;\n }\n"])), function (props) {
26644
26828
  return props.hoverBackgroundColor;
26645
26829
  }, UserStatus);
26646
26830
 
@@ -26905,6 +27089,7 @@ function MessageActions(_ref) {
26905
27089
  messageStatus = _ref.messageStatus,
26906
27090
  handleSelectMessage = _ref.handleSelectMessage,
26907
27091
  handleReplyMessage = _ref.handleReplyMessage,
27092
+ handleOpenInfoMessage = _ref.handleOpenInfoMessage,
26908
27093
  isThreadMessage = _ref.isThreadMessage,
26909
27094
  rtlDirection = _ref.rtlDirection,
26910
27095
  showMessageReaction = _ref.showMessageReaction,
@@ -26916,6 +27101,8 @@ function MessageActions(_ref) {
26916
27101
  showDeleteMessage = _ref.showDeleteMessage,
26917
27102
  showSelectMessage = _ref.showSelectMessage,
26918
27103
  showReportMessage = _ref.showReportMessage,
27104
+ showInfoMessage = _ref.showInfoMessage,
27105
+ infoIconOrder = _ref.infoIconOrder,
26919
27106
  reactionIcon = _ref.reactionIcon,
26920
27107
  editIcon = _ref.editIcon,
26921
27108
  copyIcon = _ref.copyIcon,
@@ -26923,6 +27110,7 @@ function MessageActions(_ref) {
26923
27110
  replyInThreadIcon = _ref.replyInThreadIcon,
26924
27111
  deleteIcon = _ref.deleteIcon,
26925
27112
  selectIcon = _ref.selectIcon,
27113
+ infoIcon = _ref.infoIcon,
26926
27114
  allowEditDeleteIncomingMessage = _ref.allowEditDeleteIncomingMessage,
26927
27115
  reportIcon = _ref.reportIcon,
26928
27116
  reactionIconOrder = _ref.reactionIconOrder,
@@ -26943,6 +27131,7 @@ function MessageActions(_ref) {
26943
27131
  forwardIconTooltipText = _ref.forwardIconTooltipText,
26944
27132
  deleteIconTooltipText = _ref.deleteIconTooltipText,
26945
27133
  selectIconTooltipText = _ref.selectIconTooltipText,
27134
+ infoIconTooltipText = _ref.infoIconTooltipText,
26946
27135
  reportIconTooltipText = _ref.reportIconTooltipText,
26947
27136
  myRole = _ref.myRole,
26948
27137
  isIncoming = _ref.isIncoming,
@@ -27071,8 +27260,20 @@ function MessageActions(_ref) {
27071
27260
  disabledColor: textSecondary,
27072
27261
  bgColor: tooltipBackground,
27073
27262
  direction: 'top'
27074
- }, 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, {
27075
- order: deleteIconOrder || 7,
27263
+ }, selectIconTooltipText || 'Select', /*#__PURE__*/React__default.createElement(SvgArrowDown, null)), selectIcon || /*#__PURE__*/React__default.createElement(SvgCheckCircle, null))), showInfoMessage && !isIncoming && (/*#__PURE__*/React__default.createElement(Action, {
27264
+ order: infoIconOrder || 7,
27265
+ iconColor: messageActionIconsColor || iconInactive,
27266
+ hoverBackgroundColor: backgroundHovered,
27267
+ hoverIconColor: accentColor,
27268
+ onClick: function onClick() {
27269
+ return handleOpenInfoMessage();
27270
+ }
27271
+ }, /*#__PURE__*/React__default.createElement(ItemNote, {
27272
+ disabledColor: textSecondary,
27273
+ bgColor: tooltipBackground,
27274
+ direction: 'top'
27275
+ }, infoIconTooltipText || 'Info', /*#__PURE__*/React__default.createElement(SvgArrowDown, null)), infoIcon || /*#__PURE__*/React__default.createElement(SvgInfo, null))), showDeleteMessage && (channel.type === DEFAULT_CHANNEL_TYPE.BROADCAST || channel.type === DEFAULT_CHANNEL_TYPE.PUBLIC ? myRole === 'owner' || myRole === 'admin' : true) && (/*#__PURE__*/React__default.createElement(Action, {
27276
+ order: deleteIconOrder || 8,
27076
27277
  iconColor: messageActionIconsColor || warningColor,
27077
27278
  hoverBackgroundColor: backgroundHovered,
27078
27279
  hoverIconColor: accentColor,
@@ -27084,7 +27285,7 @@ function MessageActions(_ref) {
27084
27285
  bgColor: tooltipBackground,
27085
27286
  direction: 'top'
27086
27287
  }, deleteIconTooltipText || 'Delete Message', /*#__PURE__*/React__default.createElement(SvgArrowDown, null)), deleteIcon || /*#__PURE__*/React__default.createElement(SvgDeleteIcon, null))), showReportMessage && messageStatus !== MESSAGE_DELIVERY_STATUS.PENDING && (/*#__PURE__*/React__default.createElement(Action, {
27087
- order: reportIconOrder || 8,
27288
+ order: reportIconOrder || 9,
27088
27289
  iconColor: messageActionIconsColor || iconInactive,
27089
27290
  hoverBackgroundColor: backgroundHovered,
27090
27291
  hoverIconColor: accentColor,
@@ -29346,7 +29547,10 @@ WaveSurfer.dom = dom;
29346
29547
  var _templateObject$t, _templateObject2$p, _templateObject3$j, _templateObject4$g, _templateObject5$e, _templateObject6$c;
29347
29548
  var AudioPlayer = function AudioPlayer(_ref) {
29348
29549
  var url = _ref.url,
29349
- file = _ref.file;
29550
+ file = _ref.file,
29551
+ messagePlayed = _ref.messagePlayed,
29552
+ channelId = _ref.channelId,
29553
+ incoming = _ref.incoming;
29350
29554
  var recordingInitialState = {
29351
29555
  recordingSeconds: 0,
29352
29556
  recordingMilliseconds: 0,
@@ -29412,6 +29616,9 @@ var AudioPlayer = function AudioPlayer(_ref) {
29412
29616
  }
29413
29617
  }
29414
29618
  wavesurfer.current.playPause();
29619
+ if (!messagePlayed && incoming) {
29620
+ dispatch(markVoiceMessageAsPlayedAC(channelId, [file.messageId]));
29621
+ }
29415
29622
  }
29416
29623
  };
29417
29624
  React.useEffect(function () {
@@ -29589,7 +29796,10 @@ var Attachment = function Attachment(_ref) {
29589
29796
  imageAttachmentMaxHeight = _ref.imageAttachmentMaxHeight,
29590
29797
  videoAttachmentMaxWidth = _ref.videoAttachmentMaxWidth,
29591
29798
  videoAttachmentMaxHeight = _ref.videoAttachmentMaxHeight,
29592
- messageType = _ref.messageType;
29799
+ messageType = _ref.messageType,
29800
+ messagePlayed = _ref.messagePlayed,
29801
+ channelId = _ref.channelId,
29802
+ incoming = _ref.incoming;
29593
29803
  var _useColor = useColors(),
29594
29804
  accentColor = _useColor[THEME_COLORS.ACCENT],
29595
29805
  textPrimary = _useColor[THEME_COLORS.TEXT_PRIMARY],
@@ -30108,7 +30318,10 @@ var Attachment = function Attachment(_ref) {
30108
30318
  }
30109
30319
  }))))) : attachment.type === attachmentTypes.voice ? (/*#__PURE__*/React__default.createElement(AudioPlayer, {
30110
30320
  url: attachment.attachmentUrl || attachmentUrl,
30111
- file: attachment
30321
+ file: attachment,
30322
+ messagePlayed: messagePlayed,
30323
+ channelId: channelId,
30324
+ incoming: incoming
30112
30325
  })) : attachment.type === attachmentTypes.link ? null : (
30113
30326
  /*#__PURE__*/
30114
30327
  React__default.createElement(AttachmentFile$1, {
@@ -31703,6 +31916,7 @@ var MessageBody = function MessageBody(_ref) {
31703
31916
  deleteMessage = _ref$deleteMessage === void 0 ? true : _ref$deleteMessage,
31704
31917
  _ref$selectMessage = _ref.selectMessage,
31705
31918
  selectMessage = _ref$selectMessage === void 0 ? true : _ref$selectMessage,
31919
+ showInfoMessage = _ref.showInfoMessage,
31706
31920
  allowEditDeleteIncomingMessage = _ref.allowEditDeleteIncomingMessage,
31707
31921
  _ref$forwardMessage = _ref.forwardMessage,
31708
31922
  forwardMessage = _ref$forwardMessage === void 0 ? true : _ref$forwardMessage,
@@ -31715,6 +31929,7 @@ var MessageBody = function MessageBody(_ref) {
31715
31929
  replyInThreadIcon = _ref.replyInThreadIcon,
31716
31930
  forwardIcon = _ref.forwardIcon,
31717
31931
  deleteIcon = _ref.deleteIcon,
31932
+ infoIcon = _ref.infoIcon,
31718
31933
  selectIcon = _ref.selectIcon,
31719
31934
  starIcon = _ref.starIcon,
31720
31935
  staredIcon = _ref.staredIcon,
@@ -31726,6 +31941,7 @@ var MessageBody = function MessageBody(_ref) {
31726
31941
  replyInThreadIconOrder = _ref.replyInThreadIconOrder,
31727
31942
  forwardIconOrder = _ref.forwardIconOrder,
31728
31943
  deleteIconOrder = _ref.deleteIconOrder,
31944
+ infoIconOrder = _ref.infoIconOrder,
31729
31945
  selectIconOrder = _ref.selectIconOrder,
31730
31946
  starIconOrder = _ref.starIconOrder,
31731
31947
  reportIconOrder = _ref.reportIconOrder,
@@ -31739,6 +31955,7 @@ var MessageBody = function MessageBody(_ref) {
31739
31955
  selectIconTooltipText = _ref.selectIconTooltipText,
31740
31956
  starIconTooltipText = _ref.starIconTooltipText,
31741
31957
  reportIconTooltipText = _ref.reportIconTooltipText,
31958
+ infoIconTooltipText = _ref.infoIconTooltipText,
31742
31959
  messageActionIconsColor = _ref.messageActionIconsColor,
31743
31960
  messageStatusSize = _ref.messageStatusSize,
31744
31961
  messageStatusColor = _ref.messageStatusColor,
@@ -31767,6 +31984,7 @@ var MessageBody = function MessageBody(_ref) {
31767
31984
  messageTextFontSize = _ref.messageTextFontSize,
31768
31985
  messageTextLineHeight = _ref.messageTextLineHeight,
31769
31986
  handleToggleForwardMessagePopup = _ref.handleToggleForwardMessagePopup,
31987
+ handleToggleInfoMessagePopupOpen = _ref.handleToggleInfoMessagePopupOpen,
31770
31988
  messageActionsShow = _ref.messageActionsShow,
31771
31989
  closeMessageActions = _ref.closeMessageActions,
31772
31990
  handleDeletePendingMessage = _ref.handleDeletePendingMessage,
@@ -31915,6 +32133,7 @@ var MessageBody = function MessageBody(_ref) {
31915
32133
  handleCopyMessage: handleCopyMessage,
31916
32134
  handleDeletePendingMessage: handleDeletePendingMessage,
31917
32135
  handleOpenForwardMessage: handleToggleForwardMessagePopup,
32136
+ handleOpenInfoMessage: handleToggleInfoMessagePopupOpen,
31918
32137
  handleResendMessage: handleResendMessage,
31919
32138
  handleReplyMessage: _handleReplyMessage,
31920
32139
  handleReportMessage: handleToggleReportPopupOpen,
@@ -31966,7 +32185,11 @@ var MessageBody = function MessageBody(_ref) {
31966
32185
  reportIconTooltipText: reportIconTooltipText,
31967
32186
  messageActionIconsColor: messageActionIconsColor,
31968
32187
  myRole: channel.userRole,
31969
- isIncoming: message.incoming
32188
+ isIncoming: message.incoming,
32189
+ infoIconTooltipText: infoIconTooltipText,
32190
+ infoIcon: infoIcon,
32191
+ showInfoMessage: showInfoMessage,
32192
+ infoIconOrder: infoIconOrder
31970
32193
  }))), message.parentMessage && message.parentMessage.id && !isThreadMessage && (/*#__PURE__*/React__default.createElement(RepliedMessage$1, {
31971
32194
  message: message,
31972
32195
  theme: theme,
@@ -32086,7 +32309,10 @@ var MessageBody = function MessageBody(_ref) {
32086
32309
  imageAttachmentMaxHeight: imageAttachmentMaxHeight,
32087
32310
  videoAttachmentMaxWidth: videoAttachmentMaxWidth,
32088
32311
  videoAttachmentMaxHeight: videoAttachmentMaxHeight,
32089
- messageType: message.type
32312
+ messageType: message.type,
32313
+ messagePlayed: message.deliveryStatus === MESSAGE_DELIVERY_STATUS.PLAYED,
32314
+ channelId: message.channelId,
32315
+ incoming: message.incoming
32090
32316
  });
32091
32317
  }), emojisPopupOpen && emojisPopupPosition && (/*#__PURE__*/React__default.createElement(EmojiContainer, {
32092
32318
  id: message.id + "_emoji_popup_container",
@@ -32166,7 +32392,426 @@ var FrequentlyEmojisContainer = styled__default.div(_templateObject5$i || (_temp
32166
32392
  return props.rtlDirection && '0';
32167
32393
  });
32168
32394
 
32169
- 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;
32395
+ var _templateObject$C, _templateObject2$x, _templateObject3$r, _templateObject4$n, _templateObject5$j, _templateObject6$g, _templateObject7$e, _templateObject8$d, _templateObject9$b, _templateObject0$a, _templateObject1$7;
32396
+ var defaultFormatDate = function defaultFormatDate(date) {
32397
+ var m = moment(date);
32398
+ if (m.isSame(moment(), 'day')) {
32399
+ return "Today, " + m.format('HH:mm');
32400
+ }
32401
+ if (m.isSame(moment().subtract(1, 'day'), 'day')) {
32402
+ return "Yesterday, " + m.format('HH:mm');
32403
+ }
32404
+ return m.format('DD.MM.YYYY');
32405
+ };
32406
+ var MessageInfo = function MessageInfo(_ref) {
32407
+ var _tabsOrder$;
32408
+ var message = _ref.message,
32409
+ togglePopup = _ref.togglePopup,
32410
+ labels = _ref.labels,
32411
+ _ref$tabsOrder = _ref.tabsOrder,
32412
+ tabsOrder = _ref$tabsOrder === void 0 ? [].concat(message.attachments && message.attachments.length > 0 && message.attachments[0].type === 'voice' ? [{
32413
+ key: 'played',
32414
+ label: 'Played by',
32415
+ data: []
32416
+ }] : [], [{
32417
+ key: 'received',
32418
+ label: 'Delivered to',
32419
+ data: []
32420
+ }, {
32421
+ key: 'displayed',
32422
+ label: 'Seen by',
32423
+ data: []
32424
+ }]) : _ref$tabsOrder,
32425
+ _ref$showCounts = _ref.showCounts,
32426
+ showCounts = _ref$showCounts === void 0 ? false : _ref$showCounts,
32427
+ _ref$avatarSize = _ref.avatarSize,
32428
+ avatarSize = _ref$avatarSize === void 0 ? 32 : _ref$avatarSize,
32429
+ _ref$maxWidth = _ref.maxWidth,
32430
+ maxWidth = _ref$maxWidth === void 0 ? '340px' : _ref$maxWidth,
32431
+ _ref$minWidth = _ref.minWidth,
32432
+ minWidth = _ref$minWidth === void 0 ? '340px' : _ref$minWidth,
32433
+ _ref$height = _ref.height,
32434
+ height = _ref$height === void 0 ? '300px' : _ref$height,
32435
+ renderItem = _ref.renderItem,
32436
+ _ref$formatDate = _ref.formatDate,
32437
+ formatDate = _ref$formatDate === void 0 ? defaultFormatDate : _ref$formatDate,
32438
+ _ref$tabsStyles = _ref.tabsStyles,
32439
+ tabsStyles = _ref$tabsStyles === void 0 ? {} : _ref$tabsStyles,
32440
+ _ref$listItemStyles = _ref.listItemStyles,
32441
+ listItemStyles = _ref$listItemStyles === void 0 ? {} : _ref$listItemStyles,
32442
+ handleOpenUserProfile = _ref.handleOpenUserProfile,
32443
+ contacts = _ref.contacts;
32444
+ var _useColor = useColors(),
32445
+ accentColor = _useColor[THEME_COLORS.ACCENT],
32446
+ textPrimary = _useColor[THEME_COLORS.TEXT_PRIMARY],
32447
+ textSecondary = _useColor[THEME_COLORS.TEXT_SECONDARY],
32448
+ backgroundHovered = _useColor[THEME_COLORS.BACKGROUND_HOVERED],
32449
+ backgroundSections = _useColor[THEME_COLORS.BACKGROUND_SECTIONS],
32450
+ textOnPrimary = _useColor[THEME_COLORS.TEXT_ON_PRIMARY],
32451
+ border = _useColor[THEME_COLORS.BORDER];
32452
+ var dispatch = useDispatch();
32453
+ var messageMarkers = useSelector(messageMarkersSelector);
32454
+ var messagesMarkersLoadingState = useSelector(messagesMarkersLoadingStateSelector);
32455
+ var markers = React.useMemo(function () {
32456
+ return messageMarkers[message.channelId] && messageMarkers[message.channelId][message.id];
32457
+ }, [messageMarkers, message.channelId, message.id]);
32458
+ var _useState = React.useState(((_tabsOrder$ = tabsOrder[0]) === null || _tabsOrder$ === void 0 ? void 0 : _tabsOrder$.key) || 'played'),
32459
+ activeTab = _useState[0],
32460
+ setActiveTab = _useState[1];
32461
+ var _useState2 = React.useState(false),
32462
+ open = _useState2[0],
32463
+ setOpen = _useState2[1];
32464
+ var rootRef = React.useRef(null);
32465
+ var _useState3 = React.useState(false),
32466
+ flipAbove = _useState3[0],
32467
+ setFlipAbove = _useState3[1];
32468
+ var panelRef = React.useRef(null);
32469
+ var contentRef = React.useRef(null);
32470
+ var tabsRef = React.useRef(null);
32471
+ var listRef = React.useRef(null);
32472
+ var _useState4 = React.useState(0),
32473
+ panelHeightPx = _useState4[0],
32474
+ setPanelHeightPx = _useState4[1];
32475
+ var _useState5 = React.useState(false),
32476
+ isTransitioning = _useState5[0],
32477
+ setIsTransitioning = _useState5[1];
32478
+ var _useState6 = React.useState(false),
32479
+ ready = _useState6[0],
32480
+ setReady = _useState6[1];
32481
+ var _useState7 = React.useState(false),
32482
+ flipLocked = _useState7[0],
32483
+ setFlipLocked = _useState7[1];
32484
+ var getFromContacts = React.useMemo(function () {
32485
+ return getShowOnlyContactUsers();
32486
+ }, []);
32487
+ var activeMarkers = React.useMemo(function () {
32488
+ var list = markers && markers[activeTab] || [];
32489
+ return Array.isArray(list) ? [].concat(list).sort(sortByDateDesc) : [];
32490
+ }, [markers, activeTab]);
32491
+ var rowHeightPx = React.useMemo(function () {
32492
+ return (avatarSize || 32) + 24;
32493
+ }, [avatarSize]);
32494
+ var listMaxHeightPx = React.useMemo(function () {
32495
+ return rowHeightPx * 5 - 16;
32496
+ }, [rowHeightPx]);
32497
+ var tabItems = tabsOrder.map(function (tab) {
32498
+ switch (tab.key) {
32499
+ case 'played':
32500
+ return {
32501
+ key: tab.key,
32502
+ label: (labels === null || labels === void 0 ? void 0 : labels.playedBy) || 'Played by',
32503
+ data: activeMarkers
32504
+ };
32505
+ case 'received':
32506
+ return {
32507
+ key: tab.key,
32508
+ label: (labels === null || labels === void 0 ? void 0 : labels.receivedBy) || 'Delivered to',
32509
+ data: activeMarkers
32510
+ };
32511
+ case 'displayed':
32512
+ default:
32513
+ return {
32514
+ key: 'displayed',
32515
+ label: (labels === null || labels === void 0 ? void 0 : labels.displayedBy) || 'Seen by',
32516
+ data: activeMarkers
32517
+ };
32518
+ }
32519
+ });
32520
+ var renderRow = function renderRow(marker) {
32521
+ var _marker$user;
32522
+ var contact = contacts[((_marker$user = marker.user) === null || _marker$user === void 0 ? void 0 : _marker$user.id) || ''];
32523
+ var displayName = makeUsername(contact, marker.user, getFromContacts);
32524
+ var avatarUrl = marker.user ? marker.user.avatarUrl : '';
32525
+ var dateVal = marker.createdAt || marker.createdAt;
32526
+ var dateFormat = dateVal ? formatDate(new Date(dateVal)) : '';
32527
+ var node = /*#__PURE__*/React__default.createElement(Row$1, {
32528
+ backgroundHover: listItemStyles.hoverBackground || backgroundHovered,
32529
+ onClick: function onClick() {
32530
+ return handleOpenUserProfile === null || handleOpenUserProfile === void 0 ? void 0 : handleOpenUserProfile(marker.user);
32531
+ }
32532
+ }, /*#__PURE__*/React__default.createElement(Avatar, {
32533
+ name: displayName,
32534
+ image: avatarUrl,
32535
+ size: avatarSize,
32536
+ textSize: 12,
32537
+ setDefaultAvatar: true
32538
+ }), /*#__PURE__*/React__default.createElement(RowInfo, null, /*#__PURE__*/React__default.createElement(RowTitle, {
32539
+ color: listItemStyles.nameColor || textPrimary
32540
+ }, displayName), /*#__PURE__*/React__default.createElement(RowDate, {
32541
+ color: listItemStyles.dateColor || textSecondary
32542
+ }, dateFormat)));
32543
+ return renderItem ? renderItem(marker, node) : node;
32544
+ };
32545
+ React.useLayoutEffect(function () {
32546
+ var _rootRef$current;
32547
+ var container = document.getElementById('scrollableDiv');
32548
+ var anchorEl = (_rootRef$current = rootRef.current) === null || _rootRef$current === void 0 ? void 0 : _rootRef$current.parentElement;
32549
+ if (container && anchorEl) {
32550
+ var containerRect = container.getBoundingClientRect();
32551
+ var anchorRect = anchorEl.getBoundingClientRect();
32552
+ var contentEl = contentRef.current;
32553
+ var tabsEl = tabsRef.current;
32554
+ var listEl = listRef.current;
32555
+ var cs = contentEl ? getComputedStyle(contentEl) : {};
32556
+ var padTop = parseFloat((cs === null || cs === void 0 ? void 0 : cs.paddingTop) || '0') || 0;
32557
+ var padBottom = parseFloat((cs === null || cs === void 0 ? void 0 : cs.paddingBottom) || '0') || 0;
32558
+ var contentPaddingY = padTop + padBottom;
32559
+ var tabsHeight = tabsEl ? tabsEl.getBoundingClientRect().height : 0;
32560
+ var tabsMarginBottom = 8;
32561
+ var listMarginTop = 8;
32562
+ var desiredListHeight = Math.min(listEl ? listEl.scrollHeight : 0, listMaxHeightPx);
32563
+ var desiredHeight = contentPaddingY + tabsHeight + tabsMarginBottom + listMarginTop + desiredListHeight;
32564
+ var maxPx = parseInt(String(height || '300'), 10) || 300;
32565
+ var measuredTarget = Math.min(desiredHeight || 0, maxPx);
32566
+ var flipTarget = messagesMarkersLoadingState === LOADING_STATE.LOADING ? maxPx : measuredTarget;
32567
+ setPanelHeightPx(measuredTarget);
32568
+ var availableBelow = containerRect.bottom - anchorRect.bottom - 8;
32569
+ var availableAbove = anchorRect.top - containerRect.top - 8;
32570
+ var nextFlip = Boolean(flipTarget > availableBelow && flipTarget <= availableAbove);
32571
+ setFlipAbove(nextFlip);
32572
+ }
32573
+ setIsTransitioning(true);
32574
+ setOpen(true);
32575
+ setReady(true);
32576
+ setFlipLocked(true);
32577
+ }, []);
32578
+ React.useEffect(function () {
32579
+ var onDown = function onDown(e) {
32580
+ if (rootRef.current && !rootRef.current.contains(e.target)) {
32581
+ togglePopup();
32582
+ }
32583
+ };
32584
+ document.addEventListener('mousedown', onDown);
32585
+ return function () {
32586
+ document.removeEventListener('mousedown', onDown);
32587
+ };
32588
+ }, []);
32589
+ React.useEffect(function () {
32590
+ var container = document.getElementById('scrollableDiv');
32591
+ if (!container) return;
32592
+ var recalc = function recalc() {
32593
+ if (!rootRef.current || !ready) return;
32594
+ if (messagesMarkersLoadingState === LOADING_STATE.LOADING) return;
32595
+ var containerRect = container.getBoundingClientRect();
32596
+ var anchorEl = rootRef.current.parentElement;
32597
+ if (!anchorEl) return;
32598
+ var anchorRect = anchorEl.getBoundingClientRect();
32599
+ var dropdownHeight = panelHeightPx || 0;
32600
+ if (!dropdownHeight || dropdownHeight < 8) {
32601
+ var parsed = parseInt(String(height || '300'), 10);
32602
+ dropdownHeight = isNaN(parsed) ? 300 : parsed;
32603
+ }
32604
+ var availableBelow = containerRect.bottom - anchorRect.bottom - 8;
32605
+ var availableAbove = anchorRect.top - containerRect.top - 8;
32606
+ var overflowBelow = dropdownHeight > availableBelow;
32607
+ var overflowAbove = dropdownHeight > availableAbove;
32608
+ if (!isTransitioning && !flipLocked) {
32609
+ setFlipAbove(function (prev) {
32610
+ if (prev) {
32611
+ if (overflowAbove && !overflowBelow) return false;
32612
+ return true;
32613
+ }
32614
+ if (overflowBelow && !overflowAbove) return true;
32615
+ return false;
32616
+ });
32617
+ }
32618
+ };
32619
+ if (open) {
32620
+ recalc();
32621
+ var raf1 = requestAnimationFrame(recalc);
32622
+ var raf2 = requestAnimationFrame(function () {
32623
+ return requestAnimationFrame(recalc);
32624
+ });
32625
+ var t1 = setTimeout(recalc, 50);
32626
+ var t2 = setTimeout(recalc, 200);
32627
+ panelRef.current && panelRef.current.addEventListener('transitionend', recalc);
32628
+ container.addEventListener('scroll', recalc);
32629
+ window.addEventListener('resize', recalc);
32630
+ return function () {
32631
+ cancelAnimationFrame(raf1);
32632
+ cancelAnimationFrame(raf2);
32633
+ clearTimeout(t1);
32634
+ clearTimeout(t2);
32635
+ panelRef.current && panelRef.current.removeEventListener('transitionend', recalc);
32636
+ container.removeEventListener('scroll', recalc);
32637
+ window.removeEventListener('resize', recalc);
32638
+ };
32639
+ } else {
32640
+ container.addEventListener('scroll', recalc);
32641
+ window.addEventListener('resize', recalc);
32642
+ return function () {
32643
+ container.removeEventListener('scroll', recalc);
32644
+ window.removeEventListener('resize', recalc);
32645
+ };
32646
+ }
32647
+ }, [open, ready, message.id, panelHeightPx, isTransitioning, flipLocked, height]);
32648
+ React.useLayoutEffect(function () {
32649
+ var _rootRef$current2;
32650
+ var container = document.getElementById('scrollableDiv');
32651
+ var anchorEl = (_rootRef$current2 = rootRef.current) === null || _rootRef$current2 === void 0 ? void 0 : _rootRef$current2.parentElement;
32652
+ if (!container || !anchorEl || !ready) return;
32653
+ var containerRect = container.getBoundingClientRect();
32654
+ var anchorRect = anchorEl.getBoundingClientRect();
32655
+ var contentEl = contentRef.current;
32656
+ var tabsEl = tabsRef.current;
32657
+ var listEl = listRef.current;
32658
+ var cs = contentEl ? getComputedStyle(contentEl) : {};
32659
+ var padTop = parseFloat((cs === null || cs === void 0 ? void 0 : cs.paddingTop) || '0') || 0;
32660
+ var padBottom = parseFloat((cs === null || cs === void 0 ? void 0 : cs.paddingBottom) || '0') || 0;
32661
+ var contentPaddingY = padTop + padBottom;
32662
+ var tabsHeight = tabsEl ? tabsEl.getBoundingClientRect().height : 0;
32663
+ var tabsMarginBottom = 8;
32664
+ var listMarginTop = 8;
32665
+ var desiredListHeight = Math.min(listEl ? listEl.scrollHeight : 0, listMaxHeightPx);
32666
+ var desiredHeight = contentPaddingY + tabsHeight + tabsMarginBottom + listMarginTop + desiredListHeight;
32667
+ var maxPx = parseInt(String(height || '300'), 10);
32668
+ var measuredTarget = Math.min(desiredHeight || 0, isNaN(maxPx) ? 300 : Math.min(maxPx, desiredHeight));
32669
+ var nextHeight = Math.max(panelHeightPx || 0, measuredTarget);
32670
+ var availableBelow = containerRect.bottom - anchorRect.bottom - 8;
32671
+ var availableAbove = anchorRect.top - containerRect.top - 8;
32672
+ setFlipLocked(true);
32673
+ if (messagesMarkersLoadingState !== LOADING_STATE.LOADING) {
32674
+ var overflowBelow = nextHeight > availableBelow;
32675
+ var overflowAbove = nextHeight > availableAbove;
32676
+ setFlipAbove(function (prev) {
32677
+ if (prev) {
32678
+ if (overflowAbove && !overflowBelow) return false;
32679
+ return true;
32680
+ }
32681
+ if (overflowBelow && !overflowAbove) return true;
32682
+ return false;
32683
+ });
32684
+ }
32685
+ if (panelHeightPx !== nextHeight) {
32686
+ setIsTransitioning(true);
32687
+ setPanelHeightPx(nextHeight);
32688
+ }
32689
+ }, [ready, panelHeightPx, activeMarkers.length, messagesMarkersLoadingState, height]);
32690
+ React.useEffect(function () {
32691
+ if (messagesMarkersLoadingState === LOADING_STATE.LOADING) {
32692
+ setFlipLocked(true);
32693
+ }
32694
+ }, [messagesMarkersLoadingState]);
32695
+ React.useEffect(function () {
32696
+ var el = panelRef.current;
32697
+ if (!el) return;
32698
+ var onEnd = function onEnd(e) {
32699
+ if (e.propertyName === 'height') {
32700
+ setIsTransitioning(false);
32701
+ setTimeout(function () {
32702
+ setFlipLocked(false);
32703
+ }, 50);
32704
+ }
32705
+ };
32706
+ el.addEventListener('transitionend', onEnd);
32707
+ return function () {
32708
+ el.removeEventListener('transitionend', onEnd);
32709
+ };
32710
+ }, []);
32711
+ React.useEffect(function () {
32712
+ if (activeTab && message.id && message.channelId) {
32713
+ dispatch(getMessageMarkersAC(message.id, message.channelId, activeTab));
32714
+ }
32715
+ }, [activeTab, message.id, message.channelId]);
32716
+ return /*#__PURE__*/React__default.createElement(DropdownRoot, {
32717
+ ref: rootRef,
32718
+ rtl: message.incoming,
32719
+ backgroundColor: backgroundSections,
32720
+ flip: flipAbove,
32721
+ ready: ready
32722
+ }, /*#__PURE__*/React__default.createElement(Panel, {
32723
+ ref: panelRef,
32724
+ bg: backgroundSections,
32725
+ open: open,
32726
+ heightPx: panelHeightPx,
32727
+ maxHeight: height,
32728
+ maxWidth: maxWidth,
32729
+ minWidth: minWidth
32730
+ }, /*#__PURE__*/React__default.createElement(Content, {
32731
+ ref: contentRef
32732
+ }, /*#__PURE__*/React__default.createElement(Tabs, {
32733
+ ref: tabsRef
32734
+ }, tabItems.map(function (tab) {
32735
+ return /*#__PURE__*/React__default.createElement(Tab, {
32736
+ key: tab.key,
32737
+ active: activeTab === tab.key,
32738
+ activeColor: tabsStyles.activeColor || textOnPrimary,
32739
+ inactiveColor: tabsStyles.inactiveColor || textSecondary,
32740
+ onClick: function onClick() {
32741
+ return setActiveTab(tab.key);
32742
+ },
32743
+ textOnPrimary: textOnPrimary,
32744
+ textSecondary: textSecondary,
32745
+ background: activeTab === tab.key ? accentColor : 'transparent',
32746
+ borderColor: border
32747
+ }, tab.label, showCounts ? " (" + tab.data.length + ")" : '');
32748
+ })), /*#__PURE__*/React__default.createElement(List$1, {
32749
+ ref: listRef,
32750
+ maxHeight: listMaxHeightPx
32751
+ }, activeMarkers.map(function (marker) {
32752
+ var _marker$user2;
32753
+ return /*#__PURE__*/React__default.createElement(React__default.Fragment, {
32754
+ key: (((_marker$user2 = marker.user) === null || _marker$user2 === void 0 ? void 0 : _marker$user2.id) || 'deleted') + "-" + (marker.createdAt || '')
32755
+ }, renderRow(marker));
32756
+ }), !activeMarkers.length && messagesMarkersLoadingState !== LOADING_STATE.LOADING && (/*#__PURE__*/React__default.createElement(Empty, {
32757
+ color: textSecondary
32758
+ }, "No results"))))));
32759
+ };
32760
+ function sortByDateDesc(a, b) {
32761
+ var aDate = a.createdAt || a.createdAt;
32762
+ var bDate = b.createdAt || b.createdAt;
32763
+ var aTime = aDate ? new Date(aDate).getTime() : 0;
32764
+ var bTime = bDate ? new Date(bDate).getTime() : 0;
32765
+ return bTime - aTime;
32766
+ }
32767
+ var Tabs = styled__default.div(_templateObject$C || (_templateObject$C = _taggedTemplateLiteralLoose(["\n display: flex;\n gap: 8px;\n justify-content: start;\n margin-bottom: 8px;\n"])));
32768
+ var Tab = styled__default.button(_templateObject2$x || (_templateObject2$x = _taggedTemplateLiteralLoose(["\n border: none;\n background: transparent;\n cursor: pointer;\n padding: 6px 11px;\n border-radius: 16px;\n color: ", ";\n background: ", ";\n border: 1px solid ", ";\n &:hover {\n opacity: 0.9;\n }\n font-weight: 500;\n font-size: 15px;\n line-height: 20px;\n letter-spacing: 0px;\n text-align: center;\n"])), function (p) {
32769
+ return p.active ? p.textOnPrimary : p.textSecondary;
32770
+ }, function (p) {
32771
+ return p.background;
32772
+ }, function (p) {
32773
+ return p.active ? p.background : p.borderColor;
32774
+ });
32775
+ var List$1 = styled__default.div(_templateObject3$r || (_templateObject3$r = _taggedTemplateLiteralLoose(["\n margin-top: 8px;\n flex: 1 1 auto;\n min-height: 0;\n overflow-y: auto;\n max-height: ", ";\n"])), function (p) {
32776
+ return p.maxHeight ? p.maxHeight + "px" : 'unset';
32777
+ });
32778
+ var Row$1 = styled__default.div(_templateObject4$n || (_templateObject4$n = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n gap: 12px;\n padding: 6px;\n border-radius: 10px;\n cursor: pointer;\n &:hover {\n background-color: ", ";\n }\n"])), function (p) {
32779
+ return p.backgroundHover;
32780
+ });
32781
+ var RowInfo = styled__default.div(_templateObject5$j || (_templateObject5$j = _taggedTemplateLiteralLoose(["\n display: flex;\n margin-right: auto;\n min-width: 0;\n align-items: center;\n justify-content: space-between;\n width: 100%;\n"])));
32782
+ var RowTitle = styled__default.div(_templateObject6$g || (_templateObject6$g = _taggedTemplateLiteralLoose(["\n color: ", ";\n font-size: 16px;\n font-weight: 500;\n line-height: 22px;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n"])), function (p) {
32783
+ return p.color;
32784
+ });
32785
+ var RowDate = styled__default.div(_templateObject7$e || (_templateObject7$e = _taggedTemplateLiteralLoose(["\n color: ", ";\n min-width: max-content;\n font-weight: 400;\n font-size: 13px;\n line-height: 16px;\n"])), function (p) {
32786
+ return p.color;
32787
+ });
32788
+ var Empty = styled__default.div(_templateObject8$d || (_templateObject8$d = _taggedTemplateLiteralLoose(["\n color: ", ";\n text-align: center;\n padding: 16px 0;\n font-size: 14px;\n height: calc(100% - 32px);\n display: flex;\n align-items: center;\n justify-content: center;\n overflow: hidden;\n"])), function (p) {
32789
+ return p.color;
32790
+ });
32791
+ var DropdownRoot = styled__default.div(_templateObject9$b || (_templateObject9$b = _taggedTemplateLiteralLoose(["\n position: absolute;\n top: ", ";\n bottom: ", ";\n ", "\n z-index: 15;\n background: ", ";\n box-shadow: 0px 0px 24px 0px #11153929;\n border-radius: 16px;\n direction: initial;\n visibility: ", ";\n"])), function (p) {
32792
+ return p.flip ? 'auto' : 'calc(100% + 8px)';
32793
+ }, function (p) {
32794
+ return p.flip ? 'calc(100% + 8px)' : 'auto';
32795
+ }, function (p) {
32796
+ return p.rtl ? 'left: 4%;' : 'right: 4%;';
32797
+ }, function (_ref2) {
32798
+ var backgroundColor = _ref2.backgroundColor;
32799
+ return backgroundColor;
32800
+ }, function (p) {
32801
+ return p.ready ? 'visible' : 'hidden';
32802
+ });
32803
+ var Panel = styled__default.div(_templateObject0$a || (_templateObject0$a = _taggedTemplateLiteralLoose(["\n background: ", ";\n border-radius: 16px;\n overflow: hidden;\n transition: height 0.25s ease;\n height: ", ";\n width: ", ";\n min-width: ", ";\n display: flex;\n flex-direction: column;\n"])), function (p) {
32804
+ return p.bg;
32805
+ }, function (p) {
32806
+ return p.open ? Math.min(p.heightPx || 0, parseInt(String(p.maxHeight || '300'), 10) || 300) + "px" : '0';
32807
+ }, function (p) {
32808
+ return p.maxWidth || '340px';
32809
+ }, function (p) {
32810
+ return p.minWidth || '340px';
32811
+ });
32812
+ var Content = styled__default.div(_templateObject1$7 || (_templateObject1$7 = _taggedTemplateLiteralLoose(["\n padding: 16px 12px;\n height: 100%;\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n"])));
32813
+
32814
+ var _templateObject$D, _templateObject2$y, _templateObject3$s, _templateObject4$o, _templateObject5$k, _templateObject6$h, _templateObject7$f, _templateObject8$e, _templateObject9$c, _templateObject0$b, _templateObject1$8, _templateObject10$4, _templateObject11$4, _templateObject12$3;
32170
32815
  var Message$1 = function Message(_ref) {
32171
32816
  var message = _ref.message,
32172
32817
  channel = _ref.channel,
@@ -32226,6 +32871,8 @@ var Message$1 = function Message(_ref) {
32226
32871
  deleteMessage = _ref$deleteMessage === void 0 ? true : _ref$deleteMessage,
32227
32872
  _ref$selectMessage = _ref.selectMessage,
32228
32873
  selectMessage = _ref$selectMessage === void 0 ? true : _ref$selectMessage,
32874
+ _ref$showInfoMessage = _ref.showInfoMessage,
32875
+ showInfoMessage = _ref$showInfoMessage === void 0 ? true : _ref$showInfoMessage,
32229
32876
  allowEditDeleteIncomingMessage = _ref.allowEditDeleteIncomingMessage,
32230
32877
  _ref$forwardMessage = _ref.forwardMessage,
32231
32878
  forwardMessage = _ref$forwardMessage === void 0 ? true : _ref$forwardMessage,
@@ -32254,6 +32901,7 @@ var Message$1 = function Message(_ref) {
32254
32901
  selectIconOrder = _ref.selectIconOrder,
32255
32902
  starIconOrder = _ref.starIconOrder,
32256
32903
  reportIconOrder = _ref.reportIconOrder,
32904
+ infoIconOrder = _ref.infoIconOrder,
32257
32905
  reactionIconTooltipText = _ref.reactionIconTooltipText,
32258
32906
  editIconTooltipText = _ref.editIconTooltipText,
32259
32907
  copyIconTooltipText = _ref.copyIconTooltipText,
@@ -32264,6 +32912,7 @@ var Message$1 = function Message(_ref) {
32264
32912
  selectIconTooltipText = _ref.selectIconTooltipText,
32265
32913
  starIconTooltipText = _ref.starIconTooltipText,
32266
32914
  reportIconTooltipText = _ref.reportIconTooltipText,
32915
+ infoIconTooltipText = _ref.infoIconTooltipText,
32267
32916
  messageActionIconsColor = _ref.messageActionIconsColor,
32268
32917
  messageStatusSize = _ref.messageStatusSize,
32269
32918
  messageStatusColor = _ref.messageStatusColor,
@@ -32315,7 +32964,9 @@ var Message$1 = function Message(_ref) {
32315
32964
  messageTextFontSize = _ref.messageTextFontSize,
32316
32965
  messageTextLineHeight = _ref.messageTextLineHeight,
32317
32966
  messageTimeColorOnAttachment = _ref.messageTimeColorOnAttachment,
32318
- shouldOpenUserProfileForMention = _ref.shouldOpenUserProfileForMention;
32967
+ shouldOpenUserProfileForMention = _ref.shouldOpenUserProfileForMention,
32968
+ _ref$showInfoMessageP = _ref.showInfoMessageProps,
32969
+ showInfoMessageProps = _ref$showInfoMessageP === void 0 ? {} : _ref$showInfoMessageP;
32319
32970
  var _useColor = useColors(),
32320
32971
  accentColor = _useColor[THEME_COLORS.ACCENT],
32321
32972
  backgroundSections = _useColor[THEME_COLORS.BACKGROUND_SECTIONS],
@@ -32337,29 +32988,32 @@ var Message$1 = function Message(_ref) {
32337
32988
  reportPopupOpen = _useState3[0],
32338
32989
  setReportPopupOpen = _useState3[1];
32339
32990
  var _useState4 = React.useState(false),
32340
- messageActionsShow = _useState4[0],
32341
- setMessageActionsShow = _useState4[1];
32991
+ infoPopupOpen = _useState4[0],
32992
+ setInfoPopupOpen = _useState4[1];
32342
32993
  var _useState5 = React.useState(false),
32343
- emojisPopupOpen = _useState5[0],
32344
- setEmojisPopupOpen = _useState5[1];
32994
+ messageActionsShow = _useState5[0],
32995
+ setMessageActionsShow = _useState5[1];
32345
32996
  var _useState6 = React.useState(false),
32346
- frequentlyEmojisOpen = _useState6[0],
32347
- setFrequentlyEmojisOpen = _useState6[1];
32997
+ emojisPopupOpen = _useState6[0],
32998
+ setEmojisPopupOpen = _useState6[1];
32348
32999
  var _useState7 = React.useState(false),
32349
- reactionsPopupOpen = _useState7[0],
32350
- setReactionsPopupOpen = _useState7[1];
32351
- var _useState8 = React.useState(0),
32352
- reactionsPopupPosition = _useState8[0],
32353
- setReactionsPopupPosition = _useState8[1];
32354
- var _useState9 = React.useState(''),
32355
- emojisPopupPosition = _useState9[0],
32356
- setEmojisPopupPosition = _useState9[1];
32357
- var _useState0 = React.useState({
33000
+ frequentlyEmojisOpen = _useState7[0],
33001
+ setFrequentlyEmojisOpen = _useState7[1];
33002
+ var _useState8 = React.useState(false),
33003
+ reactionsPopupOpen = _useState8[0],
33004
+ setReactionsPopupOpen = _useState8[1];
33005
+ var _useState9 = React.useState(0),
33006
+ reactionsPopupPosition = _useState9[0],
33007
+ setReactionsPopupPosition = _useState9[1];
33008
+ var _useState0 = React.useState(''),
33009
+ emojisPopupPosition = _useState0[0],
33010
+ setEmojisPopupPosition = _useState0[1];
33011
+ var _useState1 = React.useState({
32358
33012
  left: 0,
32359
33013
  right: 0
32360
33014
  }),
32361
- reactionsPopupHorizontalPosition = _useState0[0],
32362
- setReactionsPopupHorizontalPosition = _useState0[1];
33015
+ reactionsPopupHorizontalPosition = _useState1[0],
33016
+ setReactionsPopupHorizontalPosition = _useState1[1];
32363
33017
  var scrollToNewMessage = useSelector(scrollToNewMessageSelector, reactRedux.shallowEqual);
32364
33018
  var messageItemRef = React.useRef();
32365
33019
  var isVisible = useOnScreen(messageItemRef);
@@ -32395,6 +33049,10 @@ var Message$1 = function Message(_ref) {
32395
33049
  setMessageActionsShow(false);
32396
33050
  stopScrolling(!forwardPopupOpen);
32397
33051
  };
33052
+ var handleToggleInfoMessagePopupOpen = function handleToggleInfoMessagePopupOpen() {
33053
+ setInfoPopupOpen(!infoPopupOpen);
33054
+ setMessageActionsShow(false);
33055
+ };
32398
33056
  var handleReplyMessage = function handleReplyMessage(threadReply) {
32399
33057
  if (threadReply) ; else {
32400
33058
  dispatch(setMessageForReplyAC(message));
@@ -32652,6 +33310,7 @@ var Message$1 = function Message(_ref) {
32652
33310
  emojisPopupPosition: emojisPopupPosition,
32653
33311
  handleSetMessageForEdit: toggleEditMode,
32654
33312
  handleResendMessage: handleResendMessage,
33313
+ handleOpenInfoMessage: handleToggleInfoMessagePopupOpen,
32655
33314
  handleOpenDeleteMessage: handleToggleDeleteMessagePopup,
32656
33315
  handleOpenForwardMessage: handleToggleForwardMessagePopup,
32657
33316
  handleCopyMessage: handleCopyMessage,
@@ -32704,6 +33363,7 @@ var Message$1 = function Message(_ref) {
32704
33363
  replyMessageInThread: replyMessageInThread,
32705
33364
  deleteMessage: deleteMessage,
32706
33365
  selectMessage: selectMessage,
33366
+ showInfoMessage: showInfoMessage,
32707
33367
  allowEditDeleteIncomingMessage: allowEditDeleteIncomingMessage,
32708
33368
  forwardMessage: forwardMessage,
32709
33369
  reportMessage: reportMessage,
@@ -32728,6 +33388,7 @@ var Message$1 = function Message(_ref) {
32728
33388
  selectIconOrder: selectIconOrder,
32729
33389
  starIconOrder: starIconOrder,
32730
33390
  reportIconOrder: reportIconOrder,
33391
+ infoIconOrder: infoIconOrder,
32731
33392
  reactionIconTooltipText: reactionIconTooltipText,
32732
33393
  editIconTooltipText: editIconTooltipText,
32733
33394
  copyIconTooltipText: copyIconTooltipText,
@@ -32738,6 +33399,7 @@ var Message$1 = function Message(_ref) {
32738
33399
  selectIconTooltipText: selectIconTooltipText,
32739
33400
  starIconTooltipText: starIconTooltipText,
32740
33401
  reportIconTooltipText: reportIconTooltipText,
33402
+ infoIconTooltipText: infoIconTooltipText,
32741
33403
  messageActionIconsColor: messageActionIconsColor,
32742
33404
  messageStatusSize: messageStatusSize,
32743
33405
  messageStatusColor: messageStatusColor,
@@ -32771,6 +33433,7 @@ var Message$1 = function Message(_ref) {
32771
33433
  setMessageActionsShow: setMessageActionsShow,
32772
33434
  closeMessageActions: closeMessageActions,
32773
33435
  handleToggleForwardMessagePopup: handleToggleForwardMessagePopup,
33436
+ handleToggleInfoMessagePopupOpen: handleToggleInfoMessagePopupOpen,
32774
33437
  handleReplyMessage: handleReplyMessage,
32775
33438
  handleToggleDeleteMessagePopup: handleToggleDeleteMessagePopup,
32776
33439
  handleToggleReportPopupOpen: handleToggleReportPopupOpen,
@@ -32878,16 +33541,22 @@ var Message$1 = function Message(_ref) {
32878
33541
  togglePopup: handleToggleForwardMessagePopup,
32879
33542
  buttonText: 'Forward',
32880
33543
  title: 'Forward message'
32881
- })));
33544
+ })), infoPopupOpen && (/*#__PURE__*/React__default.createElement(MessageInfo, Object.assign({
33545
+ message: message,
33546
+ togglePopup: handleToggleInfoMessagePopupOpen
33547
+ }, showInfoMessageProps, {
33548
+ contacts: contactsMap,
33549
+ handleOpenUserProfile: handleOpenUserProfile
33550
+ }))));
32882
33551
  };
32883
33552
  var Message$2 = /*#__PURE__*/React__default.memo(Message$1, function (prevProps, nextProps) {
32884
33553
  return prevProps.message.deliveryStatus === nextProps.message.deliveryStatus && prevProps.message.state === nextProps.message.state && prevProps.message.userReactions === nextProps.message.userReactions && prevProps.message.body === nextProps.message.body && prevProps.message.reactionTotals === nextProps.message.reactionTotals && prevProps.message.attachments === nextProps.message.attachments && prevProps.message.metadata === nextProps.message.metadata && prevProps.message.userMarkers === nextProps.message.userMarkers && prevProps.prevMessage === nextProps.prevMessage && prevProps.nextMessage === nextProps.nextMessage && prevProps.selectedMessagesMap === nextProps.selectedMessagesMap && prevProps.contactsMap === nextProps.contactsMap && prevProps.connectionStatus === nextProps.connectionStatus && prevProps.openedMessageMenuId === nextProps.openedMessageMenuId && prevProps.theme === nextProps.theme;
32885
33554
  });
32886
- 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"])));
32887
- 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) {
33555
+ var MessageReactionKey = styled__default.span(_templateObject$D || (_templateObject$D = _taggedTemplateLiteralLoose(["\n display: inline-flex;\n align-items: center;\n font-family:\n apple color emoji,\n segoe ui emoji,\n noto color emoji,\n android emoji,\n emojisymbols,\n emojione mozilla,\n twemoji mozilla,\n segoe ui symbol;\n"])));
33556
+ var ReactionItemCount = styled__default.span(_templateObject2$y || (_templateObject2$y = _taggedTemplateLiteralLoose(["\n margin-left: 2px;\n font-family: Inter, sans-serif;\n font-weight: 400;\n font-size: 14px;\n line-height: 16px;\n color: ", ";\n"])), function (props) {
32888
33557
  return props.color;
32889
33558
  });
32890
- 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) {
33559
+ var MessageReaction = styled__default.span(_templateObject3$s || (_templateObject3$s = _taggedTemplateLiteralLoose(["\n display: inline-flex;\n //min-width: 23px;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n margin: ", ";\n margin-right: ", ";\n border: ", ";\n color: ", ";\n box-sizing: border-box;\n border-radius: ", ";\n font-size: ", ";\n line-height: ", ";\n padding: ", ";\n background-color: ", ";\n white-space: nowrap;\n\n &:last-child {\n margin-right: 0;\n }\n"])), function (props) {
32891
33560
  return props.margin || '0 8px 0 0';
32892
33561
  }, function (props) {
32893
33562
  return props.isLastReaction && '0';
@@ -32906,26 +33575,26 @@ var MessageReaction = styled__default.span(_templateObject3$r || (_templateObjec
32906
33575
  }, function (props) {
32907
33576
  return props.backgroundColor;
32908
33577
  });
32909
- 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) {
33578
+ var ThreadMessageCountContainer = styled__default.div(_templateObject4$o || (_templateObject4$o = _taggedTemplateLiteralLoose(["\n position: relative;\n color: ", ";\n font-weight: 500;\n font-size: 13px;\n line-height: 15px;\n margin: 12px;\n cursor: pointer;\n\n &::before {\n content: '';\n position: absolute;\n left: -25px;\n top: -21px;\n width: 16px;\n height: 26px;\n border-left: 2px solid #cdcdcf;\n border-bottom: 2px solid #cdcdcf;\n border-radius: 0 0 0 14px;\n }\n"])), function (props) {
32910
33579
  return props.color;
32911
33580
  });
32912
- 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) {
33581
+ var FailedMessageIcon = styled__default.div(_templateObject5$k || (_templateObject5$k = _taggedTemplateLiteralLoose(["\n position: absolute;\n top: -6px;\n left: ", ";\n right: ", ";\n width: 20px;\n height: 20px;\n"])), function (props) {
32913
33582
  return !props.rtl && '-24px';
32914
33583
  }, function (props) {
32915
33584
  return props.rtl && '-24px';
32916
33585
  });
32917
- var ErrorIconWrapper = styled__default(SvgErrorIcon)(_templateObject6$g || (_templateObject6$g = _taggedTemplateLiteralLoose(["\n width: 20px;\n height: 20px;\n"])));
32918
- 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) {
33586
+ var ErrorIconWrapper = styled__default(SvgErrorIcon)(_templateObject6$h || (_templateObject6$h = _taggedTemplateLiteralLoose(["\n width: 20px;\n height: 20px;\n"])));
33587
+ var SelectMessageWrapper = styled__default.div(_templateObject7$f || (_templateObject7$f = _taggedTemplateLiteralLoose(["\n display: flex;\n padding: 10px;\n position: absolute;\n left: 4%;\n bottom: calc(50% - 22px);\n cursor: ", ";\n & > svg {\n color: ", ";\n width: 24px;\n height: 24px;\n }\n"])), function (props) {
32919
33588
  return !props.disabled && 'pointer';
32920
33589
  }, function (props) {
32921
33590
  return props.activeColor;
32922
33591
  });
32923
- 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) {
33592
+ var EmptySelection = styled__default.span(_templateObject8$e || (_templateObject8$e = _taggedTemplateLiteralLoose(["\n display: inline-block;\n width: 24px;\n height: 24px;\n border: 1.5px solid ", ";\n box-sizing: border-box;\n border-radius: 50%;\n transform: scale(0.92);\n opacity: ", ";\n"])), function (props) {
32924
33593
  return props.borderColor;
32925
33594
  }, function (props) {
32926
33595
  return props.disabled && '0.5';
32927
33596
  });
32928
- 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) {
33597
+ var ReactionsContainer = styled__default.div(_templateObject9$c || (_templateObject9$c = _taggedTemplateLiteralLoose(["\n display: inline-flex;\n margin-left: ", ";\n margin-right: ", ";\n\n margin-top: 4px;\n justify-content: flex-end;\n border: ", ";\n box-shadow: ", ";\n filter: drop-shadow(0px 0px 2px rgba(17, 21, 57, 0.08));\n border-radius: ", ";\n background-color: ", ";\n padding: ", ";\n z-index: 9;\n ", ";\n overflow: hidden;\n height: ", ";\n transition: all 0.3s;\n"])), function (props) {
32929
33598
  return props.rtlDirection && 'auto';
32930
33599
  }, function (props) {
32931
33600
  return !props.rtlDirection && 'auto';
@@ -32944,10 +33613,10 @@ var ReactionsContainer = styled__default.div(_templateObject9$b || (_templateObj
32944
33613
  }, function (props) {
32945
33614
  return props.isReacted ? '16px' : '0';
32946
33615
  });
32947
- 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) {
33616
+ var MessageReactionsCont = styled__default.div(_templateObject0$b || (_templateObject0$b = _taggedTemplateLiteralLoose(["\n position: relative;\n display: inline-flex;\n max-width: 300px;\n direction: ", ";\n cursor: pointer;\n"])), function (props) {
32948
33617
  return props.rtlDirection && 'ltr';
32949
33618
  });
32950
- 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) {
33619
+ var MessageStatus$1 = styled__default.span(_templateObject1$8 || (_templateObject1$8 = _taggedTemplateLiteralLoose(["\n display: inline-flex;\n align-items: center;\n margin-left: 4px;\n text-align: right;\n height: ", ";\n & > svg {\n height: 16px;\n width: 16px;\n }\n"])), function (props) {
32951
33620
  return props.height || '14px';
32952
33621
  });
32953
33622
  var HiddenMessageTime$1 = styled__default.span(_templateObject10$4 || (_templateObject10$4 = _taggedTemplateLiteralLoose(["\n display: ", ";\n font-weight: 400;\n font-size: ", ";\n color: ", ";\n"])), function (props) {
@@ -32992,7 +33661,7 @@ var HiddenMessageProperty;
32992
33661
  HiddenMessageProperty["hideAfterSendMessage"] = "hideAfterSendMessage";
32993
33662
  })(HiddenMessageProperty || (HiddenMessageProperty = {}));
32994
33663
 
32995
- var _templateObject$D, _templateObject2$y, _templateObject3$s, _templateObject4$o, _templateObject5$k, _templateObject6$h, _templateObject7$f, _templateObject8$e, _templateObject9$c, _templateObject0$b, _templateObject1$8;
33664
+ var _templateObject$E, _templateObject2$z, _templateObject3$t, _templateObject4$p, _templateObject5$l, _templateObject6$i, _templateObject7$g, _templateObject8$f, _templateObject9$d, _templateObject0$c, _templateObject1$9;
32996
33665
  var CreateMessageDateDivider = function CreateMessageDateDivider(_ref) {
32997
33666
  var lastIndex = _ref.lastIndex,
32998
33667
  currentMessageDate = _ref.currentMessageDate,
@@ -33069,6 +33738,7 @@ var MessageList = function MessageList(_ref2) {
33069
33738
  forwardMessage = _ref2.forwardMessage,
33070
33739
  deleteMessage = _ref2.deleteMessage,
33071
33740
  selectMessage = _ref2.selectMessage,
33741
+ showInfoMessage = _ref2.showInfoMessage,
33072
33742
  reportMessage = _ref2.reportMessage,
33073
33743
  reactionIcon = _ref2.reactionIcon,
33074
33744
  editIcon = _ref2.editIcon,
@@ -33115,6 +33785,7 @@ var MessageList = function MessageList(_ref2) {
33115
33785
  selectIconOrder = _ref2.selectIconOrder,
33116
33786
  starIconOrder = _ref2.starIconOrder,
33117
33787
  reportIconOrder = _ref2.reportIconOrder,
33788
+ infoIconOrder = _ref2.infoIconOrder,
33118
33789
  reactionIconTooltipText = _ref2.reactionIconTooltipText,
33119
33790
  editIconTooltipText = _ref2.editIconTooltipText,
33120
33791
  copyIconTooltipText = _ref2.copyIconTooltipText,
@@ -33122,6 +33793,7 @@ var MessageList = function MessageList(_ref2) {
33122
33793
  replyInThreadIconTooltipText = _ref2.replyInThreadIconTooltipText,
33123
33794
  forwardIconTooltipText = _ref2.forwardIconTooltipText,
33124
33795
  deleteIconTooltipText = _ref2.deleteIconTooltipText,
33796
+ infoIconTooltipText = _ref2.infoIconTooltipText,
33125
33797
  selectIconTooltipText = _ref2.selectIconTooltipText,
33126
33798
  starIconTooltipText = _ref2.starIconTooltipText,
33127
33799
  reportIconTooltipText = _ref2.reportIconTooltipText,
@@ -33174,7 +33846,9 @@ var MessageList = function MessageList(_ref2) {
33174
33846
  messageTimeColor = _ref2.messageTimeColor,
33175
33847
  messageStatusAndTimeLineHeight = _ref2.messageStatusAndTimeLineHeight,
33176
33848
  hiddenMessagesProperties = _ref2.hiddenMessagesProperties,
33177
- shouldOpenUserProfileForMention = _ref2.shouldOpenUserProfileForMention;
33849
+ shouldOpenUserProfileForMention = _ref2.shouldOpenUserProfileForMention,
33850
+ _ref2$showInfoMessage = _ref2.showInfoMessageProps,
33851
+ showInfoMessageProps = _ref2$showInfoMessage === void 0 ? {} : _ref2$showInfoMessage;
33178
33852
  var _useColor = useColors(),
33179
33853
  outgoingMessageBackground = _useColor[THEME_COLORS.OUTGOING_MESSAGE_BACKGROUND],
33180
33854
  themeBackgroundColor = _useColor[THEME_COLORS.BACKGROUND],
@@ -33917,6 +34591,7 @@ var MessageList = function MessageList(_ref2) {
33917
34591
  replyMessageInThread: replyMessageInThread,
33918
34592
  deleteMessage: deleteMessage,
33919
34593
  selectMessage: selectMessage,
34594
+ showInfoMessage: showInfoMessage,
33920
34595
  allowEditDeleteIncomingMessage: allowEditDeleteIncomingMessage,
33921
34596
  reportMessage: reportMessage,
33922
34597
  reactionIcon: reactionIcon,
@@ -33942,6 +34617,7 @@ var MessageList = function MessageList(_ref2) {
33942
34617
  replyInThreadIconOrder: replyInThreadIconOrder,
33943
34618
  forwardIconOrder: forwardIconOrder,
33944
34619
  deleteIconOrder: deleteIconOrder,
34620
+ infoIconOrder: infoIconOrder,
33945
34621
  selectIconOrder: selectIconOrder,
33946
34622
  starIconOrder: starIconOrder,
33947
34623
  reportIconOrder: reportIconOrder,
@@ -33952,6 +34628,7 @@ var MessageList = function MessageList(_ref2) {
33952
34628
  replyInThreadIconTooltipText: replyInThreadIconTooltipText,
33953
34629
  forwardIconTooltipText: forwardIconTooltipText,
33954
34630
  deleteIconTooltipText: deleteIconTooltipText,
34631
+ infoIconTooltipText: infoIconTooltipText,
33955
34632
  selectIconTooltipText: selectIconTooltipText,
33956
34633
  starIconTooltipText: starIconTooltipText,
33957
34634
  reportIconTooltipText: reportIconTooltipText,
@@ -34001,7 +34678,8 @@ var MessageList = function MessageList(_ref2) {
34001
34678
  messageTimeFontSize: messageTimeFontSize,
34002
34679
  messageTimeColor: messageTimeColor,
34003
34680
  messageStatusAndTimeLineHeight: messageStatusAndTimeLineHeight,
34004
- shouldOpenUserProfileForMention: shouldOpenUserProfileForMention
34681
+ shouldOpenUserProfileForMention: shouldOpenUserProfileForMention,
34682
+ showInfoMessageProps: showInfoMessageProps
34005
34683
  }))), isUnreadMessage ? (/*#__PURE__*/React__default.createElement(MessageDivider, {
34006
34684
  theme: theme,
34007
34685
  newMessagesSeparatorTextColor: newMessagesSeparatorTextColor,
@@ -34031,14 +34709,14 @@ var MessageList = function MessageList(_ref2) {
34031
34709
  attachmentsPreview: attachmentsPreview
34032
34710
  })))));
34033
34711
  };
34034
- 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) {
34712
+ var Container$h = styled__default.div(_templateObject$E || (_templateObject$E = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column-reverse;\n flex-grow: 1;\n position: relative;\n overflow: auto;\n scroll-behavior: smooth;\n will-change: left, top;\n background-color: ", ";\n overflow-x: hidden;\n\n &::-webkit-scrollbar {\n width: 8px;\n background: transparent;\n }\n &::-webkit-scrollbar-thumb {\n background: transparent;\n }\n\n &.show-scrollbar::-webkit-scrollbar-thumb {\n background: ", ";\n border-radius: 4px;\n }\n &.show-scrollbar::-webkit-scrollbar-track {\n background: transparent;\n }\n"])), function (props) {
34035
34713
  return props.backgroundColor;
34036
34714
  }, function (props) {
34037
34715
  return props.thumbColor;
34038
34716
  });
34039
- var EmptyDiv = styled__default.div(_templateObject2$y || (_templateObject2$y = _taggedTemplateLiteralLoose(["\n height: 300px;\n"])));
34040
- 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"])));
34041
- 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) {
34717
+ var EmptyDiv = styled__default.div(_templateObject2$z || (_templateObject2$z = _taggedTemplateLiteralLoose(["\n height: 300px;\n"])));
34718
+ var MessagesBox = styled__default.div(_templateObject3$t || (_templateObject3$t = _taggedTemplateLiteralLoose(["\n //height: auto;\n display: flex;\n //flex-direction: column-reverse;\n flex-direction: column;\n padding-bottom: 20px;\n //overflow: auto;\n //scroll-behavior: unset;\n"])));
34719
+ var MessageTopDate = styled__default.div(_templateObject4$p || (_templateObject4$p = _taggedTemplateLiteralLoose(["\n position: absolute;\n justify-content: center;\n width: 100%;\n top: ", ";\n left: 0;\n margin-top: ", ";\n margin-bottom: ", ";\n text-align: center;\n z-index: 10;\n background: transparent;\n opacity: ", ";\n transition: all 0.2s ease-in-out;\n width: calc(100% - 8px);\n\n span {\n display: inline-block;\n max-width: 380px;\n font-style: normal;\n font-weight: normal;\n font-size: ", ";\n color: ", ";\n background-color: ", ";\n border: ", ";\n box-sizing: border-box;\n border-radius: ", ";\n padding: 5px 16px;\n box-shadow:\n 0 0 2px rgba(0, 0, 0, 0.08),\n 0 2px 24px rgba(0, 0, 0, 0.08);\n text-overflow: ellipsis;\n overflow: hidden;\n }\n"])), function (props) {
34042
34720
  return props.topOffset ? props.topOffset + 22 + "px" : '22px';
34043
34721
  }, function (props) {
34044
34722
  return props.marginTop;
@@ -34057,19 +34735,19 @@ var MessageTopDate = styled__default.div(_templateObject4$o || (_templateObject4
34057
34735
  }, function (props) {
34058
34736
  return props.dateDividerBorderRadius || '14px';
34059
34737
  });
34060
- 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) {
34738
+ var DragAndDropContainer = styled__default.div(_templateObject5$l || (_templateObject5$l = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n margin-bottom: -31px;\n margin-top: -2px;\n\n position: absolute;\n left: 0;\n top: ", ";\n width: 100%;\n height: ", ";\n background-color: ", ";\n z-index: 999;\n"])), function (props) {
34061
34739
  return props.topOffset ? props.topOffset + 2 + "px" : 0;
34062
34740
  }, function (props) {
34063
34741
  return props.height ? props.height + 30 + "px" : '100%';
34064
34742
  }, function (props) {
34065
34743
  return props.backgroundColor;
34066
34744
  });
34067
- 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) {
34745
+ var IconWrapper$1 = styled__default.span(_templateObject6$i || (_templateObject6$i = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: center;\n height: 64px;\n width: 64px;\n background-color: ", ";\n border-radius: 50%;\n text-align: center;\n margin-bottom: 16px;\n transition: all 0.3s;\n pointer-events: none;\n\n & > svg {\n color: ", ";\n width: 32px;\n height: 32px;\n }\n"])), function (props) {
34068
34746
  return props.backgroundColor;
34069
34747
  }, function (props) {
34070
34748
  return props.iconColor;
34071
34749
  });
34072
- 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) {
34750
+ var DropAttachmentArea = styled__default.div(_templateObject7$g || (_templateObject7$g = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: center;\n flex-direction: column;\n height: 100%;\n border: 1px dashed ", ";\n border-radius: 16px;\n margin: ", ";\n font-weight: 400;\n font-size: 15px;\n line-height: 18px;\n letter-spacing: -0.2px;\n color: ", ";\n transition: all 0.1s;\n\n &.dragover {\n background-color: ", ";\n border: 1px dashed ", ";\n\n ", " {\n background-color: ", ";\n }\n }\n"])), function (props) {
34073
34751
  return props.borderColor;
34074
34752
  }, function (props) {
34075
34753
  return props.margin || '12px 32px 32px';
@@ -34082,16 +34760,16 @@ var DropAttachmentArea = styled__default.div(_templateObject7$f || (_templateObj
34082
34760
  }, IconWrapper$1, function (props) {
34083
34761
  return props.iconBackgroundColor;
34084
34762
  });
34085
- 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) {
34763
+ var MessageWrapper = styled__default.div(_templateObject8$f || (_templateObject8$f = _taggedTemplateLiteralLoose(["\n &.highlight {\n & .message_item {\n transition: all 0.2s ease-in-out;\n padding-top: 4px;\n padding-bottom: 4px;\n background-color: ", ";\n }\n }\n\n & .message_item {\n transition: all 0.2s ease-in-out;\n }\n"])), function (props) {
34086
34764
  return props.highlightBg || '#d5d5d5';
34087
34765
  });
34088
- 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) {
34766
+ var NoMessagesContainer = styled__default.div(_templateObject9$d || (_templateObject9$d = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: center;\n flex-direction: column;\n height: 100%;\n width: 100%;\n font-weight: 400;\n font-size: 15px;\n line-height: 18px;\n letter-spacing: -0.2px;\n color: ", ";\n"])), function (props) {
34089
34767
  return props.color;
34090
34768
  });
34091
- 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) {
34769
+ var NoMessagesTitle = styled__default.h4(_templateObject0$c || (_templateObject0$c = _taggedTemplateLiteralLoose(["\n margin: 12px 0 8px;\n font-family: Inter, sans-serif;\n text-align: center;\n font-size: 20px;\n font-style: normal;\n font-weight: 500;\n line-height: 24px;\n color: ", ";\n"])), function (props) {
34092
34770
  return props.color;
34093
34771
  });
34094
- 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) {
34772
+ var NoMessagesText = styled__default.p(_templateObject1$9 || (_templateObject1$9 = _taggedTemplateLiteralLoose(["\n margin: 0;\n text-align: center;\n font-feature-settings:\n 'clig' off,\n 'liga' off;\n font-family: Inter, sans-serif;\n font-size: 15px;\n font-style: normal;\n font-weight: 400;\n line-height: 20px;\n color: ", ";\n"])), function (props) {
34095
34773
  return props.color;
34096
34774
  });
34097
34775
 
@@ -34131,6 +34809,7 @@ var MessagesContainer = function MessagesContainer(_ref) {
34131
34809
  forwardMessage = _ref.forwardMessage,
34132
34810
  deleteMessage = _ref.deleteMessage,
34133
34811
  selectMessage = _ref.selectMessage,
34812
+ showInfoMessage = _ref.showInfoMessage,
34134
34813
  reportMessage = _ref.reportMessage,
34135
34814
  reactionIcon = _ref.reactionIcon,
34136
34815
  editIcon = _ref.editIcon,
@@ -34177,6 +34856,7 @@ var MessagesContainer = function MessagesContainer(_ref) {
34177
34856
  selectIconOrder = _ref.selectIconOrder,
34178
34857
  starIconOrder = _ref.starIconOrder,
34179
34858
  reportIconOrder = _ref.reportIconOrder,
34859
+ infoIconOrder = _ref.infoIconOrder,
34180
34860
  reactionIconTooltipText = _ref.reactionIconTooltipText,
34181
34861
  editIconTooltipText = _ref.editIconTooltipText,
34182
34862
  copyIconTooltipText = _ref.copyIconTooltipText,
@@ -34187,6 +34867,7 @@ var MessagesContainer = function MessagesContainer(_ref) {
34187
34867
  selectIconTooltipText = _ref.selectIconTooltipText,
34188
34868
  starIconTooltipText = _ref.starIconTooltipText,
34189
34869
  reportIconTooltipText = _ref.reportIconTooltipText,
34870
+ infoIconTooltipText = _ref.infoIconTooltipText,
34190
34871
  messageActionIconsColor = _ref.messageActionIconsColor,
34191
34872
  dateDividerFontSize = _ref.dateDividerFontSize,
34192
34873
  dateDividerTextColor = _ref.dateDividerTextColor,
@@ -34237,7 +34918,9 @@ var MessagesContainer = function MessagesContainer(_ref) {
34237
34918
  messageStatusAndTimeLineHeight = _ref.messageStatusAndTimeLineHeight,
34238
34919
  _ref$hiddenMessagesPr = _ref.hiddenMessagesProperties,
34239
34920
  hiddenMessagesProperties = _ref$hiddenMessagesPr === void 0 ? [] : _ref$hiddenMessagesPr,
34240
- shouldOpenUserProfileForMention = _ref.shouldOpenUserProfileForMention;
34921
+ shouldOpenUserProfileForMention = _ref.shouldOpenUserProfileForMention,
34922
+ _ref$showInfoMessageP = _ref.showInfoMessageProps,
34923
+ showInfoMessageProps = _ref$showInfoMessageP === void 0 ? {} : _ref$showInfoMessageP;
34241
34924
  return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(MessageList, {
34242
34925
  fontFamily: fontFamily,
34243
34926
  ownMessageOnRightSide: ownMessageOnRightSide,
@@ -34268,6 +34951,7 @@ var MessagesContainer = function MessagesContainer(_ref) {
34268
34951
  forwardMessage: forwardMessage,
34269
34952
  deleteMessage: deleteMessage,
34270
34953
  selectMessage: selectMessage,
34954
+ showInfoMessage: showInfoMessage,
34271
34955
  reportMessage: reportMessage,
34272
34956
  reactionIcon: reactionIcon,
34273
34957
  editIcon: editIcon,
@@ -34310,6 +34994,7 @@ var MessagesContainer = function MessagesContainer(_ref) {
34310
34994
  forwardIconOrder: forwardIconOrder,
34311
34995
  deleteIconOrder: deleteIconOrder,
34312
34996
  selectIconOrder: selectIconOrder,
34997
+ infoIconOrder: infoIconOrder,
34313
34998
  starIconOrder: starIconOrder,
34314
34999
  reportIconOrder: reportIconOrder,
34315
35000
  reactionIconTooltipText: reactionIconTooltipText,
@@ -34322,6 +35007,7 @@ var MessagesContainer = function MessagesContainer(_ref) {
34322
35007
  selectIconTooltipText: selectIconTooltipText,
34323
35008
  starIconTooltipText: starIconTooltipText,
34324
35009
  reportIconTooltipText: reportIconTooltipText,
35010
+ infoIconTooltipText: infoIconTooltipText,
34325
35011
  messageActionIconsColor: messageActionIconsColor,
34326
35012
  dateDividerFontSize: dateDividerFontSize,
34327
35013
  dateDividerTextColor: dateDividerTextColor,
@@ -34364,7 +35050,8 @@ var MessagesContainer = function MessagesContainer(_ref) {
34364
35050
  messageTimeColor: messageTimeColor,
34365
35051
  messageStatusAndTimeLineHeight: messageStatusAndTimeLineHeight,
34366
35052
  hiddenMessagesProperties: hiddenMessagesProperties,
34367
- shouldOpenUserProfileForMention: shouldOpenUserProfileForMention
35053
+ shouldOpenUserProfileForMention: shouldOpenUserProfileForMention,
35054
+ showInfoMessageProps: showInfoMessageProps
34368
35055
  }));
34369
35056
  };
34370
35057
 
@@ -34476,7 +35163,7 @@ function $isMentionNode(node) {
34476
35163
  return node instanceof MentionNode;
34477
35164
  }
34478
35165
 
34479
- var _templateObject$E, _templateObject2$z, _templateObject3$t, _templateObject4$p, _templateObject5$l;
35166
+ var _templateObject$F, _templateObject2$A, _templateObject3$u, _templateObject4$q, _templateObject5$m;
34480
35167
  var PUNCTUATION = '\\.,\\+\\*\\?\\$\\@\\|#{}\\(\\)\\^\\-\\[\\]\\\\/!%\'"~=<>_:;';
34481
35168
  var NAME = '\\b[A-Z][^\\s' + PUNCTUATION + ']';
34482
35169
  var DocumentMentionsRegex = {
@@ -34756,8 +35443,8 @@ function MentionsPlugin(_ref3) {
34756
35443
  }
34757
35444
  });
34758
35445
  }
34759
- 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"])));
34760
- 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) {
35446
+ var MentionsContainerWrapper = styled__default.div(_templateObject$F || (_templateObject$F = _taggedTemplateLiteralLoose(["\n position: relative;\n animation: fadeIn 0.2s ease-in-out;\n @keyframes fadeIn {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n }\n"])));
35447
+ var MentionsList = styled__default.ul(_templateObject2$A || (_templateObject2$A = _taggedTemplateLiteralLoose(["\n position: absolute;\n bottom: 100%;\n width: 300px;\n transition: all 0.2s;\n overflow: auto;\n max-height: 240px;\n z-index: 200;\n padding: 2px 0 0;\n background: ", ";\n border: ", ";\n box-sizing: border-box;\n box-shadow: ", ";\n border-radius: 6px;\n visibility: ", ";\n"])), function (props) {
34761
35448
  return props.backgroundColor;
34762
35449
  }, function (props) {
34763
35450
  return props.withBorder && "1px solid " + props.borderColor;
@@ -34766,11 +35453,11 @@ var MentionsList = styled__default.ul(_templateObject2$z || (_templateObject2$z
34766
35453
  }, function (props) {
34767
35454
  return props.hidden ? 'hidden' : 'visible';
34768
35455
  });
34769
- 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) {
35456
+ var MemberItem = styled__default.li(_templateObject3$u || (_templateObject3$u = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n font-size: 15px;\n padding: 6px 16px;\n transition: all 0.2s;\n cursor: pointer;\n background-color: ", ";\n\n & ", " {\n width: 10px;\n height: 10px;\n }\n"])), function (props) {
34770
35457
  return props.isActiveItem && props.activeBackgroundColor;
34771
35458
  }, UserStatus);
34772
- var UserNamePresence$2 = styled__default.div(_templateObject4$p || (_templateObject4$p = _taggedTemplateLiteralLoose(["\n width: calc(100% - 44px);\n margin-left: 12px;\n"])));
34773
- 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) {
35459
+ var UserNamePresence$2 = styled__default.div(_templateObject4$q || (_templateObject4$q = _taggedTemplateLiteralLoose(["\n width: calc(100% - 44px);\n margin-left: 12px;\n"])));
35460
+ var MemberName$2 = styled__default.h3(_templateObject5$m || (_templateObject5$m = _taggedTemplateLiteralLoose(["\n margin: 0;\n max-width: calc(100% - 1px);\n font-weight: 500;\n font-size: 15px;\n line-height: 18px;\n letter-spacing: -0.2px;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n color: ", ";\n"])), function (props) {
34774
35461
  return props.color;
34775
35462
  });
34776
35463
 
@@ -34903,7 +35590,7 @@ function SvgUnderline(props) {
34903
35590
  }))));
34904
35591
  }
34905
35592
 
34906
- var _templateObject$F, _templateObject2$A;
35593
+ var _templateObject$G, _templateObject2$B;
34907
35594
  function mergeRegister() {
34908
35595
  for (var _len = arguments.length, func = new Array(_len), _key = 0; _key < _len; _key++) {
34909
35596
  func[_key] = arguments[_key];
@@ -35284,10 +35971,10 @@ function FloatingTextFormatToolbarPlugin(_ref3) {
35284
35971
  editor = _useLexicalComposerCo[0];
35285
35972
  return useFloatingTextFormatToolbar(editor, anchorElem);
35286
35973
  }
35287
- 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) {
35974
+ var FloatingTextFormatPopup = styled__default.div(_templateObject$G || (_templateObject$G = _taggedTemplateLiteralLoose(["\n display: flex;\n background: ", ";\n vertical-align: middle;\n position: absolute;\n top: 0;\n left: 0;\n opacity: 0;\n box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);\n border-radius: 8px;\n transition: opacity 0.5s;\n padding: 12px;\n will-change: transform;\n z-index: 99;\n\n & button.popup-item {\n border: 0;\n display: flex;\n background: none;\n border-radius: 10px;\n padding: 8px;\n cursor: pointer;\n vertical-align: middle;\n }\n & button.popup-item:disabled {\n cursor: not-allowed;\n }\n & button.popup-item.spaced {\n margin-right: 2px;\n }\n & button.popup-item i.format {\n background-size: contain;\n height: 18px;\n width: 18px;\n margin-top: 2px;\n vertical-align: -0.25em;\n display: flex;\n opacity: 0.6;\n }\n\n & button.popup-item:disabled i.format {\n opacity: 0.2;\n }\n & button.popup-item.active {\n background-color: rgba(223, 232, 250, 0.3);\n }\n & button.popup-item.active i {\n opacity: 1;\n }\n & .popup-item:hover:not([disabled]) {\n background-color: #eee;\n }\n & select.popup-item {\n border: 0;\n display: flex;\n background: none;\n border-radius: 10px;\n padding: 8px;\n vertical-align: middle;\n -webkit-appearance: none;\n -moz-appearance: none;\n width: 70px;\n font-size: 14px;\n color: #777;\n text-overflow: ellipsis;\n }\n & select.code-language {\n text-transform: capitalize;\n width: 130px;\n }\n\n & .popup-item .text {\n display: flex;\n line-height: 20px;\n vertical-align: middle;\n font-size: 14px;\n color: #777;\n text-overflow: ellipsis;\n width: 70px;\n overflow: hidden;\n height: 20px;\n text-align: left;\n }\n\n & .popup-item .icon {\n display: flex;\n width: 20px;\n height: 20px;\n user-select: none;\n margin-right: 8px;\n line-height: 16px;\n background-size: contain;\n }\n & i.chevron-down {\n margin-top: 3px;\n width: 16px;\n height: 16px;\n display: flex;\n user-select: none;\n }\n & i.chevron-down.inside {\n width: 16px;\n height: 16px;\n display: flex;\n margin-left: -25px;\n margin-top: 11px;\n margin-right: 10px;\n pointer-events: none;\n }\n & .divider {\n width: 1px;\n background-color: #eee;\n margin: 0 4px;\n }\n @media (max-width: 1024px) {\n & button.insert-comment {\n display: none;\n }\n }\n"])), function (props) {
35288
35975
  return props.popupColor;
35289
35976
  });
35290
- 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) {
35977
+ var Action$1 = styled__default.button(_templateObject2$B || (_templateObject2$B = _taggedTemplateLiteralLoose(["\n border: 0;\n display: flex;\n background-color: inherit;\n vertical-align: middle;\n position: relative;\n padding: 3px;\n margin-right: 10px;\n //margin: 8px 6px;\n cursor: pointer;\n transition: all 0.2s;\n color: ", ";\n border-radius: 50%;\n ", "\n\n &:last-child {\n margin-right: 0;\n }\n\n &:hover {\n color: ", ";\n background-color: ", ";\n\n ", " {\n display: block;\n }\n }\n"])), function (props) {
35291
35978
  return props.iconColor;
35292
35979
  }, function (props) {
35293
35980
  return props.isActive && "\n color: " + props.hoverIconColor + ";\n background-color: " + props.hoverBackgroundColor + ";\n ";
@@ -35610,7 +36297,7 @@ function FormatMessagePlugin(_ref) {
35610
36297
  return null;
35611
36298
  }
35612
36299
 
35613
- var _templateObject$G, _templateObject2$B, _templateObject3$u, _templateObject4$q, _templateObject5$m, _templateObject6$i, _templateObject7$g, _templateObject8$f;
36300
+ var _templateObject$H, _templateObject2$C, _templateObject3$v, _templateObject4$r, _templateObject5$n, _templateObject6$j, _templateObject7$h, _templateObject8$g;
35614
36301
  var EmojiIcon$1 = function EmojiIcon(_ref) {
35615
36302
  var collectionName = _ref.collectionName;
35616
36303
  switch (collectionName) {
@@ -35805,7 +36492,7 @@ function EmojisPopup$1(_ref2) {
35805
36492
  }));
35806
36493
  }))));
35807
36494
  }
35808
- 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) {
36495
+ var Container$i = styled__default.div(_templateObject$H || (_templateObject$H = _taggedTemplateLiteralLoose(["\n position: ", ";\n left: ", ";\n right: ", ";\n direction: ", ";\n bottom: ", ";\n width: 306px;\n border: ", ";\n box-sizing: border-box;\n box-shadow: 0 0 12px rgba(0, 0, 0, 0.08);\n border-radius: ", ";\n background: ", ";\n z-index: 35;\n //transform: scaleY(0);\n height: 0;\n overflow: hidden;\n transform-origin: ", ";\n transition: all 0.2s ease-in-out;\n ", ";\n"])), function (props) {
35809
36496
  return props.leftPosition ? 'fixed' : props.relativePosition ? 'relative' : 'absolute';
35810
36497
  }, function (props) {
35811
36498
  return props.rightSide ? "calc(" + props.leftPosition + " - 250px)" : props.leftPosition || (props.rtlDirection ? '' : props.rightSide ? '' : '5px');
@@ -35826,23 +36513,23 @@ var Container$i = styled__default.div(_templateObject$G || (_templateObject$G =
35826
36513
  }, function (props) {
35827
36514
  return props.rendered && "\n height: 225px;\n ";
35828
36515
  });
35829
- 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) {
36516
+ var EmojiHeader$1 = styled__default.div(_templateObject2$C || (_templateObject2$C = _taggedTemplateLiteralLoose(["\n align-items: flex-end;\n font-style: normal;\n font-weight: 500;\n font-size: 12px;\n line-height: 22px;\n text-transform: uppercase;\n color: ", ";\n display: flex;\n padding: ", ";\n"])), function (props) {
35830
36517
  return props.color;
35831
36518
  }, function (props) {
35832
36519
  return props.padding || '6px 18px';
35833
36520
  });
35834
- 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"])));
35835
- 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) {
36521
+ var EmojiSection$1 = styled__default.div(_templateObject3$v || (_templateObject3$v = _taggedTemplateLiteralLoose(["\n height: 180px;\n overflow-x: hidden;\n\n & ::selection {\n color: inherit;\n background: inherit;\n }\n"])));
36522
+ var EmojiCollection$1 = styled__default.span(_templateObject4$r || (_templateObject4$r = _taggedTemplateLiteralLoose(["\n cursor: pointer;\n display: flex;\n justify-content: center;\n align-items: center;\n\n & > * {\n color: ", ";\n }\n"])), function (props) {
35836
36523
  return props.iconColor;
35837
36524
  });
35838
- var CollectionPointer$1 = styled__default.span(_templateObject5$m || (_templateObject5$m = _taggedTemplateLiteralLoose([""])));
35839
- var AllEmojis$1 = styled__default.ul(_templateObject6$i || (_templateObject6$i = _taggedTemplateLiteralLoose(["\n overflow: hidden;\n padding: 0 8px 8px;\n margin: 0;\n"])));
35840
- 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) {
36525
+ var CollectionPointer$1 = styled__default.span(_templateObject5$n || (_templateObject5$n = _taggedTemplateLiteralLoose([""])));
36526
+ var AllEmojis$1 = styled__default.ul(_templateObject6$j || (_templateObject6$j = _taggedTemplateLiteralLoose(["\n overflow: hidden;\n padding: 0 8px 8px;\n margin: 0;\n"])));
36527
+ var EmojiFooter$1 = styled__default.div(_templateObject7$h || (_templateObject7$h = _taggedTemplateLiteralLoose(["\n height: 42px;\n display: flex;\n justify-content: space-around;\n align-items: center;\n border-top: ", ";\n border-bottom: ", ";\n padding: 0 10px;\n & > span {\n width: 100%;\n text-align: center;\n }\n"])), function (props) {
35841
36528
  return props.emojisCategoryIconsPosition !== 'top' && "1px solid " + props.borderColor;
35842
36529
  }, function (props) {
35843
36530
  return props.emojisCategoryIconsPosition === 'top' && "1px solid " + props.borderColor;
35844
36531
  });
35845
- 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) {
36532
+ var Emoji$1 = styled__default.li(_templateObject8$g || (_templateObject8$g = _taggedTemplateLiteralLoose(["\n cursor: pointer;\n width: 32px;\n height: 32px;\n margin: 0 2px;\n display: inline-block;\n box-sizing: border-box;\n border-radius: 50%;\n padding-top: 2px;\n text-align: center;\n background: transparent;\n font-family:\n apple color emoji,\n segoe ui emoji,\n noto color emoji,\n android emoji,\n emojisymbols,\n emojione mozilla,\n twemoji mozilla,\n segoe ui symbol;\n & > * {\n font-size: 22px;\n }\n &:hover {\n background: ", ";\n }\n"])), function (props) {
35846
36533
  return props.hoverBackgroundColor;
35847
36534
  });
35848
36535
 
@@ -36043,7 +36730,7 @@ function SvgRecordButton(props) {
36043
36730
  })));
36044
36731
  }
36045
36732
 
36046
- var _templateObject$H, _templateObject2$C, _templateObject3$v, _templateObject4$r, _templateObject5$n, _templateObject6$j, _templateObject7$h;
36733
+ var _templateObject$I, _templateObject2$D, _templateObject3$w, _templateObject4$s, _templateObject5$o, _templateObject6$k, _templateObject7$i;
36047
36734
  var shouldDraw = false;
36048
36735
  var AudioRecord = function AudioRecord(_ref) {
36049
36736
  var sendRecordedFile = _ref.sendRecordedFile,
@@ -36506,29 +37193,20 @@ var AudioRecord = function AudioRecord(_ref) {
36506
37193
  }, [currentRecordedFile, currentChannelId]);
36507
37194
  React.useEffect(function () {
36508
37195
  if (!currentRecordedFile) {
36509
- (function () {
36510
- try {
36511
- var _temp5 = function () {
36512
- if (!recorder) {
36513
- var _temp4 = _catch(function () {
36514
- return Promise.resolve(new Promise(function (resolve) { resolve(_interopNamespace(require('mic-recorder-to-mp3'))); })).then(function (MicRecorderModule) {
36515
- var MicRecorder = MicRecorderModule["default"];
36516
- var recorder = new MicRecorder({
36517
- bitRate: 128
36518
- });
36519
- setRecorder(recorder);
36520
- });
36521
- }, function (e) {
36522
- log.error('Failed to init mic-recorder-to-mp3', e);
36523
- });
36524
- if (_temp4 && _temp4.then) return _temp4.then(function () {});
36525
- }
36526
- }();
36527
- return _temp5 && _temp5.then ? _temp5.then(function () {}) : void 0;
36528
- } catch (e) {
36529
- Promise.reject(e);
37196
+ try {
37197
+ if (!recorder) {
37198
+ try {
37199
+ var newRecorder = new MicRecorder({
37200
+ bitRate: 128
37201
+ });
37202
+ setRecorder(newRecorder);
37203
+ } catch (e) {
37204
+ log.error('Failed to init mic-recorder-to-mp3', e);
37205
+ }
36530
37206
  }
36531
- })();
37207
+ } catch (e) {
37208
+ Promise.reject(e);
37209
+ }
36532
37210
  }
36533
37211
  }, [currentRecordedFile]);
36534
37212
  React.useEffect(function () {
@@ -36607,10 +37285,10 @@ var AudioRecord = function AudioRecord(_ref) {
36607
37285
  iconColor: accentColor
36608
37286
  }, showRecording || currentRecordedFile ? /*#__PURE__*/React__default.createElement(SvgSend, null) : /*#__PURE__*/React__default.createElement(SvgRecordButton, null)));
36609
37287
  };
36610
- 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) {
37288
+ var Container$j = styled__default.div(_templateObject$I || (_templateObject$I = _taggedTemplateLiteralLoose(["\n width: 32px;\n position: relative;\n display: flex;\n align-items: center;\n justify-content: flex-end;\n ", ";\n transition: all 0.3s ease-in-out;\n"])), function (props) {
36611
37289
  return props.recording && "width: 400px";
36612
37290
  });
36613
- 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) {
37291
+ var AudioWrapper = styled__default.div(_templateObject2$D || (_templateObject2$D = _taggedTemplateLiteralLoose(["\n position: relative;\n display: flex;\n align-items: center;\n height: 36px;\n width: ", ";\n overflow: hidden;\n margin: ", ";\n background-color: ", ";\n padding: ", ";\n border-radius: 20px;\n"])), function (props) {
36614
37292
  return props.recording ? 'calc(100% - 84px)' : '0';
36615
37293
  }, function (props) {
36616
37294
  return props.recording ? '0 8px' : '0';
@@ -36619,10 +37297,10 @@ var AudioWrapper = styled__default.div(_templateObject2$C || (_templateObject2$C
36619
37297
  }, function (props) {
36620
37298
  return props.recording ? '0 12px 0 0' : '0';
36621
37299
  });
36622
- var RecordIconWrapper = styled__default.span(_templateObject3$v || (_templateObject3$v = _taggedTemplateLiteralLoose(["\n display: flex;\n cursor: pointer;\n > svg {\n color: ", ";\n }\n"])), function (props) {
37300
+ var RecordIconWrapper = styled__default.span(_templateObject3$w || (_templateObject3$w = _taggedTemplateLiteralLoose(["\n display: flex;\n cursor: pointer;\n > svg {\n color: ", ";\n }\n"])), function (props) {
36623
37301
  return props.iconColor;
36624
37302
  });
36625
- 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) {
37303
+ var AudioVisualization$1 = styled__default.div(_templateObject4$s || (_templateObject4$s = _taggedTemplateLiteralLoose(["\n position: absolute;\n opacity: ", ";\n z-index: ", ";\n visibility: ", ";\n width: 300px;\n height: 28px;\n max-width: calc(100% - 100px);\n left: 40px;\n background-color: ", ";\n"])), function (_ref5) {
36626
37304
  var show = _ref5.show;
36627
37305
  return show ? '1' : '0';
36628
37306
  }, function (_ref6) {
@@ -36634,10 +37312,10 @@ var AudioVisualization$1 = styled__default.div(_templateObject4$r || (_templateO
36634
37312
  }, function (props) {
36635
37313
  return props.color;
36636
37314
  });
36637
- 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) {
37315
+ var PlayPause$1 = styled__default.div(_templateObject5$o || (_templateObject5$o = _taggedTemplateLiteralLoose(["\n cursor: pointer;\n padding: 10px;\n > svg {\n color: ", ";\n }\n"])), function (props) {
36638
37316
  return props.iconColor;
36639
37317
  });
36640
- 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) {
37318
+ var Canvas = styled__default.canvas(_templateObject6$k || (_templateObject6$k = _taggedTemplateLiteralLoose(["\n height: 28px;\n width: ", ";\n max-width: calc(100% - 110px);\n position: absolute;\n opacity: ", ";\n z-index: ", ";\n left: 42px;\n"])), function (_ref8) {
36641
37319
  var recording = _ref8.recording;
36642
37320
  return recording ? '300px' : '0';
36643
37321
  }, function (_ref9) {
@@ -36647,14 +37325,14 @@ var Canvas = styled__default.canvas(_templateObject6$j || (_templateObject6$j =
36647
37325
  var hide = _ref0.hide;
36648
37326
  return hide && '-1';
36649
37327
  });
36650
- 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) {
37328
+ var Timer$2 = styled__default.div(_templateObject7$i || (_templateObject7$i = _taggedTemplateLiteralLoose(["\n width: 40px;\n font-weight: 400;\n font-size: 16px;\n line-height: 12px;\n color: ", ";\n margin-left: auto;\n"])), function (props) {
36651
37329
  return props.color;
36652
37330
  });
36653
37331
 
36654
- var _templateObject$I, _templateObject2$D, _templateObject3$w;
36655
- 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"])));
36656
- 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"])));
36657
- 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) {
37332
+ var _templateObject$J, _templateObject2$E, _templateObject3$x;
37333
+ var wave = styled.keyframes(_templateObject$J || (_templateObject$J = _taggedTemplateLiteralLoose(["\n 0%, 100% {\n transform: scaleY(0.5);\n opacity: 0.6;\n }\n 50% {\n transform: scaleY(1.2);\n opacity: 1;\n }\n"])));
37334
+ var Wrapper = styled__default.div(_templateObject2$E || (_templateObject2$E = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: flex-end;\n height: 8px;\n gap: 1.5px;\n"])));
37335
+ var Bar = styled__default.span(_templateObject3$x || (_templateObject3$x = _taggedTemplateLiteralLoose(["\n display: block;\n width: 3px;\n height: 8px;\n border-radius: 2px;\n background: ", ";\n animation: ", " 1s infinite;\n animation-delay: ", "s;\n"])), function (props) {
36658
37336
  return props.borderColor;
36659
37337
  }, wave, function (_ref) {
36660
37338
  var delay = _ref.delay;
@@ -36680,7 +37358,7 @@ var RecordingAnimation = function RecordingAnimation(_ref2) {
36680
37358
  }));
36681
37359
  };
36682
37360
 
36683
- 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;
37361
+ var _templateObject$K, _templateObject2$F, _templateObject3$y, _templateObject4$t, _templateObject5$p, _templateObject6$l, _templateObject7$j, _templateObject8$h, _templateObject9$e, _templateObject0$d, _templateObject1$a, _templateObject10$5, _templateObject11$5, _templateObject12$4, _templateObject13$3, _templateObject14$2, _templateObject15$2, _templateObject16$2, _templateObject17$2, _templateObject18$2, _templateObject19$2, _templateObject20$2, _templateObject21$1, _templateObject22$1, _templateObject23$1, _templateObject24$1, _templateObject25$1, _templateObject26$1, _templateObject27$1, _templateObject28$1, _templateObject29$1, _templateObject30$1, _templateObject31$1, _templateObject32$1, _templateObject33$1, _templateObject34$1;
36684
37362
  function AutoFocusPlugin(_ref) {
36685
37363
  var messageForReply = _ref.messageForReply;
36686
37364
  var _useLexicalComposerCo = LexicalComposerContext.useLexicalComposerContext(),
@@ -38267,10 +38945,10 @@ var SendMessageInput = function SendMessageInput(_ref3) {
38267
38945
  channelId: activeChannel.id
38268
38946
  }))))))))));
38269
38947
  };
38270
- var SendMessageWrapper = styled__default.div(_templateObject$J || (_templateObject$J = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n position: relative;\n z-index: 15;\n"])), function (props) {
38948
+ var SendMessageWrapper = styled__default.div(_templateObject$K || (_templateObject$K = _taggedTemplateLiteralLoose(["\n background-color: ", ";\n position: relative;\n z-index: 15;\n"])), function (props) {
38271
38949
  return props.backgroundColor;
38272
38950
  });
38273
- 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) {
38951
+ var Container$k = styled__default.div(_templateObject2$F || (_templateObject2$F = _taggedTemplateLiteralLoose(["\n margin: ", ";\n border: ", ";\n border-radius: ", ";\n position: relative;\n padding: ", ";\n z-index: 15;\n\n & span.rdw-suggestion-dropdown {\n position: absolute;\n bottom: 100%;\n height: 160px;\n min-width: 150px;\n display: flex;\n flex-direction: column;\n overflow: auto;\n padding: 6px 12px;\n border: 1px solid #ccc;\n background: #fff;\n z-index: 99;\n }\n\n & .text_formatting_toolbar {\n display: ", ";\n position: fixed;\n top: ", ";\n left: ", ";\n }\n\n & .rdw-suggestion-option-active {\n background-color: rgb(243, 245, 248);\n }\n\n & .custom_editor {\n cursor: text;\n\n & .rdw-mention-link {\n color: ", ";\n }\n }\n"])), function (props) {
38274
38952
  return props.margin || '30px 0 16px';
38275
38953
  }, function (props) {
38276
38954
  return props.border || '';
@@ -38287,7 +38965,7 @@ var Container$k = styled__default.div(_templateObject2$E || (_templateObject2$E
38287
38965
  }, function (props) {
38288
38966
  return props.mentionColor;
38289
38967
  });
38290
- 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) {
38968
+ var EditReplyMessageCont = styled__default.div(_templateObject3$y || (_templateObject3$y = _taggedTemplateLiteralLoose(["\n position: relative;\n left: ", ";\n bottom: ", ";\n width: ", ";\n border-radius: ", ";\n padding: ", ";\n font-weight: 400;\n font-size: 15px;\n line-height: 20px;\n letter-spacing: -0.2px;\n color: ", ";\n background-color: ", ";\n z-index: 19;\n box-sizing: content-box;\n"])), function (props) {
38291
38969
  return props.left || '0';
38292
38970
  }, function (props) {
38293
38971
  return props.bottom || '0';
@@ -38302,19 +38980,19 @@ var EditReplyMessageCont = styled__default.div(_templateObject3$x || (_templateO
38302
38980
  }, function (props) {
38303
38981
  return props.backgroundColor;
38304
38982
  });
38305
- 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"])));
38306
- var UploadErrorMessage = styled__default.p(_templateObject5$o || (_templateObject5$o = _taggedTemplateLiteralLoose(["\n margin: 0;\n position: absolute;\n top: -30px;\n color: ", ";\n"])), function (props) {
38983
+ var EditMessageText = styled__default.p(_templateObject4$t || (_templateObject4$t = _taggedTemplateLiteralLoose(["\n margin: 0;\n display: -webkit-box;\n -webkit-line-clamp: 3;\n -webkit-box-orient: vertical;\n overflow: hidden;\n text-overflow: ellipsis;\n word-break: break-word;\n"])));
38984
+ var UploadErrorMessage = styled__default.p(_templateObject5$p || (_templateObject5$p = _taggedTemplateLiteralLoose(["\n margin: 0;\n position: absolute;\n top: -30px;\n color: ", ";\n"])), function (props) {
38307
38985
  return props.color;
38308
38986
  });
38309
- 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) {
38987
+ var CloseEditMode = styled__default.span(_templateObject6$l || (_templateObject6$l = _taggedTemplateLiteralLoose(["\n position: absolute;\n top: 8px;\n right: 12px;\n width: 20px;\n height: 20px;\n text-align: center;\n line-height: 22px;\n cursor: pointer;\n\n & > svg {\n color: ", ";\n }\n"])), function (props) {
38310
38988
  return props.color;
38311
38989
  });
38312
- var UserName$1 = styled__default.span(_templateObject7$i || (_templateObject7$i = _taggedTemplateLiteralLoose(["\n font-weight: 500;\n margin-left: 4px;\n"])));
38313
- 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"])));
38314
- 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) {
38990
+ var UserName$1 = styled__default.span(_templateObject7$j || (_templateObject7$j = _taggedTemplateLiteralLoose(["\n font-weight: 500;\n margin-left: 4px;\n"])));
38991
+ var ReplyMessageBody$1 = styled__default.div(_templateObject8$h || (_templateObject8$h = _taggedTemplateLiteralLoose(["\n word-break: break-word;\n display: -webkit-box;\n -webkit-line-clamp: 3;\n -webkit-box-orient: vertical;\n overflow: hidden;\n text-overflow: ellipsis;\n"])));
38992
+ var EditReplyMessageHeader = styled__default.h4(_templateObject9$e || (_templateObject9$e = _taggedTemplateLiteralLoose(["\n display: flex;\n margin: 0 0 2px;\n font-weight: 400;\n font-size: 13px;\n line-height: 16px;\n color: ", ";\n\n > svg {\n margin-right: 4px;\n width: 16px;\n height: 16px;\n }\n"])), function (props) {
38315
38993
  return props.color;
38316
38994
  });
38317
- 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) {
38995
+ var AddAttachmentIcon = styled__default.span(_templateObject0$d || (_templateObject0$d = _taggedTemplateLiteralLoose(["\n display: flex;\n height: ", ";\n align-items: center;\n margin: 0 8px;\n cursor: pointer;\n line-height: 13px;\n z-index: 2;\n order: ", ";\n\n > svg {\n ", ";\n width: 24px;\n }\n\n &:hover > svg {\n color: ", ";\n }\n"])), function (props) {
38318
38996
  return props.height ? props.height + "px" : '36px';
38319
38997
  }, function (props) {
38320
38998
  return props.order === 0 || props.order ? props.order : 1;
@@ -38323,7 +39001,7 @@ var AddAttachmentIcon = styled__default.span(_templateObject0$c || (_templateObj
38323
39001
  }, function (props) {
38324
39002
  return props.hoverColor;
38325
39003
  });
38326
- 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) {
39004
+ var SendMessageInputContainer = styled__default.div(_templateObject1$a || (_templateObject1$a = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: flex-end;\n justify-content: space-between;\n position: relative;\n min-height: ", ";\n box-sizing: border-box;\n border-radius: ", ";\n\n & .dropdown-trigger.open {\n color: #ccc;\n\n & ", " {\n & > svg {\n color: ", ";\n }\n ;\n }\n }\n}\n"])), function (props) {
38327
39005
  return props.minHeight || '36px';
38328
39006
  }, function (props) {
38329
39007
  return props.messageForReply ? '0 0 4px 4px' : '4px';
@@ -38619,7 +39297,7 @@ function SvgUnpin(props) {
38619
39297
  })));
38620
39298
  }
38621
39299
 
38622
- 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;
39300
+ var _templateObject$L, _templateObject2$G, _templateObject3$z, _templateObject4$u, _templateObject5$q, _templateObject6$m, _templateObject7$k, _templateObject8$i, _templateObject9$f, _templateObject0$e, _templateObject1$b, _templateObject10$6, _templateObject11$6, _templateObject12$5, _templateObject13$4, _templateObject14$3, _templateObject15$3, _templateObject16$3;
38623
39301
  var Actions = function Actions(_ref) {
38624
39302
  var setActionsHeight = _ref.setActionsHeight,
38625
39303
  channel = _ref.channel,
@@ -39083,21 +39761,21 @@ var Actions = function Actions(_ref) {
39083
39761
  title: popupTitle
39084
39762
  })));
39085
39763
  };
39086
- var Container$l = styled__default.div(_templateObject$K || (_templateObject$K = _taggedTemplateLiteralLoose(["\n padding: 10px 16px;\n border-bottom: 6px solid ", ";\n]"])), function (props) {
39764
+ var Container$l = styled__default.div(_templateObject$L || (_templateObject$L = _taggedTemplateLiteralLoose(["\n padding: 10px 16px;\n border-bottom: 6px solid ", ";\n]"])), function (props) {
39087
39765
  return props.borderColor;
39088
39766
  });
39089
- 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"])));
39090
- var MenuTriggerIcon = styled__default.span(_templateObject3$y || (_templateObject3$y = _taggedTemplateLiteralLoose(["\n transition: all 0.2s;\n ", "\n"])), function (props) {
39767
+ var ActionHeader = styled__default.div(_templateObject2$G || (_templateObject2$G = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin: 25px 0 22px;\n cursor: pointer;\n"])));
39768
+ var MenuTriggerIcon = styled__default.span(_templateObject3$z || (_templateObject3$z = _taggedTemplateLiteralLoose(["\n transition: all 0.2s;\n ", "\n"])), function (props) {
39091
39769
  return !props.isOpen && ' transform: rotate(-90deg);';
39092
39770
  });
39093
- 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"])));
39094
- var DefaultMutedIcon = styled__default(SvgUnmuteNotifications)(_templateObject5$p || (_templateObject5$p = _taggedTemplateLiteralLoose([""])));
39095
- var DefaultMuteIcon = styled__default(SvgNotifications)(_templateObject6$l || (_templateObject6$l = _taggedTemplateLiteralLoose([""])));
39096
- var DefaultStarIcon = styled__default(SvgStar)(_templateObject7$j || (_templateObject7$j = _taggedTemplateLiteralLoose([""])));
39097
- var DefaultUnpinIcon = styled__default(SvgUnpin)(_templateObject8$h || (_templateObject8$h = _taggedTemplateLiteralLoose([""])));
39098
- var DefaultPinIcon = styled__default(SvgPin)(_templateObject9$e || (_templateObject9$e = _taggedTemplateLiteralLoose([""])));
39099
- var DefaultMarkAsRead = styled__default(SvgMarkAsRead)(_templateObject0$d || (_templateObject0$d = _taggedTemplateLiteralLoose([""])));
39100
- var DefaultMarkAsUnRead = styled__default(SvgMarkAsUnRead)(_templateObject1$a || (_templateObject1$a = _taggedTemplateLiteralLoose([""])));
39771
+ var ActionsMenu = styled__default.ul(_templateObject4$u || (_templateObject4$u = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n margin: 0;\n padding: 0;\n list-style: none;\n transition: all 0.2s;\n"])));
39772
+ var DefaultMutedIcon = styled__default(SvgUnmuteNotifications)(_templateObject5$q || (_templateObject5$q = _taggedTemplateLiteralLoose([""])));
39773
+ var DefaultMuteIcon = styled__default(SvgNotifications)(_templateObject6$m || (_templateObject6$m = _taggedTemplateLiteralLoose([""])));
39774
+ var DefaultStarIcon = styled__default(SvgStar)(_templateObject7$k || (_templateObject7$k = _taggedTemplateLiteralLoose([""])));
39775
+ var DefaultUnpinIcon = styled__default(SvgUnpin)(_templateObject8$i || (_templateObject8$i = _taggedTemplateLiteralLoose([""])));
39776
+ var DefaultPinIcon = styled__default(SvgPin)(_templateObject9$f || (_templateObject9$f = _taggedTemplateLiteralLoose([""])));
39777
+ var DefaultMarkAsRead = styled__default(SvgMarkAsRead)(_templateObject0$e || (_templateObject0$e = _taggedTemplateLiteralLoose([""])));
39778
+ var DefaultMarkAsUnRead = styled__default(SvgMarkAsUnRead)(_templateObject1$b || (_templateObject1$b = _taggedTemplateLiteralLoose([""])));
39101
39779
  var DefaultBlockIcon = styled__default(SvgBlockChannel)(_templateObject10$6 || (_templateObject10$6 = _taggedTemplateLiteralLoose([""])));
39102
39780
  var DefaultReportIcon = styled__default(SvgReport)(_templateObject11$6 || (_templateObject11$6 = _taggedTemplateLiteralLoose([""])));
39103
39781
  var DefaultClearIcon = styled__default(SvgClear)(_templateObject12$5 || (_templateObject12$5 = _taggedTemplateLiteralLoose([""])));
@@ -39177,7 +39855,7 @@ function SvgMoreVert(props) {
39177
39855
  })));
39178
39856
  }
39179
39857
 
39180
- var _templateObject$L, _templateObject2$G, _templateObject3$z;
39858
+ var _templateObject$M, _templateObject2$H, _templateObject3$A;
39181
39859
  var ChangeMemberRole = function ChangeMemberRole(_ref) {
39182
39860
  var theme = _ref.theme,
39183
39861
  channelId = _ref.channelId,
@@ -39277,14 +39955,14 @@ var ChangeMemberRole = function ChangeMemberRole(_ref) {
39277
39955
  onClick: handleSave
39278
39956
  }, "Save"))));
39279
39957
  };
39280
- var RolesSelect = styled__default.div(_templateObject$L || (_templateObject$L = _taggedTemplateLiteralLoose(["\n margin-bottom: 32px;\n"])));
39281
- 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) {
39958
+ var RolesSelect = styled__default.div(_templateObject$M || (_templateObject$M = _taggedTemplateLiteralLoose(["\n margin-bottom: 32px;\n"])));
39959
+ var RoleLabel = styled__default.div(_templateObject2$H || (_templateObject2$H = _taggedTemplateLiteralLoose(["\n font-style: normal;\n font-weight: 500;\n font-size: 14px;\n margin: 20px 0 8px;\n color: ", ";\n"])), function (_ref2) {
39282
39960
  var color = _ref2.color;
39283
39961
  return color;
39284
39962
  });
39285
- 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"])));
39963
+ var RoleSpan = styled__default.span(_templateObject3$A || (_templateObject3$A = _taggedTemplateLiteralLoose(["\n font-style: normal;\n font-weight: normal;\n font-size: 14px;\n text-transform: capitalize;\n"])));
39286
39964
 
39287
- var _templateObject$M, _templateObject2$H, _templateObject3$A, _templateObject4$u, _templateObject5$q, _templateObject6$m, _templateObject7$k, _templateObject8$i, _templateObject9$f;
39965
+ var _templateObject$N, _templateObject2$I, _templateObject3$B, _templateObject4$v, _templateObject5$r, _templateObject6$n, _templateObject7$l, _templateObject8$j, _templateObject9$g;
39288
39966
  var Members = function Members(_ref) {
39289
39967
  var channel = _ref.channel,
39290
39968
  theme = _ref.theme,
@@ -39587,18 +40265,18 @@ var Members = function Members(_ref) {
39587
40265
  toggleCreatePopup: handleAddMemberPopup
39588
40266
  })));
39589
40267
  };
39590
- var Container$m = styled__default.div(_templateObject$M || (_templateObject$M = _taggedTemplateLiteralLoose([""])));
39591
- var ActionsMenu$1 = styled__default.div(_templateObject2$H || (_templateObject2$H = _taggedTemplateLiteralLoose(["\n position: relative;\n transition: all 0.2s;\n"])));
39592
- 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);
39593
- var MemberNameWrapper = styled__default.div(_templateObject4$u || (_templateObject4$u = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n"])));
39594
- 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) {
40268
+ var Container$m = styled__default.div(_templateObject$N || (_templateObject$N = _taggedTemplateLiteralLoose([""])));
40269
+ var ActionsMenu$1 = styled__default.div(_templateObject2$I || (_templateObject2$I = _taggedTemplateLiteralLoose(["\n position: relative;\n transition: all 0.2s;\n"])));
40270
+ var MemberNamePresence = styled__default.div(_templateObject3$B || (_templateObject3$B = _taggedTemplateLiteralLoose(["\n margin-left: 12px;\n max-width: calc(100% - 84px);\n\n & > ", " {\n display: block;\n }\n"])), SubTitle);
40271
+ var MemberNameWrapper = styled__default.div(_templateObject4$v || (_templateObject4$v = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n"])));
40272
+ var MemberName$3 = styled__default.h4(_templateObject5$r || (_templateObject5$r = _taggedTemplateLiteralLoose(["\n margin: 0;\n font-weight: 400;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n color: ", ";\n"])), function (props) {
39595
40273
  return props.color;
39596
40274
  });
39597
- 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) {
40275
+ var EditMemberIcon = styled__default.span(_templateObject6$n || (_templateObject6$n = _taggedTemplateLiteralLoose(["\n margin-left: auto;\n cursor: pointer;\n padding: 15px;\n opacity: 0;\n visibility: hidden;\n transition: all 0.2s;\n\n & svg {\n color: ", ";\n }\n"])), function (props) {
39598
40276
  return props.color;
39599
40277
  });
39600
- 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"])));
39601
- 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) {
40278
+ var MembersList = styled__default.ul(_templateObject7$l || (_templateObject7$l = _taggedTemplateLiteralLoose(["\n margin: 0;\n padding: 0;\n list-style: none;\n transition: all 0.2s;\n"])));
40279
+ var MemberItem$1 = styled__default.li(_templateObject8$j || (_templateObject8$j = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n font-size: ", ";\n font-weight: 500;\n padding: 6px 16px;\n transition: all 0.2s;\n color: ", ";\n cursor: pointer;\n\n & > svg {\n rect {\n fill: transparent;\n }\n }\n\n &:first-child {\n cursor: pointer;\n\n > svg {\n color: ", ";\n margin-right: 12px;\n & > rect {\n fill: ", " !important;\n }\n }\n }\n\n &:hover {\n background-color: ", ";\n }\n\n &:hover ", " {\n opacity: 1;\n visibility: visible;\n }\n\n & .dropdown-wrapper {\n margin-left: auto;\n }\n\n & ", " {\n width: 12px;\n height: 12px;\n right: -1px;\n bottom: -1px;\n }\n"])), function (props) {
39602
40280
  return props.fontSize || '15px';
39603
40281
  }, function (props) {
39604
40282
  return props.color;
@@ -39609,13 +40287,13 @@ var MemberItem$1 = styled__default.li(_templateObject8$i || (_templateObject8$i
39609
40287
  }, function (props) {
39610
40288
  return props.hoverBackground;
39611
40289
  }, EditMemberIcon, UserStatus);
39612
- 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) {
40290
+ var RoleBadge = styled__default.span(_templateObject9$g || (_templateObject9$g = _taggedTemplateLiteralLoose(["\n position: relative;\n padding: 2px 8px;\n border-radius: 12px;\n margin-left: 4px;\n font-weight: 500;\n font-size: 12px;\n line-height: 16px;\n color: ", ";\n\n &::after {\n content: '';\n position: absolute;\n top: 0;\n left: 0;\n border-radius: 12px;\n width: 100%;\n height: 100%;\n background-color: ", ";\n opacity: 0.1;\n }\n"])), function (props) {
39613
40291
  return props.color;
39614
40292
  }, function (props) {
39615
40293
  return props.backgroundColor;
39616
40294
  });
39617
40295
 
39618
- var _templateObject$N, _templateObject2$I;
40296
+ var _templateObject$O, _templateObject2$J;
39619
40297
  var Media = function Media(_ref) {
39620
40298
  var channel = _ref.channel;
39621
40299
  var _useColor = useColors(),
@@ -39661,8 +40339,8 @@ var Media = function Media(_ref) {
39661
40339
  currentMediaFile: mediaFile
39662
40340
  })));
39663
40341
  };
39664
- 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"])));
39665
- 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"])));
40342
+ var Container$n = styled__default.div(_templateObject$O || (_templateObject$O = _taggedTemplateLiteralLoose(["\n padding: 6px 4px;\n overflow-x: hidden;\n overflow-y: auto;\n list-style: none;\n transition: all 0.2s;\n align-items: flex-start;\n display: flex;\n flex-wrap: wrap;\n"])));
40343
+ var MediaItem = styled__default.div(_templateObject2$J || (_templateObject2$J = _taggedTemplateLiteralLoose(["\n width: calc(33.3333% - 4px);\n height: 110px;\n box-sizing: border-box;\n //border: 1px solid #ccc;\n border: 0.5px solid rgba(0, 0, 0, 0.1);\n border-radius: 8px;\n overflow: hidden;\n margin: 2px;\n"])));
39666
40344
 
39667
40345
  var _rect$3, _path$1n;
39668
40346
  function _extends$1r() {
@@ -39718,7 +40396,7 @@ function SvgDownloadFile(props) {
39718
40396
  })));
39719
40397
  }
39720
40398
 
39721
- var _templateObject$O, _templateObject2$J, _templateObject3$B, _templateObject4$v, _templateObject5$r, _templateObject6$n, _templateObject7$l, _templateObject8$j;
40399
+ var _templateObject$P, _templateObject2$K, _templateObject3$C, _templateObject4$w, _templateObject5$s, _templateObject6$o, _templateObject7$m, _templateObject8$k;
39722
40400
  var Files = function Files(_ref) {
39723
40401
  var channelId = _ref.channelId,
39724
40402
  filePreviewIcon = _ref.filePreviewIcon,
@@ -39835,30 +40513,30 @@ var Files = function Files(_ref) {
39835
40513
  }))) : filePreviewDownloadIcon || /*#__PURE__*/React__default.createElement(SvgDownloadFile, null)));
39836
40514
  }));
39837
40515
  };
39838
- 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"])));
39839
- 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) {
40516
+ var Container$o = styled__default.ul(_templateObject$P || (_templateObject$P = _taggedTemplateLiteralLoose(["\n margin: 0;\n padding: 0;\n overflow-x: hidden;\n overflow-y: auto;\n list-style: none;\n transition: all 0.2s;\n"])));
40517
+ var DownloadWrapper = styled__default.a(_templateObject2$K || (_templateObject2$K = _taggedTemplateLiteralLoose(["\n text-decoration: none;\n visibility: ", ";\n padding: 5px 6px;\n position: absolute;\n top: 25%;\n right: 16px;\n cursor: pointer;\n & > svg {\n & path {\n fill: ", ";\n }\n color: ", ";\n }\n"])), function (props) {
39840
40518
  return props.visible ? 'visible' : 'hidden';
39841
40519
  }, function (props) {
39842
40520
  return props.iconColor;
39843
40521
  }, function (props) {
39844
40522
  return props.iconColor;
39845
40523
  });
39846
- 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"])));
39847
- 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) {
40524
+ var ProgressWrapper$2 = styled__default.span(_templateObject3$C || (_templateObject3$C = _taggedTemplateLiteralLoose(["\n display: inline-block;\n width: 20px;\n height: 20px;\n animation: preloader 1.5s linear infinite;\n\n @keyframes preloader {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n }\n"])));
40525
+ var FileIconCont = styled__default.span(_templateObject4$w || (_templateObject4$w = _taggedTemplateLiteralLoose(["\n display: inline-flex;\n\n & > svg {\n width: 40px;\n height: 40px;\n color: ", ";\n fill: ", ";\n }\n"])), function (props) {
39848
40526
  return props.iconColor;
39849
40527
  }, function (props) {
39850
40528
  return props.fillColor;
39851
40529
  });
39852
- 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) {
40530
+ var FileHoverIconCont = styled__default.span(_templateObject5$s || (_templateObject5$s = _taggedTemplateLiteralLoose(["\n display: none;\n & > svg {\n color: ", ";\n width: 40px;\n height: 40px;\n fill: ", ";\n }\n"])), function (props) {
39853
40531
  return props.iconColor;
39854
40532
  }, function (props) {
39855
40533
  return props.fillColor;
39856
40534
  });
39857
- 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"])));
39858
- 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) {
40535
+ var FileThumb = styled__default.img(_templateObject6$o || (_templateObject6$o = _taggedTemplateLiteralLoose(["\n width: 40px;\n height: 40px;\n border: 0.5px solid rgba(0, 0, 0, 0.1);\n border-radius: 8px;\n object-fit: cover;\n"])));
40536
+ var FileItem = styled__default.div(_templateObject7$m || (_templateObject7$m = _taggedTemplateLiteralLoose(["\n position: relative;\n padding: 11px 16px;\n display: flex;\n align-items: center;\n font-size: 15px;\n transition: all 0.2s;\n div {\n margin-left: 7px;\n width: calc(100% - 48px);\n }\n &:hover {\n background-color: ", ";\n ", " {\n visibility: visible;\n }\n & ", " {\n display: none;\n }\n & ", " {\n display: inline-flex;\n }\n }\n /*&.isHover {\n\n }*/\n"])), function (props) {
39859
40537
  return props.hoverBackgroundColor;
39860
40538
  }, DownloadWrapper, FileIconCont, FileHoverIconCont);
39861
- 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) {
40539
+ var FileSizeAndDate = styled__default.span(_templateObject8$k || (_templateObject8$k = _taggedTemplateLiteralLoose(["\n display: block;\n font-style: normal;\n font-weight: normal;\n font-size: ", ";\n line-height: ", ";\n color: ", ";\n margin-top: 2px;\n"])), function (props) {
39862
40540
  return props.fontSize || '13px';
39863
40541
  }, function (props) {
39864
40542
  return props.lineHeight || '16px';
@@ -39897,7 +40575,7 @@ function SvgLinkIcon(props) {
39897
40575
  })));
39898
40576
  }
39899
40577
 
39900
- var _templateObject$P, _templateObject2$K, _templateObject3$C, _templateObject4$w, _templateObject5$s;
40578
+ var _templateObject$Q, _templateObject2$L, _templateObject3$D, _templateObject4$x, _templateObject5$t;
39901
40579
  var LinkItem = function LinkItem(_ref) {
39902
40580
  var link = _ref.link,
39903
40581
  linkPreviewIcon = _ref.linkPreviewIcon,
@@ -39928,25 +40606,25 @@ var LinkItem = function LinkItem(_ref) {
39928
40606
  color: linkPreviewColor || textPrimary
39929
40607
  }, link))));
39930
40608
  };
39931
- var LinkIconCont = styled__default.span(_templateObject$P || (_templateObject$P = _taggedTemplateLiteralLoose(["\n display: inline-flex;\n > svg {\n color: ", ";\n fill: ", ";\n }\n"])), function (props) {
40609
+ var LinkIconCont = styled__default.span(_templateObject$Q || (_templateObject$Q = _taggedTemplateLiteralLoose(["\n display: inline-flex;\n > svg {\n color: ", ";\n fill: ", ";\n }\n"])), function (props) {
39932
40610
  return props.iconColor;
39933
40611
  }, function (props) {
39934
40612
  return props.fillColor;
39935
40613
  });
39936
- var LinkHoverIconCont = styled__default.span(_templateObject2$K || (_templateObject2$K = _taggedTemplateLiteralLoose(["\n display: none;\n > svg {\n color: ", ";\n fill: ", ";\n }\n"])), function (props) {
40614
+ var LinkHoverIconCont = styled__default.span(_templateObject2$L || (_templateObject2$L = _taggedTemplateLiteralLoose(["\n display: none;\n > svg {\n color: ", ";\n fill: ", ";\n }\n"])), function (props) {
39937
40615
  return props.iconColor;
39938
40616
  }, function (props) {
39939
40617
  return props.fillColor;
39940
40618
  });
39941
- var LinkInfoCont = styled__default.div(_templateObject3$C || (_templateObject3$C = _taggedTemplateLiteralLoose(["\n margin-left: 12px;\n width: calc(100% - 40px);\n"])));
39942
- 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) {
40619
+ var LinkInfoCont = styled__default.div(_templateObject3$D || (_templateObject3$D = _taggedTemplateLiteralLoose(["\n margin-left: 12px;\n width: calc(100% - 40px);\n"])));
40620
+ var FileItem$1 = styled__default.li(_templateObject4$x || (_templateObject4$x = _taggedTemplateLiteralLoose(["\n padding: 9px 16px;\n a {\n display: flex;\n align-items: center;\n text-decoration: none;\n }\n &:hover {\n background-color: ", ";\n & ", " {\n display: none;\n }\n & ", " {\n display: inline-flex;\n }\n }\n"])), function (props) {
39943
40621
  return props.hoverBackgroundColor;
39944
40622
  }, LinkIconCont, LinkHoverIconCont);
39945
- 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) {
40623
+ var LinkUrl = styled__default.span(_templateObject5$t || (_templateObject5$t = _taggedTemplateLiteralLoose(["\n display: block;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n max-width: calc(100% - 52px);\n font-style: normal;\n font-weight: normal;\n font-size: 13px;\n line-height: 16px;\n text-decoration: underline;\n color: ", ";\n"])), function (props) {
39946
40624
  return props.color;
39947
40625
  });
39948
40626
 
39949
- var _templateObject$Q;
40627
+ var _templateObject$R;
39950
40628
  var Links = function Links(_ref) {
39951
40629
  var channelId = _ref.channelId,
39952
40630
  linkPreviewIcon = _ref.linkPreviewIcon,
@@ -39971,7 +40649,7 @@ var Links = function Links(_ref) {
39971
40649
  });
39972
40650
  }));
39973
40651
  };
39974
- 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"])));
40652
+ var Container$p = styled__default.ul(_templateObject$R || (_templateObject$R = _taggedTemplateLiteralLoose(["\n margin: 0;\n padding: 11px 0 0;\n overflow-x: hidden;\n overflow-y: auto;\n list-style: none;\n transition: all 0.2s;\n"])));
39975
40653
 
39976
40654
  var _rect$5, _path$1q;
39977
40655
  function _extends$1u() {
@@ -40027,7 +40705,7 @@ function SvgVoicePreviewPause(props) {
40027
40705
  })));
40028
40706
  }
40029
40707
 
40030
- var _templateObject$R, _templateObject2$L, _templateObject3$D, _templateObject4$x, _templateObject5$t, _templateObject6$o, _templateObject7$m, _templateObject8$k;
40708
+ var _templateObject$S, _templateObject2$M, _templateObject3$E, _templateObject4$y, _templateObject5$u, _templateObject6$p, _templateObject7$n, _templateObject8$l;
40031
40709
  var VoiceItem = function VoiceItem(_ref) {
40032
40710
  var file = _ref.file,
40033
40711
  voicePreviewPlayIcon = _ref.voicePreviewPlayIcon,
@@ -40152,32 +40830,32 @@ var VoiceItem = function VoiceItem(_ref) {
40152
40830
  type: 'audio/mpeg'
40153
40831
  })));
40154
40832
  };
40155
- 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) {
40833
+ var FileIconCont$1 = styled__default.span(_templateObject$S || (_templateObject$S = _taggedTemplateLiteralLoose(["\n cursor: pointer;\n display: inline-flex;\n fill: ", ";\n rect {\n fill: ", ";\n }\n"])), function (props) {
40156
40834
  return props.fill || 'transparent';
40157
40835
  }, function (props) {
40158
40836
  return props.fill || 'transparent';
40159
40837
  });
40160
- 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) {
40838
+ var FileHoverIconCont$1 = styled__default.span(_templateObject2$M || (_templateObject2$M = _taggedTemplateLiteralLoose(["\n cursor: pointer;\n display: none;\n fill: ", ";\n rect {\n fill: ", ";\n }\n"])), function (props) {
40161
40839
  return props.fill || 'transparent';
40162
40840
  }, function (props) {
40163
40841
  return props.fill || 'transparent';
40164
40842
  });
40165
- 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) {
40843
+ var FileItem$2 = styled__default.li(_templateObject3$E || (_templateObject3$E = _taggedTemplateLiteralLoose(["\n padding: 9px 16px;\n display: flex;\n align-items: center;\n text-decoration: none;\n\n &:hover {\n background-color: ", ";\n }\n div {\n margin-left: 12px;\n width: 100%;\n }\n img {\n width: 42px;\n height: 42px;\n border: 0.5px solid rgba(0, 0, 0, 0.1);\n box-sizing: border-box;\n border-radius: 6px;\n }\n\n &.isHover {\n & ", " {\n display: none;\n }\n & ", " {\n display: inline-flex;\n }\n }\n"])), function (props) {
40166
40844
  return props.hoverBackgroundColor;
40167
40845
  }, FileIconCont$1, FileHoverIconCont$1);
40168
- var AudioInfo = styled__default.div(_templateObject4$x || (_templateObject4$x = _taggedTemplateLiteralLoose(["\n position: relative;\n"])));
40169
- 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) {
40846
+ var AudioInfo = styled__default.div(_templateObject4$y || (_templateObject4$y = _taggedTemplateLiteralLoose(["\n position: relative;\n"])));
40847
+ var AudioTitle = styled__default.span(_templateObject5$u || (_templateObject5$u = _taggedTemplateLiteralLoose(["\n display: block;\n font-style: normal;\n font-weight: 500;\n font-size: 15px;\n line-height: 20px;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n max-width: calc(100% - 72px);\n color: ", ";\n"])), function (props) {
40170
40848
  return props.color;
40171
40849
  });
40172
- 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) {
40850
+ var AudioDate = styled__default.span(_templateObject6$p || (_templateObject6$p = _taggedTemplateLiteralLoose(["\n display: block;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n max-width: calc(100% - 72px);\n font-style: normal;\n font-weight: normal;\n font-size: 12px;\n line-height: 16px;\n color: ", ";\n"])), function (props) {
40173
40851
  return props.color;
40174
40852
  });
40175
- 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) {
40853
+ var AudioSendTime = styled__default.span(_templateObject7$n || (_templateObject7$n = _taggedTemplateLiteralLoose(["\n position: absolute;\n right: 0;\n top: 11px;\n color: ", ";\n font-size: 12px;\n line-height: 16px;\n"])), function (props) {
40176
40854
  return props.color;
40177
40855
  });
40178
- var Audio = styled__default.audio(_templateObject8$k || (_templateObject8$k = _taggedTemplateLiteralLoose(["\n display: none;\n"])));
40856
+ var Audio = styled__default.audio(_templateObject8$l || (_templateObject8$l = _taggedTemplateLiteralLoose(["\n display: none;\n"])));
40179
40857
 
40180
- var _templateObject$S;
40858
+ var _templateObject$T;
40181
40859
  var Voices = function Voices(_ref) {
40182
40860
  var channelId = _ref.channelId,
40183
40861
  voicePreviewPlayIcon = _ref.voicePreviewPlayIcon,
@@ -40208,9 +40886,9 @@ var Voices = function Voices(_ref) {
40208
40886
  });
40209
40887
  }));
40210
40888
  };
40211
- 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"])));
40889
+ var Container$q = styled__default.ul(_templateObject$T || (_templateObject$T = _taggedTemplateLiteralLoose(["\n margin: 0;\n padding: 11px 0 0;\n overflow-x: hidden;\n overflow-y: auto;\n list-style: none;\n transition: all 0.2s;\n"])));
40212
40890
 
40213
- var _templateObject$T, _templateObject2$M;
40891
+ var _templateObject$U, _templateObject2$N;
40214
40892
  var DetailsTab = function DetailsTab(_ref) {
40215
40893
  var channel = _ref.channel,
40216
40894
  theme = _ref.theme,
@@ -40359,8 +41037,8 @@ var DetailsTab = function DetailsTab(_ref) {
40359
41037
  voicePreviewHoverBackgroundColor: voicePreviewHoverBackgroundColor
40360
41038
  })));
40361
41039
  };
40362
- var Container$r = styled__default.div(_templateObject$T || (_templateObject$T = _taggedTemplateLiteralLoose(["\n min-height: calc(100vh - 64px);\n"])));
40363
- 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) {
41040
+ var Container$r = styled__default.div(_templateObject$U || (_templateObject$U = _taggedTemplateLiteralLoose(["\n min-height: calc(100vh - 64px);\n"])));
41041
+ var DetailsTabHeader = styled__default.div(_templateObject2$N || (_templateObject2$N = _taggedTemplateLiteralLoose(["\n overflow-x: auto;\n overflow-y: hidden;\n border-bottom: 1px solid ", ";\n background-color: ", ";\n display: flex;\n justify-content: space-between;\n position: sticky;\n top: 0;\n z-index: 12;\n /* width */\n &::-webkit-scrollbar {\n width: 0;\n height: 0;\n }\n\n /* Track */\n &::-webkit-scrollbar-track {\n background: transparent;\n }\n\n /* Handle */\n &::-webkit-scrollbar-thumb {\n background: transparent;\n }\n\n /* Handle on hover */\n &::-webkit-scrollbar-thumb:hover {\n background: transparent;\n }\n button {\n position: relative;\n border: none;\n background: transparent;\n outline: none;\n height: 44px;\n text-transform: capitalize;\n font-style: normal;\n font-weight: 500;\n font-size: ", ";\n line-height: ", ";\n color: ", ";\n min-width: ", ";\n cursor: pointer;\n }\n\n & span {\n position: relative;\n display: inline-flex;\n align-items: center;\n height: 100%;\n }\n\n & .active span {\n color: ", ";\n\n &:after {\n content: '';\n width: 100%;\n border-radius: 2px;\n height: 2px;\n background-color: ", ";\n position: absolute;\n top: calc(100% - 1px);\n left: 0;\n }\n }\n"])), function (props) {
40364
41042
  return props.borderColor;
40365
41043
  }, function (props) {
40366
41044
  return props.backgroundColor || 'transparent';
@@ -40378,17 +41056,17 @@ var DetailsTabHeader = styled__default.div(_templateObject2$M || (_templateObjec
40378
41056
  return props.activeTabColor;
40379
41057
  });
40380
41058
 
40381
- var _templateObject$U, _templateObject2$N, _templateObject3$E, _templateObject4$y;
40382
- 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) {
41059
+ var _templateObject$V, _templateObject2$O, _templateObject3$F, _templateObject4$z;
41060
+ var Container$s = styled__default.div(_templateObject$V || (_templateObject$V = _taggedTemplateLiteralLoose(["\n ", ";\n height: ", ";\n position: absolute;\n padding: 24px 16px;\n background-color: ", ";\n z-index: 25;\n"])), function (props) {
40383
41061
  return props.active ? 'display: block' : 'display: none';
40384
41062
  }, function (props) {
40385
41063
  return "calc(100vh - " + (props.heightOffset ? props.heightOffset + 48 : 48) + "px)";
40386
41064
  }, function (props) {
40387
41065
  return props.backgroundColor;
40388
41066
  });
40389
- 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"])));
40390
- var DropDownWrapper = styled__default.div(_templateObject3$E || (_templateObject3$E = _taggedTemplateLiteralLoose(["\n position: absolute;\n z-index: 4;\n width: 40px;\n height: 40px;\n"])));
40391
- var EditChannelFooter = styled__default(ButtonBlock)(_templateObject4$y || (_templateObject4$y = _taggedTemplateLiteralLoose(["\n margin-top: 24px;\n\n & > button {\n margin-left: 12px;\n }\n"])));
41067
+ var AvatarCont = styled__default.div(_templateObject2$O || (_templateObject2$O = _taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: center;\n align-items: center;\n position: relative;\n margin-bottom: 4px;\n\n &::after {\n content: '';\n position: absolute;\n width: 120px;\n height: 120px;\n border-radius: 50%;\n background-color: rgba(0, 0, 0, 0.4);\n }\n .dropdown-body {\n top: inherit;\n right: inherit;\n bottom: -90px;\n }\n"])));
41068
+ var DropDownWrapper = styled__default.div(_templateObject3$F || (_templateObject3$F = _taggedTemplateLiteralLoose(["\n position: absolute;\n z-index: 4;\n width: 40px;\n height: 40px;\n"])));
41069
+ var EditChannelFooter = styled__default(ButtonBlock)(_templateObject4$z || (_templateObject4$z = _taggedTemplateLiteralLoose(["\n margin-top: 24px;\n\n & > button {\n margin-left: 12px;\n }\n"])));
40392
41070
  var EditChannel = function EditChannel(_ref) {
40393
41071
  var channel = _ref.channel,
40394
41072
  theme = _ref.theme,
@@ -40643,7 +41321,7 @@ var EditChannel = function EditChannel(_ref) {
40643
41321
  })));
40644
41322
  };
40645
41323
 
40646
- 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;
41324
+ var _templateObject$W, _templateObject2$P, _templateObject3$G, _templateObject4$A, _templateObject5$v, _templateObject6$q, _templateObject7$o, _templateObject8$m, _templateObject9$h, _templateObject0$f, _templateObject1$c, _templateObject10$7;
40647
41325
  var Details = function Details(_ref) {
40648
41326
  var _activeChannel$member;
40649
41327
  var detailsTitleText = _ref.detailsTitleText,
@@ -41030,17 +41708,17 @@ var Details = function Details(_ref) {
41030
41708
  onTabChange: handleTabChange
41031
41709
  }))));
41032
41710
  };
41033
- 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) {
41711
+ var Container$t = styled__default.div(_templateObject$W || (_templateObject$W = _taggedTemplateLiteralLoose(["\n flex: 0 0 auto;\n width: 0;\n border-left: 1px solid ", ";\n //transition: all 0.1s;\n ", "\n background-color: ", ";\n}\n"])), function (props) {
41034
41712
  return props.borderColor;
41035
41713
  }, function (props) {
41036
41714
  return props.mounted && " width: " + (props.size === 'small' ? '300px' : props.size === 'medium' ? '350px' : '400px') + ";";
41037
41715
  }, function (props) {
41038
41716
  return props.backgroundColor;
41039
41717
  });
41040
- 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) {
41718
+ var ChannelDetailsHeader = styled__default.div(_templateObject2$P || (_templateObject2$P = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n padding: 16px;\n position: relative;\n height: 64px;\n box-sizing: border-box;\n border-bottom: 1px solid ", ";\n\n & svg {\n cursor: pointer;\n }\n"])), function (props) {
41041
41719
  return props.borderColor;
41042
41720
  });
41043
- 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) {
41721
+ var ChatDetails = styled__default.div(_templateObject3$G || (_templateObject3$G = _taggedTemplateLiteralLoose(["\n //position: relative;\n width: ", ";\n //height: ", ";\n height: ", ";\n overflow-y: auto;\n\n &::-webkit-scrollbar {\n width: 8px;\n background: transparent;\n }\n &::-webkit-scrollbar-thumb {\n background: transparent;\n }\n\n &.show-scrollbar::-webkit-scrollbar-thumb {\n background: ", ";\n border-radius: 4px;\n }\n &.show-scrollbar::-webkit-scrollbar-track {\n background: transparent;\n }\n"])), function (props) {
41044
41722
  return props.size === 'small' ? '300px' : props.size === 'medium' ? '350px' : '400px';
41045
41723
  }, function (props) {
41046
41724
  return props.height ? "calc(100vh - " + props.heightOffset + "px)" : '100vh';
@@ -41049,37 +41727,37 @@ var ChatDetails = styled__default.div(_templateObject3$F || (_templateObject3$F
41049
41727
  }, function (props) {
41050
41728
  return props.thumbColor;
41051
41729
  });
41052
- var AboutChannel = styled__default.div(_templateObject4$z || (_templateObject4$z = _taggedTemplateLiteralLoose(["\n margin-top: 20px;\n"])));
41053
- 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) {
41730
+ var AboutChannel = styled__default.div(_templateObject4$A || (_templateObject4$A = _taggedTemplateLiteralLoose(["\n margin-top: 20px;\n"])));
41731
+ var AboutChannelTitle = styled__default.h4(_templateObject5$v || (_templateObject5$v = _taggedTemplateLiteralLoose(["\n font-size: 12px;\n margin: 0;\n line-height: 16px;\n color: ", ";\n"])), function (props) {
41054
41732
  return props.color;
41055
41733
  });
41056
- 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) {
41734
+ var AboutChannelText = styled__default.h3(_templateObject6$q || (_templateObject6$q = _taggedTemplateLiteralLoose(["\n font-size: 15px;\n margin: 0;\n font-weight: 400;\n line-height: 20px;\n color: ", ";\n"])), function (props) {
41057
41735
  return props.color;
41058
41736
  });
41059
- 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) {
41737
+ var ChannelInfo$4 = styled__default.div(_templateObject7$o || (_templateObject7$o = _taggedTemplateLiteralLoose(["\n position: relative;\n margin-left: ", ";\n margin-top: ", ";\n text-align: ", ";\n"])), function (props) {
41060
41738
  return (!props.direction || props.direction !== 'column') && '16px';
41061
41739
  }, function (props) {
41062
41740
  return props.direction && props.direction === 'column' && '16px';
41063
41741
  }, function (props) {
41064
41742
  return props.direction && props.direction === 'column' && 'center';
41065
41743
  });
41066
- 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) {
41744
+ var DetailsHeader = styled__default.div(_templateObject8$m || (_templateObject8$m = _taggedTemplateLiteralLoose(["\n border-bottom: 6px solid ", ";\n align-items: center;\n box-sizing: border-box;\n padding: 20px 16px;\n"])), function (props) {
41067
41745
  return props.borderColor;
41068
41746
  });
41069
- 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) {
41747
+ var ChannelAvatarAndName = styled__default.div(_templateObject9$h || (_templateObject9$h = _taggedTemplateLiteralLoose(["\n position: relative;\n display: flex;\n align-items: center;\n box-sizing: border-box;\n flex-direction: ", ";\n"])), function (props) {
41070
41748
  return props.direction;
41071
41749
  });
41072
- 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) {
41750
+ var ChannelName$1 = styled__default(SectionHeader)(_templateObject0$f || (_templateObject0$f = _taggedTemplateLiteralLoose(["\n white-space: nowrap;\n max-width: ", ";\n text-overflow: ellipsis;\n text-color: ", ";\n overflow: hidden;\n text-transform: ", ";\n"])), function (props) {
41073
41751
  return props.isDirect ? '200px' : '168px';
41074
41752
  }, function (props) {
41075
41753
  return props.color;
41076
41754
  }, function (props) {
41077
41755
  return props.uppercase && 'uppercase';
41078
41756
  });
41079
- var ChannelNameWrapper = styled__default.div(_templateObject1$b || (_templateObject1$b = _taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: center;\n"])));
41757
+ var ChannelNameWrapper = styled__default.div(_templateObject1$c || (_templateObject1$c = _taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: center;\n"])));
41080
41758
  var EditButton = styled__default.span(_templateObject10$7 || (_templateObject10$7 = _taggedTemplateLiteralLoose(["\n margin-left: 6px;\n cursor: pointer;\n color: #b2b6be;\n"])));
41081
41759
 
41082
- var _templateObject$W;
41760
+ var _templateObject$X;
41083
41761
  var ChannelDetailsContainer = function ChannelDetailsContainer(_ref) {
41084
41762
  var _ref$size = _ref.size,
41085
41763
  size = _ref$size === void 0 ? 'large' : _ref$size,
@@ -41308,7 +41986,7 @@ var ChannelDetailsContainer = function ChannelDetailsContainer(_ref) {
41308
41986
  showPhoneNumber: showPhoneNumber
41309
41987
  })));
41310
41988
  };
41311
- var DetailsWrapper = styled__default.div(_templateObject$W || (_templateObject$W = _taggedTemplateLiteralLoose([""])));
41989
+ var DetailsWrapper = styled__default.div(_templateObject$X || (_templateObject$X = _taggedTemplateLiteralLoose([""])));
41312
41990
 
41313
41991
  var _path$1s;
41314
41992
  function _extends$1w() {
@@ -41332,7 +42010,7 @@ function SvgChevronDown(props) {
41332
42010
  })));
41333
42011
  }
41334
42012
 
41335
- var _templateObject$X, _templateObject2$P;
42013
+ var _templateObject$Y, _templateObject2$Q;
41336
42014
  var MessagesScrollToBottomButton = function MessagesScrollToBottomButton(_ref) {
41337
42015
  var buttonIcon = _ref.buttonIcon,
41338
42016
  buttonWidth = _ref.buttonWidth,
@@ -41415,7 +42093,7 @@ var MessagesScrollToBottomButton = function MessagesScrollToBottomButton(_ref) {
41415
42093
  isMuted: channel.muted
41416
42094
  }, channel.newMessageCount ? channel.newMessageCount > 99 ? '99+' : channel.newMessageCount : '')), buttonIcon || /*#__PURE__*/React__default.createElement(SvgChevronDown, null)));
41417
42095
  };
41418
- 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) {
42096
+ var BottomButton = styled__default.div(_templateObject$Y || (_templateObject$Y = _taggedTemplateLiteralLoose(["\n transition: all 0.3s ease-in-out;\n position: absolute;\n ", ";\n\n ", ";\n\n ", ";\n right: ", "px;\n\n margin-right: 16px;\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: ", ";\n border: 0.5px solid rgba(0, 0, 0, 0.1);\n border-radius: 50px;\n width: 48px;\n height: 48px;\n cursor: pointer;\n z-index: 14;\n & > svg {\n color: rgba(129, 140, 153, 1);\n }\n\n & > span {\n bottom: 32px;\n right: 0;\n }\n"])), function (props) {
41419
42097
  return props.animateFrom === 'bottom' && "bottom: " + (props.bottomOffset + (props.bottomPosition === undefined ? 45 : props.bottomPosition) - 130) + "px";
41420
42098
  }, function (props) {
41421
42099
  return props.animateFrom === 'right' && "right: " + (props.rightPosition === undefined ? 16 : props.rightPosition - 100) + "px";
@@ -41426,7 +42104,7 @@ var BottomButton = styled__default.div(_templateObject$X || (_templateObject$X =
41426
42104
  }, function (props) {
41427
42105
  return props.backgroundColor;
41428
42106
  });
41429
- 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) {
42107
+ var UnreadCount$1 = styled__default.span(_templateObject2$Q || (_templateObject2$Q = _taggedTemplateLiteralLoose(["\n position: absolute;\n bottom: 11px;\n right: 16px;\n flex: 0 0 auto;\n margin-left: auto;\n background-color: ", ";\n padding: 0 4px;\n font-size: ", ";\n line-height: 20px;\n min-width: ", ";\n height: ", ";\n text-align: center;\n font-weight: 500;\n color: ", ";\n border-radius: 10px;\n box-sizing: border-box;\n"])), function (props) {
41430
42108
  return props.backgroundColor;
41431
42109
  }, function (props) {
41432
42110
  return props.fontSize || '13px';
@@ -41469,7 +42147,7 @@ function SvgMention(props) {
41469
42147
  })));
41470
42148
  }
41471
42149
 
41472
- var _templateObject$Y, _templateObject2$Q;
42150
+ var _templateObject$Z, _templateObject2$R;
41473
42151
  var MessagesScrollToUnreadMentionsButton = function MessagesScrollToUnreadMentionsButton(_ref) {
41474
42152
  var buttonIcon = _ref.buttonIcon,
41475
42153
  buttonWidth = _ref.buttonWidth,
@@ -41612,7 +42290,7 @@ var MessagesScrollToUnreadMentionsButton = function MessagesScrollToUnreadMentio
41612
42290
  isMuted: channel.muted
41613
42291
  }, channel.newMentionCount ? channel.newMentionCount > 99 ? '99+' : channel.newMentionCount : '')), buttonIcon || /*#__PURE__*/React__default.createElement(SvgMention, null)));
41614
42292
  };
41615
- 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) {
42293
+ var BottomButton$1 = styled__default.div(_templateObject$Z || (_templateObject$Z = _taggedTemplateLiteralLoose(["\n transition: all 0.3s ease-in-out;\n position: absolute;\n ", ";\n\n ", ";\n\n ", ";\n right: ", ";\n margin-right: 16px;\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: ", ";\n border: 0.5px solid rgba(0, 0, 0, 0.1);\n border-radius: 50px;\n width: 48px;\n height: 48px;\n cursor: pointer;\n z-index: 14;\n\n & > svg {\n color: rgba(129, 140, 153, 1);\n }\n\n & > span {\n bottom: 32px;\n right: 0;\n }\n"])), function (props) {
41616
42294
  return props.animateFrom === 'bottom' && "bottom: " + (props.bottomOffset + (props.bottomPosition === undefined ? 45 : props.bottomPosition) + (props.showsUnreadMentionsButton ? 60 : 0) - 180) + "px";
41617
42295
  }, function (props) {
41618
42296
  return props.animateFrom === 'right' && "right: " + (props.rightPosition === undefined ? 16 : props.rightPosition - 100) + "px";
@@ -41623,7 +42301,7 @@ var BottomButton$1 = styled__default.div(_templateObject$Y || (_templateObject$Y
41623
42301
  }, function (props) {
41624
42302
  return props.backgroundColor;
41625
42303
  });
41626
- 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) {
42304
+ var UnreadCount$2 = styled__default.span(_templateObject2$R || (_templateObject2$R = _taggedTemplateLiteralLoose(["\n position: absolute;\n bottom: 11px;\n right: 16px;\n flex: 0 0 auto;\n margin-left: auto;\n background-color: ", ";\n padding: 0 4px;\n font-size: ", ";\n line-height: 20px;\n min-width: ", ";\n height: ", ";\n text-align: center;\n font-weight: 500;\n color: ", ";\n border-radius: 10px;\n box-sizing: border-box;\n"])), function (props) {
41627
42305
  return props.backgroundColor;
41628
42306
  }, function (props) {
41629
42307
  return props.fontSize || '13px';