| 
						
						
						
					 | 
				
			
			 | 
			 | 
			
				@ -1,8 +1,6 @@
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				import AutosuggestAccountContainer from '../features/compose/containers/autosuggest_account_container';
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				import ImmutablePropTypes from 'react-immutable-proptypes';
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				import { isRtl } from '../rtl';
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				import { connect } from 'react-redux';
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				import { uploadCompose } from '../actions/compose';
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				const textAtCursorMatchesToken = (str, caretPosition) => {
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				  let word;
 | 
			
		
		
	
	
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
				
			
			 | 
			 | 
			
				@ -35,7 +33,6 @@ const AutosuggestTextarea = React.createClass({
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    value: React.PropTypes.string,
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    suggestions: ImmutablePropTypes.list,
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    disabled: React.PropTypes.bool,
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    dispatch: React.PropTypes.func.isRequired,
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    fileDropDate: React.PropTypes.instanceOf(Date),
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    placeholder: React.PropTypes.string,
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    onSuggestionSelected: React.PropTypes.func.isRequired,
 | 
			
		
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
			
			 | 
			 | 
			
				@ -43,7 +40,8 @@ const AutosuggestTextarea = React.createClass({
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    onSuggestionsFetchRequested: React.PropTypes.func.isRequired,
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    onChange: React.PropTypes.func.isRequired,
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    onKeyUp: React.PropTypes.func,
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    onKeyDown: React.PropTypes.func
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    onKeyDown: React.PropTypes.func,
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    onPaste: React.PropTypes.func.isRequired,
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				  },
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				  getInitialState () {
 | 
			
		
		
	
	
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
				
			
			 | 
			 | 
			
				@ -178,7 +176,7 @@ const AutosuggestTextarea = React.createClass({
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				  onPaste (e) {
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    if (e.clipboardData && e.clipboardData.files.length === 1) {
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				      this.props.dispatch(uploadCompose(e.clipboardData.files));
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				      this.props.onPaste(e.clipboardData.files)
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				      e.preventDefault();
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				    }
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				  },
 | 
			
		
		
	
	
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
				
			
			 | 
			 | 
			
				@ -225,4 +223,4 @@ const AutosuggestTextarea = React.createClass({
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				});
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				export default connect()(AutosuggestTextarea);
 | 
			
		
		
	
		
			
				 | 
				 | 
			
			 | 
			 | 
			
				export default AutosuggestTextarea;
 | 
			
		
		
	
	
		
			
				
					| 
						
						
						
					 | 
				
			
			 | 
			 | 
			
				
 
 |