webpackJsonp([18],{2542:function(e,t,a){"use strict";function l(e){return{siteName:(0,s.getConfig)(e).SiteName}}Object.defineProperty(t,"__esModule",{value:!0});var n=a(263),s=a(758),r=a(2543),u=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=(0,n.connect)(l)(u.default)},2543:function(e,t,a){"use strict";function l(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var n=a(259),s=l(n),r=a(258),u=l(r),d=a(262),i=l(d),f=a(260),c=l(f),m=a(261),o=l(m),E=a(22),v=l(E),_=a(14),p=l(_),g=a(749),h=a(769),y=a(840),M=l(y),N=function(e){function t(e){(0,u.default)(this,t);var a=(0,c.default)(this,(t.__proto__||(0,s.default)(t)).call(this,e));return a.handleResend=function(){var e=new URLSearchParams(a.props.location.search).get("email");a.setState({resendStatus:"sending"}),(0,h.resendVerification)(e,function(){a.setState({resendStatus:"success"})},function(){a.setState({resendStatus:"failure"})})},a.state={resendStatus:"none"},a}return(0,o.default)(t,e),(0,i.default)(t,[{key:"render",value:function(){var e="";return"success"===this.state.resendStatus&&(e=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(g.FormattedMessage,{id:"email_verify.sent",defaultMessage:" Verification email sent."})))),"failure"===this.state.resendStatus&&(e=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(g.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(g.FormattedMessage,{id:"email_verify.almost",defaultMessage:"{siteName}: You are almost done",values:{siteName:this.props.siteName}})),p.default.createElement("div",null,p.default.createElement("p",null,p.default.createElement(g.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(g.FormattedMessage,{id:"email_verify.resend",defaultMessage:"Resend Email"})),e))))}}]),t}(p.default.Component);t.default=N,N.propTypes={location:v.default.object.isRequired,siteName:v.default.string}}});
//# sourceMappingURL=18.549a734fa512c142fdbd.js.map