text: /*! These files are pre-generated from .jsx. Do not edit. | Generated at 08:03:48 on 14-03-2015 %> */var TypingMarquee=React.createClass({displayName:"TypingMarquee",propTypes:{messages:React.PropTypes.array.isRequired,cursorCharacter:React.PropTypes.string,keyDelay:React.PropTypes.number,messageDelay:React.PropTypes.number,style:React.PropTypes.object,keyChangeCallback:React.PropTypes.func,messageChangeCallback:React.PropTypes.func},getDefaultProps:function(){return{cursorCharacter:"|",keyDelay:90,messageDelay:3e3,style:{}}},getInitialState:function(){return{currentCharacterIndex:0,currentMessageIndex:0}},componentWillMount:function(){this.keyInterval=null,this.messageTimeout=null},componentWillUnmount:function(){clearInterval(this.keyInterval),clearTimeout(this.messageTimeout)},componentDidMount:function(){this.keyInterval=setInterval(this.keyChange,this.props.keyDelay)},keyChange:function(){var a=this.state,b=this.props,c=b.messages[a.currentMessageIndex];a.currentCharacterIndex+=1,a.currentCharacterIndex>=c.length&&(a.currentCharacterIndex=c.length,clearInterval(this.keyInterval),this.messageTimeout=setTimeout(this.messageChange,b.messageDelay)),b.keyChangeCallback&&b.keyChangeCallback(c,a.currentCharacterIndex,this),this.setState(a)},messageChange:function(){var a=this.state,b=this.props;a.currentCharacterIndex=0,a.currentMessageIndex+=1,a.currentMessageIndex>b.messages.length-1&&(a.currentMessageIndex=0),this.keyInterval=setInterval(this.keyChange,this.props.keyDelay),this.setState(a)},render:function(){var a=this.state,b=this.props,c=b.messages[a.currentMessageIndex],d=c.substr(0,a.currentCharacterIndex);return React.createElement("span",{style:b.style},d,React.createElement("span",{className:"cursor"},b.cursorCharacter))}}),module=module||{};module.exports=TypingMarquee;