webpackJsonp([49],{1880: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 r=a(6),n=l(r),u=a(4),i=l(u),s=a(5),o=l(s),f=a(7),d=l(f),c=a(8),m=l(c),v=a(18),p=a(222),E=l(p),y=a(44),_=a(66),h=a(2),g=l(h),N=a(1),M=l(N),b=function(t){function a(e){(0,i.default)(this,a);var t=(0,d.default)(this,(a.__proto__||(0,n.default)(a)).call(this,e));return t.state={verifyStatus:"pending",serverError:""},t}return(0,m.default)(a,t),(0,o.default)(a,[{key:"componentWillMount",value:function(){var e=this;(0,_.verifyEmail)(this.props.location.query.token,function(){y.browserHistory.push("/login?extra=verified&email="+encodeURIComponent(e.props.location.query.email))},function(t){e.setState({verifyStatus:"failure",serverError:t.message})})}},{key:"render",value:function(){return"failure"!==this.state.verifyStatus?M.default.createElement(E.default,null):M.default.createElement("div",null,M.default.createElement("div",{className:"signup-header"},M.default.createElement(y.Link,{to:"/"},M.default.createElement("span",{className:"fa fa-chevron-left"}),M.default.createElement(v.FormattedMessage,{id:"web.header.back"}))),M.default.createElement("div",{className:"col-sm-12"},M.default.createElement("div",{className:"signup-team__container"},M.default.createElement("h3",null,M.default.createElement(v.FormattedMessage,{id:"email_verify.almost",defaultMessage:"{siteName}: You are almost done",values:{siteName:e.window.mm_config.SiteName}})),M.default.createElement("div",null,M.default.createElement("p",null,M.default.createElement(v.FormattedMessage,{id:"email_verify.verifyFailed"})),M.default.createElement("p",{className:"alert alert-danger"},M.default.createElement("i",{className:"fa fa-times"}),this.state.serverError)))))}}]),a}(M.default.Component);t.default=b,b.defaultProps={},b.propTypes={location:g.default.object.isRequired}}).call(t,a(22))}});
//# sourceMappingURL=49.4c7ffcd05aa960dac8b2.js.map