import { _ as __assign } from '../../chunks/bundle-B8Grfnrx.js';
import React__default from 'react';
import { b as useGroupChannelContext, u as useGroupChannel } from '../../chunks/bundle-D4BlmM5H.js';
import { G as GroupChannelUIView } from '../../chunks/bundle-L60pJMdf.js';
import { GroupChannelHeader } from './GroupChannelHeader.js';
import { MessageList } from './MessageList.js';
import { MessageInputWrapper } from './MessageInputWrapper.js';
import { d as deleteNullish } from '../../chunks/bundle-CDcu1I4f.js';
import '@sendbird/chat/message';
import '@sendbird/chat/groupChannel';
import '@sendbird/uikit-tools';
import '../../chunks/bundle-BYqblmEM.js';
import '../../chunks/bundle-I25ah_Bv.js';
import '../../chunks/bundle-C4OmfIXk.js';
import '../../chunks/bundle-Ob7Cw3V-.js';
import '@sendbird/chat';
import '@sendbird/chat/openChannel';
import '../../chunks/bundle-Dx4-1s0A.js';
import '../../chunks/bundle-D8xAej93.js';
import '../../chunks/bundle-BciLDE6M.js';
import '../../chunks/bundle-C6Hk5xTT.js';
import '../../chunks/bundle-B5_aP8LE.js';
import '../../chunks/bundle--1cImOGd.js';
import '../../chunks/bundle-C5Pz6wMm.js';
import '../../chunks/bundle-De-3zaYV.js';
import './TypingIndicator.js';
import '../../chunks/bundle-HspRRkmy.js';
import '../../chunks/bundle-Y2KBbxRr.js';
import '../../chunks/bundle-l_QLKq1Y.js';
import '../../chunks/bundle-BYOddwmS.js';
import '../../chunks/bundle-CTkGIdt8.js';
import '../../chunks/bundle-DZJe3dCn.js';
import '../../ui/ConnectionStatus.js';
import '../../ui/Icon.js';
import '../../ui/PlaceHolder.js';
import '../../ui/Loader.js';
import '../../chunks/bundle-DvsR4u7y.js';
import '../../ui/ChannelAvatar.js';
import '../../chunks/bundle-DgFzcADJ.js';
import '../../ui/ImageRenderer.js';
import '../../chunks/bundle-C_ngoQD_.js';
import '../../chunks/bundle-DS6Kt7YS.js';
import '../../chunks/bundle-DTYj03OD.js';
import '../../chunks/bundle-CgLhYjm5.js';
import '../../utils/message/getOutgoingMessageState.js';
import '../../chunks/bundle-BTxw_tIt.js';
import '../../chunks/bundle-DYBTopZK.js';
import '../../chunks/bundle-yKqHFFfz.js';
import '../../ui/Header.js';
import '../../ui/TextButton.js';
import '../../chunks/bundle-DED6q4Ti.js';
import '../../ui/IconButton.js';
import './Message.js';
import '../../chunks/bundle-CuP5OWwY.js';
import '../../chunks/bundle-Dy1IZ181.js';
import '../../Message/hooks/useDirtyGetMentions.js';
import '../../ui/DateSeparator.js';
import '../../ui/MessageInput.js';
import '../../chunks/bundle-DXneAdAp.js';
import '../../ui/Button.js';
import '../../chunks/bundle-DwLTEVMK.js';
import 'dompurify';
import '../../chunks/bundle-Dp_oW1ks.js';
import '../../chunks/bundle-Cn2czFA-.js';
import '../../chunks/bundle-4w9Y7uxA.js';
import '../../chunks/bundle-DT1VcdMs.js';
import '../../ui/MessageContent.js';
import '../../chunks/bundle-Dd7rgmeQ.js';
import '../../chunks/bundle-Dhf37wzM.js';
import '../../chunks/bundle-C8TP-mjp.js';
import '../../chunks/bundle-CQAiZVNS.js';
import '../../chunks/bundle-QCH8CZT8.js';
import 'react-dom';
import '../../ui/SortByRow.js';
import '../../ui/MessageItemReactionMenu.js';
import '../../ui/ReactionButton.js';
import '../../chunks/bundle-CJmXP56m.js';
import '../../ui/EmojiReactions.js';
import '../../ui/ReactionBadge.js';
import '../../ui/BottomSheet.js';
import '../../hooks/useModal.js';
import '../../chunks/bundle-LnGQMQVt.js';
import '../../ui/UserListItem.js';
import '../../ui/MutedAvatarOverlay.js';
import '../../ui/Checkbox.js';
import '../../ui/UserProfile.js';
import '../../sendbirdSelectors.js';
import '../../ui/Tooltip.js';
import '../../ui/TooltipWrapper.js';
import '../../Message/context.js';
import '../../ui/AdminMessage.js';
import '../../ui/QuoteMessage.js';
import '../../chunks/bundle-tFnb24Id.js';
import '../../ui/MobileMenu.js';
import '../../ui/ThreadReplies.js';
import '../../chunks/bundle-CEE3GJSk.js';
import '../../ui/OGMessageItemBody.js';
import '../../chunks/bundle-Do9UFGCD.js';
import '../../ui/MentionLabel.js';
import '../../ui/LinkLabel.js';
import '../../ui/TextMessageItemBody.js';
import '../../ui/FileMessageItemBody.js';
import '../../chunks/bundle-BFJ4ctRk.js';
import '../../ui/FileViewer.js';
import '../../chunks/bundle-DgpfIrde.js';
import '../../ui/VoiceMessageItemBody.js';
import '../../ui/ProgressBar.js';
import '../../VoicePlayer/useVoicePlayer.js';
import '../../chunks/bundle-zOZq2Vpt.js';
import '../../VoiceRecorder/context.js';
import '../../ui/PlaybackTime.js';
import '../../ui/ThumbnailMessageItemBody.js';
import '../../ui/UnknownMessageItemBody.js';
import '../../ui/TemplateMessageItemBody.js';
import '../../chunks/bundle-CwHldvb8.js';
import '../../ui/FallbackTemplateMessageItemBody.tsx.js';
import '../../ui/LoadingTemplateMessageItemBody.tsx.js';
import '../../ui/MessageFeedbackFailedModal.js';
import '../../ui/FeedbackIconButton.js';
import '../../ui/MobileFeedbackMenu.js';
import '../../ui/MessageFeedbackModal.js';
import '../../ui/Input.js';
import '../../chunks/bundle-CFXaZ31h.js';
import './SuggestedReplies.js';
import '../../chunks/bundle-CF8V-ET_.js';
import './FileViewer.js';
import '../../chunks/bundle-BGj68IUE.js';
import './RemoveMessageModal.js';
import '../../chunks/bundle-C60pq62Y.js';
import '../../chunks/bundle-DDZn5buS.js';
import './UnreadCount.js';
import './FrozenNotification.js';
import '../../ui/TypingIndicatorBubble.js';
import '../../Channel/utils/getMessagePartsInfo.js';
import '../../Channel/utils/compareMessagesForGrouping.js';
import '../../chunks/bundle-D_tSqvX6.js';
import '../../chunks/bundle-uthnB1Zu.js';
import './SuggestedMentionList.js';
import '../../ui/QuoteMessageInput.js';
import '../../VoiceRecorder/useVoiceRecorder.js';
import '../../chunks/bundle-DhzrKzt2.js';
import '../../chunks/bundle-CSDZhWAY.js';

var GroupChannelUI = function (props) {
    var context = useGroupChannelContext();
    var _a = useGroupChannel().state, channelUrl = _a.channelUrl, fetchChannelError = _a.fetchChannelError;
    // Inject components to presentation layer
    var _b = deleteNullish(props), _c = _b.renderChannelHeader, renderChannelHeader = _c === void 0 ? function (props) { return React__default.createElement(GroupChannelHeader, __assign({}, props)); } : _c, _d = _b.renderMessageList, renderMessageList = _d === void 0 ? function (props) { return React__default.createElement(MessageList, __assign({}, props, { className: "sendbird-conversation__message-list" })); } : _d, _e = _b.renderMessageInput, renderMessageInput = _e === void 0 ? function () { return React__default.createElement(MessageInputWrapper, __assign({}, props)); } : _e;
    return (React__default.createElement(GroupChannelUIView, __assign({}, props, context, { isInvalid: fetchChannelError !== null, channelUrl: channelUrl, renderChannelHeader: renderChannelHeader, renderMessageList: renderMessageList, renderMessageInput: renderMessageInput })));
};

export { GroupChannelUI, GroupChannelUI as default };
//# sourceMappingURL=GroupChannelUI.js.map
