'use strict';

var _tslib = require('../../chunks/bundle-Dqor5-v9.js');
var React = require('react');
var Channel_context = require('../context.js');
var GroupChannelUIView = require('../../chunks/bundle-D_0OOl64.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-DXT1Y4Vj.js');
require('../../chunks/bundle-DJNCbN6b.js');
require('@sendbird/uikit-tools');
require('../../withSendbird.js');
require('../../chunks/bundle-dudJtubx.js');
require('../../chunks/bundle-slo-uj1z.js');
require('@sendbird/chat/groupChannel');
require('../../utils/message/getOutgoingMessageState.js');
require('../../chunks/bundle-BS4UAC4Z.js');
require('../../chunks/bundle-DRUCFhOE.js');
require('../../chunks/bundle-CXXt3nEF.js');
require('react-dom');
require('../../chunks/bundle-BmMxoxjN.js');
require('../../chunks/bundle-pG37uJy2.js');
require('../../chunks/bundle-CTIC4U7B.js');
require('../../ui/IconButton.js');
require('../../ui/Button.js');
require('../../chunks/bundle-CY_gcwTl.js');
require('../../ui/Icon.js');
require('css-vars-ponyfill');
require('@sendbird/chat');
require('../../chunks/bundle-DIZXTVPY.js');
require('@sendbird/chat/openChannel');
require('../../chunks/bundle-BbgSFL3H.js');
require('../../useSendbirdStateContext.js');
require('../../chunks/bundle-B6pik6Q8.js');
require('../../ui/SortByRow.js');
require('../../chunks/bundle-BsNnhtXP.js');
require('../../chunks/bundle-DRHHz9fP.js');
require('@sendbird/chat/message');
require('../../chunks/bundle-Dga4g-qj.js');
require('../../chunks/bundle-CR--sdNU.js');
require('../../chunks/bundle-ChtzQ4_G.js');
require('../../chunks/bundle-DCSdwR_f.js');
require('../../chunks/bundle-swEvXe7h.js');
require('../../chunks/bundle-BIvEJktP.js');
require('../../chunks/bundle-DCgRyaAA.js');
require('../../chunks/bundle-PWUDFLsb.js');
require('../../chunks/bundle-BczkNnAh.js');
require('../../chunks/bundle-CiU8qct9.js');
require('../../GroupChannel/components/TypingIndicator.js');
require('../../chunks/bundle-B4vZOohA.js');
require('../../ui/ConnectionStatus.js');
require('../../ui/PlaceHolder.js');
require('../../ui/Loader.js');
require('../../chunks/bundle-Cmkj-a7v.js');
require('../../ui/ChannelAvatar.js');
require('../../chunks/bundle-DWCO2Wap.js');
require('../../ui/ImageRenderer.js');
require('../../chunks/bundle-CT-nv6tW.js');
require('../../chunks/bundle-Bi-kfNsB.js');
require('../../chunks/bundle-D0bCG0RN.js');
require('../../ui/Header.js');
require('../../ui/TextButton.js');
require('../../chunks/bundle-Bnhdg5Rm.js');
require('./Message.js');
require('../../chunks/bundle-Al1eWq7e.js');
require('../../chunks/bundle-l_IgEt1J.js');
require('../../Message/hooks/useDirtyGetMentions.js');
require('../../ui/DateSeparator.js');
require('../../ui/MessageInput.js');
require('../../chunks/bundle-DpraIGlW.js');
require('../../chunks/bundle-BEl3UJGv.js');
require('dompurify');
require('../../chunks/bundle-CULVYVIF.js');
require('../../chunks/bundle-CmCUchSm.js');
require('../../chunks/bundle-CpIO_wkc.js');
require('../../chunks/bundle-ClfGWuhE.js');
require('../../ui/MessageContent.js');
require('../../chunks/bundle-Dr-vmGCV.js');
require('../../chunks/bundle-BC_1hggZ.js');
require('../../chunks/bundle-BAzcsb-a.js');
require('../../chunks/bundle-B-dIVIVZ.js');
require('../../ui/MessageItemReactionMenu.js');
require('../../ui/ReactionButton.js');
require('../../chunks/bundle-BO9j61_n.js');
require('../../ui/EmojiReactions.js');
require('../../ui/ReactionBadge.js');
require('../../ui/BottomSheet.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-CoHU6Rcd.js');
require('../../ui/MobileMenu.js');
require('../../ui/ThreadReplies.js');
require('../../chunks/bundle-C9aPeBRQ.js');
require('../../ui/OGMessageItemBody.js');
require('../../chunks/bundle-DqM28K5U.js');
require('../../ui/MentionLabel.js');
require('../../ui/LinkLabel.js');
require('../../ui/TextMessageItemBody.js');
require('../../ui/FileMessageItemBody.js');
require('../../chunks/bundle-3gzyJh9X.js');
require('../../ui/FileViewer.js');
require('../../chunks/bundle-CaDCOzgc.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-DNFesnBP.js');
require('../../ui/FallbackTemplateMessageItemBody.tsx.js');
require('../../ui/LoadingTemplateMessageItemBody.tsx.js');
require('../../ui/MessageFeedbackFailedModal.js');
require('../../ui/FeedbackIconButton.js');
require('../../ui/MobileFeedbackMenu.js');
require('../../ui/MessageFeedbackModal.js');
require('../../ui/Input.js');
require('../../chunks/bundle-BHq4WpLg.js');
require('../../GroupChannel/components/SuggestedReplies.js');
require('../../chunks/bundle-Drlp8Ng8.js');
require('./FileViewer.js');
require('../../chunks/bundle-DfVSk6Gs.js');
require('./RemoveMessageModal.js');
require('../../chunks/bundle-BQj5MM1M.js');
require('../../chunks/bundle-CAWSUNQl.js');
require('../../GroupChannel/components/UnreadCount.js');
require('../../GroupChannel/components/FrozenNotification.js');
require('../../chunks/bundle-DNuZ431n.js');
require('../../chunks/bundle-D-MC1CM2.js');
require('../../ui/TypingIndicatorBubble.js');
require('../../chunks/bundle-BCfjcyQ0.js');
require('../utils/getMessagePartsInfo.js');
require('../utils/compareMessagesForGrouping.js');
require('../../chunks/bundle-HTdOiDNH.js');
require('../../GroupChannel/components/SuggestedMentionList.js');
require('../../ui/QuoteMessageInput.js');
require('../../VoiceRecorder/useVoiceRecorder.js');
require('../../chunks/bundle-B414nWog.js');
require('../../chunks/bundle-DCgXy78i.js');

function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }

var React__default = /*#__PURE__*/_interopDefaultCompat(React);

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__default.default.createElement(Channel_components_ChannelHeader.ChannelHeader, _tslib.__assign({}, p)); } : _b, _c = _a.renderMessageList, renderMessageList = _c === void 0 ? function (p) { return React__default.default.createElement(Channel_components_MessageList.MessageList, _tslib.__assign({}, p, { className: "sendbird-conversation__message-list" })); } : _c, _d = _a.renderMessageInput, renderMessageInput = _d === void 0 ? function () { return React__default.default.createElement(Channel_components_MessageInput.MessageInputWrapper, _tslib.__assign({}, props)); } : _d;
    return (React__default.default.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
