webpackJsonp([21],{2511: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(239),s=l(n),r=a(238),d=l(r),u=a(242),i=l(u),f=a(240),c=l(f),m=a(241),o=l(m),E=a(21),v=l(E),h=a(13),p=l(h),_=a(697),g=a(717),y=a(792),M=l(y),S=function(t){function a(e){(0,d.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=new URLSearchParams(this.props.location.search).get("email");this.setState({resendStatus:"sending"}),(0,g.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=S,S.defaultProps={},S.propTypes={location:v.default.object.isRequired}}).call(t,a(22))}});
//# sourceMappingURL=21.aa0eda5a5bb7de1e6b87.js.map