sceyt-chat-react-uikit 1.7.8-beta.13 → 1.7.8-beta.15

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;
@@ -44146,7 +44335,9 @@ var SendMessageInput = function SendMessageInput(_ref3) {
44146
44335
  })) : messageForReply.attachments[0].type === attachmentTypes.file && (/*#__PURE__*/React__default.createElement(ReplyIconWrapper, {
44147
44336
  backgroundColor: accentColor,
44148
44337
  iconColor: textOnPrimary
44149
- }, /*#__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, {
44150
44341
  color: accentColor
44151
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({
44152
44343
  text: messageForReply.body,
@@ -44394,7 +44585,9 @@ var CloseEditMode = styled.span(_templateObject6$q || (_templateObject6$q = _tag
44394
44585
  return props.color;
44395
44586
  });
44396
44587
  var UserName$1 = styled.span(_templateObject7$p || (_templateObject7$p = _taggedTemplateLiteralLoose(["\n font-weight: 500;\n margin-left: 4px;\n"])));
44397
- 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
+ });
44398
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) {
44399
44592
  return props.color;
44400
44593
  });
@@ -44792,6 +44985,29 @@ function SvgChevronBottom(props) {
44792
44985
  })));
44793
44986
  }
44794
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
+
44795
45011
  var _templateObject$S, _templateObject2$N, _templateObject3$G;
44796
45012
  function NetworkErrorPopup(_ref) {
44797
45013
  var theme = _ref.theme,
@@ -45097,7 +45313,185 @@ var CustomDropdownOptionsUl = styled(DropdownOptionsUl)(_templateObject7$q || (_
45097
45313
  }, CustomDropdownOptionLi);
45098
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"])));
45099
45315
 
45100
- 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\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 font-family: Inter;\n letter-spacing: -0.2px;\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-weight: 400;\n font-size: 14px;\n line-height: 20px;\n letter-spacing: -0.2px;\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;
45101
45495
  var Actions = function Actions(_ref) {
45102
45496
  var _getDisappearingSetti;
45103
45497
  var setActionsHeight = _ref.setActionsHeight,
@@ -45172,7 +45566,12 @@ var Actions = function Actions(_ref) {
45172
45566
  deleteAllMessagesIcon = _ref.deleteAllMessagesIcon,
45173
45567
  deleteAllMessagesTextColor = _ref.deleteAllMessagesTextColor,
45174
45568
  actionItemsFontSize = _ref.actionItemsFontSize,
45175
- 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;
45176
45575
  var _useColor = useColors(),
45177
45576
  textPrimary = _useColor[THEME_COLORS.TEXT_PRIMARY],
45178
45577
  textSecondary = _useColor[THEME_COLORS.TEXT_SECONDARY],
@@ -45209,14 +45608,17 @@ var Actions = function Actions(_ref) {
45209
45608
  var _useState9 = useState(false),
45210
45609
  disappearingMessagesPopupOpen = _useState9[0],
45211
45610
  setDisappearingMessagesPopupOpen = _useState9[1];
45611
+ var _useState0 = useState(false),
45612
+ groupsInCommonPopupOpen = _useState0[0],
45613
+ setGroupsInCommonPopupOpen = _useState0[1];
45212
45614
  var _usePermissions = usePermissions(channel.userRole),
45213
45615
  checkActionPermission = _usePermissions[0];
45214
- var _useState0 = useState(''),
45215
- popupButtonText = _useState0[0],
45216
- setPopupButtonText = _useState0[1];
45217
45616
  var _useState1 = useState(''),
45218
- popupTitle = _useState1[0],
45219
- setPopupTitle = _useState1[1];
45617
+ popupButtonText = _useState1[0],
45618
+ setPopupButtonText = _useState1[1];
45619
+ var _useState10 = useState(''),
45620
+ popupTitle = _useState10[0],
45621
+ setPopupTitle = _useState10[1];
45220
45622
  var dispatch = useDispatch();
45221
45623
  var oneHour = 60 * 60 * 1000;
45222
45624
  var twoHours = oneHour * 2;
@@ -45309,6 +45711,9 @@ var Actions = function Actions(_ref) {
45309
45711
  dispatch(pinChannelAC(channel.id));
45310
45712
  }
45311
45713
  };
45714
+ var handleToggleGroupsInCommonPopup = function handleToggleGroupsInCommonPopup() {
45715
+ setGroupsInCommonPopupOpen(!groupsInCommonPopupOpen);
45716
+ };
45312
45717
  var handleToggleDisappearingMessagesPopup = function handleToggleDisappearingMessagesPopup() {
45313
45718
  setDisappearingMessagesPopupOpen(!disappearingMessagesPopupOpen);
45314
45719
  };
@@ -45420,7 +45825,7 @@ var Actions = function Actions(_ref) {
45420
45825
  "$isLightMode": backgroundColor === '#FFFFFF'
45421
45826
  }), "Disappearing messages", /*#__PURE__*/React__default.createElement(DisappearingMessagesStatusWrapper, null, /*#__PURE__*/React__default.createElement(DisappearingMessagesStatus, {
45422
45827
  color: textSecondary
45423
- }, 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, {
45424
45829
  color: iconPrimary
45425
45830
  })))))), showPinChannel && !channel.isMockChannel && (isDirectChannel && directChannelUser ? directChannelUser.state !== USER_STATE.DELETED : true) && (/*#__PURE__*/React__default.createElement(ActionItem, {
45426
45831
  key: 2,
@@ -45446,7 +45851,17 @@ var Actions = function Actions(_ref) {
45446
45851
  color: markAsReadUnreadTextColor || textPrimary,
45447
45852
  hoverColor: markAsReadUnreadTextColor || textPrimary,
45448
45853
  fontSize: actionItemsFontSize
45449
- }, /*#__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, {
45450
45865
  key: 4,
45451
45866
  order: leaveChannelOrder,
45452
45867
  color: leaveChannelTextColor || warningColor,
@@ -45593,20 +46008,26 @@ var Actions = function Actions(_ref) {
45593
46008
  togglePopup: handleToggleDisappearingMessagesPopup,
45594
46009
  handleSetTimer: handleSetDisappearingMessagesTimer,
45595
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
+ })
45596
46017
  })));
45597
46018
  };
45598
- 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) {
45599
46020
  return props.borderColor;
45600
46021
  });
45601
- 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"])));
45602
- 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) {
45603
46024
  return !props.isOpen && ' transform: rotate(-90deg);';
45604
46025
  });
45605
- 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"])));
45606
- var DefaultMutedIcon = styled(SvgUnmuteNotifications)(_templateObject5$w || (_templateObject5$w = _taggedTemplateLiteralLoose([""])));
45607
- var DefaultMuteIcon = styled(SvgNotifications)(_templateObject6$s || (_templateObject6$s = _taggedTemplateLiteralLoose([""])));
45608
- var DefaultStarIcon = styled(SvgStar)(_templateObject7$r || (_templateObject7$r = _taggedTemplateLiteralLoose([""])));
45609
- 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([""])));
45610
46031
  var DefaultPinIcon = styled(SvgPin)(_templateObject9$k || (_templateObject9$k = _taggedTemplateLiteralLoose([""])));
45611
46032
  var DefaultMarkAsRead = styled(SvgMarkAsRead)(_templateObject0$i || (_templateObject0$i = _taggedTemplateLiteralLoose([""])));
45612
46033
  var DefaultMarkAsUnRead = styled(SvgMarkAsUnRead)(_templateObject1$f || (_templateObject1$f = _taggedTemplateLiteralLoose([""])));
@@ -45638,20 +46059,20 @@ var DisappearingMessagesStatusWrapper = styled.div(_templateObject18$3 || (_temp
45638
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) {
45639
46060
  return props.color;
45640
46061
  });
45641
- 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"])));
45642
46063
 
45643
- var _rect$2, _rect2, _path$1v;
45644
- function _extends$1z() {
45645
- 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) {
45646
46067
  for (var e = 1; e < arguments.length; e++) {
45647
46068
  var t = arguments[e];
45648
46069
  for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
45649
46070
  }
45650
46071
  return n;
45651
- }, _extends$1z.apply(null, arguments);
46072
+ }, _extends$1A.apply(null, arguments);
45652
46073
  }
45653
46074
  function SvgAddMember(props) {
45654
- return /*#__PURE__*/createElement$1("svg", _extends$1z({
46075
+ return /*#__PURE__*/createElement$1("svg", _extends$1A({
45655
46076
  width: 40,
45656
46077
  height: 40,
45657
46078
  viewBox: "0 0 40.01 40.01",
@@ -45671,35 +46092,35 @@ function SvgAddMember(props) {
45671
46092
  stroke: "#000",
45672
46093
  strokeOpacity: 0.08,
45673
46094
  strokeWidth: 0.5
45674
- })), _path$1v || (_path$1v = /*#__PURE__*/createElement$1("path", {
46095
+ })), _path$1w || (_path$1w = /*#__PURE__*/createElement$1("path", {
45675
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",
45676
46097
  fill: "CurrentColor"
45677
46098
  })));
45678
46099
  }
45679
46100
 
45680
- var _path$1w;
45681
- function _extends$1A() {
45682
- 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) {
45683
46104
  for (var e = 1; e < arguments.length; e++) {
45684
46105
  var t = arguments[e];
45685
46106
  for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
45686
46107
  }
45687
46108
  return n;
45688
- }, _extends$1A.apply(null, arguments);
46109
+ }, _extends$1B.apply(null, arguments);
45689
46110
  }
45690
46111
  function SvgMoreVert(props) {
45691
- return /*#__PURE__*/createElement$1("svg", _extends$1A({
46112
+ return /*#__PURE__*/createElement$1("svg", _extends$1B({
45692
46113
  width: 4,
45693
46114
  height: 14,
45694
46115
  fill: "none",
45695
46116
  xmlns: "http://www.w3.org/2000/svg"
45696
- }, props), _path$1w || (_path$1w = /*#__PURE__*/createElement$1("path", {
46117
+ }, props), _path$1x || (_path$1x = /*#__PURE__*/createElement$1("path", {
45697
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",
45698
46119
  fill: "#9B9DA8"
45699
46120
  })));
45700
46121
  }
45701
46122
 
45702
- var _templateObject$V, _templateObject2$Q, _templateObject3$J;
46123
+ var _templateObject$W, _templateObject2$R, _templateObject3$K;
45703
46124
  var ChangeMemberRole = function ChangeMemberRole(_ref) {
45704
46125
  var theme = _ref.theme,
45705
46126
  channelId = _ref.channelId,
@@ -45802,12 +46223,12 @@ var ChangeMemberRole = function ChangeMemberRole(_ref) {
45802
46223
  onClick: handleSave
45803
46224
  }, "Save"))));
45804
46225
  };
45805
- var RolesSelect = styled.div(_templateObject$V || (_templateObject$V = _taggedTemplateLiteralLoose(["\n margin-bottom: 32px;\n"])));
45806
- 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) {
45807
46228
  var color = _ref2.color;
45808
46229
  return color;
45809
46230
  });
45810
- 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"])));
45811
46232
 
45812
46233
  function ResetLinkConfirmModal(_ref) {
45813
46234
  var _getInviteLinkOptions;
@@ -45844,7 +46265,7 @@ function ResetLinkConfirmModal(_ref) {
45844
46265
  });
45845
46266
  }
45846
46267
 
45847
- 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;
45848
46269
  function InviteLinkModal(_ref) {
45849
46270
  var _getInviteLinkOptions, _tabs$link, _tabs$qr, _tabs$link2, _tabs$qr2;
45850
46271
  var onClose = _ref.onClose,
@@ -46328,34 +46749,34 @@ function InviteLinkModal(_ref) {
46328
46749
  handleForward: handleForwardChannels
46329
46750
  })));
46330
46751
  }
46331
- 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"])));
46332
- 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) {
46333
46754
  return p.backgroundColor;
46334
46755
  }, function (p) {
46335
46756
  return p.borderColor;
46336
46757
  });
46337
- 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) {
46338
46759
  return p.active ? p.activeBackgroundColor : p.backgroundColor;
46339
46760
  }, function (p) {
46340
46761
  return p.active && "\n box-shadow: 0px 3px 6px -4px #0000001F;\n ";
46341
46762
  }, function (p) {
46342
46763
  return p.active ? p.activeColor : p.inactiveColor;
46343
46764
  });
46344
- 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) {
46345
46766
  return p.color;
46346
46767
  });
46347
- 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) {
46348
46769
  return p.color;
46349
46770
  });
46350
- 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) {
46351
46772
  return p.borderColor;
46352
46773
  }, function (p) {
46353
46774
  return p.backgroundColor;
46354
46775
  });
46355
- 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) {
46356
46777
  return p.color;
46357
46778
  });
46358
- 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"])));
46359
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"])));
46360
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) {
46361
46782
  return p.color;
@@ -46376,7 +46797,7 @@ var QrHint = styled.p(_templateObject13$5 || (_templateObject13$5 = _taggedTempl
46376
46797
  return p.color;
46377
46798
  });
46378
46799
 
46379
- 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;
46380
46801
  var Members = function Members(_ref) {
46381
46802
  var _members$find;
46382
46803
  var channel = _ref.channel,
@@ -46688,18 +47109,18 @@ var Members = function Members(_ref) {
46688
47109
  channelId: channel.id
46689
47110
  })));
46690
47111
  };
46691
- var Container$o = styled.div(_templateObject$X || (_templateObject$X = _taggedTemplateLiteralLoose([""])));
46692
- var ActionsMenu$1 = styled.div(_templateObject2$S || (_templateObject2$S = _taggedTemplateLiteralLoose(["\n position: relative;\n transition: all 0.2s;\n"])));
46693
- 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);
46694
- var MemberNameWrapper = styled.div(_templateObject4$D || (_templateObject4$D = _taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n"])));
46695
- 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) {
46696
47117
  return props.color;
46697
47118
  });
46698
- 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) {
46699
47120
  return props.color;
46700
47121
  });
46701
- 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"])));
46702
- 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) {
46703
47124
  return props.fontSize || '15px';
46704
47125
  }, function (props) {
46705
47126
  return props.color;
@@ -46716,7 +47137,7 @@ var RoleBadge = styled.span(_templateObject9$m || (_templateObject9$m = _taggedT
46716
47137
  return props.backgroundColor;
46717
47138
  });
46718
47139
 
46719
- var _templateObject$Y;
47140
+ var _templateObject$Z;
46720
47141
  var MonthHeader = function MonthHeader(_ref) {
46721
47142
  var currentCreatedAt = _ref.currentCreatedAt,
46722
47143
  previousCreatedAt = _ref.previousCreatedAt,
@@ -46741,7 +47162,7 @@ var MonthHeader = function MonthHeader(_ref) {
46741
47162
  }, [currentCreatedAt, previousCreatedAt, isFirst, textSecondary, padding, fullWidth]);
46742
47163
  return monthComponent;
46743
47164
  };
46744
- 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) {
46745
47166
  return props.padding || '9px 12px';
46746
47167
  }, function (props) {
46747
47168
  return props.fullWidth ? '100%' : 'auto';
@@ -46749,7 +47170,7 @@ var MonthHeaderContainer = styled.div(_templateObject$Y || (_templateObject$Y =
46749
47170
  return props.color;
46750
47171
  });
46751
47172
 
46752
- var _templateObject$Z, _templateObject2$T;
47173
+ var _templateObject$_, _templateObject2$U;
46753
47174
  var Media = function Media(_ref) {
46754
47175
  var channel = _ref.channel;
46755
47176
  var _useColor = useColors(),
@@ -46801,21 +47222,21 @@ var Media = function Media(_ref) {
46801
47222
  currentMediaFile: mediaFile
46802
47223
  })));
46803
47224
  };
46804
- 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"])));
46805
- 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"])));
46806
47227
 
46807
- var _rect$3, _path$1x;
46808
- function _extends$1B() {
46809
- 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) {
46810
47231
  for (var e = 1; e < arguments.length; e++) {
46811
47232
  var t = arguments[e];
46812
47233
  for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
46813
47234
  }
46814
47235
  return n;
46815
- }, _extends$1B.apply(null, arguments);
47236
+ }, _extends$1C.apply(null, arguments);
46816
47237
  }
46817
47238
  function SvgDocumentIcon(props) {
46818
- return /*#__PURE__*/createElement$1("svg", _extends$1B({
47239
+ return /*#__PURE__*/createElement$1("svg", _extends$1C({
46819
47240
  width: 40,
46820
47241
  height: 40,
46821
47242
  fill: "none",
@@ -46826,7 +47247,7 @@ function SvgDocumentIcon(props) {
46826
47247
  rx: 8,
46827
47248
  fill: "currentColor",
46828
47249
  fillOpacity: 0.2
46829
- })), _path$1x || (_path$1x = /*#__PURE__*/createElement$1("path", {
47250
+ })), _path$1y || (_path$1y = /*#__PURE__*/createElement$1("path", {
46830
47251
  fillRule: "evenodd",
46831
47252
  clipRule: "evenodd",
46832
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",
@@ -46834,30 +47255,30 @@ function SvgDocumentIcon(props) {
46834
47255
  })));
46835
47256
  }
46836
47257
 
46837
- var _path$1y;
46838
- function _extends$1C() {
46839
- 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) {
46840
47261
  for (var e = 1; e < arguments.length; e++) {
46841
47262
  var t = arguments[e];
46842
47263
  for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
46843
47264
  }
46844
47265
  return n;
46845
- }, _extends$1C.apply(null, arguments);
47266
+ }, _extends$1D.apply(null, arguments);
46846
47267
  }
46847
47268
  function SvgDownloadFile(props) {
46848
- return /*#__PURE__*/createElement$1("svg", _extends$1C({
47269
+ return /*#__PURE__*/createElement$1("svg", _extends$1D({
46849
47270
  width: 24,
46850
47271
  height: 24,
46851
47272
  xmlns: "http://www.w3.org/2000/svg",
46852
47273
  fill: "currentColor"
46853
- }, props), _path$1y || (_path$1y = /*#__PURE__*/createElement$1("path", {
47274
+ }, props), _path$1z || (_path$1z = /*#__PURE__*/createElement$1("path", {
46854
47275
  fillRule: "evenodd",
46855
47276
  clipRule: "evenodd",
46856
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"
46857
47278
  })));
46858
47279
  }
46859
47280
 
46860
- 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;
46861
47282
  var Files = function Files(_ref) {
46862
47283
  var channelId = _ref.channelId,
46863
47284
  filePreviewIcon = _ref.filePreviewIcon,
@@ -46979,30 +47400,30 @@ var Files = function Files(_ref) {
46979
47400
  }))) : filePreviewDownloadIcon || /*#__PURE__*/React__default.createElement(SvgDownloadFile, null))));
46980
47401
  }));
46981
47402
  };
46982
- 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"])));
46983
- 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) {
46984
47405
  return props.visible ? 'visible' : 'hidden';
46985
47406
  }, function (props) {
46986
47407
  return props.iconColor;
46987
47408
  }, function (props) {
46988
47409
  return props.iconColor;
46989
47410
  });
46990
- 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"])));
46991
- 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) {
46992
47413
  return props.iconColor;
46993
47414
  }, function (props) {
46994
47415
  return props.fillColor;
46995
47416
  });
46996
- 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) {
46997
47418
  return props.iconColor;
46998
47419
  }, function (props) {
46999
47420
  return props.fillColor;
47000
47421
  });
47001
- 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"])));
47002
- 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) {
47003
47424
  return props.hoverBackgroundColor;
47004
47425
  }, DownloadWrapper, FileIconCont, FileHoverIconCont);
47005
- 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) {
47006
47427
  return props.fontSize || '13px';
47007
47428
  }, function (props) {
47008
47429
  return props.lineHeight || '16px';
@@ -47010,18 +47431,18 @@ var FileSizeAndDate = styled.span(_templateObject8$r || (_templateObject8$r = _t
47010
47431
  return props.color;
47011
47432
  });
47012
47433
 
47013
- var _rect$4, _path$1z;
47014
- function _extends$1D() {
47015
- 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) {
47016
47437
  for (var e = 1; e < arguments.length; e++) {
47017
47438
  var t = arguments[e];
47018
47439
  for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
47019
47440
  }
47020
47441
  return n;
47021
- }, _extends$1D.apply(null, arguments);
47442
+ }, _extends$1E.apply(null, arguments);
47022
47443
  }
47023
47444
  function SvgLinkIcon(props) {
47024
- return /*#__PURE__*/createElement$1("svg", _extends$1D({
47445
+ return /*#__PURE__*/createElement$1("svg", _extends$1E({
47025
47446
  width: 40,
47026
47447
  height: 40,
47027
47448
  fill: "none",
@@ -47033,7 +47454,7 @@ function SvgLinkIcon(props) {
47033
47454
  rx: 8,
47034
47455
  fill: "currentColor",
47035
47456
  fillOpacity: 0.2
47036
- })), _path$1z || (_path$1z = /*#__PURE__*/createElement$1("path", {
47457
+ })), _path$1A || (_path$1A = /*#__PURE__*/createElement$1("path", {
47037
47458
  fillRule: "evenodd",
47038
47459
  clipRule: "evenodd",
47039
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",
@@ -47041,7 +47462,7 @@ function SvgLinkIcon(props) {
47041
47462
  })));
47042
47463
  }
47043
47464
 
47044
- var _templateObject$$, _templateObject2$V, _templateObject3$N, _templateObject4$F, _templateObject5$A;
47465
+ var _templateObject$10, _templateObject2$W, _templateObject3$O, _templateObject4$G, _templateObject5$B;
47045
47466
  var LinkItem = function LinkItem(_ref) {
47046
47467
  var link = _ref.link,
47047
47468
  linkPreviewIcon = _ref.linkPreviewIcon,
@@ -47072,25 +47493,25 @@ var LinkItem = function LinkItem(_ref) {
47072
47493
  color: linkPreviewColor || textPrimary
47073
47494
  }, link))));
47074
47495
  };
47075
- 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) {
47076
47497
  return props.iconColor;
47077
47498
  }, function (props) {
47078
47499
  return props.fillColor;
47079
47500
  });
47080
- 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) {
47081
47502
  return props.iconColor;
47082
47503
  }, function (props) {
47083
47504
  return props.fillColor;
47084
47505
  });
47085
- var LinkInfoCont = styled.div(_templateObject3$N || (_templateObject3$N = _taggedTemplateLiteralLoose(["\n margin-left: 12px;\n width: calc(100% - 40px);\n"])));
47086
- 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) {
47087
47508
  return props.hoverBackgroundColor;
47088
47509
  }, LinkIconCont, LinkHoverIconCont);
47089
- 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) {
47090
47511
  return props.color;
47091
47512
  });
47092
47513
 
47093
- var _templateObject$10;
47514
+ var _templateObject$11;
47094
47515
  var Links = function Links(_ref) {
47095
47516
  var channelId = _ref.channelId,
47096
47517
  linkPreviewIcon = _ref.linkPreviewIcon,
@@ -47121,20 +47542,20 @@ var Links = function Links(_ref) {
47121
47542
  }));
47122
47543
  }));
47123
47544
  };
47124
- 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"])));
47125
47546
 
47126
- var _rect$5, _path$1A;
47127
- function _extends$1E() {
47128
- 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) {
47129
47550
  for (var e = 1; e < arguments.length; e++) {
47130
47551
  var t = arguments[e];
47131
47552
  for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
47132
47553
  }
47133
47554
  return n;
47134
- }, _extends$1E.apply(null, arguments);
47555
+ }, _extends$1F.apply(null, arguments);
47135
47556
  }
47136
47557
  function SvgVoicePreview(props) {
47137
- return /*#__PURE__*/createElement$1("svg", _extends$1E({
47558
+ return /*#__PURE__*/createElement$1("svg", _extends$1F({
47138
47559
  width: 40,
47139
47560
  height: 40,
47140
47561
  fill: "none",
@@ -47144,24 +47565,24 @@ function SvgVoicePreview(props) {
47144
47565
  height: 40,
47145
47566
  rx: 20,
47146
47567
  fill: "#5159F6"
47147
- })), _path$1A || (_path$1A = /*#__PURE__*/createElement$1("path", {
47568
+ })), _path$1B || (_path$1B = /*#__PURE__*/createElement$1("path", {
47148
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",
47149
47570
  fill: "#fff"
47150
47571
  })));
47151
47572
  }
47152
47573
 
47153
- var _rect$6, _path$1B;
47154
- function _extends$1F() {
47155
- 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) {
47156
47577
  for (var e = 1; e < arguments.length; e++) {
47157
47578
  var t = arguments[e];
47158
47579
  for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
47159
47580
  }
47160
47581
  return n;
47161
- }, _extends$1F.apply(null, arguments);
47582
+ }, _extends$1G.apply(null, arguments);
47162
47583
  }
47163
47584
  function SvgVoicePreviewPause(props) {
47164
- return /*#__PURE__*/createElement$1("svg", _extends$1F({
47585
+ return /*#__PURE__*/createElement$1("svg", _extends$1G({
47165
47586
  width: 40,
47166
47587
  height: 40,
47167
47588
  fill: "none",
@@ -47171,13 +47592,13 @@ function SvgVoicePreviewPause(props) {
47171
47592
  height: 40,
47172
47593
  rx: 20,
47173
47594
  fill: "#5159F6"
47174
- })), _path$1B || (_path$1B = /*#__PURE__*/createElement$1("path", {
47595
+ })), _path$1C || (_path$1C = /*#__PURE__*/createElement$1("path", {
47175
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",
47176
47597
  fill: "#fff"
47177
47598
  })));
47178
47599
  }
47179
47600
 
47180
- 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;
47181
47602
  var VoiceItem = function VoiceItem(_ref) {
47182
47603
  var file = _ref.file,
47183
47604
  voicePreviewPlayIcon = _ref.voicePreviewPlayIcon,
@@ -47302,32 +47723,32 @@ var VoiceItem = function VoiceItem(_ref) {
47302
47723
  type: 'audio/mpeg'
47303
47724
  })));
47304
47725
  };
47305
- 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) {
47306
47727
  return props.fill || 'transparent';
47307
47728
  }, function (props) {
47308
47729
  return props.fill || 'transparent';
47309
47730
  });
47310
- 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) {
47311
47732
  return props.fill || 'transparent';
47312
47733
  }, function (props) {
47313
47734
  return props.fill || 'transparent';
47314
47735
  });
47315
- 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) {
47316
47737
  return props.hoverBackgroundColor;
47317
47738
  }, FileIconCont$1, FileHoverIconCont$1);
47318
- var AudioInfo = styled.div(_templateObject4$G || (_templateObject4$G = _taggedTemplateLiteralLoose(["\n position: relative;\n"])));
47319
- 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) {
47320
47741
  return props.color;
47321
47742
  });
47322
- 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) {
47323
47744
  return props.color;
47324
47745
  });
47325
- 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) {
47326
47747
  return props.color;
47327
47748
  });
47328
- 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"])));
47329
47750
 
47330
- var _templateObject$12;
47751
+ var _templateObject$13;
47331
47752
  var Voices = function Voices(_ref) {
47332
47753
  var channelId = _ref.channelId,
47333
47754
  voicePreviewPlayIcon = _ref.voicePreviewPlayIcon,
@@ -47364,9 +47785,9 @@ var Voices = function Voices(_ref) {
47364
47785
  }));
47365
47786
  }));
47366
47787
  };
47367
- 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"])));
47368
47789
 
47369
- var _templateObject$13, _templateObject2$X;
47790
+ var _templateObject$14, _templateObject2$Y;
47370
47791
  var DetailsTab = function DetailsTab(_ref) {
47371
47792
  var channel = _ref.channel,
47372
47793
  theme = _ref.theme,
@@ -47517,8 +47938,8 @@ var DetailsTab = function DetailsTab(_ref) {
47517
47938
  voicePreviewHoverBackgroundColor: voicePreviewHoverBackgroundColor
47518
47939
  })));
47519
47940
  };
47520
- var Container$t = styled.div(_templateObject$13 || (_templateObject$13 = _taggedTemplateLiteralLoose(["\n min-height: calc(100vh - 64px);\n"])));
47521
- 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) {
47522
47943
  return props.borderColor;
47523
47944
  }, function (props) {
47524
47945
  return props.backgroundColor || 'transparent';
@@ -47536,17 +47957,17 @@ var DetailsTabHeader = styled.div(_templateObject2$X || (_templateObject2$X = _t
47536
47957
  return props.activeTabColor;
47537
47958
  });
47538
47959
 
47539
- var _templateObject$14, _templateObject2$Y, _templateObject3$P, _templateObject4$H;
47540
- 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) {
47541
47962
  return props.active ? 'display: block' : 'display: none';
47542
47963
  }, function (props) {
47543
47964
  return "calc(100vh - " + (props.heightOffset ? props.heightOffset + 48 : 48) + "px)";
47544
47965
  }, function (props) {
47545
47966
  return props.backgroundColor;
47546
47967
  });
47547
- 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"])));
47548
- var DropDownWrapper = styled.div(_templateObject3$P || (_templateObject3$P = _taggedTemplateLiteralLoose(["\n position: absolute;\n z-index: 4;\n width: 40px;\n height: 40px;\n"])));
47549
- 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"])));
47550
47971
  var EditChannel = function EditChannel(_ref) {
47551
47972
  var channel = _ref.channel,
47552
47973
  theme = _ref.theme,
@@ -47801,7 +48222,7 @@ var EditChannel = function EditChannel(_ref) {
47801
48222
  })));
47802
48223
  };
47803
48224
 
47804
- 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;
47805
48226
  var Details = function Details(_ref) {
47806
48227
  var _activeChannel$member;
47807
48228
  var detailsTitleText = _ref.detailsTitleText,
@@ -47919,7 +48340,12 @@ var Details = function Details(_ref) {
47919
48340
  backgroundColor = _ref.backgroundColor,
47920
48341
  bordersColor = _ref.bordersColor,
47921
48342
  showPhoneNumber = _ref.showPhoneNumber,
47922
- 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;
47923
48349
  var _useColor = useColors(),
47924
48350
  accentColor = _useColor[THEME_COLORS.ACCENT],
47925
48351
  textPrimary = _useColor[THEME_COLORS.TEXT_PRIMARY],
@@ -48090,7 +48516,7 @@ var Details = function Details(_ref) {
48090
48516
  size: channelAvatarSize || 72,
48091
48517
  textSize: channelAvatarTextSize || 26,
48092
48518
  setDefaultAvatar: isDirectChannel
48093
- }), /*#__PURE__*/React__default.createElement(ChannelInfo$4, {
48519
+ }), /*#__PURE__*/React__default.createElement(ChannelInfo$5, {
48094
48520
  direction: avatarAndNameDirection
48095
48521
  }, /*#__PURE__*/React__default.createElement(ChannelNameWrapper, null, /*#__PURE__*/React__default.createElement(ChannelName$1, {
48096
48522
  isDirect: isDirectChannel,
@@ -48185,7 +48611,12 @@ var Details = function Details(_ref) {
48185
48611
  toggleable: false,
48186
48612
  timeOptionsToMuteNotifications: timeOptionsToMuteNotifications,
48187
48613
  actionItemsFontSize: actionItemsFontSize,
48188
- borderColor: bordersColor
48614
+ borderColor: bordersColor,
48615
+ commonGroupsOrder: commonGroupsOrder,
48616
+ commonGroupsIcon: commonGroupsIcon,
48617
+ commonGroupsIconColor: commonGroupsIconColor,
48618
+ commonGroupsTextColor: commonGroupsTextColor,
48619
+ showGroupsInCommon: showGroupsInCommon
48189
48620
  })), !(activeChannel && activeChannel.isMockChannel) && (/*#__PURE__*/React__default.createElement(DetailsTab, {
48190
48621
  theme: theme,
48191
48622
  channel: activeChannel,
@@ -48232,17 +48663,17 @@ var Details = function Details(_ref) {
48232
48663
  QRCodeIcon: QRCodeIcon
48233
48664
  }))));
48234
48665
  };
48235
- 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) {
48236
48667
  return props.borderColor;
48237
48668
  }, function (props) {
48238
48669
  return props.mounted && " width: " + (props.size === 'small' ? '300px' : props.size === 'medium' ? '350px' : '400px') + ";";
48239
48670
  }, function (props) {
48240
48671
  return props.backgroundColor;
48241
48672
  });
48242
- 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) {
48243
48674
  return props.borderColor;
48244
48675
  });
48245
- 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) {
48246
48677
  return props.size === 'small' ? '300px' : props.size === 'medium' ? '350px' : '400px';
48247
48678
  }, function (props) {
48248
48679
  return props.height ? "calc(100vh - " + props.heightOffset + "px)" : '100vh';
@@ -48251,21 +48682,21 @@ var ChatDetails = styled.div(_templateObject3$Q || (_templateObject3$Q = _tagged
48251
48682
  }, function (props) {
48252
48683
  return props.thumbColor;
48253
48684
  });
48254
- var AboutChannel = styled.div(_templateObject4$I || (_templateObject4$I = _taggedTemplateLiteralLoose(["\n margin-top: 20px;\n"])));
48255
- 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) {
48256
48687
  return props.color;
48257
48688
  });
48258
- 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) {
48259
48690
  return props.color;
48260
48691
  });
48261
- 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) {
48262
48693
  return (!props.direction || props.direction !== 'column') && '16px';
48263
48694
  }, function (props) {
48264
48695
  return props.direction && props.direction === 'column' && '16px';
48265
48696
  }, function (props) {
48266
48697
  return props.direction && props.direction === 'column' && 'center';
48267
48698
  });
48268
- 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) {
48269
48700
  return props.borderColor;
48270
48701
  });
48271
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) {
@@ -48282,7 +48713,7 @@ var ChannelNameWrapper = styled.div(_templateObject1$h || (_templateObject1$h =
48282
48713
  var EditButton = styled.span(_templateObject10$b || (_templateObject10$b = _taggedTemplateLiteralLoose(["\n margin-left: 6px;\n cursor: pointer;\n color: #b2b6be;\n"])));
48283
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"])));
48284
48715
 
48285
- var _templateObject$16;
48716
+ var _templateObject$17;
48286
48717
  var ChannelDetailsContainer = function ChannelDetailsContainer(_ref) {
48287
48718
  var _ref$size = _ref.size,
48288
48719
  size = _ref$size === void 0 ? 'large' : _ref$size,
@@ -48395,7 +48826,12 @@ var ChannelDetailsContainer = function ChannelDetailsContainer(_ref) {
48395
48826
  tabItemsMinWidth = _ref.tabItemsMinWidth,
48396
48827
  bordersColor = _ref.bordersColor,
48397
48828
  showPhoneNumber = _ref.showPhoneNumber,
48398
- 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;
48399
48835
  var channelDetailsIsOpen = useSelector(channelInfoIsOpenSelector, shallowEqual);
48400
48836
  useEffect(function () {
48401
48837
  setShowChannelDetails(true);
@@ -48510,34 +48946,39 @@ var ChannelDetailsContainer = function ChannelDetailsContainer(_ref) {
48510
48946
  tabItemsLineHeight: tabItemsLineHeight,
48511
48947
  tabItemsMinWidth: tabItemsMinWidth,
48512
48948
  showPhoneNumber: showPhoneNumber,
48513
- QRCodeIcon: QRCodeIcon
48949
+ QRCodeIcon: QRCodeIcon,
48950
+ commonGroupsOrder: commonGroupsOrder,
48951
+ commonGroupsIcon: commonGroupsIcon,
48952
+ commonGroupsIconColor: commonGroupsIconColor,
48953
+ commonGroupsTextColor: commonGroupsTextColor,
48954
+ showGroupsInCommon: showGroupsInCommon
48514
48955
  })));
48515
48956
  };
48516
- 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"])));
48517
48958
 
48518
- var _path$1C;
48519
- function _extends$1G() {
48520
- 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) {
48521
48962
  for (var e = 1; e < arguments.length; e++) {
48522
48963
  var t = arguments[e];
48523
48964
  for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
48524
48965
  }
48525
48966
  return n;
48526
- }, _extends$1G.apply(null, arguments);
48967
+ }, _extends$1H.apply(null, arguments);
48527
48968
  }
48528
48969
  function SvgChevronDown(props) {
48529
- return /*#__PURE__*/createElement$1("svg", _extends$1G({
48970
+ return /*#__PURE__*/createElement$1("svg", _extends$1H({
48530
48971
  width: 32,
48531
48972
  height: 32,
48532
48973
  fill: "none",
48533
48974
  xmlns: "http://www.w3.org/2000/svg"
48534
- }, props), _path$1C || (_path$1C = /*#__PURE__*/createElement$1("path", {
48975
+ }, props), _path$1D || (_path$1D = /*#__PURE__*/createElement$1("path", {
48535
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",
48536
48977
  fill: "CurrentColor"
48537
48978
  })));
48538
48979
  }
48539
48980
 
48540
- var _templateObject$17, _templateObject2$_;
48981
+ var _templateObject$18, _templateObject2$$;
48541
48982
  var MessagesScrollToBottomButton = function MessagesScrollToBottomButton(_ref) {
48542
48983
  var buttonIcon = _ref.buttonIcon,
48543
48984
  buttonWidth = _ref.buttonWidth,
@@ -48620,7 +49061,7 @@ var MessagesScrollToBottomButton = function MessagesScrollToBottomButton(_ref) {
48620
49061
  isMuted: channel.muted
48621
49062
  }, channel.newMessageCount ? channel.newMessageCount > 99 ? '99+' : channel.newMessageCount : '')), buttonIcon || /*#__PURE__*/React__default.createElement(SvgChevronDown, null)));
48622
49063
  };
48623
- 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) {
48624
49065
  return props.animateFrom === 'bottom' && "bottom: " + (props.bottomOffset + (props.bottomPosition === undefined ? 45 : props.bottomPosition) - 130) + "px";
48625
49066
  }, function (props) {
48626
49067
  return props.animateFrom === 'right' && "right: " + (props.rightPosition === undefined ? 16 : props.rightPosition - 100) + "px";
@@ -48631,7 +49072,7 @@ var BottomButton = styled.div(_templateObject$17 || (_templateObject$17 = _tagge
48631
49072
  }, function (props) {
48632
49073
  return props.backgroundColor;
48633
49074
  });
48634
- 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) {
48635
49076
  return props.backgroundColor;
48636
49077
  }, function (props) {
48637
49078
  return props.fontSize || '13px';
@@ -48643,23 +49084,23 @@ var UnreadCount$1 = styled.span(_templateObject2$_ || (_templateObject2$_ = _tag
48643
49084
  return props.textColor || '#fff';
48644
49085
  });
48645
49086
 
48646
- var _path$1D, _path2$d;
48647
- function _extends$1H() {
48648
- 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) {
48649
49090
  for (var e = 1; e < arguments.length; e++) {
48650
49091
  var t = arguments[e];
48651
49092
  for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
48652
49093
  }
48653
49094
  return n;
48654
- }, _extends$1H.apply(null, arguments);
49095
+ }, _extends$1I.apply(null, arguments);
48655
49096
  }
48656
49097
  function SvgMention(props) {
48657
- return /*#__PURE__*/createElement$1("svg", _extends$1H({
49098
+ return /*#__PURE__*/createElement$1("svg", _extends$1I({
48658
49099
  width: 24,
48659
49100
  height: 24,
48660
49101
  fill: "none",
48661
49102
  xmlns: "http://www.w3.org/2000/svg"
48662
- }, props), _path$1D || (_path$1D = /*#__PURE__*/createElement$1("path", {
49103
+ }, props), _path$1E || (_path$1E = /*#__PURE__*/createElement$1("path", {
48663
49104
  d: "M12 15.6a3.6 3.6 0 100-7.2 3.6 3.6 0 000 7.2z",
48664
49105
  stroke: "currentColor",
48665
49106
  strokeWidth: 1.8,
@@ -48674,7 +49115,7 @@ function SvgMention(props) {
48674
49115
  })));
48675
49116
  }
48676
49117
 
48677
- var _templateObject$18, _templateObject2$$;
49118
+ var _templateObject$19, _templateObject2$10;
48678
49119
  var MessagesScrollToUnreadMentionsButton = function MessagesScrollToUnreadMentionsButton(_ref) {
48679
49120
  var buttonIcon = _ref.buttonIcon,
48680
49121
  buttonWidth = _ref.buttonWidth,
@@ -48817,7 +49258,7 @@ var MessagesScrollToUnreadMentionsButton = function MessagesScrollToUnreadMentio
48817
49258
  isMuted: channel.muted
48818
49259
  }, channel.newMentionCount ? channel.newMentionCount > 99 ? '99+' : channel.newMentionCount : '')), buttonIcon || /*#__PURE__*/React__default.createElement(SvgMention, null)));
48819
49260
  };
48820
- 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) {
48821
49262
  return props.animateFrom === 'bottom' && "bottom: " + (props.bottomOffset + (props.bottomPosition === undefined ? 45 : props.bottomPosition) + (props.showsUnreadMentionsButton ? 60 : 0) - 180) + "px";
48822
49263
  }, function (props) {
48823
49264
  return props.animateFrom === 'right' && "right: " + (props.rightPosition === undefined ? 16 : props.rightPosition - 100) + "px";
@@ -48828,7 +49269,7 @@ var BottomButton$1 = styled.div(_templateObject$18 || (_templateObject$18 = _tag
48828
49269
  }, function (props) {
48829
49270
  return props.backgroundColor;
48830
49271
  });
48831
- 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) {
48832
49273
  return props.backgroundColor;
48833
49274
  }, function (props) {
48834
49275
  return props.fontSize || '13px';