sceyt-chat-react-uikit 1.7.8-beta.12 → 1.7.8-beta.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.modern.js CHANGED
@@ -9334,7 +9334,10 @@ var initialState = {
9334
9334
  draftIsRemoved: '',
9335
9335
  channelInviteKeys: {},
9336
9336
  joinableChannel: null,
9337
- channelInviteKeyAvailable: true
9337
+ channelInviteKeyAvailable: true,
9338
+ mutualChannels: [],
9339
+ mutualChannelsHasNext: false,
9340
+ mutualChannelsLoadingState: null
9338
9341
  };
9339
9342
  var channelSlice = createSlice({
9340
9343
  name: 'channels',
@@ -9643,6 +9646,19 @@ var channelSlice = createSlice({
9643
9646
  },
9644
9647
  setChannelInviteKeyAvailable: function setChannelInviteKeyAvailable(state, action) {
9645
9648
  state.channelInviteKeyAvailable = action.payload.available;
9649
+ },
9650
+ setMutualChannels: function setMutualChannels(state, action) {
9651
+ if (action.payload.channels.length === 0 && state.mutualChannels.length > 0) {
9652
+ state.mutualChannels = [];
9653
+ } else {
9654
+ state.mutualChannels = [].concat(state.mutualChannels, action.payload.channels);
9655
+ }
9656
+ },
9657
+ setMutualChannelsHasNext: function setMutualChannelsHasNext(state, action) {
9658
+ state.mutualChannelsHasNext = action.payload.hasNext;
9659
+ },
9660
+ setMutualChannelsLoadingState: function setMutualChannelsLoadingState(state, action) {
9661
+ state.mutualChannelsLoadingState = action.payload.state;
9646
9662
  }
9647
9663
  },
9648
9664
  extraReducers: function extraReducers(builder) {
@@ -9688,7 +9704,10 @@ var _channelSlice$actions = channelSlice.actions,
9688
9704
  setDraftIsRemoved = _channelSlice$actions.setDraftIsRemoved,
9689
9705
  setChannelInviteKeys = _channelSlice$actions.setChannelInviteKeys,
9690
9706
  setJoinableChannel = _channelSlice$actions.setJoinableChannel,
9691
- setChannelInviteKeyAvailable = _channelSlice$actions.setChannelInviteKeyAvailable;
9707
+ setChannelInviteKeyAvailable = _channelSlice$actions.setChannelInviteKeyAvailable,
9708
+ setMutualChannels = _channelSlice$actions.setMutualChannels,
9709
+ setMutualChannelsHasNext = _channelSlice$actions.setMutualChannelsHasNext,
9710
+ setMutualChannelsLoadingState = _channelSlice$actions.setMutualChannelsLoadingState;
9692
9711
  var ChannelReducer = channelSlice.reducer;
9693
9712
 
9694
9713
  var CREATE_CHANNEL = 'CREATE_CHANNEL';
@@ -9728,6 +9747,8 @@ var DESTROY_SESSION = 'DESTROY_SESSION';
9728
9747
  var GET_CHANNEL_BY_INVITE_KEY = 'GET_CHANNEL_BY_INVITE_KEY';
9729
9748
  var JOIN_TO_CHANNEL_WITH_INVITE_KEY = 'JOIN_TO_CHANNEL_WITH_INVITE_KEY';
9730
9749
  var SET_MESSAGE_RETENTION_PERIOD = 'SET_MESSAGE_RETENTION_PERIOD';
9750
+ var GET_CHANNELS_WITH_USER = 'GET_CHANNELS_WITH_USER';
9751
+ var LOAD_MORE_MUTUAL_CHANNELS = 'LOAD_MORE_MUTUAL_CHANNELS';
9731
9752
  var CHANNEL_EVENT_TYPES = {
9732
9753
  POLL_ADDED: 'POLL_ADDED',
9733
9754
  POLL_DELETED: 'POLL_DELETED',
@@ -12898,6 +12919,37 @@ var setMessageRetentionPeriodAC = function setMessageRetentionPeriodAC(channelId
12898
12919
  }
12899
12920
  };
12900
12921
  };
12922
+ var getChannelsWithUserAC = function getChannelsWithUserAC(userId) {
12923
+ return {
12924
+ type: GET_CHANNELS_WITH_USER,
12925
+ payload: {
12926
+ userId: userId
12927
+ }
12928
+ };
12929
+ };
12930
+ var setMutualChannelsAC = function setMutualChannelsAC(channels) {
12931
+ return setMutualChannels({
12932
+ channels: channels
12933
+ });
12934
+ };
12935
+ var setMutualChannelsHasNextAC = function setMutualChannelsHasNextAC(hasNext) {
12936
+ return setMutualChannelsHasNext({
12937
+ hasNext: hasNext
12938
+ });
12939
+ };
12940
+ var setMutualChannelsLoadingStateAC = function setMutualChannelsLoadingStateAC(state) {
12941
+ return setMutualChannelsLoadingState({
12942
+ state: state
12943
+ });
12944
+ };
12945
+ var loadMoreMutualChannelsAC = function loadMoreMutualChannelsAC(limit) {
12946
+ return {
12947
+ type: LOAD_MORE_MUTUAL_CHANNELS,
12948
+ payload: {
12949
+ limit: limit
12950
+ }
12951
+ };
12952
+ };
12901
12953
 
12902
12954
  var getUsersAC = function getUsersAC(params) {
12903
12955
  return {
@@ -16115,7 +16167,9 @@ var _marked$2 = /*#__PURE__*/_regenerator().m(createChannel),
16115
16167
  _marked33 = /*#__PURE__*/_regenerator().m(getChannelByInviteKey),
16116
16168
  _marked34 = /*#__PURE__*/_regenerator().m(joinChannelWithInviteKey),
16117
16169
  _marked35 = /*#__PURE__*/_regenerator().m(setMessageRetentionPeriod),
16118
- _marked36 = /*#__PURE__*/_regenerator().m(ChannelsSaga);
16170
+ _marked36 = /*#__PURE__*/_regenerator().m(getChannelsWithUser),
16171
+ _marked37 = /*#__PURE__*/_regenerator().m(loadMoreMutualChannels),
16172
+ _marked38 = /*#__PURE__*/_regenerator().m(ChannelsSaga);
16119
16173
  function createChannel(action) {
16120
16174
  var payload, channelData, dontCreateIfNotExists, callback, SceytChatClient, createChannelData, fileToUpload, isSelfChannel, channelIsExistOnAllChannels, createdChannel, allChannels, memberId, checkChannelExist, messageToSend, _allChannels, _memberId, _t;
16121
16175
  return _regenerator().w(function (_context) {
@@ -18468,124 +18522,250 @@ function setMessageRetentionPeriod(action) {
18468
18522
  }
18469
18523
  }, _marked35, null, [[0, 5]]);
18470
18524
  }
18471
- function ChannelsSaga() {
18525
+ function getChannelsWithUser(action) {
18526
+ var payload, userId, _SceytChatClient10, channelsQueryBuilder, channelsQuery, channelsData, channels, _t36;
18472
18527
  return _regenerator().w(function (_context36) {
18473
- while (1) switch (_context36.n) {
18528
+ while (1) switch (_context36.p = _context36.n) {
18474
18529
  case 0:
18475
18530
  _context36.n = 1;
18476
- return takeLatest(CREATE_CHANNEL, createChannel);
18531
+ return put(setMutualChannelsLoadingStateAC(LOADING_STATE.LOADING));
18477
18532
  case 1:
18478
18533
  _context36.n = 2;
18479
- return takeLatest(GET_CHANNELS, getChannels);
18534
+ return put(setMutualChannelsAC([]));
18480
18535
  case 2:
18536
+ _context36.p = 2;
18537
+ payload = action.payload;
18538
+ userId = payload.userId;
18539
+ _SceytChatClient10 = getClient();
18540
+ channelsQueryBuilder = new _SceytChatClient10.ChannelListQueryBuilder();
18541
+ channelsQueryBuilder.memberCount(0);
18542
+ channelsQueryBuilder.setMutualWithUserId(userId);
18543
+ channelsQueryBuilder.limit(15);
18481
18544
  _context36.n = 3;
18482
- return takeLatest(SEARCH_CHANNELS, searchChannels);
18545
+ return call(channelsQueryBuilder.build);
18483
18546
  case 3:
18547
+ channelsQuery = _context36.v;
18548
+ query.mutualChannelsQuery = channelsQuery;
18484
18549
  _context36.n = 4;
18485
- return takeLatest(GET_CHANNELS_FOR_FORWARD, getChannelsForForward);
18550
+ return call(channelsQuery.loadNextPage);
18486
18551
  case 4:
18552
+ channelsData = _context36.v;
18553
+ channels = channelsData.channels;
18554
+ if (!channelsData.hasNext) {
18555
+ _context36.n = 6;
18556
+ break;
18557
+ }
18487
18558
  _context36.n = 5;
18488
- return takeLatest(SEARCH_CHANNELS_FOR_FORWARD, searchChannelsForForward);
18559
+ return put(setMutualChannelsHasNextAC(true));
18489
18560
  case 5:
18490
- _context36.n = 6;
18491
- return takeLatest(LOAD_MORE_CHANNEL, channelsLoadMore);
18561
+ _context36.n = 7;
18562
+ break;
18492
18563
  case 6:
18493
18564
  _context36.n = 7;
18494
- return takeLatest(LOAD_MORE_CHANNELS_FOR_FORWARD, channelsForForwardLoadMore);
18565
+ return put(setMutualChannelsHasNextAC(false));
18495
18566
  case 7:
18496
18567
  _context36.n = 8;
18497
- return takeEvery(SWITCH_CHANNEL, switchChannel);
18568
+ return put(setMutualChannelsAC(channels));
18498
18569
  case 8:
18499
- _context36.n = 9;
18500
- return takeLatest(LEAVE_CHANNEL, leaveChannel);
18501
- case 9:
18502
18570
  _context36.n = 10;
18503
- return takeLatest(DELETE_CHANNEL, deleteChannel);
18571
+ break;
18572
+ case 9:
18573
+ _context36.p = 9;
18574
+ _t36 = _context36.v;
18575
+ log.error('ERROR in get groups in common', _t36);
18504
18576
  case 10:
18577
+ _context36.p = 10;
18505
18578
  _context36.n = 11;
18506
- return takeLatest(BLOCK_CHANNEL, blockChannel);
18579
+ return put(setMutualChannelsLoadingStateAC(LOADING_STATE.LOADED));
18507
18580
  case 11:
18508
- _context36.n = 12;
18509
- return takeLatest(UPDATE_CHANNEL, updateChannel);
18581
+ return _context36.f(10);
18510
18582
  case 12:
18511
- _context36.n = 13;
18512
- return takeEvery(MARK_MESSAGES_AS_READ, markMessagesRead);
18583
+ return _context36.a(2);
18584
+ }
18585
+ }, _marked36, null, [[2, 9, 10, 12]]);
18586
+ }
18587
+ function loadMoreMutualChannels(action) {
18588
+ var payload, limit, mutualChannelsQuery, channelsData, _t37;
18589
+ return _regenerator().w(function (_context37) {
18590
+ while (1) switch (_context37.p = _context37.n) {
18591
+ case 0:
18592
+ _context37.n = 1;
18593
+ return put(setMutualChannelsLoadingStateAC(LOADING_STATE.LOADING));
18594
+ case 1:
18595
+ _context37.p = 1;
18596
+ payload = action.payload;
18597
+ limit = payload.limit;
18598
+ mutualChannelsQuery = query.mutualChannelsQuery;
18599
+ if (mutualChannelsQuery) {
18600
+ _context37.n = 2;
18601
+ break;
18602
+ }
18603
+ return _context37.a(2);
18604
+ case 2:
18605
+ if (limit) {
18606
+ mutualChannelsQuery.limit = limit;
18607
+ }
18608
+ _context37.n = 3;
18609
+ return call(mutualChannelsQuery.loadNextPage);
18610
+ case 3:
18611
+ channelsData = _context37.v;
18612
+ if (!channelsData.hasNext) {
18613
+ _context37.n = 5;
18614
+ break;
18615
+ }
18616
+ _context37.n = 4;
18617
+ return put(setMutualChannelsHasNextAC(true));
18618
+ case 4:
18619
+ _context37.n = 6;
18620
+ break;
18621
+ case 5:
18622
+ _context37.n = 6;
18623
+ return put(setMutualChannelsHasNextAC(false));
18624
+ case 6:
18625
+ _context37.n = 7;
18626
+ return put(setMutualChannelsAC(channelsData.channels));
18627
+ case 7:
18628
+ _context37.n = 9;
18629
+ break;
18630
+ case 8:
18631
+ _context37.p = 8;
18632
+ _t37 = _context37.v;
18633
+ log.error('ERROR in load more mutual channels', _t37);
18634
+ case 9:
18635
+ _context37.p = 9;
18636
+ _context37.n = 10;
18637
+ return put(setMutualChannelsLoadingStateAC(LOADING_STATE.LOADED));
18638
+ case 10:
18639
+ return _context37.f(9);
18640
+ case 11:
18641
+ return _context37.a(2);
18642
+ }
18643
+ }, _marked37, null, [[1, 8, 9, 11]]);
18644
+ }
18645
+ function ChannelsSaga() {
18646
+ return _regenerator().w(function (_context38) {
18647
+ while (1) switch (_context38.n) {
18648
+ case 0:
18649
+ _context38.n = 1;
18650
+ return takeLatest(CREATE_CHANNEL, createChannel);
18651
+ case 1:
18652
+ _context38.n = 2;
18653
+ return takeLatest(GET_CHANNELS, getChannels);
18654
+ case 2:
18655
+ _context38.n = 3;
18656
+ return takeLatest(SEARCH_CHANNELS, searchChannels);
18657
+ case 3:
18658
+ _context38.n = 4;
18659
+ return takeLatest(GET_CHANNELS_FOR_FORWARD, getChannelsForForward);
18660
+ case 4:
18661
+ _context38.n = 5;
18662
+ return takeLatest(SEARCH_CHANNELS_FOR_FORWARD, searchChannelsForForward);
18663
+ case 5:
18664
+ _context38.n = 6;
18665
+ return takeLatest(LOAD_MORE_CHANNEL, channelsLoadMore);
18666
+ case 6:
18667
+ _context38.n = 7;
18668
+ return takeLatest(LOAD_MORE_CHANNELS_FOR_FORWARD, channelsForForwardLoadMore);
18669
+ case 7:
18670
+ _context38.n = 8;
18671
+ return takeLatest(GET_CHANNELS_WITH_USER, getChannelsWithUser);
18672
+ case 8:
18673
+ _context38.n = 9;
18674
+ return takeLatest(LOAD_MORE_MUTUAL_CHANNELS, loadMoreMutualChannels);
18675
+ case 9:
18676
+ _context38.n = 10;
18677
+ return takeEvery(SWITCH_CHANNEL, switchChannel);
18678
+ case 10:
18679
+ _context38.n = 11;
18680
+ return takeLatest(LEAVE_CHANNEL, leaveChannel);
18681
+ case 11:
18682
+ _context38.n = 12;
18683
+ return takeLatest(DELETE_CHANNEL, deleteChannel);
18684
+ case 12:
18685
+ _context38.n = 13;
18686
+ return takeLatest(BLOCK_CHANNEL, blockChannel);
18513
18687
  case 13:
18514
- _context36.n = 14;
18515
- return takeLatest(MARK_MESSAGES_AS_DELIVERED, markMessagesDelivered);
18688
+ _context38.n = 14;
18689
+ return takeLatest(UPDATE_CHANNEL, updateChannel);
18516
18690
  case 14:
18517
- _context36.n = 15;
18518
- return takeLatest(MARK_VOICE_MESSAGE_AS_PLAYED, markVoiceMessageAsPlayed);
18691
+ _context38.n = 15;
18692
+ return takeEvery(MARK_MESSAGES_AS_READ, markMessagesRead);
18519
18693
  case 15:
18520
- _context36.n = 16;
18521
- return takeLatest(WATCH_FOR_EVENTS, watchForChannelEvents);
18694
+ _context38.n = 16;
18695
+ return takeLatest(MARK_MESSAGES_AS_DELIVERED, markMessagesDelivered);
18522
18696
  case 16:
18523
- _context36.n = 17;
18524
- return takeLatest(TURN_OFF_NOTIFICATION, notificationsTurnOff);
18697
+ _context38.n = 17;
18698
+ return takeLatest(MARK_VOICE_MESSAGE_AS_PLAYED, markVoiceMessageAsPlayed);
18525
18699
  case 17:
18526
- _context36.n = 18;
18527
- return takeLatest(TURN_ON_NOTIFICATION, notificationsTurnOn);
18700
+ _context38.n = 18;
18701
+ return takeLatest(WATCH_FOR_EVENTS, watchForChannelEvents);
18528
18702
  case 18:
18529
- _context36.n = 19;
18530
- return takeLatest(MARK_CHANNEL_AS_READ, markChannelAsRead);
18703
+ _context38.n = 19;
18704
+ return takeLatest(TURN_OFF_NOTIFICATION, notificationsTurnOff);
18531
18705
  case 19:
18532
- _context36.n = 20;
18533
- return takeLatest(MARK_CHANNEL_AS_UNREAD, markChannelAsUnRead);
18706
+ _context38.n = 20;
18707
+ return takeLatest(TURN_ON_NOTIFICATION, notificationsTurnOn);
18534
18708
  case 20:
18535
- _context36.n = 21;
18536
- return takeLatest(CHECK_USER_STATUS, checkUsersStatus);
18709
+ _context38.n = 21;
18710
+ return takeLatest(MARK_CHANNEL_AS_READ, markChannelAsRead);
18537
18711
  case 21:
18538
- _context36.n = 22;
18539
- return takeLatest(SEND_TYPING, sendTyping);
18712
+ _context38.n = 22;
18713
+ return takeLatest(MARK_CHANNEL_AS_UNREAD, markChannelAsUnRead);
18540
18714
  case 22:
18541
- _context36.n = 23;
18542
- return takeLatest(SEND_RECORDING, sendRecording);
18715
+ _context38.n = 23;
18716
+ return takeLatest(CHECK_USER_STATUS, checkUsersStatus);
18543
18717
  case 23:
18544
- _context36.n = 24;
18545
- return takeLatest(PIN_CHANNEL, pinChannel);
18718
+ _context38.n = 24;
18719
+ return takeLatest(SEND_TYPING, sendTyping);
18546
18720
  case 24:
18547
- _context36.n = 25;
18548
- return takeLatest(UNPIN_CHANNEL, unpinChannel);
18721
+ _context38.n = 25;
18722
+ return takeLatest(SEND_RECORDING, sendRecording);
18549
18723
  case 25:
18550
- _context36.n = 26;
18551
- return takeLatest(CLEAR_HISTORY, clearHistory);
18724
+ _context38.n = 26;
18725
+ return takeLatest(PIN_CHANNEL, pinChannel);
18552
18726
  case 26:
18553
- _context36.n = 27;
18554
- return takeLatest(JOIN_TO_CHANNEL, joinChannel);
18727
+ _context38.n = 27;
18728
+ return takeLatest(UNPIN_CHANNEL, unpinChannel);
18555
18729
  case 27:
18556
- _context36.n = 28;
18557
- return takeLatest(DELETE_ALL_MESSAGES, deleteAllMessages);
18730
+ _context38.n = 28;
18731
+ return takeLatest(CLEAR_HISTORY, clearHistory);
18558
18732
  case 28:
18559
- _context36.n = 29;
18560
- return takeLatest(REMOVE_CHANNEL_CACHES, removeChannelCaches);
18733
+ _context38.n = 29;
18734
+ return takeLatest(JOIN_TO_CHANNEL, joinChannel);
18561
18735
  case 29:
18562
- _context36.n = 30;
18563
- return takeLatest(GET_CHANNEL_MENTIONS, getChannelMentions);
18736
+ _context38.n = 30;
18737
+ return takeLatest(DELETE_ALL_MESSAGES, deleteAllMessages);
18564
18738
  case 30:
18565
- _context36.n = 31;
18566
- return takeLatest(CREATE_CHANNEL_INVITE_KEY, createChannelInviteKey);
18739
+ _context38.n = 31;
18740
+ return takeLatest(REMOVE_CHANNEL_CACHES, removeChannelCaches);
18567
18741
  case 31:
18568
- _context36.n = 32;
18569
- return takeLatest(UPDATE_CHANNEL_INVITE_KEY, updateChannelInviteKey);
18742
+ _context38.n = 32;
18743
+ return takeLatest(GET_CHANNEL_MENTIONS, getChannelMentions);
18570
18744
  case 32:
18571
- _context36.n = 33;
18572
- return takeLatest(REGENERATE_CHANNEL_INVITE_KEY, regenerateChannelInviteKey);
18745
+ _context38.n = 33;
18746
+ return takeLatest(CREATE_CHANNEL_INVITE_KEY, createChannelInviteKey);
18573
18747
  case 33:
18574
- _context36.n = 34;
18575
- return takeLatest(GET_CHANNEL_INVITE_KEYS, getChannelInviteKeys);
18748
+ _context38.n = 34;
18749
+ return takeLatest(UPDATE_CHANNEL_INVITE_KEY, updateChannelInviteKey);
18576
18750
  case 34:
18577
- _context36.n = 35;
18578
- return takeLatest(GET_CHANNEL_BY_INVITE_KEY, getChannelByInviteKey);
18751
+ _context38.n = 35;
18752
+ return takeLatest(REGENERATE_CHANNEL_INVITE_KEY, regenerateChannelInviteKey);
18579
18753
  case 35:
18580
- _context36.n = 36;
18581
- return takeLatest(JOIN_TO_CHANNEL_WITH_INVITE_KEY, joinChannelWithInviteKey);
18754
+ _context38.n = 36;
18755
+ return takeLatest(GET_CHANNEL_INVITE_KEYS, getChannelInviteKeys);
18582
18756
  case 36:
18583
- _context36.n = 37;
18584
- return takeLatest(SET_MESSAGE_RETENTION_PERIOD, setMessageRetentionPeriod);
18757
+ _context38.n = 37;
18758
+ return takeLatest(GET_CHANNEL_BY_INVITE_KEY, getChannelByInviteKey);
18585
18759
  case 37:
18586
- return _context36.a(2);
18760
+ _context38.n = 38;
18761
+ return takeLatest(JOIN_TO_CHANNEL_WITH_INVITE_KEY, joinChannelWithInviteKey);
18762
+ case 38:
18763
+ _context38.n = 39;
18764
+ return takeLatest(SET_MESSAGE_RETENTION_PERIOD, setMessageRetentionPeriod);
18765
+ case 39:
18766
+ return _context38.a(2);
18587
18767
  }
18588
- }, _marked36);
18768
+ }, _marked38);
18589
18769
  }
18590
18770
 
18591
18771
  function rgbaToThumbHash(w, h, rgba) {
@@ -23333,6 +23513,15 @@ var joinableChannelSelector = function joinableChannelSelector(store) {
23333
23513
  var channelInviteKeyAvailableSelector = function channelInviteKeyAvailableSelector(store) {
23334
23514
  return store.ChannelReducer.channelInviteKeyAvailable;
23335
23515
  };
23516
+ var mutualChannelsSelector = function mutualChannelsSelector(store) {
23517
+ return store.ChannelReducer.mutualChannels;
23518
+ };
23519
+ var mutualChannelsHasNextSelector = function mutualChannelsHasNextSelector(store) {
23520
+ return store.ChannelReducer.mutualChannelsHasNext;
23521
+ };
23522
+ var mutualChannelsLoadingStateSelector = function mutualChannelsLoadingStateSelector(store) {
23523
+ return store.ChannelReducer.mutualChannelsLoadingState;
23524
+ };
23336
23525
 
23337
23526
  var activeChannelMembersSelector = function activeChannelMembersSelector(store) {
23338
23527
  return store.MembersReducer.activeChannelMembers;
@@ -40998,9 +41187,8 @@ function useFormatMessage(editor, editorState, setMessageBodyAttributes, setMess
40998
41187
  }
40999
41188
  }
41000
41189
  if (matches.length === 0) {
41001
- nodes.push($createTextNode(pastedText));
41002
- }
41003
- if (nodes.length > 0) {
41190
+ selection.insertText(pastedText);
41191
+ } else if (nodes.length > 0) {
41004
41192
  selection.insertNodes(nodes);
41005
41193
  }
41006
41194
  }
@@ -44147,7 +44335,9 @@ var SendMessageInput = function SendMessageInput(_ref3) {
44147
44335
  })) : messageForReply.attachments[0].type === attachmentTypes.file && (/*#__PURE__*/React__default.createElement(ReplyIconWrapper, {
44148
44336
  backgroundColor: accentColor,
44149
44337
  iconColor: textOnPrimary
44150
- }, /*#__PURE__*/React__default.createElement(SvgChoseFile, null)))), /*#__PURE__*/React__default.createElement(ReplyMessageBody$1, null, /*#__PURE__*/React__default.createElement(EditReplyMessageHeader, {
44338
+ }, /*#__PURE__*/React__default.createElement(SvgChoseFile, null)))), /*#__PURE__*/React__default.createElement(ReplyMessageBody$1, {
44339
+ linkColor: accentColor
44340
+ }, /*#__PURE__*/React__default.createElement(EditReplyMessageHeader, {
44151
44341
  color: accentColor
44152
44342
  }, replyMessageIcon || /*#__PURE__*/React__default.createElement(SvgReplyIcon, null), " Reply to", /*#__PURE__*/React__default.createElement(UserName$1, null, user.id === messageForReply.user.id ? user.firstName ? user.firstName + " " + user.lastName : user.id : makeUsername(contactsMap[messageForReply.user.id], messageForReply.user, getFromContacts))), messageForReply.attachments && messageForReply.attachments.length ? messageForReply.attachments[0].type === attachmentTypes.voice ? 'Voice' : messageForReply.body && messageForReply.bodyAttributes && messageForReply.bodyAttributes.length > 0 ? MessageTextFormat({
44153
44343
  text: messageForReply.body,
@@ -44395,7 +44585,9 @@ var CloseEditMode = styled.span(_templateObject6$q || (_templateObject6$q = _tag
44395
44585
  return props.color;
44396
44586
  });
44397
44587
  var UserName$1 = styled.span(_templateObject7$p || (_templateObject7$p = _taggedTemplateLiteralLoose(["\n font-weight: 500;\n margin-left: 4px;\n"])));
44398
- var ReplyMessageBody$1 = styled.div(_templateObject8$m || (_templateObject8$m = _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"])));
44588
+ var ReplyMessageBody$1 = styled.div(_templateObject8$m || (_templateObject8$m = _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 a {\n color: ", ";\n }\n"])), function (props) {
44589
+ return props.linkColor;
44590
+ });
44399
44591
  var EditReplyMessageHeader = styled.h4(_templateObject9$j || (_templateObject9$j = _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) {
44400
44592
  return props.color;
44401
44593
  });
@@ -44793,6 +44985,29 @@ function SvgChevronBottom(props) {
44793
44985
  })));
44794
44986
  }
44795
44987
 
44988
+ var _path$1v;
44989
+ function _extends$1z() {
44990
+ return _extends$1z = Object.assign ? Object.assign.bind() : function (n) {
44991
+ for (var e = 1; e < arguments.length; e++) {
44992
+ var t = arguments[e];
44993
+ for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
44994
+ }
44995
+ return n;
44996
+ }, _extends$1z.apply(null, arguments);
44997
+ }
44998
+ function SvgUsers(props) {
44999
+ return /*#__PURE__*/createElement$1("svg", _extends$1z({
45000
+ width: 24,
45001
+ height: 24,
45002
+ viewBox: "0 0 20 20",
45003
+ fill: "none",
45004
+ xmlns: "http://www.w3.org/2000/svg"
45005
+ }, props), _path$1v || (_path$1v = /*#__PURE__*/createElement$1("path", {
45006
+ d: "M13.75 10.625c1.911 0 5.416.714 5.416 3.571 0 1.25-.318 1.429-.956 1.429h-5.075c.132-.407.198-.885.198-1.429 0-1.436-.526-2.556-1.393-3.385a9.226 9.226 0 011.81-.186zm-7.5 0c1.911 0 5.416.714 5.416 3.571 0 1.25-.318 1.429-.956 1.429H1.79c-.637 0-.956-.179-.956-1.429 0-2.857 3.505-3.571 5.417-3.571zm0-6.25a2.5 2.5 0 11.001 4.998 2.5 2.5 0 01-.001-4.998zm7.5 0a2.5 2.5 0 11.001 4.998 2.5 2.5 0 01-.001-4.998z",
45007
+ fill: "#818C99"
45008
+ })));
45009
+ }
45010
+
44796
45011
  var _templateObject$S, _templateObject2$N, _templateObject3$G;
44797
45012
  function NetworkErrorPopup(_ref) {
44798
45013
  var theme = _ref.theme,
@@ -45098,7 +45313,185 @@ var CustomDropdownOptionsUl = styled(DropdownOptionsUl)(_templateObject7$q || (_
45098
45313
  }, CustomDropdownOptionLi);
45099
45314
  var SetButton = styled(Button)(_templateObject8$n || (_templateObject8$n = _taggedTemplateLiteralLoose(["\n width: 57px;\n height: 36px;\n min-width: 57px;\n max-width: 57px;\n padding: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n"])));
45100
45315
 
45101
- var _templateObject$U, _templateObject2$P, _templateObject3$I, _templateObject4$B, _templateObject5$w, _templateObject6$s, _templateObject7$r, _templateObject8$o, _templateObject9$k, _templateObject0$i, _templateObject1$f, _templateObject10$9, _templateObject11$7, _templateObject12$6, _templateObject13$4, _templateObject14$3, _templateObject15$3, _templateObject16$3, _templateObject17$3, _templateObject18$3, _templateObject19$3, _templateObject20$3;
45316
+ var _templateObject$U, _templateObject2$P, _templateObject3$I, _templateObject4$B, _templateObject5$w, _templateObject6$s, _templateObject7$r, _templateObject8$o;
45317
+ var formatMemberCount = function formatMemberCount(count, channelType) {
45318
+ if (channelType === DEFAULT_CHANNEL_TYPE.BROADCAST || channelType === DEFAULT_CHANNEL_TYPE.PUBLIC) {
45319
+ return count + " " + (count > 1 ? 'subscribers' : 'subscriber');
45320
+ }
45321
+ return count + " " + (count > 1 ? 'members' : 'member');
45322
+ };
45323
+ var MutualChannelItem = function MutualChannelItem(_ref) {
45324
+ var channel = _ref.channel,
45325
+ backgroundHovered = _ref.backgroundHovered,
45326
+ textPrimary = _ref.textPrimary,
45327
+ textSecondary = _ref.textSecondary,
45328
+ currentUser = _ref.currentUser,
45329
+ contactsMap = _ref.contactsMap,
45330
+ getFromContacts = _ref.getFromContacts,
45331
+ iconPrimary = _ref.iconPrimary,
45332
+ activeChannel = _ref.activeChannel,
45333
+ togglePopup = _ref.togglePopup;
45334
+ var dispatch = useDispatch();
45335
+ var setSelectedChannel = function setSelectedChannel(channel) {
45336
+ if (activeChannel.id !== channel.id) {
45337
+ dispatch(clearMessagesAC());
45338
+ dispatch(switchChannelActionAC(channel));
45339
+ togglePopup();
45340
+ }
45341
+ };
45342
+ var isDirectChannel = useMemo(function () {
45343
+ return channel.type === DEFAULT_CHANNEL_TYPE.DIRECT;
45344
+ }, [channel.type]);
45345
+ var directChannelUser = useMemo(function () {
45346
+ return isDirectChannel && channel.members.find(function (member) {
45347
+ return member.id !== (currentUser === null || currentUser === void 0 ? void 0 : currentUser.id) || '';
45348
+ });
45349
+ }, [isDirectChannel, channel.members, currentUser === null || currentUser === void 0 ? void 0 : currentUser.id]);
45350
+ var avatarName = useMemo(function () {
45351
+ return channel.subject || (isDirectChannel && directChannelUser ? directChannelUser.firstName || directChannelUser.id : '');
45352
+ }, [channel.subject, isDirectChannel, directChannelUser]);
45353
+ return /*#__PURE__*/React__default.createElement(ChannelItem$1, {
45354
+ key: "mutual-channel-" + channel.id,
45355
+ backgroundHover: backgroundHovered,
45356
+ onClick: function onClick() {
45357
+ return setSelectedChannel(channel);
45358
+ }
45359
+ }, /*#__PURE__*/React__default.createElement(Avatar, {
45360
+ name: avatarName,
45361
+ image: channel.avatarUrl || (isDirectChannel && directChannelUser ? directChannelUser === null || directChannelUser === void 0 ? void 0 : directChannelUser.avatarUrl : ''),
45362
+ size: 40,
45363
+ textSize: 12,
45364
+ setDefaultAvatar: isDirectChannel
45365
+ }), /*#__PURE__*/React__default.createElement(ChannelInfo$4, null, /*#__PURE__*/React__default.createElement(ChannelTitle$1, {
45366
+ color: textPrimary
45367
+ }, channel.subject || (isDirectChannel && directChannelUser ? makeUsername(contactsMap[directChannelUser.id], directChannelUser, getFromContacts) : '')), /*#__PURE__*/React__default.createElement(ChannelMembers$1, {
45368
+ color: textSecondary
45369
+ }, formatMemberCount(channel.memberCount, channel.type))), /*#__PURE__*/React__default.createElement(ChevronRightIconWrapper, null, /*#__PURE__*/React__default.createElement(SvgChevronBottom, {
45370
+ color: iconPrimary
45371
+ })));
45372
+ };
45373
+ var GroupsInCommonPopup = function GroupsInCommonPopup(_ref2) {
45374
+ var theme = _ref2.theme,
45375
+ togglePopup = _ref2.togglePopup,
45376
+ user = _ref2.user;
45377
+ var ChatClient = getClient();
45378
+ var currentUser = ChatClient.user;
45379
+ var _useColor = useColors(),
45380
+ textPrimary = _useColor[THEME_COLORS.TEXT_PRIMARY],
45381
+ textSecondary = _useColor[THEME_COLORS.TEXT_SECONDARY],
45382
+ background = _useColor[THEME_COLORS.BACKGROUND],
45383
+ iconPrimary = _useColor[THEME_COLORS.ICON_PRIMARY],
45384
+ backgroundHovered = _useColor[THEME_COLORS.BACKGROUND_HOVERED];
45385
+ var contactsMap = useSelector(contactsMapSelector);
45386
+ var getFromContacts = getShowOnlyContactUsers();
45387
+ var dispatch = useDispatch();
45388
+ var mutualChannels = useSelector(mutualChannelsSelector) || [];
45389
+ var mutualChannelsHasNext = useSelector(mutualChannelsHasNextSelector);
45390
+ var mutualChannelsLoadingState = useSelector(mutualChannelsLoadingStateSelector);
45391
+ var connectionStatus = useSelector(connectionStatusSelector);
45392
+ var activeChannel = useSelector(activeChannelSelector);
45393
+ var _useState = useState(false),
45394
+ isScrolling = _useState[0],
45395
+ setIsScrolling = _useState[1];
45396
+ var loadingRef = useRef(false);
45397
+ var isLoading = mutualChannelsLoadingState === LOADING_STATE.LOADING;
45398
+ var isLoadingInitial = mutualChannels.length === 0 && isLoading;
45399
+ useEffect(function () {
45400
+ if (mutualChannelsLoadingState === LOADING_STATE.LOADED) {
45401
+ loadingRef.current = false;
45402
+ }
45403
+ }, [mutualChannelsLoadingState]);
45404
+ var handleScroll = useCallback(function (event) {
45405
+ var target = event.currentTarget;
45406
+ var isNearBottom = target.scrollTop >= target.scrollHeight - target.offsetHeight - 100;
45407
+ if (isNearBottom && mutualChannelsHasNext && !isLoading && !loadingRef.current) {
45408
+ loadingRef.current = true;
45409
+ dispatch(loadMoreMutualChannelsAC(15));
45410
+ }
45411
+ }, [mutualChannelsHasNext, isLoading, dispatch]);
45412
+ useEffect(function () {
45413
+ console.log('connectionStatus', connectionStatus, 'mutualChannels', !(mutualChannels !== null && mutualChannels !== void 0 && mutualChannels.length), 'user', user === null || user === void 0 ? void 0 : user.id);
45414
+ if (connectionStatus === CONNECTION_STATUS.CONNECTED && !(mutualChannels !== null && mutualChannels !== void 0 && mutualChannels.length)) {
45415
+ if (user !== null && user !== void 0 && user.id) {
45416
+ dispatch(getChannelsWithUserAC(user.id));
45417
+ }
45418
+ }
45419
+ }, [connectionStatus, dispatch, user === null || user === void 0 ? void 0 : user.id, mutualChannels === null || mutualChannels === void 0 ? void 0 : mutualChannels.length]);
45420
+ useEffect(function () {
45421
+ return function () {
45422
+ dispatch(setMutualChannelsAC([]));
45423
+ };
45424
+ }, [dispatch]);
45425
+ return /*#__PURE__*/React__default.createElement(PopupContainer, null, /*#__PURE__*/React__default.createElement(Popup, {
45426
+ theme: theme,
45427
+ backgroundColor: background,
45428
+ maxWidth: '520px',
45429
+ minWidth: '520px',
45430
+ isLoading: isLoadingInitial,
45431
+ padding: '0'
45432
+ }, /*#__PURE__*/React__default.createElement(PopupBody, {
45433
+ paddingH: '24px',
45434
+ paddingV: '24px'
45435
+ }, /*#__PURE__*/React__default.createElement(CloseIcon, {
45436
+ color: iconPrimary,
45437
+ onClick: togglePopup
45438
+ }), /*#__PURE__*/React__default.createElement(PopupName, {
45439
+ color: textPrimary,
45440
+ marginBottom: '20px'
45441
+ }, "Groups in common"), /*#__PURE__*/React__default.createElement(ChannelsList$1, {
45442
+ onScroll: handleScroll,
45443
+ className: isScrolling ? 'show-scrollbar' : '',
45444
+ onMouseEnter: function onMouseEnter() {
45445
+ return setIsScrolling(true);
45446
+ },
45447
+ onMouseLeave: function onMouseLeave() {
45448
+ return setIsScrolling(false);
45449
+ },
45450
+ thumbColor: background
45451
+ }, isLoadingInitial ? (/*#__PURE__*/React__default.createElement(LoadingText$1, {
45452
+ color: textSecondary
45453
+ }, "Loading...")) : mutualChannels.length > 0 ? mutualChannels.map(function (channel) {
45454
+ return /*#__PURE__*/React__default.createElement(MutualChannelItem, {
45455
+ key: "mutual-channel-" + channel.id,
45456
+ channel: channel,
45457
+ backgroundHovered: backgroundHovered,
45458
+ textPrimary: textPrimary,
45459
+ textSecondary: textSecondary,
45460
+ currentUser: currentUser,
45461
+ contactsMap: contactsMap,
45462
+ getFromContacts: getFromContacts,
45463
+ iconPrimary: iconPrimary,
45464
+ activeChannel: activeChannel,
45465
+ togglePopup: togglePopup
45466
+ });
45467
+ }) : (/*#__PURE__*/React__default.createElement(EmptyText, {
45468
+ color: textSecondary
45469
+ }, "No groups in common")), isLoading && mutualChannels.length > 0 && /*#__PURE__*/React__default.createElement(LoadingText$1, {
45470
+ color: textSecondary
45471
+ }, "Loading more...")))));
45472
+ };
45473
+ var ChannelsList$1 = styled.div(_templateObject$U || (_templateObject$U = _taggedTemplateLiteralLoose(["\n max-height: 400px;\n overflow-y: auto;\n overflow-x: hidden;\n padding-right: 8px;\n\n &::-webkit-scrollbar {\n width: 6px;\n }\n\n &::-webkit-scrollbar-track {\n background: transparent;\n }\n\n &::-webkit-scrollbar-thumb {\n background: ", ";\n border-radius: 3px;\n opacity: 0.3;\n }\n\n &.show-scrollbar::-webkit-scrollbar-thumb {\n opacity: 0.6;\n }\n"])), function (props) {
45474
+ return props.thumbColor;
45475
+ });
45476
+ var ChannelItem$1 = styled.div(_templateObject2$P || (_templateObject2$P = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n padding: 6px 2px 6px 6px;\n border-radius: 8px;\n cursor: pointer;\n transition: background-color 0.2s;\n\n &:hover {\n background-color: ", ";\n }\n"])), function (props) {
45477
+ return props.backgroundHover;
45478
+ });
45479
+ var ChannelInfo$4 = styled.div(_templateObject3$I || (_templateObject3$I = _taggedTemplateLiteralLoose(["\n flex: 1;\n margin-left: 12px;\n min-width: 0;\n"])));
45480
+ var ChannelTitle$1 = styled.div(_templateObject4$B || (_templateObject4$B = _taggedTemplateLiteralLoose(["\n font-size: 15px;\n font-weight: 500;\n line-height: 20px;\n color: ", ";\n margin-bottom: 4px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n"])), function (props) {
45481
+ return props.color;
45482
+ });
45483
+ var ChannelMembers$1 = styled.div(_templateObject5$w || (_templateObject5$w = _taggedTemplateLiteralLoose(["\n font-size: 13px;\n line-height: 16px;\n color: ", ";\n"])), function (props) {
45484
+ return props.color;
45485
+ });
45486
+ var LoadingText$1 = styled.div(_templateObject6$s || (_templateObject6$s = _taggedTemplateLiteralLoose(["\n text-align: center;\n padding: 20px;\n font-size: 14px;\n color: ", ";\n"])), function (props) {
45487
+ return props.color;
45488
+ });
45489
+ var EmptyText = styled.div(_templateObject7$r || (_templateObject7$r = _taggedTemplateLiteralLoose(["\n text-align: center;\n padding: 40px 20px;\n font-size: 14px;\n color: ", ";\n"])), function (props) {
45490
+ return props.color;
45491
+ });
45492
+ var ChevronRightIconWrapper = styled.span(_templateObject8$o || (_templateObject8$o = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n\n & > svg {\n width: 16px;\n height: 16px;\n transform: rotate(-90deg);\n }\n"])));
45493
+
45494
+ var _templateObject$V, _templateObject2$Q, _templateObject3$J, _templateObject4$C, _templateObject5$x, _templateObject6$t, _templateObject7$s, _templateObject8$p, _templateObject9$k, _templateObject0$i, _templateObject1$f, _templateObject10$9, _templateObject11$7, _templateObject12$6, _templateObject13$4, _templateObject14$3, _templateObject15$3, _templateObject16$3, _templateObject17$3, _templateObject18$3, _templateObject19$3, _templateObject20$3;
45102
45495
  var Actions = function Actions(_ref) {
45103
45496
  var _getDisappearingSetti;
45104
45497
  var setActionsHeight = _ref.setActionsHeight,
@@ -45173,7 +45566,12 @@ var Actions = function Actions(_ref) {
45173
45566
  deleteAllMessagesIcon = _ref.deleteAllMessagesIcon,
45174
45567
  deleteAllMessagesTextColor = _ref.deleteAllMessagesTextColor,
45175
45568
  actionItemsFontSize = _ref.actionItemsFontSize,
45176
- borderColor = _ref.borderColor;
45569
+ borderColor = _ref.borderColor,
45570
+ commonGroupsOrder = _ref.commonGroupsOrder,
45571
+ commonGroupsIcon = _ref.commonGroupsIcon,
45572
+ commonGroupsIconColor = _ref.commonGroupsIconColor,
45573
+ commonGroupsTextColor = _ref.commonGroupsTextColor,
45574
+ showGroupsInCommon = _ref.showGroupsInCommon;
45177
45575
  var _useColor = useColors(),
45178
45576
  textPrimary = _useColor[THEME_COLORS.TEXT_PRIMARY],
45179
45577
  textSecondary = _useColor[THEME_COLORS.TEXT_SECONDARY],
@@ -45210,14 +45608,17 @@ var Actions = function Actions(_ref) {
45210
45608
  var _useState9 = useState(false),
45211
45609
  disappearingMessagesPopupOpen = _useState9[0],
45212
45610
  setDisappearingMessagesPopupOpen = _useState9[1];
45611
+ var _useState0 = useState(false),
45612
+ groupsInCommonPopupOpen = _useState0[0],
45613
+ setGroupsInCommonPopupOpen = _useState0[1];
45213
45614
  var _usePermissions = usePermissions(channel.userRole),
45214
45615
  checkActionPermission = _usePermissions[0];
45215
- var _useState0 = useState(''),
45216
- popupButtonText = _useState0[0],
45217
- setPopupButtonText = _useState0[1];
45218
45616
  var _useState1 = useState(''),
45219
- popupTitle = _useState1[0],
45220
- setPopupTitle = _useState1[1];
45617
+ popupButtonText = _useState1[0],
45618
+ setPopupButtonText = _useState1[1];
45619
+ var _useState10 = useState(''),
45620
+ popupTitle = _useState10[0],
45621
+ setPopupTitle = _useState10[1];
45221
45622
  var dispatch = useDispatch();
45222
45623
  var oneHour = 60 * 60 * 1000;
45223
45624
  var twoHours = oneHour * 2;
@@ -45310,6 +45711,9 @@ var Actions = function Actions(_ref) {
45310
45711
  dispatch(pinChannelAC(channel.id));
45311
45712
  }
45312
45713
  };
45714
+ var handleToggleGroupsInCommonPopup = function handleToggleGroupsInCommonPopup() {
45715
+ setGroupsInCommonPopupOpen(!groupsInCommonPopupOpen);
45716
+ };
45313
45717
  var handleToggleDisappearingMessagesPopup = function handleToggleDisappearingMessagesPopup() {
45314
45718
  setDisappearingMessagesPopupOpen(!disappearingMessagesPopupOpen);
45315
45719
  };
@@ -45421,7 +45825,7 @@ var Actions = function Actions(_ref) {
45421
45825
  "$isLightMode": backgroundColor === '#FFFFFF'
45422
45826
  }), "Disappearing messages", /*#__PURE__*/React__default.createElement(DisappearingMessagesStatusWrapper, null, /*#__PURE__*/React__default.createElement(DisappearingMessagesStatus, {
45423
45827
  color: textSecondary
45424
- }, formatDisappearingMessageTime(channel.messageRetentionPeriod)), /*#__PURE__*/React__default.createElement(ChevronRightIconWrapper, null, /*#__PURE__*/React__default.createElement(SvgChevronBottom, {
45828
+ }, formatDisappearingMessageTime(channel.messageRetentionPeriod)), /*#__PURE__*/React__default.createElement(ChevronRightIconWrapper$1, null, /*#__PURE__*/React__default.createElement(SvgChevronBottom, {
45425
45829
  color: iconPrimary
45426
45830
  })))))), showPinChannel && !channel.isMockChannel && (isDirectChannel && directChannelUser ? directChannelUser.state !== USER_STATE.DELETED : true) && (/*#__PURE__*/React__default.createElement(ActionItem, {
45427
45831
  key: 2,
@@ -45447,7 +45851,17 @@ var Actions = function Actions(_ref) {
45447
45851
  color: markAsReadUnreadTextColor || textPrimary,
45448
45852
  hoverColor: markAsReadUnreadTextColor || textPrimary,
45449
45853
  fontSize: actionItemsFontSize
45450
- }, /*#__PURE__*/React__default.createElement(React__default.Fragment, null, markAsUnreadIcon || /*#__PURE__*/React__default.createElement(DefaultMarkAsUnRead, null), " Mark as unread")))), !isDirectChannel && showLeaveChannel && (/*#__PURE__*/React__default.createElement(ActionItem, {
45854
+ }, /*#__PURE__*/React__default.createElement(React__default.Fragment, null, markAsUnreadIcon || /*#__PURE__*/React__default.createElement(DefaultMarkAsUnRead, null), " Mark as unread")))), !isSelfChannel && isDirectChannel && !channel.isMockChannel && showGroupsInCommon && (/*#__PURE__*/React__default.createElement(ActionItem, {
45855
+ key: 4,
45856
+ order: commonGroupsOrder,
45857
+ iconColor: commonGroupsTextColor || iconPrimary,
45858
+ color: commonGroupsIconColor || textPrimary,
45859
+ hoverColor: commonGroupsTextColor || textPrimary,
45860
+ fontSize: actionItemsFontSize,
45861
+ onClick: handleToggleGroupsInCommonPopup
45862
+ }, /*#__PURE__*/React__default.createElement(React__default.Fragment, null, commonGroupsIcon || /*#__PURE__*/React__default.createElement(SvgUsers, null), "Groups in common", /*#__PURE__*/React__default.createElement(DisappearingMessagesStatusWrapper, null, /*#__PURE__*/React__default.createElement(ChevronRightIconWrapper$1, null, /*#__PURE__*/React__default.createElement(SvgChevronBottom, {
45863
+ color: iconPrimary
45864
+ })))))), !isDirectChannel && showLeaveChannel && (/*#__PURE__*/React__default.createElement(ActionItem, {
45451
45865
  key: 4,
45452
45866
  order: leaveChannelOrder,
45453
45867
  color: leaveChannelTextColor || warningColor,
@@ -45594,20 +46008,26 @@ var Actions = function Actions(_ref) {
45594
46008
  togglePopup: handleToggleDisappearingMessagesPopup,
45595
46009
  handleSetTimer: handleSetDisappearingMessagesTimer,
45596
46010
  currentTimer: channel.messageRetentionPeriod
46011
+ })), groupsInCommonPopupOpen && (/*#__PURE__*/React__default.createElement(GroupsInCommonPopup, {
46012
+ theme: theme,
46013
+ togglePopup: handleToggleGroupsInCommonPopup,
46014
+ user: channel.members.find(function (member) {
46015
+ return member.id !== user.id;
46016
+ })
45597
46017
  })));
45598
46018
  };
45599
- var Container$n = styled.div(_templateObject$U || (_templateObject$U = _taggedTemplateLiteralLoose(["\n padding: 10px 16px;\n border-bottom: 6px solid ", ";\n]"])), function (props) {
46019
+ var Container$n = styled.div(_templateObject$V || (_templateObject$V = _taggedTemplateLiteralLoose(["\n padding: 10px 16px;\n border-bottom: 6px solid ", ";\n]"])), function (props) {
45600
46020
  return props.borderColor;
45601
46021
  });
45602
- var ActionHeader = styled.div(_templateObject2$P || (_templateObject2$P = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin: 25px 0 22px;\n cursor: pointer;\n"])));
45603
- var MenuTriggerIcon = styled.span(_templateObject3$I || (_templateObject3$I = _taggedTemplateLiteralLoose(["\n transition: all 0.2s;\n ", "\n"])), function (props) {
46022
+ var ActionHeader = styled.div(_templateObject2$Q || (_templateObject2$Q = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin: 25px 0 22px;\n cursor: pointer;\n"])));
46023
+ var MenuTriggerIcon = styled.span(_templateObject3$J || (_templateObject3$J = _taggedTemplateLiteralLoose(["\n transition: all 0.2s;\n ", "\n"])), function (props) {
45604
46024
  return !props.isOpen && ' transform: rotate(-90deg);';
45605
46025
  });
45606
- var ActionsMenu = styled.ul(_templateObject4$B || (_templateObject4$B = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n margin: 0;\n padding: 0;\n list-style: none;\n transition: all 0.2s;\n"])));
45607
- var DefaultMutedIcon = styled(SvgUnmuteNotifications)(_templateObject5$w || (_templateObject5$w = _taggedTemplateLiteralLoose([""])));
45608
- var DefaultMuteIcon = styled(SvgNotifications)(_templateObject6$s || (_templateObject6$s = _taggedTemplateLiteralLoose([""])));
45609
- var DefaultStarIcon = styled(SvgStar)(_templateObject7$r || (_templateObject7$r = _taggedTemplateLiteralLoose([""])));
45610
- var DefaultUnpinIcon = styled(SvgUnpin)(_templateObject8$o || (_templateObject8$o = _taggedTemplateLiteralLoose([""])));
46026
+ var ActionsMenu = styled.ul(_templateObject4$C || (_templateObject4$C = _taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n margin: 0;\n padding: 0;\n list-style: none;\n transition: all 0.2s;\n"])));
46027
+ var DefaultMutedIcon = styled(SvgUnmuteNotifications)(_templateObject5$x || (_templateObject5$x = _taggedTemplateLiteralLoose([""])));
46028
+ var DefaultMuteIcon = styled(SvgNotifications)(_templateObject6$t || (_templateObject6$t = _taggedTemplateLiteralLoose([""])));
46029
+ var DefaultStarIcon = styled(SvgStar)(_templateObject7$s || (_templateObject7$s = _taggedTemplateLiteralLoose([""])));
46030
+ var DefaultUnpinIcon = styled(SvgUnpin)(_templateObject8$p || (_templateObject8$p = _taggedTemplateLiteralLoose([""])));
45611
46031
  var DefaultPinIcon = styled(SvgPin)(_templateObject9$k || (_templateObject9$k = _taggedTemplateLiteralLoose([""])));
45612
46032
  var DefaultMarkAsRead = styled(SvgMarkAsRead)(_templateObject0$i || (_templateObject0$i = _taggedTemplateLiteralLoose([""])));
45613
46033
  var DefaultMarkAsUnRead = styled(SvgMarkAsUnRead)(_templateObject1$f || (_templateObject1$f = _taggedTemplateLiteralLoose([""])));
@@ -45639,20 +46059,20 @@ var DisappearingMessagesStatusWrapper = styled.div(_templateObject18$3 || (_temp
45639
46059
  var DisappearingMessagesStatus = styled.span(_templateObject19$3 || (_templateObject19$3 = _taggedTemplateLiteralLoose(["\n color: ", ";\n font-weight: 400;\n font-style: normal;\n font-size: 15px;\n line-height: 20px;\n letter-spacing: -0.2px;\n"])), function (props) {
45640
46060
  return props.color;
45641
46061
  });
45642
- var ChevronRightIconWrapper = styled.span(_templateObject20$3 || (_templateObject20$3 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n\n & > svg {\n width: 16px;\n height: 16px;\n transform: rotate(-90deg);\n }\n"])));
46062
+ var ChevronRightIconWrapper$1 = styled.span(_templateObject20$3 || (_templateObject20$3 = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n\n & > svg {\n width: 16px;\n height: 16px;\n transform: rotate(-90deg);\n }\n"])));
45643
46063
 
45644
- var _rect$2, _rect2, _path$1v;
45645
- function _extends$1z() {
45646
- return _extends$1z = Object.assign ? Object.assign.bind() : function (n) {
46064
+ var _rect$2, _rect2, _path$1w;
46065
+ function _extends$1A() {
46066
+ return _extends$1A = Object.assign ? Object.assign.bind() : function (n) {
45647
46067
  for (var e = 1; e < arguments.length; e++) {
45648
46068
  var t = arguments[e];
45649
46069
  for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
45650
46070
  }
45651
46071
  return n;
45652
- }, _extends$1z.apply(null, arguments);
46072
+ }, _extends$1A.apply(null, arguments);
45653
46073
  }
45654
46074
  function SvgAddMember(props) {
45655
- return /*#__PURE__*/createElement$1("svg", _extends$1z({
46075
+ return /*#__PURE__*/createElement$1("svg", _extends$1A({
45656
46076
  width: 40,
45657
46077
  height: 40,
45658
46078
  viewBox: "0 0 40.01 40.01",
@@ -45672,35 +46092,35 @@ function SvgAddMember(props) {
45672
46092
  stroke: "#000",
45673
46093
  strokeOpacity: 0.08,
45674
46094
  strokeWidth: 0.5
45675
- })), _path$1v || (_path$1v = /*#__PURE__*/createElement$1("path", {
46095
+ })), _path$1w || (_path$1w = /*#__PURE__*/createElement$1("path", {
45676
46096
  d: "M20 12a1 1 0 011 1v6h6a1 1 0 110 2h-6v6a1 1 0 11-2 0l-.001-6H13a1 1 0 110-2h5.999L19 13a1 1 0 011-1z",
45677
46097
  fill: "CurrentColor"
45678
46098
  })));
45679
46099
  }
45680
46100
 
45681
- var _path$1w;
45682
- function _extends$1A() {
45683
- return _extends$1A = Object.assign ? Object.assign.bind() : function (n) {
46101
+ var _path$1x;
46102
+ function _extends$1B() {
46103
+ return _extends$1B = Object.assign ? Object.assign.bind() : function (n) {
45684
46104
  for (var e = 1; e < arguments.length; e++) {
45685
46105
  var t = arguments[e];
45686
46106
  for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
45687
46107
  }
45688
46108
  return n;
45689
- }, _extends$1A.apply(null, arguments);
46109
+ }, _extends$1B.apply(null, arguments);
45690
46110
  }
45691
46111
  function SvgMoreVert(props) {
45692
- return /*#__PURE__*/createElement$1("svg", _extends$1A({
46112
+ return /*#__PURE__*/createElement$1("svg", _extends$1B({
45693
46113
  width: 4,
45694
46114
  height: 14,
45695
46115
  fill: "none",
45696
46116
  xmlns: "http://www.w3.org/2000/svg"
45697
- }, props), _path$1w || (_path$1w = /*#__PURE__*/createElement$1("path", {
46117
+ }, props), _path$1x || (_path$1x = /*#__PURE__*/createElement$1("path", {
45698
46118
  d: "M.532 11.012c.355-.355.764-.533 1.228-.533.464 0 .874.178 1.228.533.355.354.532.764.532 1.228 0 .464-.177.873-.532 1.228-.354.355-.764.532-1.228.532-.464 0-.873-.177-1.228-.532C.177 13.113 0 12.704 0 12.24c0-.464.177-.873.532-1.228zm0-5.24c.355-.355.764-.532 1.228-.532.464 0 .874.177 1.228.532.355.355.532.764.532 1.228 0 .464-.177.873-.532 1.228-.354.355-.764.532-1.228.532-.464 0-.873-.177-1.228-.532C.177 7.873 0 7.464 0 7c0-.464.177-.873.532-1.228zm2.456-2.784c-.354.355-.764.532-1.228.532-.464 0-.873-.177-1.228-.532C.177 2.634 0 2.224 0 1.76 0 1.296.177.887.532.532.887.177 1.296 0 1.76 0c.464 0 .874.177 1.228.532.355.355.532.764.532 1.228 0 .464-.177.874-.532 1.228z",
45699
46119
  fill: "#9B9DA8"
45700
46120
  })));
45701
46121
  }
45702
46122
 
45703
- var _templateObject$V, _templateObject2$Q, _templateObject3$J;
46123
+ var _templateObject$W, _templateObject2$R, _templateObject3$K;
45704
46124
  var ChangeMemberRole = function ChangeMemberRole(_ref) {
45705
46125
  var theme = _ref.theme,
45706
46126
  channelId = _ref.channelId,
@@ -45803,12 +46223,12 @@ var ChangeMemberRole = function ChangeMemberRole(_ref) {
45803
46223
  onClick: handleSave
45804
46224
  }, "Save"))));
45805
46225
  };
45806
- var RolesSelect = styled.div(_templateObject$V || (_templateObject$V = _taggedTemplateLiteralLoose(["\n margin-bottom: 32px;\n"])));
45807
- var RoleLabel = styled.div(_templateObject2$Q || (_templateObject2$Q = _taggedTemplateLiteralLoose(["\n font-style: normal;\n font-weight: 500;\n font-size: 14px;\n margin: 20px 0 8px;\n color: ", ";\n"])), function (_ref2) {
46226
+ var RolesSelect = styled.div(_templateObject$W || (_templateObject$W = _taggedTemplateLiteralLoose(["\n margin-bottom: 32px;\n"])));
46227
+ var RoleLabel = styled.div(_templateObject2$R || (_templateObject2$R = _taggedTemplateLiteralLoose(["\n font-style: normal;\n font-weight: 500;\n font-size: 14px;\n margin: 20px 0 8px;\n color: ", ";\n"])), function (_ref2) {
45808
46228
  var color = _ref2.color;
45809
46229
  return color;
45810
46230
  });
45811
- var RoleSpan = styled.span(_templateObject3$J || (_templateObject3$J = _taggedTemplateLiteralLoose(["\n font-style: normal;\n font-weight: normal;\n font-size: 14px;\n text-transform: capitalize;\n"])));
46231
+ var RoleSpan = styled.span(_templateObject3$K || (_templateObject3$K = _taggedTemplateLiteralLoose(["\n font-style: normal;\n font-weight: normal;\n font-size: 14px;\n text-transform: capitalize;\n"])));
45812
46232
 
45813
46233
  function ResetLinkConfirmModal(_ref) {
45814
46234
  var _getInviteLinkOptions;
@@ -45845,7 +46265,7 @@ function ResetLinkConfirmModal(_ref) {
45845
46265
  });
45846
46266
  }
45847
46267
 
45848
- var _templateObject$W, _templateObject2$R, _templateObject3$K, _templateObject4$C, _templateObject5$x, _templateObject6$t, _templateObject7$s, _templateObject8$p, _templateObject9$l, _templateObject0$j, _templateObject1$g, _templateObject10$a, _templateObject11$8, _templateObject12$7, _templateObject13$5;
46268
+ var _templateObject$X, _templateObject2$S, _templateObject3$L, _templateObject4$D, _templateObject5$y, _templateObject6$u, _templateObject7$t, _templateObject8$q, _templateObject9$l, _templateObject0$j, _templateObject1$g, _templateObject10$a, _templateObject11$8, _templateObject12$7, _templateObject13$5;
45849
46269
  function InviteLinkModal(_ref) {
45850
46270
  var _getInviteLinkOptions, _tabs$link, _tabs$qr, _tabs$link2, _tabs$qr2;
45851
46271
  var onClose = _ref.onClose,
@@ -46329,34 +46749,34 @@ function InviteLinkModal(_ref) {
46329
46749
  handleForward: handleForwardChannels
46330
46750
  })));
46331
46751
  }
46332
- var LogoIconCont = styled.div(_templateObject$W || (_templateObject$W = _taggedTemplateLiteralLoose(["\n position: absolute;\n top: calc(50% - 11%);\n left: calc(50% - 11%);\n width: 22%;\n height: 22%;\n img {\n width: 100%;\n height: 100%;\n object-fit: contain;\n border-radius: 10px;\n }\n svg {\n width: 100%;\n height: 100%;\n object-fit: contain;\n border-radius: 10px;\n }\n"])));
46333
- var Tabs$1 = styled.div(_templateObject2$R || (_templateObject2$R = _taggedTemplateLiteralLoose(["\n display: grid;\n grid-template-columns: 1fr 1fr;\n gap: 8px;\n border-radius: 10px;\n background-color: ", ";\n padding: 2px;\n margin: 4px 0 16px;\n border: 1px solid ", ";\n"])), function (p) {
46752
+ var LogoIconCont = styled.div(_templateObject$X || (_templateObject$X = _taggedTemplateLiteralLoose(["\n position: absolute;\n top: calc(50% - 11%);\n left: calc(50% - 11%);\n width: 22%;\n height: 22%;\n img {\n width: 100%;\n height: 100%;\n object-fit: contain;\n border-radius: 10px;\n }\n svg {\n width: 100%;\n height: 100%;\n object-fit: contain;\n border-radius: 10px;\n }\n"])));
46753
+ var Tabs$1 = styled.div(_templateObject2$S || (_templateObject2$S = _taggedTemplateLiteralLoose(["\n display: grid;\n grid-template-columns: 1fr 1fr;\n gap: 8px;\n border-radius: 10px;\n background-color: ", ";\n padding: 2px;\n margin: 4px 0 16px;\n border: 1px solid ", ";\n"])), function (p) {
46334
46754
  return p.backgroundColor;
46335
46755
  }, function (p) {
46336
46756
  return p.borderColor;
46337
46757
  });
46338
- var TabButton = styled.button(_templateObject3$K || (_templateObject3$K = _taggedTemplateLiteralLoose(["\n height: 36px;\n border: none;\n border-radius: 10px;\n cursor: pointer;\n background-color: ", ";\n ", "\n color: ", ";\n"])), function (p) {
46758
+ var TabButton = styled.button(_templateObject3$L || (_templateObject3$L = _taggedTemplateLiteralLoose(["\n height: 36px;\n border: none;\n border-radius: 10px;\n cursor: pointer;\n background-color: ", ";\n ", "\n color: ", ";\n"])), function (p) {
46339
46759
  return p.active ? p.activeBackgroundColor : p.backgroundColor;
46340
46760
  }, function (p) {
46341
46761
  return p.active && "\n box-shadow: 0px 3px 6px -4px #0000001F;\n ";
46342
46762
  }, function (p) {
46343
46763
  return p.active ? p.activeColor : p.inactiveColor;
46344
46764
  });
46345
- var Description = styled.p(_templateObject4$C || (_templateObject4$C = _taggedTemplateLiteralLoose(["\n margin: 8px 0 16px;\n font-size: 14px;\n line-height: 16px;\n color: ", ";\n"])), function (p) {
46765
+ var Description = styled.p(_templateObject4$D || (_templateObject4$D = _taggedTemplateLiteralLoose(["\n margin: 8px 0 16px;\n font-size: 14px;\n line-height: 16px;\n color: ", ";\n"])), function (p) {
46346
46766
  return p.color;
46347
46767
  });
46348
- var FieldLabel = styled.span(_templateObject5$x || (_templateObject5$x = _taggedTemplateLiteralLoose(["\n font-size: 14px;\n line-height: 16px;\n color: ", ";\n"])), function (p) {
46768
+ var FieldLabel = styled.span(_templateObject5$y || (_templateObject5$y = _taggedTemplateLiteralLoose(["\n font-size: 14px;\n line-height: 16px;\n color: ", ";\n"])), function (p) {
46349
46769
  return p.color;
46350
46770
  });
46351
- var LinkField = styled.div(_templateObject6$t || (_templateObject6$t = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n border: 1px solid ", ";\n border-radius: 8px;\n margin-top: 8px;\n padding-left: 12px;\n background-color: ", ";\n"])), function (p) {
46771
+ var LinkField = styled.div(_templateObject6$u || (_templateObject6$u = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n border: 1px solid ", ";\n border-radius: 8px;\n margin-top: 8px;\n padding-left: 12px;\n background-color: ", ";\n"])), function (p) {
46352
46772
  return p.borderColor;
46353
46773
  }, function (p) {
46354
46774
  return p.backgroundColor;
46355
46775
  });
46356
- var LinkInput = styled.input(_templateObject7$s || (_templateObject7$s = _taggedTemplateLiteralLoose(["\n flex: 1;\n border: none;\n outline: none;\n height: 40px;\n background: transparent;\n color: ", ";\n font-size: 14px;\n"])), function (p) {
46776
+ var LinkInput = styled.input(_templateObject7$t || (_templateObject7$t = _taggedTemplateLiteralLoose(["\n flex: 1;\n border: none;\n outline: none;\n height: 40px;\n background: transparent;\n color: ", ";\n font-size: 14px;\n"])), function (p) {
46357
46777
  return p.color;
46358
46778
  });
46359
- var CopyButton = styled.button(_templateObject8$p || (_templateObject8$p = _taggedTemplateLiteralLoose(["\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 40px;\n height: 40px;\n border: none;\n background: transparent;\n cursor: pointer;\n"])));
46779
+ var CopyButton = styled.button(_templateObject8$q || (_templateObject8$q = _taggedTemplateLiteralLoose(["\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 40px;\n height: 40px;\n border: none;\n background: transparent;\n cursor: pointer;\n"])));
46360
46780
  var CopyButtonWrapper = styled.div(_templateObject9$l || (_templateObject9$l = _taggedTemplateLiteralLoose(["\n position: relative;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n"])));
46361
46781
  var SectionTitle = styled.h4(_templateObject0$j || (_templateObject0$j = _taggedTemplateLiteralLoose(["\n margin: 16px 0 8px;\n font-weight: 500;\n font-size: 15px;\n line-height: 16px;\n color: ", ";\n"])), function (p) {
46362
46782
  return p.color;
@@ -46377,7 +46797,7 @@ var QrHint = styled.p(_templateObject13$5 || (_templateObject13$5 = _taggedTempl
46377
46797
  return p.color;
46378
46798
  });
46379
46799
 
46380
- var _templateObject$X, _templateObject2$S, _templateObject3$L, _templateObject4$D, _templateObject5$y, _templateObject6$u, _templateObject7$t, _templateObject8$q, _templateObject9$m;
46800
+ var _templateObject$Y, _templateObject2$T, _templateObject3$M, _templateObject4$E, _templateObject5$z, _templateObject6$v, _templateObject7$u, _templateObject8$r, _templateObject9$m;
46381
46801
  var Members = function Members(_ref) {
46382
46802
  var _members$find;
46383
46803
  var channel = _ref.channel,
@@ -46689,18 +47109,18 @@ var Members = function Members(_ref) {
46689
47109
  channelId: channel.id
46690
47110
  })));
46691
47111
  };
46692
- var Container$o = styled.div(_templateObject$X || (_templateObject$X = _taggedTemplateLiteralLoose([""])));
46693
- var ActionsMenu$1 = styled.div(_templateObject2$S || (_templateObject2$S = _taggedTemplateLiteralLoose(["\n position: relative;\n transition: all 0.2s;\n"])));
46694
- var MemberNamePresence = styled.div(_templateObject3$L || (_templateObject3$L = _taggedTemplateLiteralLoose(["\n margin-left: 12px;\n max-width: calc(100% - 84px);\n\n & > ", " {\n display: block;\n }\n"])), SubTitle);
46695
- var MemberNameWrapper = styled.div(_templateObject4$D || (_templateObject4$D = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n"])));
46696
- var MemberName$3 = styled.h4(_templateObject5$y || (_templateObject5$y = _taggedTemplateLiteralLoose(["\n margin: 0;\n font-weight: 400;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n color: ", ";\n"])), function (props) {
47112
+ var Container$o = styled.div(_templateObject$Y || (_templateObject$Y = _taggedTemplateLiteralLoose([""])));
47113
+ var ActionsMenu$1 = styled.div(_templateObject2$T || (_templateObject2$T = _taggedTemplateLiteralLoose(["\n position: relative;\n transition: all 0.2s;\n"])));
47114
+ var MemberNamePresence = styled.div(_templateObject3$M || (_templateObject3$M = _taggedTemplateLiteralLoose(["\n margin-left: 12px;\n max-width: calc(100% - 84px);\n\n & > ", " {\n display: block;\n }\n"])), SubTitle);
47115
+ var MemberNameWrapper = styled.div(_templateObject4$E || (_templateObject4$E = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n"])));
47116
+ var MemberName$3 = styled.h4(_templateObject5$z || (_templateObject5$z = _taggedTemplateLiteralLoose(["\n margin: 0;\n font-weight: 400;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n color: ", ";\n"])), function (props) {
46697
47117
  return props.color;
46698
47118
  });
46699
- var EditMemberIcon = styled.span(_templateObject6$u || (_templateObject6$u = _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) {
47119
+ var EditMemberIcon = styled.span(_templateObject6$v || (_templateObject6$v = _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) {
46700
47120
  return props.color;
46701
47121
  });
46702
- var MembersList = styled.ul(_templateObject7$t || (_templateObject7$t = _taggedTemplateLiteralLoose(["\n margin: 0;\n padding: 0;\n list-style: none;\n transition: all 0.2s;\n"])));
46703
- var MemberItem$1 = styled.li(_templateObject8$q || (_templateObject8$q = _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) {
47122
+ var MembersList = styled.ul(_templateObject7$u || (_templateObject7$u = _taggedTemplateLiteralLoose(["\n margin: 0;\n padding: 0;\n list-style: none;\n transition: all 0.2s;\n"])));
47123
+ var MemberItem$1 = styled.li(_templateObject8$r || (_templateObject8$r = _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) {
46704
47124
  return props.fontSize || '15px';
46705
47125
  }, function (props) {
46706
47126
  return props.color;
@@ -46717,7 +47137,7 @@ var RoleBadge = styled.span(_templateObject9$m || (_templateObject9$m = _taggedT
46717
47137
  return props.backgroundColor;
46718
47138
  });
46719
47139
 
46720
- var _templateObject$Y;
47140
+ var _templateObject$Z;
46721
47141
  var MonthHeader = function MonthHeader(_ref) {
46722
47142
  var currentCreatedAt = _ref.currentCreatedAt,
46723
47143
  previousCreatedAt = _ref.previousCreatedAt,
@@ -46742,7 +47162,7 @@ var MonthHeader = function MonthHeader(_ref) {
46742
47162
  }, [currentCreatedAt, previousCreatedAt, isFirst, textSecondary, padding, fullWidth]);
46743
47163
  return monthComponent;
46744
47164
  };
46745
- var MonthHeaderContainer = styled.div(_templateObject$Y || (_templateObject$Y = _taggedTemplateLiteralLoose(["\n padding: ", ";\n width: ", ";\n font-style: normal;\n font-weight: 500;\n font-size: 13px;\n line-height: 16px;\n color: ", ";\n text-transform: uppercase;\n"])), function (props) {
47165
+ var MonthHeaderContainer = styled.div(_templateObject$Z || (_templateObject$Z = _taggedTemplateLiteralLoose(["\n padding: ", ";\n width: ", ";\n font-style: normal;\n font-weight: 500;\n font-size: 13px;\n line-height: 16px;\n color: ", ";\n text-transform: uppercase;\n"])), function (props) {
46746
47166
  return props.padding || '9px 12px';
46747
47167
  }, function (props) {
46748
47168
  return props.fullWidth ? '100%' : 'auto';
@@ -46750,7 +47170,7 @@ var MonthHeaderContainer = styled.div(_templateObject$Y || (_templateObject$Y =
46750
47170
  return props.color;
46751
47171
  });
46752
47172
 
46753
- var _templateObject$Z, _templateObject2$T;
47173
+ var _templateObject$_, _templateObject2$U;
46754
47174
  var Media = function Media(_ref) {
46755
47175
  var channel = _ref.channel;
46756
47176
  var _useColor = useColors(),
@@ -46802,21 +47222,21 @@ var Media = function Media(_ref) {
46802
47222
  currentMediaFile: mediaFile
46803
47223
  })));
46804
47224
  };
46805
- var Container$p = styled.div(_templateObject$Z || (_templateObject$Z = _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"])));
46806
- var MediaItem = styled.div(_templateObject2$T || (_templateObject2$T = _taggedTemplateLiteralLoose(["\n width: calc(33.3333% - 4px);\n aspect-ratio: 1/1;\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"])));
47225
+ var Container$p = styled.div(_templateObject$_ || (_templateObject$_ = _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"])));
47226
+ var MediaItem = styled.div(_templateObject2$U || (_templateObject2$U = _taggedTemplateLiteralLoose(["\n width: calc(33.3333% - 4px);\n aspect-ratio: 1/1;\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"])));
46807
47227
 
46808
- var _rect$3, _path$1x;
46809
- function _extends$1B() {
46810
- return _extends$1B = Object.assign ? Object.assign.bind() : function (n) {
47228
+ var _rect$3, _path$1y;
47229
+ function _extends$1C() {
47230
+ return _extends$1C = Object.assign ? Object.assign.bind() : function (n) {
46811
47231
  for (var e = 1; e < arguments.length; e++) {
46812
47232
  var t = arguments[e];
46813
47233
  for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
46814
47234
  }
46815
47235
  return n;
46816
- }, _extends$1B.apply(null, arguments);
47236
+ }, _extends$1C.apply(null, arguments);
46817
47237
  }
46818
47238
  function SvgDocumentIcon(props) {
46819
- return /*#__PURE__*/createElement$1("svg", _extends$1B({
47239
+ return /*#__PURE__*/createElement$1("svg", _extends$1C({
46820
47240
  width: 40,
46821
47241
  height: 40,
46822
47242
  fill: "none",
@@ -46827,7 +47247,7 @@ function SvgDocumentIcon(props) {
46827
47247
  rx: 8,
46828
47248
  fill: "currentColor",
46829
47249
  fillOpacity: 0.2
46830
- })), _path$1x || (_path$1x = /*#__PURE__*/createElement$1("path", {
47250
+ })), _path$1y || (_path$1y = /*#__PURE__*/createElement$1("path", {
46831
47251
  fillRule: "evenodd",
46832
47252
  clipRule: "evenodd",
46833
47253
  d: "M17.593 9.5c-2.098 0-3.023.185-3.962.687a4.685 4.685 0 00-1.944 1.944c-.502.939-.687 1.864-.687 3.962v7.386c0 2.098.185 3.023.687 3.962a4.685 4.685 0 001.944 1.944c.939.502 1.864.686 3.962.686h3.957c2.098 0 3.023-.184 3.962-.687a4.685 4.685 0 001.944-1.944c.502-.938.687-1.863.687-3.961v-5.1c0-.683-.024-.99-.105-1.34a3.094 3.094 0 00-.399-.964c-.19-.305-.39-.54-.874-1.022l-4.175-4.175c-.483-.483-.717-.684-1.022-.874a3.096 3.096 0 00-.963-.4c-.294-.067-.556-.095-1.034-.102V9.5h-1.978zm0 1.714c-2.002 0-2.587.182-3.154.485a2.971 2.971 0 00-1.24 1.24c-.303.567-.485 1.152-.485 3.154v7.386c0 2.001.182 2.587.485 3.153a2.97 2.97 0 001.24 1.24c.567.304 1.152.485 3.154.485h3.957c2.001 0 2.587-.181 3.153-.484a2.97 2.97 0 001.241-1.241c.303-.566.485-1.152.485-3.153v-5.1c0-.118-.001-.22-.003-.308h-4.712a2.143 2.143 0 01-2.143-2.142l.002-4.713-.15-.001h-1.83zm3.785.876l-.092-.091v3.93c0 .21.151.385.351.421l.077.007 3.932.002-.093-.094-4.175-4.175zm-6.092 12.839c0-.474.383-.858.857-.858h3.428a.857.857 0 010 1.715h-3.428a.857.857 0 01-.857-.857zm.857-4.286a.857.857 0 100 1.714h6a.857.857 0 000-1.714h-6z",
@@ -46835,30 +47255,30 @@ function SvgDocumentIcon(props) {
46835
47255
  })));
46836
47256
  }
46837
47257
 
46838
- var _path$1y;
46839
- function _extends$1C() {
46840
- return _extends$1C = Object.assign ? Object.assign.bind() : function (n) {
47258
+ var _path$1z;
47259
+ function _extends$1D() {
47260
+ return _extends$1D = Object.assign ? Object.assign.bind() : function (n) {
46841
47261
  for (var e = 1; e < arguments.length; e++) {
46842
47262
  var t = arguments[e];
46843
47263
  for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
46844
47264
  }
46845
47265
  return n;
46846
- }, _extends$1C.apply(null, arguments);
47266
+ }, _extends$1D.apply(null, arguments);
46847
47267
  }
46848
47268
  function SvgDownloadFile(props) {
46849
- return /*#__PURE__*/createElement$1("svg", _extends$1C({
47269
+ return /*#__PURE__*/createElement$1("svg", _extends$1D({
46850
47270
  width: 24,
46851
47271
  height: 24,
46852
47272
  xmlns: "http://www.w3.org/2000/svg",
46853
47273
  fill: "currentColor"
46854
- }, props), _path$1y || (_path$1y = /*#__PURE__*/createElement$1("path", {
47274
+ }, props), _path$1z || (_path$1z = /*#__PURE__*/createElement$1("path", {
46855
47275
  fillRule: "evenodd",
46856
47276
  clipRule: "evenodd",
46857
47277
  d: "M12 2a.91.91 0 01.91.91v11.44l2.993-2.993a.91.91 0 011.285 1.286l-4.545 4.545a.91.91 0 01-1.286 0l-4.545-4.545a.909.909 0 111.285-1.286l2.994 2.994V2.909A.91.91 0 0112 2zM2.91 15.636a.91.91 0 01.908.91v1.136a2.5 2.5 0 002.5 2.5h11.364a2.5 2.5 0 002.5-2.5v-1.136a.91.91 0 111.818 0v1.136A4.318 4.318 0 0117.682 22H6.318A4.318 4.318 0 012 17.682v-1.136a.91.91 0 01.91-.91z"
46858
47278
  })));
46859
47279
  }
46860
47280
 
46861
- var _templateObject$_, _templateObject2$U, _templateObject3$M, _templateObject4$E, _templateObject5$z, _templateObject6$v, _templateObject7$u, _templateObject8$r;
47281
+ var _templateObject$$, _templateObject2$V, _templateObject3$N, _templateObject4$F, _templateObject5$A, _templateObject6$w, _templateObject7$v, _templateObject8$s;
46862
47282
  var Files = function Files(_ref) {
46863
47283
  var channelId = _ref.channelId,
46864
47284
  filePreviewIcon = _ref.filePreviewIcon,
@@ -46980,30 +47400,30 @@ var Files = function Files(_ref) {
46980
47400
  }))) : filePreviewDownloadIcon || /*#__PURE__*/React__default.createElement(SvgDownloadFile, null))));
46981
47401
  }));
46982
47402
  };
46983
- var Container$q = styled.ul(_templateObject$_ || (_templateObject$_ = _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"])));
46984
- var DownloadWrapper = styled.a(_templateObject2$U || (_templateObject2$U = _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) {
47403
+ var Container$q = styled.ul(_templateObject$$ || (_templateObject$$ = _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"])));
47404
+ var DownloadWrapper = styled.a(_templateObject2$V || (_templateObject2$V = _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) {
46985
47405
  return props.visible ? 'visible' : 'hidden';
46986
47406
  }, function (props) {
46987
47407
  return props.iconColor;
46988
47408
  }, function (props) {
46989
47409
  return props.iconColor;
46990
47410
  });
46991
- var ProgressWrapper$2 = styled.span(_templateObject3$M || (_templateObject3$M = _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"])));
46992
- var FileIconCont = styled.span(_templateObject4$E || (_templateObject4$E = _taggedTemplateLiteralLoose(["\n display: inline-flex;\n & > svg {\n width: 40px;\n height: 40px;\n color: ", ";\n rect {\n fill: ", ";\n }\n }\n"])), function (props) {
47411
+ var ProgressWrapper$2 = styled.span(_templateObject3$N || (_templateObject3$N = _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"])));
47412
+ var FileIconCont = styled.span(_templateObject4$F || (_templateObject4$F = _taggedTemplateLiteralLoose(["\n display: inline-flex;\n & > svg {\n width: 40px;\n height: 40px;\n color: ", ";\n rect {\n fill: ", ";\n }\n }\n"])), function (props) {
46993
47413
  return props.iconColor;
46994
47414
  }, function (props) {
46995
47415
  return props.fillColor;
46996
47416
  });
46997
- var FileHoverIconCont = styled.span(_templateObject5$z || (_templateObject5$z = _taggedTemplateLiteralLoose(["\n display: none;\n & > svg {\n width: 40px;\n height: 40px;\n color: ", ";\n rect {\n fill: ", ";\n }\n }\n"])), function (props) {
47417
+ var FileHoverIconCont = styled.span(_templateObject5$A || (_templateObject5$A = _taggedTemplateLiteralLoose(["\n display: none;\n & > svg {\n width: 40px;\n height: 40px;\n color: ", ";\n rect {\n fill: ", ";\n }\n }\n"])), function (props) {
46998
47418
  return props.iconColor;
46999
47419
  }, function (props) {
47000
47420
  return props.fillColor;
47001
47421
  });
47002
- var FileThumb = styled.img(_templateObject6$v || (_templateObject6$v = _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"])));
47003
- var FileItem = styled.div(_templateObject7$u || (_templateObject7$u = _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) {
47422
+ var FileThumb = styled.img(_templateObject6$w || (_templateObject6$w = _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"])));
47423
+ var FileItem = styled.div(_templateObject7$v || (_templateObject7$v = _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) {
47004
47424
  return props.hoverBackgroundColor;
47005
47425
  }, DownloadWrapper, FileIconCont, FileHoverIconCont);
47006
- var FileSizeAndDate = styled.span(_templateObject8$r || (_templateObject8$r = _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) {
47426
+ var FileSizeAndDate = styled.span(_templateObject8$s || (_templateObject8$s = _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) {
47007
47427
  return props.fontSize || '13px';
47008
47428
  }, function (props) {
47009
47429
  return props.lineHeight || '16px';
@@ -47011,18 +47431,18 @@ var FileSizeAndDate = styled.span(_templateObject8$r || (_templateObject8$r = _t
47011
47431
  return props.color;
47012
47432
  });
47013
47433
 
47014
- var _rect$4, _path$1z;
47015
- function _extends$1D() {
47016
- return _extends$1D = Object.assign ? Object.assign.bind() : function (n) {
47434
+ var _rect$4, _path$1A;
47435
+ function _extends$1E() {
47436
+ return _extends$1E = Object.assign ? Object.assign.bind() : function (n) {
47017
47437
  for (var e = 1; e < arguments.length; e++) {
47018
47438
  var t = arguments[e];
47019
47439
  for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
47020
47440
  }
47021
47441
  return n;
47022
- }, _extends$1D.apply(null, arguments);
47442
+ }, _extends$1E.apply(null, arguments);
47023
47443
  }
47024
47444
  function SvgLinkIcon(props) {
47025
- return /*#__PURE__*/createElement$1("svg", _extends$1D({
47445
+ return /*#__PURE__*/createElement$1("svg", _extends$1E({
47026
47446
  width: 40,
47027
47447
  height: 40,
47028
47448
  fill: "none",
@@ -47034,7 +47454,7 @@ function SvgLinkIcon(props) {
47034
47454
  rx: 8,
47035
47455
  fill: "currentColor",
47036
47456
  fillOpacity: 0.2
47037
- })), _path$1z || (_path$1z = /*#__PURE__*/createElement$1("path", {
47457
+ })), _path$1A || (_path$1A = /*#__PURE__*/createElement$1("path", {
47038
47458
  fillRule: "evenodd",
47039
47459
  clipRule: "evenodd",
47040
47460
  d: "M21.547 11.524a4.9 4.9 0 016.928 6.929l-.01.011-4 4a4.9 4.9 0 01-6.93 0 .9.9 0 011.273-1.273 3.1 3.1 0 004.384 0l3.994-3.994a3.1 3.1 0 00-4.384-4.383l-1.094 1.094a.9.9 0 01-1.272-1.273l1.1-1.1.01-.01zm-6.011 6.011a4.9 4.9 0 016.928 0 .9.9 0 11-1.272 1.273 3.1 3.1 0 00-4.384 0l-4 4-.01.011a3.1 3.1 0 104.383 4.384l.01-.012 1.103-1.1a.9.9 0 111.272 1.272l-1.097 1.096a4.9 4.9 0 11-6.928-6.929l3.995-3.995z",
@@ -47042,7 +47462,7 @@ function SvgLinkIcon(props) {
47042
47462
  })));
47043
47463
  }
47044
47464
 
47045
- var _templateObject$$, _templateObject2$V, _templateObject3$N, _templateObject4$F, _templateObject5$A;
47465
+ var _templateObject$10, _templateObject2$W, _templateObject3$O, _templateObject4$G, _templateObject5$B;
47046
47466
  var LinkItem = function LinkItem(_ref) {
47047
47467
  var link = _ref.link,
47048
47468
  linkPreviewIcon = _ref.linkPreviewIcon,
@@ -47073,25 +47493,25 @@ var LinkItem = function LinkItem(_ref) {
47073
47493
  color: linkPreviewColor || textPrimary
47074
47494
  }, link))));
47075
47495
  };
47076
- var LinkIconCont = styled.span(_templateObject$$ || (_templateObject$$ = _taggedTemplateLiteralLoose(["\n display: inline-flex;\n > svg {\n color: ", ";\n rect {\n fill: ", ";\n }\n }\n"])), function (props) {
47496
+ var LinkIconCont = styled.span(_templateObject$10 || (_templateObject$10 = _taggedTemplateLiteralLoose(["\n display: inline-flex;\n > svg {\n color: ", ";\n rect {\n fill: ", ";\n }\n }\n"])), function (props) {
47077
47497
  return props.iconColor;
47078
47498
  }, function (props) {
47079
47499
  return props.fillColor;
47080
47500
  });
47081
- var LinkHoverIconCont = styled.span(_templateObject2$V || (_templateObject2$V = _taggedTemplateLiteralLoose(["\n display: none;\n > svg {\n color: ", ";\n rect {\n fill: ", ";\n }\n }\n"])), function (props) {
47501
+ var LinkHoverIconCont = styled.span(_templateObject2$W || (_templateObject2$W = _taggedTemplateLiteralLoose(["\n display: none;\n > svg {\n color: ", ";\n rect {\n fill: ", ";\n }\n }\n"])), function (props) {
47082
47502
  return props.iconColor;
47083
47503
  }, function (props) {
47084
47504
  return props.fillColor;
47085
47505
  });
47086
- var LinkInfoCont = styled.div(_templateObject3$N || (_templateObject3$N = _taggedTemplateLiteralLoose(["\n margin-left: 12px;\n width: calc(100% - 40px);\n"])));
47087
- var FileItem$1 = styled.li(_templateObject4$F || (_templateObject4$F = _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) {
47506
+ var LinkInfoCont = styled.div(_templateObject3$O || (_templateObject3$O = _taggedTemplateLiteralLoose(["\n margin-left: 12px;\n width: calc(100% - 40px);\n"])));
47507
+ var FileItem$1 = styled.li(_templateObject4$G || (_templateObject4$G = _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) {
47088
47508
  return props.hoverBackgroundColor;
47089
47509
  }, LinkIconCont, LinkHoverIconCont);
47090
- var LinkUrl = styled.span(_templateObject5$A || (_templateObject5$A = _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) {
47510
+ var LinkUrl = styled.span(_templateObject5$B || (_templateObject5$B = _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) {
47091
47511
  return props.color;
47092
47512
  });
47093
47513
 
47094
- var _templateObject$10;
47514
+ var _templateObject$11;
47095
47515
  var Links = function Links(_ref) {
47096
47516
  var channelId = _ref.channelId,
47097
47517
  linkPreviewIcon = _ref.linkPreviewIcon,
@@ -47122,20 +47542,20 @@ var Links = function Links(_ref) {
47122
47542
  }));
47123
47543
  }));
47124
47544
  };
47125
- var Container$r = styled.ul(_templateObject$10 || (_templateObject$10 = _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"])));
47545
+ var Container$r = styled.ul(_templateObject$11 || (_templateObject$11 = _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"])));
47126
47546
 
47127
- var _rect$5, _path$1A;
47128
- function _extends$1E() {
47129
- return _extends$1E = Object.assign ? Object.assign.bind() : function (n) {
47547
+ var _rect$5, _path$1B;
47548
+ function _extends$1F() {
47549
+ return _extends$1F = Object.assign ? Object.assign.bind() : function (n) {
47130
47550
  for (var e = 1; e < arguments.length; e++) {
47131
47551
  var t = arguments[e];
47132
47552
  for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
47133
47553
  }
47134
47554
  return n;
47135
- }, _extends$1E.apply(null, arguments);
47555
+ }, _extends$1F.apply(null, arguments);
47136
47556
  }
47137
47557
  function SvgVoicePreview(props) {
47138
- return /*#__PURE__*/createElement$1("svg", _extends$1E({
47558
+ return /*#__PURE__*/createElement$1("svg", _extends$1F({
47139
47559
  width: 40,
47140
47560
  height: 40,
47141
47561
  fill: "none",
@@ -47145,24 +47565,24 @@ function SvgVoicePreview(props) {
47145
47565
  height: 40,
47146
47566
  rx: 20,
47147
47567
  fill: "#5159F6"
47148
- })), _path$1A || (_path$1A = /*#__PURE__*/createElement$1("path", {
47568
+ })), _path$1B || (_path$1B = /*#__PURE__*/createElement$1("path", {
47149
47569
  d: "M27.536 18.696c.952.576.952 2.03 0 2.605l-9.918 5.997c-.944.57-2.118-.151-2.118-1.303V14.002c0-1.151 1.174-1.873 2.118-1.303l9.918 5.997z",
47150
47570
  fill: "#fff"
47151
47571
  })));
47152
47572
  }
47153
47573
 
47154
- var _rect$6, _path$1B;
47155
- function _extends$1F() {
47156
- return _extends$1F = Object.assign ? Object.assign.bind() : function (n) {
47574
+ var _rect$6, _path$1C;
47575
+ function _extends$1G() {
47576
+ return _extends$1G = Object.assign ? Object.assign.bind() : function (n) {
47157
47577
  for (var e = 1; e < arguments.length; e++) {
47158
47578
  var t = arguments[e];
47159
47579
  for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
47160
47580
  }
47161
47581
  return n;
47162
- }, _extends$1F.apply(null, arguments);
47582
+ }, _extends$1G.apply(null, arguments);
47163
47583
  }
47164
47584
  function SvgVoicePreviewPause(props) {
47165
- return /*#__PURE__*/createElement$1("svg", _extends$1F({
47585
+ return /*#__PURE__*/createElement$1("svg", _extends$1G({
47166
47586
  width: 40,
47167
47587
  height: 40,
47168
47588
  fill: "none",
@@ -47172,13 +47592,13 @@ function SvgVoicePreviewPause(props) {
47172
47592
  height: 40,
47173
47593
  rx: 20,
47174
47594
  fill: "#5159F6"
47175
- })), _path$1B || (_path$1B = /*#__PURE__*/createElement$1("path", {
47595
+ })), _path$1C || (_path$1C = /*#__PURE__*/createElement$1("path", {
47176
47596
  d: "M16.962 12.5c.535 0 .729.056.924.16.196.105.35.258.454.454.104.195.16.39.16.924v11.924c0 .535-.056.729-.16.924a1.09 1.09 0 01-.454.454c-.195.104-.39.16-.924.16h-1.424c-.535 0-.729-.056-.924-.16a1.09 1.09 0 01-.454-.454c-.104-.195-.16-.39-.16-.924V14.038c0-.535.056-.729.16-.924a1.09 1.09 0 01.454-.454c.195-.104.39-.16.924-.16h1.424zm7.5 0c.535 0 .729.056.924.16.196.105.35.258.454.454.104.195.16.39.16.924v11.924c0 .535-.056.729-.16.924a1.09 1.09 0 01-.454.454c-.195.104-.39.16-.924.16h-1.424c-.535 0-.729-.056-.924-.16a1.09 1.09 0 01-.454-.454c-.104-.195-.16-.39-.16-.924V14.038c0-.535.056-.729.16-.924a1.09 1.09 0 01.454-.454c.195-.104.39-.16.924-.16h1.424z",
47177
47597
  fill: "#fff"
47178
47598
  })));
47179
47599
  }
47180
47600
 
47181
- var _templateObject$11, _templateObject2$W, _templateObject3$O, _templateObject4$G, _templateObject5$B, _templateObject6$w, _templateObject7$v, _templateObject8$s;
47601
+ var _templateObject$12, _templateObject2$X, _templateObject3$P, _templateObject4$H, _templateObject5$C, _templateObject6$x, _templateObject7$w, _templateObject8$t;
47182
47602
  var VoiceItem = function VoiceItem(_ref) {
47183
47603
  var file = _ref.file,
47184
47604
  voicePreviewPlayIcon = _ref.voicePreviewPlayIcon,
@@ -47303,32 +47723,32 @@ var VoiceItem = function VoiceItem(_ref) {
47303
47723
  type: 'audio/mpeg'
47304
47724
  })));
47305
47725
  };
47306
- var FileIconCont$1 = styled.span(_templateObject$11 || (_templateObject$11 = _taggedTemplateLiteralLoose(["\n cursor: pointer;\n display: inline-flex;\n fill: ", ";\n rect {\n fill: ", ";\n }\n"])), function (props) {
47726
+ var FileIconCont$1 = styled.span(_templateObject$12 || (_templateObject$12 = _taggedTemplateLiteralLoose(["\n cursor: pointer;\n display: inline-flex;\n fill: ", ";\n rect {\n fill: ", ";\n }\n"])), function (props) {
47307
47727
  return props.fill || 'transparent';
47308
47728
  }, function (props) {
47309
47729
  return props.fill || 'transparent';
47310
47730
  });
47311
- var FileHoverIconCont$1 = styled.span(_templateObject2$W || (_templateObject2$W = _taggedTemplateLiteralLoose(["\n cursor: pointer;\n display: none;\n fill: ", ";\n rect {\n fill: ", ";\n }\n"])), function (props) {
47731
+ var FileHoverIconCont$1 = styled.span(_templateObject2$X || (_templateObject2$X = _taggedTemplateLiteralLoose(["\n cursor: pointer;\n display: none;\n fill: ", ";\n rect {\n fill: ", ";\n }\n"])), function (props) {
47312
47732
  return props.fill || 'transparent';
47313
47733
  }, function (props) {
47314
47734
  return props.fill || 'transparent';
47315
47735
  });
47316
- var FileItem$2 = styled.li(_templateObject3$O || (_templateObject3$O = _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) {
47736
+ var FileItem$2 = styled.li(_templateObject3$P || (_templateObject3$P = _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) {
47317
47737
  return props.hoverBackgroundColor;
47318
47738
  }, FileIconCont$1, FileHoverIconCont$1);
47319
- var AudioInfo = styled.div(_templateObject4$G || (_templateObject4$G = _taggedTemplateLiteralLoose(["\n position: relative;\n"])));
47320
- var AudioTitle = styled.span(_templateObject5$B || (_templateObject5$B = _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) {
47739
+ var AudioInfo = styled.div(_templateObject4$H || (_templateObject4$H = _taggedTemplateLiteralLoose(["\n position: relative;\n"])));
47740
+ var AudioTitle = styled.span(_templateObject5$C || (_templateObject5$C = _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) {
47321
47741
  return props.color;
47322
47742
  });
47323
- var AudioDate = styled.span(_templateObject6$w || (_templateObject6$w = _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: 13px;\n line-height: 16px;\n color: ", ";\n"])), function (props) {
47743
+ var AudioDate = styled.span(_templateObject6$x || (_templateObject6$x = _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: 13px;\n line-height: 16px;\n color: ", ";\n"])), function (props) {
47324
47744
  return props.color;
47325
47745
  });
47326
- var AudioSendTime = styled.span(_templateObject7$v || (_templateObject7$v = _taggedTemplateLiteralLoose(["\n position: absolute;\n right: 0;\n top: 11px;\n color: ", ";\n font-size: 12px;\n line-height: 16px;\n"])), function (props) {
47746
+ var AudioSendTime = styled.span(_templateObject7$w || (_templateObject7$w = _taggedTemplateLiteralLoose(["\n position: absolute;\n right: 0;\n top: 11px;\n color: ", ";\n font-size: 12px;\n line-height: 16px;\n"])), function (props) {
47327
47747
  return props.color;
47328
47748
  });
47329
- var Audio = styled.audio(_templateObject8$s || (_templateObject8$s = _taggedTemplateLiteralLoose(["\n display: none;\n"])));
47749
+ var Audio = styled.audio(_templateObject8$t || (_templateObject8$t = _taggedTemplateLiteralLoose(["\n display: none;\n"])));
47330
47750
 
47331
- var _templateObject$12;
47751
+ var _templateObject$13;
47332
47752
  var Voices = function Voices(_ref) {
47333
47753
  var channelId = _ref.channelId,
47334
47754
  voicePreviewPlayIcon = _ref.voicePreviewPlayIcon,
@@ -47365,9 +47785,9 @@ var Voices = function Voices(_ref) {
47365
47785
  }));
47366
47786
  }));
47367
47787
  };
47368
- var Container$s = styled.ul(_templateObject$12 || (_templateObject$12 = _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"])));
47788
+ var Container$s = styled.ul(_templateObject$13 || (_templateObject$13 = _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"])));
47369
47789
 
47370
- var _templateObject$13, _templateObject2$X;
47790
+ var _templateObject$14, _templateObject2$Y;
47371
47791
  var DetailsTab = function DetailsTab(_ref) {
47372
47792
  var channel = _ref.channel,
47373
47793
  theme = _ref.theme,
@@ -47518,8 +47938,8 @@ var DetailsTab = function DetailsTab(_ref) {
47518
47938
  voicePreviewHoverBackgroundColor: voicePreviewHoverBackgroundColor
47519
47939
  })));
47520
47940
  };
47521
- var Container$t = styled.div(_templateObject$13 || (_templateObject$13 = _taggedTemplateLiteralLoose(["\n min-height: calc(100vh - 64px);\n"])));
47522
- var DetailsTabHeader = styled.div(_templateObject2$X || (_templateObject2$X = _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) {
47941
+ var Container$t = styled.div(_templateObject$14 || (_templateObject$14 = _taggedTemplateLiteralLoose(["\n min-height: calc(100vh - 64px);\n"])));
47942
+ var DetailsTabHeader = styled.div(_templateObject2$Y || (_templateObject2$Y = _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) {
47523
47943
  return props.borderColor;
47524
47944
  }, function (props) {
47525
47945
  return props.backgroundColor || 'transparent';
@@ -47537,17 +47957,17 @@ var DetailsTabHeader = styled.div(_templateObject2$X || (_templateObject2$X = _t
47537
47957
  return props.activeTabColor;
47538
47958
  });
47539
47959
 
47540
- var _templateObject$14, _templateObject2$Y, _templateObject3$P, _templateObject4$H;
47541
- var Container$u = styled.div(_templateObject$14 || (_templateObject$14 = _taggedTemplateLiteralLoose(["\n ", ";\n height: ", ";\n position: absolute;\n padding: 24px 16px;\n background-color: ", ";\n z-index: 25;\n"])), function (props) {
47960
+ var _templateObject$15, _templateObject2$Z, _templateObject3$Q, _templateObject4$I;
47961
+ var Container$u = styled.div(_templateObject$15 || (_templateObject$15 = _taggedTemplateLiteralLoose(["\n ", ";\n height: ", ";\n position: absolute;\n padding: 24px 16px;\n background-color: ", ";\n z-index: 25;\n"])), function (props) {
47542
47962
  return props.active ? 'display: block' : 'display: none';
47543
47963
  }, function (props) {
47544
47964
  return "calc(100vh - " + (props.heightOffset ? props.heightOffset + 48 : 48) + "px)";
47545
47965
  }, function (props) {
47546
47966
  return props.backgroundColor;
47547
47967
  });
47548
- var AvatarCont = styled.div(_templateObject2$Y || (_templateObject2$Y = _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"])));
47549
- var DropDownWrapper = styled.div(_templateObject3$P || (_templateObject3$P = _taggedTemplateLiteralLoose(["\n position: absolute;\n z-index: 4;\n width: 40px;\n height: 40px;\n"])));
47550
- var EditChannelFooter = styled(ButtonBlock)(_templateObject4$H || (_templateObject4$H = _taggedTemplateLiteralLoose(["\n margin-top: 24px;\n\n & > button {\n margin-left: 12px;\n }\n"])));
47968
+ var AvatarCont = styled.div(_templateObject2$Z || (_templateObject2$Z = _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"])));
47969
+ var DropDownWrapper = styled.div(_templateObject3$Q || (_templateObject3$Q = _taggedTemplateLiteralLoose(["\n position: absolute;\n z-index: 4;\n width: 40px;\n height: 40px;\n"])));
47970
+ var EditChannelFooter = styled(ButtonBlock)(_templateObject4$I || (_templateObject4$I = _taggedTemplateLiteralLoose(["\n margin-top: 24px;\n\n & > button {\n margin-left: 12px;\n }\n"])));
47551
47971
  var EditChannel = function EditChannel(_ref) {
47552
47972
  var channel = _ref.channel,
47553
47973
  theme = _ref.theme,
@@ -47802,7 +48222,7 @@ var EditChannel = function EditChannel(_ref) {
47802
48222
  })));
47803
48223
  };
47804
48224
 
47805
- var _templateObject$15, _templateObject2$Z, _templateObject3$Q, _templateObject4$I, _templateObject5$C, _templateObject6$x, _templateObject7$w, _templateObject8$t, _templateObject9$n, _templateObject0$k, _templateObject1$h, _templateObject10$b, _templateObject11$9;
48225
+ var _templateObject$16, _templateObject2$_, _templateObject3$R, _templateObject4$J, _templateObject5$D, _templateObject6$y, _templateObject7$x, _templateObject8$u, _templateObject9$n, _templateObject0$k, _templateObject1$h, _templateObject10$b, _templateObject11$9;
47806
48226
  var Details = function Details(_ref) {
47807
48227
  var _activeChannel$member;
47808
48228
  var detailsTitleText = _ref.detailsTitleText,
@@ -47920,7 +48340,12 @@ var Details = function Details(_ref) {
47920
48340
  backgroundColor = _ref.backgroundColor,
47921
48341
  bordersColor = _ref.bordersColor,
47922
48342
  showPhoneNumber = _ref.showPhoneNumber,
47923
- QRCodeIcon = _ref.QRCodeIcon;
48343
+ QRCodeIcon = _ref.QRCodeIcon,
48344
+ commonGroupsOrder = _ref.commonGroupsOrder,
48345
+ commonGroupsIcon = _ref.commonGroupsIcon,
48346
+ commonGroupsIconColor = _ref.commonGroupsIconColor,
48347
+ commonGroupsTextColor = _ref.commonGroupsTextColor,
48348
+ showGroupsInCommon = _ref.showGroupsInCommon;
47924
48349
  var _useColor = useColors(),
47925
48350
  accentColor = _useColor[THEME_COLORS.ACCENT],
47926
48351
  textPrimary = _useColor[THEME_COLORS.TEXT_PRIMARY],
@@ -48091,7 +48516,7 @@ var Details = function Details(_ref) {
48091
48516
  size: channelAvatarSize || 72,
48092
48517
  textSize: channelAvatarTextSize || 26,
48093
48518
  setDefaultAvatar: isDirectChannel
48094
- }), /*#__PURE__*/React__default.createElement(ChannelInfo$4, {
48519
+ }), /*#__PURE__*/React__default.createElement(ChannelInfo$5, {
48095
48520
  direction: avatarAndNameDirection
48096
48521
  }, /*#__PURE__*/React__default.createElement(ChannelNameWrapper, null, /*#__PURE__*/React__default.createElement(ChannelName$1, {
48097
48522
  isDirect: isDirectChannel,
@@ -48186,7 +48611,12 @@ var Details = function Details(_ref) {
48186
48611
  toggleable: false,
48187
48612
  timeOptionsToMuteNotifications: timeOptionsToMuteNotifications,
48188
48613
  actionItemsFontSize: actionItemsFontSize,
48189
- borderColor: bordersColor
48614
+ borderColor: bordersColor,
48615
+ commonGroupsOrder: commonGroupsOrder,
48616
+ commonGroupsIcon: commonGroupsIcon,
48617
+ commonGroupsIconColor: commonGroupsIconColor,
48618
+ commonGroupsTextColor: commonGroupsTextColor,
48619
+ showGroupsInCommon: showGroupsInCommon
48190
48620
  })), !(activeChannel && activeChannel.isMockChannel) && (/*#__PURE__*/React__default.createElement(DetailsTab, {
48191
48621
  theme: theme,
48192
48622
  channel: activeChannel,
@@ -48233,17 +48663,17 @@ var Details = function Details(_ref) {
48233
48663
  QRCodeIcon: QRCodeIcon
48234
48664
  }))));
48235
48665
  };
48236
- var Container$v = styled.div(_templateObject$15 || (_templateObject$15 = _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) {
48666
+ var Container$v = styled.div(_templateObject$16 || (_templateObject$16 = _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) {
48237
48667
  return props.borderColor;
48238
48668
  }, function (props) {
48239
48669
  return props.mounted && " width: " + (props.size === 'small' ? '300px' : props.size === 'medium' ? '350px' : '400px') + ";";
48240
48670
  }, function (props) {
48241
48671
  return props.backgroundColor;
48242
48672
  });
48243
- var ChannelDetailsHeader = styled.div(_templateObject2$Z || (_templateObject2$Z = _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) {
48673
+ var ChannelDetailsHeader = styled.div(_templateObject2$_ || (_templateObject2$_ = _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) {
48244
48674
  return props.borderColor;
48245
48675
  });
48246
- var ChatDetails = styled.div(_templateObject3$Q || (_templateObject3$Q = _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) {
48676
+ var ChatDetails = styled.div(_templateObject3$R || (_templateObject3$R = _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) {
48247
48677
  return props.size === 'small' ? '300px' : props.size === 'medium' ? '350px' : '400px';
48248
48678
  }, function (props) {
48249
48679
  return props.height ? "calc(100vh - " + props.heightOffset + "px)" : '100vh';
@@ -48252,21 +48682,21 @@ var ChatDetails = styled.div(_templateObject3$Q || (_templateObject3$Q = _tagged
48252
48682
  }, function (props) {
48253
48683
  return props.thumbColor;
48254
48684
  });
48255
- var AboutChannel = styled.div(_templateObject4$I || (_templateObject4$I = _taggedTemplateLiteralLoose(["\n margin-top: 20px;\n"])));
48256
- var AboutChannelTitle = styled.h4(_templateObject5$C || (_templateObject5$C = _taggedTemplateLiteralLoose(["\n font-size: 12px;\n margin: 0;\n line-height: 16px;\n color: ", ";\n"])), function (props) {
48685
+ var AboutChannel = styled.div(_templateObject4$J || (_templateObject4$J = _taggedTemplateLiteralLoose(["\n margin-top: 20px;\n"])));
48686
+ var AboutChannelTitle = styled.h4(_templateObject5$D || (_templateObject5$D = _taggedTemplateLiteralLoose(["\n font-size: 12px;\n margin: 0;\n line-height: 16px;\n color: ", ";\n"])), function (props) {
48257
48687
  return props.color;
48258
48688
  });
48259
- var AboutChannelText = styled.h3(_templateObject6$x || (_templateObject6$x = _taggedTemplateLiteralLoose(["\n font-size: 15px;\n margin: 0;\n font-weight: 400;\n line-height: 20px;\n color: ", ";\n"])), function (props) {
48689
+ var AboutChannelText = styled.h3(_templateObject6$y || (_templateObject6$y = _taggedTemplateLiteralLoose(["\n font-size: 15px;\n margin: 0;\n font-weight: 400;\n line-height: 20px;\n color: ", ";\n"])), function (props) {
48260
48690
  return props.color;
48261
48691
  });
48262
- var ChannelInfo$4 = styled.div(_templateObject7$w || (_templateObject7$w = _taggedTemplateLiteralLoose(["\n position: relative;\n margin-left: ", ";\n margin-top: ", ";\n text-align: ", ";\n"])), function (props) {
48692
+ var ChannelInfo$5 = styled.div(_templateObject7$x || (_templateObject7$x = _taggedTemplateLiteralLoose(["\n position: relative;\n margin-left: ", ";\n margin-top: ", ";\n text-align: ", ";\n"])), function (props) {
48263
48693
  return (!props.direction || props.direction !== 'column') && '16px';
48264
48694
  }, function (props) {
48265
48695
  return props.direction && props.direction === 'column' && '16px';
48266
48696
  }, function (props) {
48267
48697
  return props.direction && props.direction === 'column' && 'center';
48268
48698
  });
48269
- var DetailsHeader = styled.div(_templateObject8$t || (_templateObject8$t = _taggedTemplateLiteralLoose(["\n border-bottom: 6px solid ", ";\n align-items: center;\n box-sizing: border-box;\n padding: 20px 16px;\n"])), function (props) {
48699
+ var DetailsHeader = styled.div(_templateObject8$u || (_templateObject8$u = _taggedTemplateLiteralLoose(["\n border-bottom: 6px solid ", ";\n align-items: center;\n box-sizing: border-box;\n padding: 20px 16px;\n"])), function (props) {
48270
48700
  return props.borderColor;
48271
48701
  });
48272
48702
  var ChannelAvatarAndName = styled.div(_templateObject9$n || (_templateObject9$n = _taggedTemplateLiteralLoose(["\n position: relative;\n display: flex;\n align-items: center;\n box-sizing: border-box;\n flex-direction: ", ";\n"])), function (props) {
@@ -48283,7 +48713,7 @@ var ChannelNameWrapper = styled.div(_templateObject1$h || (_templateObject1$h =
48283
48713
  var EditButton = styled.span(_templateObject10$b || (_templateObject10$b = _taggedTemplateLiteralLoose(["\n margin-left: 6px;\n cursor: pointer;\n color: #b2b6be;\n"])));
48284
48714
  var PhoneNumberContainer = styled.span(_templateObject11$9 || (_templateObject11$9 = _taggedTemplateLiteralLoose(["\n position: relative;\n display: inline-flex;\n align-items: center;\n cursor: pointer;\n user-select: text;\n"])));
48285
48715
 
48286
- var _templateObject$16;
48716
+ var _templateObject$17;
48287
48717
  var ChannelDetailsContainer = function ChannelDetailsContainer(_ref) {
48288
48718
  var _ref$size = _ref.size,
48289
48719
  size = _ref$size === void 0 ? 'large' : _ref$size,
@@ -48396,7 +48826,12 @@ var ChannelDetailsContainer = function ChannelDetailsContainer(_ref) {
48396
48826
  tabItemsMinWidth = _ref.tabItemsMinWidth,
48397
48827
  bordersColor = _ref.bordersColor,
48398
48828
  showPhoneNumber = _ref.showPhoneNumber,
48399
- QRCodeIcon = _ref.QRCodeIcon;
48829
+ QRCodeIcon = _ref.QRCodeIcon,
48830
+ commonGroupsOrder = _ref.commonGroupsOrder,
48831
+ commonGroupsIcon = _ref.commonGroupsIcon,
48832
+ commonGroupsIconColor = _ref.commonGroupsIconColor,
48833
+ commonGroupsTextColor = _ref.commonGroupsTextColor,
48834
+ showGroupsInCommon = _ref.showGroupsInCommon;
48400
48835
  var channelDetailsIsOpen = useSelector(channelInfoIsOpenSelector, shallowEqual);
48401
48836
  useEffect(function () {
48402
48837
  setShowChannelDetails(true);
@@ -48511,34 +48946,39 @@ var ChannelDetailsContainer = function ChannelDetailsContainer(_ref) {
48511
48946
  tabItemsLineHeight: tabItemsLineHeight,
48512
48947
  tabItemsMinWidth: tabItemsMinWidth,
48513
48948
  showPhoneNumber: showPhoneNumber,
48514
- QRCodeIcon: QRCodeIcon
48949
+ QRCodeIcon: QRCodeIcon,
48950
+ commonGroupsOrder: commonGroupsOrder,
48951
+ commonGroupsIcon: commonGroupsIcon,
48952
+ commonGroupsIconColor: commonGroupsIconColor,
48953
+ commonGroupsTextColor: commonGroupsTextColor,
48954
+ showGroupsInCommon: showGroupsInCommon
48515
48955
  })));
48516
48956
  };
48517
- var DetailsWrapper = styled.div(_templateObject$16 || (_templateObject$16 = _taggedTemplateLiteralLoose(["\n user-select: text;\n"])));
48957
+ var DetailsWrapper = styled.div(_templateObject$17 || (_templateObject$17 = _taggedTemplateLiteralLoose(["\n user-select: text;\n"])));
48518
48958
 
48519
- var _path$1C;
48520
- function _extends$1G() {
48521
- return _extends$1G = Object.assign ? Object.assign.bind() : function (n) {
48959
+ var _path$1D;
48960
+ function _extends$1H() {
48961
+ return _extends$1H = Object.assign ? Object.assign.bind() : function (n) {
48522
48962
  for (var e = 1; e < arguments.length; e++) {
48523
48963
  var t = arguments[e];
48524
48964
  for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
48525
48965
  }
48526
48966
  return n;
48527
- }, _extends$1G.apply(null, arguments);
48967
+ }, _extends$1H.apply(null, arguments);
48528
48968
  }
48529
48969
  function SvgChevronDown(props) {
48530
- return /*#__PURE__*/createElement$1("svg", _extends$1G({
48970
+ return /*#__PURE__*/createElement$1("svg", _extends$1H({
48531
48971
  width: 32,
48532
48972
  height: 32,
48533
48973
  fill: "none",
48534
48974
  xmlns: "http://www.w3.org/2000/svg"
48535
- }, props), _path$1C || (_path$1C = /*#__PURE__*/createElement$1("path", {
48975
+ }, props), _path$1D || (_path$1D = /*#__PURE__*/createElement$1("path", {
48536
48976
  d: "M9.298 12.937a1.056 1.056 0 10-1.374 1.603l7.39 6.333c.395.339.978.339 1.373 0l7.389-6.333a1.056 1.056 0 10-1.374-1.603L16 18.68l-6.702-5.744z",
48537
48977
  fill: "CurrentColor"
48538
48978
  })));
48539
48979
  }
48540
48980
 
48541
- var _templateObject$17, _templateObject2$_;
48981
+ var _templateObject$18, _templateObject2$$;
48542
48982
  var MessagesScrollToBottomButton = function MessagesScrollToBottomButton(_ref) {
48543
48983
  var buttonIcon = _ref.buttonIcon,
48544
48984
  buttonWidth = _ref.buttonWidth,
@@ -48621,7 +49061,7 @@ var MessagesScrollToBottomButton = function MessagesScrollToBottomButton(_ref) {
48621
49061
  isMuted: channel.muted
48622
49062
  }, channel.newMessageCount ? channel.newMessageCount > 99 ? '99+' : channel.newMessageCount : '')), buttonIcon || /*#__PURE__*/React__default.createElement(SvgChevronDown, null)));
48623
49063
  };
48624
- var BottomButton = styled.div(_templateObject$17 || (_templateObject$17 = _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) {
49064
+ var BottomButton = styled.div(_templateObject$18 || (_templateObject$18 = _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) {
48625
49065
  return props.animateFrom === 'bottom' && "bottom: " + (props.bottomOffset + (props.bottomPosition === undefined ? 45 : props.bottomPosition) - 130) + "px";
48626
49066
  }, function (props) {
48627
49067
  return props.animateFrom === 'right' && "right: " + (props.rightPosition === undefined ? 16 : props.rightPosition - 100) + "px";
@@ -48632,7 +49072,7 @@ var BottomButton = styled.div(_templateObject$17 || (_templateObject$17 = _tagge
48632
49072
  }, function (props) {
48633
49073
  return props.backgroundColor;
48634
49074
  });
48635
- var UnreadCount$1 = styled.span(_templateObject2$_ || (_templateObject2$_ = _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) {
49075
+ var UnreadCount$1 = styled.span(_templateObject2$$ || (_templateObject2$$ = _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) {
48636
49076
  return props.backgroundColor;
48637
49077
  }, function (props) {
48638
49078
  return props.fontSize || '13px';
@@ -48644,23 +49084,23 @@ var UnreadCount$1 = styled.span(_templateObject2$_ || (_templateObject2$_ = _tag
48644
49084
  return props.textColor || '#fff';
48645
49085
  });
48646
49086
 
48647
- var _path$1D, _path2$d;
48648
- function _extends$1H() {
48649
- return _extends$1H = Object.assign ? Object.assign.bind() : function (n) {
49087
+ var _path$1E, _path2$d;
49088
+ function _extends$1I() {
49089
+ return _extends$1I = Object.assign ? Object.assign.bind() : function (n) {
48650
49090
  for (var e = 1; e < arguments.length; e++) {
48651
49091
  var t = arguments[e];
48652
49092
  for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
48653
49093
  }
48654
49094
  return n;
48655
- }, _extends$1H.apply(null, arguments);
49095
+ }, _extends$1I.apply(null, arguments);
48656
49096
  }
48657
49097
  function SvgMention(props) {
48658
- return /*#__PURE__*/createElement$1("svg", _extends$1H({
49098
+ return /*#__PURE__*/createElement$1("svg", _extends$1I({
48659
49099
  width: 24,
48660
49100
  height: 24,
48661
49101
  fill: "none",
48662
49102
  xmlns: "http://www.w3.org/2000/svg"
48663
- }, props), _path$1D || (_path$1D = /*#__PURE__*/createElement$1("path", {
49103
+ }, props), _path$1E || (_path$1E = /*#__PURE__*/createElement$1("path", {
48664
49104
  d: "M12 15.6a3.6 3.6 0 100-7.2 3.6 3.6 0 000 7.2z",
48665
49105
  stroke: "currentColor",
48666
49106
  strokeWidth: 1.8,
@@ -48675,7 +49115,7 @@ function SvgMention(props) {
48675
49115
  })));
48676
49116
  }
48677
49117
 
48678
- var _templateObject$18, _templateObject2$$;
49118
+ var _templateObject$19, _templateObject2$10;
48679
49119
  var MessagesScrollToUnreadMentionsButton = function MessagesScrollToUnreadMentionsButton(_ref) {
48680
49120
  var buttonIcon = _ref.buttonIcon,
48681
49121
  buttonWidth = _ref.buttonWidth,
@@ -48818,7 +49258,7 @@ var MessagesScrollToUnreadMentionsButton = function MessagesScrollToUnreadMentio
48818
49258
  isMuted: channel.muted
48819
49259
  }, channel.newMentionCount ? channel.newMentionCount > 99 ? '99+' : channel.newMentionCount : '')), buttonIcon || /*#__PURE__*/React__default.createElement(SvgMention, null)));
48820
49260
  };
48821
- var BottomButton$1 = styled.div(_templateObject$18 || (_templateObject$18 = _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) {
49261
+ var BottomButton$1 = styled.div(_templateObject$19 || (_templateObject$19 = _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) {
48822
49262
  return props.animateFrom === 'bottom' && "bottom: " + (props.bottomOffset + (props.bottomPosition === undefined ? 45 : props.bottomPosition) + (props.showsUnreadMentionsButton ? 60 : 0) - 180) + "px";
48823
49263
  }, function (props) {
48824
49264
  return props.animateFrom === 'right' && "right: " + (props.rightPosition === undefined ? 16 : props.rightPosition - 100) + "px";
@@ -48829,7 +49269,7 @@ var BottomButton$1 = styled.div(_templateObject$18 || (_templateObject$18 = _tag
48829
49269
  }, function (props) {
48830
49270
  return props.backgroundColor;
48831
49271
  });
48832
- var UnreadCount$2 = styled.span(_templateObject2$$ || (_templateObject2$$ = _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) {
49272
+ var UnreadCount$2 = styled.span(_templateObject2$10 || (_templateObject2$10 = _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) {
48833
49273
  return props.backgroundColor;
48834
49274
  }, function (props) {
48835
49275
  return props.fontSize || '13px';