import { __require as requireInvariant } from '../../../../fbjs@2.0.0/node_modules/fbjs/lib/invariant.js';
import { __require as requireIsHTMLElement } from './isHTMLElement.js';

/**
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 *
 * @format
 * 
 * @emails oncall+draft_js
 */

var getContentEditableContainer_1;
var hasRequiredGetContentEditableContainer;

function requireGetContentEditableContainer () {
	if (hasRequiredGetContentEditableContainer) return getContentEditableContainer_1;
	hasRequiredGetContentEditableContainer = 1;

	var invariant = requireInvariant();

	var isHTMLElement = requireIsHTMLElement();

	function getContentEditableContainer(editor) {
	  var editorNode = editor.editorContainer;
	  !editorNode ? process.env.NODE_ENV !== "production" ? invariant(false, 'Missing editorNode') : invariant(false) : void 0;
	  !isHTMLElement(editorNode.firstChild) ? process.env.NODE_ENV !== "production" ? invariant(false, 'editorNode.firstChild is not an HTMLElement') : invariant(false) : void 0;
	  var htmlElement = editorNode.firstChild;
	  return htmlElement;
	}

	getContentEditableContainer_1 = getContentEditableContainer;
	return getContentEditableContainer_1;
}

export { requireGetContentEditableContainer as __require };
//# sourceMappingURL=getContentEditableContainer.js.map
