webpackJsonp([32],{2160:function(e,t,a){"use strict";(function(e){function l(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var n=a(6),s=l(n),d=a(4),r=l(d),u=a(5),i=l(u),f=a(7),c=l(f),m=a(8),o=l(m),E=a(2),v=l(E),h=a(1),p=l(h),_=a(17),y=a(69),g=a(2097),M=l(g),b=function(t){function a(e){(0,r.default)(this,a);var t=(0,c.default)(this,(a.__proto__||(0,s.default)(a)).call(this,e));return t.handleResend=t.handleResend.bind(t),t.state={resendStatus:"none"},t}return(0,o.default)(a,t),(0,i.default)(a,[{key:"handleResend",value:function(){var e=this,t=this.props.location.query.email;this.setState({resendStatus:"sending"}),(0,y.resendVerification)(t,function(){e.setState({resendStatus:"success"})},function(){e.setState({resendStatus:"failure"})})}},{key:"render",value:function(){var t="";return"success"===this.state.resendStatus&&(t=p.default.createElement("div",null,p.default.createElement("br",null),p.default.createElement("p",{className:"alert alert-success"},p.default.createElement("i",{className:"fa fa-check"}),p.default.createElement(_.FormattedMessage,{id:"email_verify.sent",defaultMessage:" Verification email sent."})))),"failure"===this.state.resendStatus&&(t=p.default.createElement("div",null,p.default.createElement("br",null),p.default.createElement("p",{className:"alert alert-danger"},p.default.createElement("i",{className:"fa fa-times"}),p.default.createElement(_.FormattedMessage,{id:"email_verify.failed"})))),p.default.createElement("div",null,p.default.createElement(M.default,null),p.default.createElement("div",{className:"col-sm-12"},p.default.createElement("div",{className:"signup-team__container"},p.default.createElement("h3",null,p.default.createElement(_.FormattedMessage,{id:"email_verify.almost",defaultMessage:"{siteName}: You are almost done",values:{siteName:e.window.mm_config.SiteName}})),p.default.createElement("div",null,p.default.createElement("p",null,p.default.createElement(_.FormattedMessage,{id:"email_verify.notVerifiedBody",defaultMessage:"Please verify your email address. Check your inbox for an email."})),p.default.createElement("button",{onClick:this.handleResend,className:"btn btn-primary"},p.default.createElement(_.FormattedMessage,{id:"email_verify.resend",defaultMessage:"Resend Email"})),t))))}}]),a}(p.default.Component);t.default=b,b.defaultProps={},b.propTypes={location:v.default.object.isRequired}}).call(t,a(22))}});
//# sourceMappingURL=32.0680ba08e5f416c01f26.js.map