import { __require as requireCharacterMetadata } from './CharacterMetadata.js';
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 createCharacterList_1;
var hasRequiredCreateCharacterList;

function requireCreateCharacterList () {
	if (hasRequiredCreateCharacterList) return createCharacterList_1;
	hasRequiredCreateCharacterList = 1;

	var CharacterMetadata = requireCharacterMetadata();

	var Immutable = requireImmutable();

	var List = Immutable.List;

	function createCharacterList(inlineStyles, entities) {
	  var characterArray = inlineStyles.map(function (style, ii) {
	    var entity = entities[ii];
	    return CharacterMetadata.create({
	      style: style,
	      entity: entity
	    });
	  });
	  return List(characterArray);
	}

	createCharacterList_1 = createCharacterList;
	return createCharacterList_1;
}

export { requireCreateCharacterList as __require };
//# sourceMappingURL=createCharacterList.js.map
