'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var _tslib = require('../../chunks/bundle-5ru_FO5x.js');
var React = require('react');
var GroupChannel_context = require('../context.js');
var GroupChannelUIView = require('../../chunks/bundle-D0Aqlqo6.js');
var GroupChannel_components_GroupChannelHeader = require('./GroupChannelHeader.js');
var GroupChannel_components_MessageList = require('./MessageList.js');
var GroupChannel_components_MessageInputWrapper = require('./MessageInputWrapper.js');
var utils = require('../../chunks/bundle-Cd8aIDXf.js');
require('@sendbird/chat/message');
require('@sendbird/chat/groupChannel');
require('@sendbird/uikit-tools');
require('../../chunks/bundle-Cgk-lpZZ.js');
require('../../useSendbirdStateContext.js');
require('../../withSendbird.js');
require('../../chunks/bundle-Dv4YKtdL.js');
require('../../chunks/bundle-ghdvllVc.js');
require('../../chunks/bundle-MOn9SqMU.js');
require('../../chunks/bundle-3dML2VBI.js');
require('../../chunks/bundle-MDcnM2N1.js');
require('../../chunks/bundle-Bi2wvpu_.js');
require('../../chunks/bundle-Dpfab45s.js');
require('../../chunks/bundle-BMEm0fE7.js');
require('../../chunks/bundle-BedaAirg.js');
require('../../chunks/bundle-CGX-vhe9.js');
require('./TypingIndicator.js');
require('../../chunks/bundle-DCPc6-Im.js');
require('../../chunks/bundle-Ck_8lQa-.js');
require('../../chunks/bundle-BLV9zZk1.js');
require('../../chunks/bundle-V-_XUHW5.js');
require('../../chunks/bundle-slS7A2f9.js');
require('../../chunks/bundle-Ce6jCnmC.js');
require('../../utils/message/getOutgoingMessageState.js');
require('../../chunks/bundle-BFtlkbFV.js');
require('../../ui/ConnectionStatus.js');
require('../../ui/Icon.js');
require('../../ui/PlaceHolder.js');
require('../../ui/Loader.js');
require('../../chunks/bundle-76nHYQK-.js');
require('../../ui/IconButton.js');
require('../../ui/ChannelAvatar.js');
require('../../chunks/bundle-BFWd_LLn.js');
require('../../ui/ImageRenderer.js');
require('../../chunks/bundle-Bvh9LUfE.js');
require('../../chunks/bundle-BFEqDbwl.js');
require('../../chunks/bundle-Dop6OgWE.js');
require('../../chunks/bundle-DqTUSoNi.js');
require('./Message.js');
require('../../chunks/bundle-asVjYr1M.js');
require('../../chunks/bundle-De62SpYH.js');
require('../../chunks/bundle-DrCmmE89.js');
require('../../Message/hooks/useDirtyGetMentions.js');
require('../../ui/DateSeparator.js');
require('../../chunks/bundle-xUIqwbO0.js');
require('../../ui/MessageInput.js');
require('../../chunks/bundle-DrV1GooU.js');
require('../../ui/Button.js');
require('../../chunks/bundle-D0hE0g6d.js');
require('dompurify');
require('../../chunks/bundle-B20ESzEn.js');
require('../../chunks/bundle-9ogjIkrJ.js');
require('../../chunks/bundle-B3qxP7Hx.js');
require('../../chunks/bundle-lBIlhpy4.js');
require('../../ui/MessageContent.js');
require('../../chunks/bundle-DDwAQ_Z-.js');
require('../../chunks/bundle-CMTxpe5r.js');
require('../../chunks/bundle-Cf4R8HbK.js');
require('../../ui/MessageItemMenu.js');
require('../../ui/ContextMenu.js');
require('react-dom');
require('@sendbird/chat');
require('@sendbird/chat/openChannel');
require('../../ui/SortByRow.js');
require('../../chunks/bundle-Bm-ZyNnL.js');
require('../../ui/MessageItemReactionMenu.js');
require('../../ui/ReactionButton.js');
require('../../chunks/bundle-Bzoa2z57.js');
require('../../ui/EmojiReactions.js');
require('../../ui/ReactionBadge.js');
require('../../ui/BottomSheet.js');
require('../../hooks/useModal.js');
require('../../chunks/bundle-CHERnV8x.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-DqRKg94l.js');
require('../../chunks/bundle-BOisWxx6.js');
require('../../ui/ThreadReplies.js');
require('../../ui/OGMessageItemBody.js');
require('../../chunks/bundle-B2jW5UwW.js');
require('../../ui/MentionLabel.js');
require('../../ui/LinkLabel.js');
require('../../ui/TextMessageItemBody.js');
require('../../ui/FileMessageItemBody.js');
require('../../ui/TextButton.js');
require('../../chunks/bundle-BrG6R1ys.js');
require('../../chunks/bundle-CGDy7a1C.js');
require('../../chunks/bundle-OAOzXmfa.js');
require('../../ui/VoiceMessageItemBody.js');
require('../../ui/ProgressBar.js');
require('../../VoicePlayer/useVoicePlayer.js');
require('../../chunks/bundle-BMU1Zuos.js');
require('../../VoiceRecorder/context.js');
require('../../ui/PlaybackTime.js');
require('../../ui/ThumbnailMessageItemBody.js');
require('../../ui/UnknownMessageItemBody.js');
require('../../ui/TemplateMessageItemBody.js');
require('../../chunks/bundle-CRIqKUCJ.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('./SuggestedReplies.js');
require('../../chunks/bundle-DrPY0rWx.js');
require('./FileViewer.js');
require('../../chunks/bundle-iCZhCxHm.js');
require('./RemoveMessageModal.js');
require('../../chunks/bundle-BaxkaZ7Q.js');
require('../../chunks/bundle-DHHo4V-U.js');
require('../../Channel/utils/getMessagePartsInfo.js');
require('../../Channel/utils/compareMessagesForGrouping.js');
require('./UnreadCount.js');
require('./FrozenNotification.js');
require('../../ui/TypingIndicatorBubble.js');
require('../../chunks/bundle-B9GhSdVG.js');
require('./SuggestedMentionList.js');
require('../../ui/QuoteMessageInput.js');
require('../../VoiceRecorder/useVoiceRecorder.js');
require('../../chunks/bundle-CN06fWST.js');
require('../../chunks/bundle-CFOCblXb.js');

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

exports.GroupChannelUI = GroupChannelUI;
exports.default = GroupChannelUI;
//# sourceMappingURL=GroupChannelUI.js.map
