webpackJsonp([22],{2545:function(e,t,a){"use strict";function r(e){return{siteName:(0,u.getConfig)(e).SiteName}}function n(e){return{actions:{verifyUserEmail:(0,l.bindActionCreators)(s.verifyUserEmail,e)}}}Object.defineProperty(t,"__esModule",{value:!0});var l=a(1),i=a(263),s=a(776),u=a(758),o=a(2546),c=function(e){return e&&e.__esModule?e:{default:e}}(o);t.default=(0,i.connect)(r,n)(c.default)},2546:function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var n=a(112),l=r(n),i=a(113),s=r(i),u=a(259),o=r(u),c=a(258),f=r(c),d=a(262),m=r(d),v=a(260),p=r(v),h=a(261),E=r(h),g=a(22),_=r(g),y=a(14),b=r(y),N=a(749),w=a(268),M=a(839),k=r(M),P=a(840),S=r(P),U=a(783),R=r(U),C=function(e){function t(e){var a=this;(0,f.default)(this,t);var r=(0,p.default)(this,(t.__proto__||(0,o.default)(t)).call(this,e));return r.verifyEmail=(0,s.default)(l.default.mark(function e(){var t,n,i;return l.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=r.props.actions.verifyUserEmail,e.next=3,t(new URLSearchParams(r.props.location.search).get("token"));case 3:n=e.sent,n&&n.data?w.browserHistory.push("/login?extra=verified&email="+encodeURIComponent(new URLSearchParams(r.props.location.search).get("email"))):n&&n.error&&(i=b.default.createElement(N.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,a)})),r.state={verifyStatus:"pending",serverError:""},r}return(0,E.default)(t,e),(0,m.default)(t,[{key:"componentWillMount",value:function(){this.verifyEmail()}},{key:"render",value:function(){if("failure"!==this.state.verifyStatus)return b.default.createElement(R.default,null);var e=null;return this.state.serverError&&(e=b.default.createElement("div",{className:"form-group has-error"},b.default.createElement("label",{className:"control-label"},this.state.serverError))),b.default.createElement("div",null,b.default.createElement(S.default,null),b.default.createElement("div",{className:"col-sm-12"},b.default.createElement("div",{className:"signup-team__container"},b.default.createElement("img",{className:"signup-team-logo",src:k.default}),b.default.createElement("div",{className:"signup__content"},b.default.createElement("h1",null,this.props.siteName),b.default.createElement("h4",{className:"color--light"},b.default.createElement(N.FormattedMessage,{id:"web.root.signup_info",defaultMessage:"All team communication in one place, searchable and accessible anywhere"})),e))))}}]),t}(b.default.PureComponent);C.propTypes={location:_.default.object.isRequired,siteName:_.default.string,actions:_.default.shape({verifyUserEmail:_.default.func.isRequired}).isRequired},t.default=C,C.defaultProps={location:{}}}});
//# sourceMappingURL=22.2d422008c1f6268f64ae.js.map