'use strict';

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

var _tslib = require('../../chunks/bundle-DhtZdKsr.js');
var React = require('react');
var MessageInputWrapperView = require('../../chunks/bundle-ZvLEz_GA.js');
var Channel_context = require('../context.js');
require('../../chunks/bundle-jcgWT1ad.js');
require('../../useSendbirdStateContext.js');
require('../../withSendbird.js');
require('../../chunks/bundle-6SzyBwQ5.js');
require('../../chunks/bundle-H9rcn1PJ.js');
require('../../chunks/bundle-AN4eZ2xs.js');
require('../../chunks/bundle--QPuGnli.js');
require('../../chunks/bundle-VxcYXhwp.js');
require('../../ui/Icon.js');
require('../../chunks/bundle-Y-_KhZFq.js');
require('../../chunks/bundle-w0ATt2gt.js');
require('../../ui/ImageRenderer.js');
require('../../chunks/bundle-HQAiUNev.js');
require('../../chunks/bundle-TB_UEIPg.js');
require('../../chunks/bundle--tki3Ejh.js');
require('../../Message/hooks/useDirtyGetMentions.js');
require('../../ui/QuoteMessageInput.js');
require('../../chunks/bundle-nox41MG6.js');
require('@sendbird/chat/groupChannel');
require('../../utils/message/getOutgoingMessageState.js');
require('../../chunks/bundle-xM2DAzE6.js');
require('../../chunks/bundle-KWR-0b7P.js');
require('../../VoicePlayer/useVoicePlayer.js');
require('../../chunks/bundle-zAQuo6rI.js');
require('../../chunks/bundle-UAspU0bH.js');
require('../../VoiceRecorder/context.js');
require('../../chunks/bundle-6L4HCLmb.js');
require('react-dom');
require('../../chunks/bundle-6zBNmPOP.js');
require('../../ui/IconButton.js');
require('../../ui/Button.js');
require('../../VoiceRecorder/useVoiceRecorder.js');
require('../../chunks/bundle-zLoe4MOM.js');
require('../../ui/PlaybackTime.js');
require('../../ui/ProgressBar.js');
require('../../ui/TextButton.js');
require('../../chunks/bundle-vMF9NM5u.js');
require('../../ui/MessageInput.js');
require('../../chunks/bundle-MNUU2JEo.js');
require('../../chunks/bundle-t2GWOYzL.js');
require('dompurify');
require('../../chunks/bundle-nYBtJl9e.js');
require('../../chunks/bundle-RUqSDidW.js');
require('../../chunks/bundle-0zagc7hR.js');
require('../../chunks/bundle-haAptps1.js');
require('../../hooks/useModal.js');
require('../../chunks/bundle-PSEoX-EH.js');
require('../../chunks/bundle-TPy0gj60.js');
require('../../chunks/bundle-CrbMqpah.js');
require('@sendbird/chat/message');
require('../../chunks/bundle-Msh8rb3L.js');
require('../../chunks/bundle-tntEm-Mv.js');
require('../../chunks/bundle-O6Mos2Xn.js');
require('../../chunks/bundle-NZvAE9FS.js');
require('../hooks/useInitialMessagesFetch.js');
require('../../chunks/bundle-JBbKwE7L.js');
require('../../chunks/bundle-77qvrXp8.js');
require('../../chunks/bundle-3eaFVTUX.js');
require('../../chunks/bundle-YjNFrYVt.js');
require('../../chunks/bundle-eCBAJmJN.js');

var MessageInputWrapper = function (props) {
    var context = Channel_context.useChannelContext();
    var currentGroupChannel = context.currentGroupChannel, sendMessage = context.sendMessage, sendFileMessage = context.sendFileMessage, sendVoiceMessage = context.sendVoiceMessage, sendMultipleFilesMessage = context.sendMultipleFilesMessage;
    return (React.createElement(MessageInputWrapperView.MessageInputWrapperView, _tslib.__assign({}, props, context, { currentChannel: currentGroupChannel, quoteMessage: context.quoteMessage, sendUserMessage: function (params) { return (sendMessage(_tslib.__assign(_tslib.__assign({}, params), { quoteMessage: { messageId: params.parentMessageId } }))); }, sendFileMessage: function (params) { return (sendFileMessage(params.file, { messageId: params.parentMessageId })); }, sendVoiceMessage: function (_a, duration) {
            var file = _a.file, parentMessageId = _a.parentMessageId;
            return (sendVoiceMessage(file, duration, { parentMessageId: parentMessageId }));
        }, sendMultipleFilesMessage: function (_a) {
            var fileInfoList = _a.fileInfoList, parentMessageId = _a.parentMessageId;
            return (sendMultipleFilesMessage(fileInfoList.map(function (fileInfo) { return fileInfo.file; }), { parentMessageId: parentMessageId }));
        } })));
};

exports.MessageInputWrapper = MessageInputWrapper;
exports.default = MessageInputWrapper;
//# sourceMappingURL=MessageInput.js.map
