if (self.CavalryLogger) { CavalryLogger.start_js(["QpVM2"]); }

__d("WaveButton.react",["cx","ix","CurrentUser","Image.react","MercuryIDs","MercuryMessageObject","MercurySourceType","MercuryMessageActions","React"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k,l=c("MercuryMessageActions").get(),m=i("359731"),n=i("359732"),o=c("React").PropTypes;j=babelHelpers.inherits(p,c("React").PureComponent);k=j&&j.prototype;function p(){__p&&__p();var q,r;for(var s=arguments.length,t=Array(s),u=0;u<s;u++)t[u]=arguments[u];return r=(q=k.constructor).call.apply(q,[this].concat(t)),this.state={hasWaved:false},this.$WaveButton1=function(v){var w=this.props.userID;if(!this.state.hasWaved&&w){var x=c("MercuryMessageObject").getForFBID(c("CurrentUser").getID()).constructAttachmentMessageObject(c("MercurySourceType").MESSENGER_WEB,c("MercuryIDs").getThreadIDFromUserID(w));x.lightweight_action_attachment={lwa_state:"INITIATED",lwa_type:"WAVE"};l.send(x);this.setState({hasWaved:true})}v.preventDefault()}.bind(this),r}p.prototype.render=function(){if(!this.props.hover)return null;return c("React").createElement(c("Image.react"),{onClick:this.$WaveButton1,className:"_2ob8",src:this.state.hasWaved?n:m})};p.propTypes={userID:o.string.isRequired,hover:o.bool.isRequired};f.exports=p}),null);