'use strict';

var _tslib = require('../../chunks/bundle-HGbi-rCv.js');
var React = require('react');
var Channel_context = require('../context.js');
var GroupChannelUIView = require('../../chunks/bundle-CQ34zxiR.js');
var Channel_components_ChannelHeader = require('./ChannelHeader.js');
var Channel_components_MessageList = require('./MessageList.js');
var Channel_components_MessageInput = require('./MessageInput.js');
var utils = require('../../chunks/bundle-BoLhr7Ko.js');
require('../../chunks/bundle-CAUMYdVU.js');
require('../../useSendbirdStateContext.js');
require('../../withSendbird.js');
require('../../chunks/bundle-CR04Yhbr.js');
require('../../chunks/bundle-CE6bFQmu.js');
require('@sendbird/chat/message');
require('../../chunks/bundle-Dww6fCVQ.js');
require('../../chunks/bundle-DAj-1QVM.js');
require('../../chunks/bundle-BWGOXLHb.js');
require('../../chunks/bundle-wl1uuzU7.js');
require('@sendbird/chat/groupChannel');
require('../../utils/message/getOutgoingMessageState.js');
require('../../chunks/bundle-T4lp5F85.js');
require('../../chunks/bundle-DRy7eNJ0.js');
require('../../chunks/bundle-7UHC8ujA.js');
require('../../chunks/bundle-DfcEln0Z.js');
require('../../chunks/bundle-1XtsxT8L.js');
require('../../chunks/bundle-_ekaw3iI.js');
require('../../chunks/bundle-Dehhi1FZ.js');
require('../../chunks/bundle-BaQc9oOW.js');
require('../../chunks/bundle-BjgfoBVC.js');
require('../../chunks/bundle-BXEGf4g2.js');
require('../../GroupChannel/components/TypingIndicator.js');
require('../../chunks/bundle-5_kPn4wU.js');
require('../../chunks/bundle-gtkPlUrw.js');
require('../../chunks/bundle-oeWNUdCB.js');
require('../../ui/ConnectionStatus.js');
require('../../ui/Icon.js');
require('../../ui/PlaceHolder.js');
require('../../ui/Loader.js');
require('../../chunks/bundle-DmX69_-l.js');
require('../../ui/ChannelAvatar.js');
require('../../chunks/bundle-DxSB9NRz.js');
require('../../ui/ImageRenderer.js');
require('../../chunks/bundle-C93-onMF.js');
require('../../chunks/bundle-DRp9IuV2.js');
require('../../chunks/bundle-Tjx9wNAv.js');
require('../../chunks/bundle-BwQ4BJif.js');
require('../../ui/Header.js');
require('../../ui/TextButton.js');
require('../../chunks/bundle-DAxedY0T.js');
require('../../ui/IconButton.js');
require('./Message.js');
require('../../chunks/bundle-ByyccRIt.js');
require('../../chunks/bundle-DQy218lT.js');
require('../../Message/hooks/useDirtyGetMentions.js');
require('../../ui/DateSeparator.js');
require('../../ui/MessageInput.js');
require('../../chunks/bundle-CmpLg1_S.js');
require('../../ui/Button.js');
require('../../chunks/bundle-BLc7P6Sp.js');
require('dompurify');
require('../../chunks/bundle-D4aDRH9m.js');
require('../../chunks/bundle-8VyIP0TE.js');
require('../../chunks/bundle-DdxJqNSP.js');
require('../../chunks/bundle-CLOaQmX9.js');
require('../../ui/MessageContent.js');
require('../../chunks/bundle-N_CwOE5a.js');
require('../../chunks/bundle-B_51Svr9.js');
require('../../chunks/bundle-wMKhbE3c.js');
require('../../ui/MessageItemMenu.js');
require('../../ui/ContextMenu.js');
require('../../chunks/bundle-BTU876jx.js');
require('react-dom');
require('@sendbird/chat');
require('@sendbird/chat/openChannel');
require('../../ui/SortByRow.js');
require('../../chunks/bundle-BaAUvjl9.js');
require('../../ui/MessageItemReactionMenu.js');
require('../../ui/ReactionButton.js');
require('../../chunks/bundle-miB6ue8g.js');
require('../../ui/EmojiReactions.js');
require('../../ui/ReactionBadge.js');
require('../../ui/BottomSheet.js');
require('../../chunks/bundle-CZfcXYaX.js');
require('@sendbird/uikit-tools');
require('css-vars-ponyfill');
require('../../chunks/bundle-L3FEqZsK.js');
require('../../ui/UserListItem.js');
require('../../ui/MutedAvatarOverlay.js');
require('../../ui/Checkbox.js');
require('../../ui/UserProfile.js');
require('../../sendbirdSelectors.js');
require('../../ui/Tooltip.js');
require('../../ui/TooltipWrapper.js');
require('../../Message/context.js');
require('../../ui/AdminMessage.js');
require('../../ui/QuoteMessage.js');
require('../../chunks/bundle-DcSTnNI0.js');
require('../../chunks/bundle-Cgl5e8xs.js');
require('../../ui/ThreadReplies.js');
require('../../ui/OGMessageItemBody.js');
require('../../chunks/bundle-C3DKUT4Q.js');
require('../../ui/MentionLabel.js');
require('../../ui/LinkLabel.js');
require('../../ui/TextMessageItemBody.js');
require('../../ui/FileMessageItemBody.js');
require('../../chunks/bundle-DTCz0BH1.js');
require('../../chunks/bundle-C6a-umLQ.js');
require('../../chunks/bundle-bqRlVm3u.js');
require('../../ui/VoiceMessageItemBody.js');
require('../../ui/ProgressBar.js');
require('../../VoicePlayer/useVoicePlayer.js');
require('../../ui/PlaybackTime.js');
require('../../ui/ThumbnailMessageItemBody.js');
require('../../ui/UnknownMessageItemBody.js');
require('../../ui/TemplateMessageItemBody.js');
require('../../chunks/bundle-CDIVI7bT.js');
require('../../ui/FallbackTemplateMessageItemBody.tsx.js');
require('../../ui/LoadingTemplateMessageItemBody.tsx.js');
require('../../ui/FeedbackIconButton.js');
require('../../ui/MobileFeedbackMenu.js');
require('../../ui/MessageFeedbackModal.js');
require('../../ui/Input.js');
require('../../ui/MessageFeedbackFailedModal.js');
require('../../GroupChannel/components/SuggestedReplies.js');
require('../../chunks/bundle-BaM5Ed34.js');
require('./FileViewer.js');
require('../../chunks/bundle-X03vJTEw.js');
require('./RemoveMessageModal.js');
require('../../chunks/bundle-BBoPpUMg.js');
require('../../chunks/bundle-D8gia2Hg.js');
require('../../GroupChannel/components/UnreadCount.js');
require('../../GroupChannel/components/FrozenNotification.js');
require('../../chunks/bundle-D-qAbZhp.js');
require('../../chunks/bundle-Com-Z-XI.js');
require('../../ui/TypingIndicatorBubble.js');
require('../../chunks/bundle-C1XVsHlE.js');
require('../utils/getMessagePartsInfo.js');
require('../utils/compareMessagesForGrouping.js');
require('../../chunks/bundle-DMGpM9Ye.js');
require('../../GroupChannel/components/SuggestedMentionList.js');
require('../../ui/QuoteMessageInput.js');
require('../../VoiceRecorder/useVoiceRecorder.js');
require('../../chunks/bundle-BTod-EOk.js');
require('../../chunks/bundle-Q4icQ1qH.js');

var ChannelUI = function (props) {
    var context = Channel_context.useChannelContext();
    var channelUrl = context.channelUrl, isInvalid = context.isInvalid;
    // Inject components to presentation layer
    var _a = utils.deleteNullish(props), _b = _a.renderChannelHeader, renderChannelHeader = _b === void 0 ? function (p) { return React.createElement(Channel_components_ChannelHeader.ChannelHeader, _tslib.__assign({}, p)); } : _b, _c = _a.renderMessageList, renderMessageList = _c === void 0 ? function (p) { return React.createElement(Channel_components_MessageList.MessageList, _tslib.__assign({}, p, { className: "sendbird-conversation__message-list" })); } : _c, _d = _a.renderMessageInput, renderMessageInput = _d === void 0 ? function () { return React.createElement(Channel_components_MessageInput.MessageInputWrapper, _tslib.__assign({}, props)); } : _d;
    return (React.createElement(GroupChannelUIView.GroupChannelUIView, _tslib.__assign({}, props, context, { isLoading: props === null || props === void 0 ? void 0 : props.isLoading, isInvalid: isInvalid, channelUrl: channelUrl, renderChannelHeader: renderChannelHeader, renderMessageList: renderMessageList, renderMessageInput: renderMessageInput })));
};

module.exports = ChannelUI;
//# sourceMappingURL=ChannelUI.js.map
