'use strict';

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

var _tslib = require('../../chunks/bundle-Dwj4MFbu.js');
var React = require('react');
var GroupChannel_context = require('../context.js');
var GroupChannelUIView = require('../../chunks/bundle-BtjRmGiV.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-7F-J6w2L.js');
require('@sendbird/chat/message');
require('@sendbird/chat/groupChannel');
require('@sendbird/uikit-tools');
require('../../chunks/bundle-DBUexy6W.js');
require('../../withSendbird.js');
require('../../chunks/bundle-28_kUN83.js');
require('../../chunks/bundle-Dsga0STu.js');
require('../../utils/message/getOutgoingMessageState.js');
require('../../chunks/bundle-CNOy0SKq.js');
require('../../chunks/bundle-CpC9YeBR.js');
require('../../chunks/bundle-fHhNYi5k.js');
require('react-dom');
require('../../chunks/bundle-DUlN8JG0.js');
require('../../chunks/bundle-CNo3XvY2.js');
require('../../chunks/bundle-D027Tr-j.js');
require('../../ui/IconButton.js');
require('../../ui/Button.js');
require('../../chunks/bundle-q_NwnODB.js');
require('../../ui/Icon.js');
require('css-vars-ponyfill');
require('@sendbird/chat');
require('../../chunks/bundle-D_L8wtf_.js');
require('@sendbird/chat/openChannel');
require('../../chunks/bundle-V5e7Iz-M.js');
require('../../useSendbirdStateContext.js');
require('../../chunks/bundle-DsDVN_6R.js');
require('../../ui/SortByRow.js');
require('../../chunks/bundle-BNbtTuYT.js');
require('../../chunks/bundle-BpTO3vXw.js');
require('../../chunks/bundle-yToAKC5T.js');
require('../../chunks/bundle-CfwVjrki.js');
require('../../chunks/bundle-dXylcWC-.js');
require('../../chunks/bundle-WAp-MTVO.js');
require('../../chunks/bundle-D377oTBW.js');
require('./TypingIndicator.js');
require('../../chunks/bundle-BrIASf1K.js');
require('../../ui/ConnectionStatus.js');
require('../../ui/PlaceHolder.js');
require('../../ui/Loader.js');
require('../../chunks/bundle-CE0M5TjC.js');
require('../../ui/ChannelAvatar.js');
require('../../chunks/bundle-BLMOFXug.js');
require('../../ui/ImageRenderer.js');
require('../../chunks/bundle-DYd16-N-.js');
require('../../chunks/bundle-B6ZWHqc7.js');
require('../../chunks/bundle-DZlUKyYY.js');
require('../../ui/Header.js');
require('../../ui/TextButton.js');
require('../../chunks/bundle-IoTRqH9_.js');
require('./Message.js');
require('../../chunks/bundle-DIHqg-nE.js');
require('../../chunks/bundle-BOCMTfPs.js');
require('../../Message/hooks/useDirtyGetMentions.js');
require('../../ui/DateSeparator.js');
require('../../ui/MessageInput.js');
require('../../chunks/bundle-CTDM43-k.js');
require('../../chunks/bundle-BdcIzrzX.js');
require('dompurify');
require('../../chunks/bundle-CGQPCPQH.js');
require('../../chunks/bundle-UNETZ57a.js');
require('../../chunks/bundle-Dy478tIp.js');
require('../../chunks/bundle-SpBht3pR.js');
require('../../ui/MessageContent.js');
require('../../chunks/bundle-CYQxg_eZ.js');
require('../../chunks/bundle-CwmDNzaS.js');
require('../../chunks/bundle-DfHbVMlf.js');
require('../../chunks/bundle-CcIJkgZG.js');
require('../../ui/MessageItemReactionMenu.js');
require('../../ui/ReactionButton.js');
require('../../chunks/bundle-5TSvGYIo.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-D_527Yzl.js');
require('../../ui/MobileMenu.js');
require('../../ui/ThreadReplies.js');
require('../../chunks/bundle-28jK5HyI.js');
require('../../ui/OGMessageItemBody.js');
require('../../chunks/bundle-DraJ_wBk.js');
require('../../ui/MentionLabel.js');
require('../../ui/LinkLabel.js');
require('../../ui/TextMessageItemBody.js');
require('../../ui/FileMessageItemBody.js');
require('../../chunks/bundle-BOfy7MGc.js');
require('../../ui/FileViewer.js');
require('../../chunks/bundle-DFxc2FDf.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-2FdfAfSg.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-Cbhlvswp.js');
require('./SuggestedReplies.js');
require('../../chunks/bundle-CZlcUhal.js');
require('./FileViewer.js');
require('../../chunks/bundle-C5vMy3lQ.js');
require('./RemoveMessageModal.js');
require('../../chunks/bundle-DHUHtf9o.js');
require('../../chunks/bundle-DbLH7rSK.js');
require('./UnreadCount.js');
require('./FrozenNotification.js');
require('../../ui/TypingIndicatorBubble.js');
require('../../Channel/utils/getMessagePartsInfo.js');
require('../../Channel/utils/compareMessagesForGrouping.js');
require('../../chunks/bundle-ClrDxDE5.js');
require('../../chunks/bundle-BICYMf9c.js');
require('./SuggestedMentionList.js');
require('../../ui/QuoteMessageInput.js');
require('../../VoiceRecorder/useVoiceRecorder.js');
require('../../chunks/bundle-fZWtrPCw.js');
require('../../chunks/bundle-PY0nrU1R.js');

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

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

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