webpackJsonp([16],{2513:function(e,t,a){"use strict";function r(e){return{actions:{verifyUserEmail:(0,l.bindActionCreators)(i.verifyUserEmail,e)}}}Object.defineProperty(t,"__esModule",{value:!0});var l=a(1),n=a(243),i=a(724),s=a(2514),u=function(e){return e&&e.__esModule?e:{default:e}}(s);t.default=(0,n.connect)(null,r)(u.default)},2514:function(e,t,a){"use strict";(function(e){function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var l=a(106),n=r(l),i=a(107),s=r(i),u=a(239),o=r(u),c=a(238),f=r(c),d=a(242),m=r(d),v=a(240),p=r(v),h=a(241),E=r(h),_=a(21),g=r(_),y=a(13),w=r(y),b=a(697),M=a(248),N=a(791),k=r(N),P=a(792),S=r(P),U=a(732),R=r(U),j=function(t){function a(e){var t=this;(0,f.default)(this,a);var r=(0,p.default)(this,(a.__proto__||(0,o.default)(a)).call(this,e));return r.verifyEmail=(0,s.default)(n.default.mark(function e(){var a,l,i;return n.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a=r.props.actions.verifyUserEmail,e.next=3,a(new URLSearchParams(r.props.location.search).get("token"));case 3:l=e.sent,l&&l.data?M.browserHistory.push("/login?extra=verified&email="+encodeURIComponent(new URLSearchParams(r.props.location.search).get("email"))):l&&l.error&&(i=w.default.createElement(b.FormattedMessage,{id:"signup_user_completed.invalid_invite",defaultMessage:"The invite link was invalid.  Please speak with your Administrator to receive an invitation."}),r.setState({verifyStatus:"failure",serverError:i}));case 5:case"end":return e.stop()}},e,t)})),r.state={verifyStatus:"pending",serverError:""},r}return(0,E.default)(a,t),(0,m.default)(a,[{key:"componentWillMount",value:function(){this.verifyEmail()}},{key:"render",value:function(){if("failure"!==this.state.verifyStatus)return w.default.createElement(R.default,null);var t=null;return this.state.serverError&&(t=w.default.createElement("div",{className:"form-group has-error"},w.default.createElement("label",{className:"control-label"},this.state.serverError))),w.default.createElement("div",null,w.default.createElement(S.default,null),w.default.createElement("div",{className:"col-sm-12"},w.default.createElement("div",{className:"signup-team__container"},w.default.createElement("img",{className:"signup-team-logo",src:k.default}),w.default.createElement("div",{className:"signup__content"},w.default.createElement("h1",null,e.window.mm_config.SiteName),w.default.createElement("h4",{className:"color--light"},w.default.createElement(b.FormattedMessage,{id:"web.root.signup_info",defaultMessage:"All team communication in one place, searchable and accessible anywhere"})),t))))}}]),a}(w.default.PureComponent);j.propTypes={location:g.default.object.isRequired,actions:g.default.shape({verifyUserEmail:g.default.func.isRequired}).isRequired},t.default=j,j.defaultProps={location:{}}}).call(t,a(22))}});
//# sourceMappingURL=16.be4c560303fe07ecc32f.js.map