'use strict';

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

var _tslib = require('../../chunks/bundle-Dqor5-v9.js');
var React = require('react');
var GroupChannel_context = require('../context.js');
var GroupChannelUIView = require('../../chunks/bundle-D_0OOl64.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-DXT1Y4Vj.js');
require('@sendbird/chat/message');
require('@sendbird/chat/groupChannel');
require('@sendbird/uikit-tools');
require('../../chunks/bundle-DJNCbN6b.js');
require('../../withSendbird.js');
require('../../chunks/bundle-dudJtubx.js');
require('../../chunks/bundle-slo-uj1z.js');
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-PWUDFLsb.js');
require('../../chunks/bundle-BczkNnAh.js');
require('../../chunks/bundle-l_IgEt1J.js');
require('../../chunks/bundle-BsNnhtXP.js');
require('../../chunks/bundle-B5knY1qg.js');
require('../../chunks/bundle-DCgRyaAA.js');
require('../../chunks/bundle-Dga4g-qj.js');
require('./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-CR--sdNU.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('./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('./UnreadCount.js');
require('./FrozenNotification.js');
require('../../ui/TypingIndicatorBubble.js');
require('../../Channel/utils/getMessagePartsInfo.js');
require('../../Channel/utils/compareMessagesForGrouping.js');
require('../../chunks/bundle-DRHHz9fP.js');
require('../../chunks/bundle-HTdOiDNH.js');
require('./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 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
