import { _ as __assign } from '../../chunks/bundle-yl5d1NoZ.js';
import React__default from 'react';
import { useChannelContext } from '../context.js';
import { G as GroupChannelUIView } from '../../chunks/bundle-NFCMnKfj.js';
import { ChannelHeader } from './ChannelHeader.js';
import { MessageList } from './MessageList.js';
import { MessageInputWrapper } from './MessageInput.js';
import { d as deleteNullish } from '../../chunks/bundle-MlG9piGf.js';
import '@sendbird/uikit-tools';
import '../../chunks/bundle-B0s_McF0.js';
import '../../chunks/bundle-i_3w58Zd.js';
import '../../chunks/bundle-BUYU9H94.js';
import '../../chunks/bundle-CqLLOVG5.js';
import '@sendbird/chat';
import '@sendbird/chat/groupChannel';
import '@sendbird/chat/openChannel';
import '../../chunks/bundle-BEx1sWnS.js';
import '../../chunks/bundle-DFni3Lhf.js';
import '@sendbird/chat/message';
import '../../chunks/bundle-Del33VzI.js';
import '../../chunks/bundle-C1dqPUnT.js';
import '../../chunks/bundle-BZGITC2g.js';
import '../../chunks/bundle-BSy5MmTl.js';
import '../../chunks/bundle-mGsud0ec.js';
import '../../chunks/bundle-fdEQfX2s.js';
import '../../chunks/bundle-DEuCwnTn.js';
import '../../chunks/bundle-BNjG_5V3.js';
import '../../chunks/bundle-CM73CDTO.js';
import '../../chunks/bundle-vmZ9LoYK.js';
import '../../utils/message/getOutgoingMessageState.js';
import '../../chunks/bundle-DgosLQK9.js';
import '../../chunks/bundle-DGh2T5IL.js';
import '../../chunks/bundle-C-onA3TP.js';
import '../../chunks/bundle-BOykFtQ3.js';
import '../../chunks/bundle-DK3-aB7E.js';
import '../../chunks/bundle-CIQCAe1h.js';
import '../../chunks/bundle-YKDbjcG6.js';
import '../../GroupChannel/components/TypingIndicator.js';
import '../../chunks/bundle-viBng0Kh.js';
import '../../chunks/bundle-BpdtepPX.js';
import '../../ui/ConnectionStatus.js';
import '../../ui/Icon.js';
import '../../ui/PlaceHolder.js';
import '../../ui/Loader.js';
import '../../chunks/bundle-C9akz570.js';
import '../../ui/ChannelAvatar.js';
import '../../chunks/bundle-CAEBoiEz.js';
import '../../ui/ImageRenderer.js';
import '../../chunks/bundle-Dl_v8XoN.js';
import '../../chunks/bundle-B2BBbSEN.js';
import '../../chunks/bundle-DfS7BDcp.js';
import '../../chunks/bundle-DBhJIxHw.js';
import '../../ui/Header.js';
import '../../ui/TextButton.js';
import '../../chunks/bundle-Bokm7tQ9.js';
import '../../ui/IconButton.js';
import './Message.js';
import '../../chunks/bundle-CRpOTB7B.js';
import '../../chunks/bundle-CzwYTfhQ.js';
import '../../Message/hooks/useDirtyGetMentions.js';
import '../../ui/DateSeparator.js';
import '../../ui/MessageInput.js';
import '../../chunks/bundle-BNtO7aXk.js';
import '../../ui/Button.js';
import '../../chunks/bundle-CN_mZmg1.js';
import 'dompurify';
import '../../chunks/bundle-D6b2YGeE.js';
import '../../chunks/bundle-B6udMinl.js';
import '../../chunks/bundle-Cc1gzgza.js';
import '../../chunks/bundle-BwvurfUT.js';
import '../../ui/MessageContent.js';
import '../../chunks/bundle-2U8QpYXo.js';
import '../../chunks/bundle-BhhLSKSz.js';
import '../../chunks/bundle-Cl9rtdlj.js';
import '../../chunks/bundle-CQ_-cyp9.js';
import '../../chunks/bundle-Bch_Ry4S.js';
import 'react-dom';
import '../../ui/SortByRow.js';
import '../../ui/MessageItemReactionMenu.js';
import '../../ui/ReactionButton.js';
import '../../chunks/bundle-Ba_cV-Zm.js';
import '../../ui/EmojiReactions.js';
import '../../ui/ReactionBadge.js';
import '../../ui/BottomSheet.js';
import '../../hooks/useModal.js';
import '../../chunks/bundle-CtQtfJlT.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-h6bAY7E9.js';
import '../../ui/MobileMenu.js';
import '../../ui/ThreadReplies.js';
import '../../chunks/bundle-BdQWhaHB.js';
import '../../ui/OGMessageItemBody.js';
import '../../chunks/bundle-DcLgcUpC.js';
import '../../ui/MentionLabel.js';
import '../../ui/LinkLabel.js';
import '../../ui/TextMessageItemBody.js';
import '../../ui/FileMessageItemBody.js';
import '../../chunks/bundle-HwtLrcpn.js';
import '../../ui/FileViewer.js';
import '../../chunks/bundle-Ha1krmtK.js';
import '../../ui/VoiceMessageItemBody.js';
import '../../ui/ProgressBar.js';
import '../../VoicePlayer/useVoicePlayer.js';
import '../../chunks/bundle-BrBLR_c-.js';
import '../../VoiceRecorder/context.js';
import '../../ui/PlaybackTime.js';
import '../../ui/ThumbnailMessageItemBody.js';
import '../../ui/UnknownMessageItemBody.js';
import '../../ui/TemplateMessageItemBody.js';
import '../../chunks/bundle-BJYztm64.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-C8U5aHBw.js';
import '../../GroupChannel/components/SuggestedReplies.js';
import '../../chunks/bundle-sf0POh6_.js';
import './FileViewer.js';
import '../../chunks/bundle-c7SN5XJA.js';
import './RemoveMessageModal.js';
import '../../chunks/bundle-So54Aj7k.js';
import '../../chunks/bundle-BxzlMlCv.js';
import '../../GroupChannel/components/UnreadCount.js';
import '../../GroupChannel/components/FrozenNotification.js';
import '../../chunks/bundle-DZ3gQWc4.js';
import '../../chunks/bundle-CMi8r50C.js';
import '../../ui/TypingIndicatorBubble.js';
import '../../chunks/bundle-BGCu7v8M.js';
import '../utils/getMessagePartsInfo.js';
import '../utils/compareMessagesForGrouping.js';
import '../../chunks/bundle-xxejwSP0.js';
import '../../GroupChannel/components/SuggestedMentionList.js';
import '../../ui/QuoteMessageInput.js';
import '../../VoiceRecorder/useVoiceRecorder.js';
import '../../chunks/bundle-C25g6A23.js';
import '../../chunks/bundle-BtCCRSPc.js';

/**
 * @deprecated This component is deprecated and will be removed in the next major update.
 * Please use the `GroupChannel` component from '@sendbird/uikit-react/GroupChannel' instead.
 * For more information, please refer to the migration guide:
 * https://docs.sendbird.com/docs/chat/uikit/v3/react/introduction/group-channel-migration-guide
 */
var ChannelUI = function (props) {
    var context = useChannelContext();
    var channelUrl = context.channelUrl, isInvalid = context.isInvalid;
    // Inject components to presentation layer
    var _a = deleteNullish(props), _b = _a.renderChannelHeader, renderChannelHeader = _b === void 0 ? function (p) { return React__default.createElement(ChannelHeader, __assign({}, p)); } : _b, _c = _a.renderMessageList, renderMessageList = _c === void 0 ? function (p) { return React__default.createElement(MessageList, __assign({}, p, { className: "sendbird-conversation__message-list" })); } : _c, _d = _a.renderMessageInput, renderMessageInput = _d === void 0 ? function () { return React__default.createElement(MessageInputWrapper, __assign({}, props)); } : _d;
    return (React__default.createElement(GroupChannelUIView, __assign({}, props, context, { isLoading: props === null || props === void 0 ? void 0 : props.isLoading, isInvalid: isInvalid, channelUrl: channelUrl, renderChannelHeader: renderChannelHeader, renderMessageList: renderMessageList, renderMessageInput: renderMessageInput })));
};

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