import { __require as requireImmutable } from '../../../../immutable@3.7.6/node_modules/immutable/dist/immutable.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 BlockMapBuilder_1;
var hasRequiredBlockMapBuilder;

function requireBlockMapBuilder () {
	if (hasRequiredBlockMapBuilder) return BlockMapBuilder_1;
	hasRequiredBlockMapBuilder = 1;

	var Immutable = requireImmutable();

	var OrderedMap = Immutable.OrderedMap;
	var BlockMapBuilder = {
	  createFromArray: function createFromArray(blocks) {
	    return OrderedMap(blocks.map(function (block) {
	      return [block.getKey(), block];
	    }));
	  }
	};
	BlockMapBuilder_1 = BlockMapBuilder;
	return BlockMapBuilder_1;
}

export { requireBlockMapBuilder as __require };
//# sourceMappingURL=BlockMapBuilder.js.map
