(window.webpackJsonp=window.webpackJsonp||[]).push([[21],{2683:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(2),n=a(285),l=a(777),i=a(96),s=function(e){return e&&e.__esModule?e:{default:e}}(a(2684));t.default=(0,n.connect)(function(e){return{siteName:(0,i.getConfig)(e).SiteName}},function(e){return{actions:{verifyUserEmail:(0,r.bindActionCreators)(l.verifyUserEmail,e)}}})(s.default)},2684:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=_(a(126)),n=_(a(127)),l=_(a(281)),i=_(a(280)),s=_(a(284)),u=_(a(282)),o=_(a(283)),c=_(a(1)),d=_(a(3)),f=a(764),m=a(289),p=_(a(810)),v=_(a(800)),h=_(a(783));function _(e){return e&&e.__esModule?e:{default:e}}var E=function(e){function t(e){var a=this;(0,i.default)(this,t);var s=(0,u.default)(this,(t.__proto__||(0,l.default)(t)).call(this,e));return s.verifyEmail=(0,n.default)(r.default.mark(function e(){var t,n,l;return r.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=s.props.actions.verifyUserEmail,e.next=3,t(new URLSearchParams(s.props.location.search).get("token"));case 3:(n=e.sent)&&n.data?m.browserHistory.push("/login?extra=verified&email="+encodeURIComponent(new URLSearchParams(s.props.location.search).get("email"))):n&&n.error&&(l=d.default.createElement(f.FormattedMessage,{id:"signup_user_completed.invalid_invite",defaultMessage:"The invite link was invalid.  Please speak with your Administrator to receive an invitation."}),s.setState({verifyStatus:"failure",serverError:l}));case 5:case"end":return e.stop()}},e,a)})),s.state={verifyStatus:"pending",serverError:""},s}return(0,o.default)(t,e),(0,s.default)(t,[{key:"UNSAFE_componentWillMount",value:function(){this.verifyEmail()}},{key:"render",value:function(){if("failure"!==this.state.verifyStatus)return d.default.createElement(h.default,null);var e=null;return this.state.serverError&&(e=d.default.createElement("div",{className:"form-group has-error"},d.default.createElement("label",{className:"control-label"},this.state.serverError))),d.default.createElement("div",null,d.default.createElement(v.default,null),d.default.createElement("div",{className:"col-sm-12"},d.default.createElement("div",{className:"signup-team__container"},d.default.createElement("img",{className:"signup-team-logo",src:p.default}),d.default.createElement("div",{className:"signup__content"},d.default.createElement("h1",null,this.props.siteName),d.default.createElement("h4",{className:"color--light"},d.default.createElement(f.FormattedMessage,{id:"web.root.signup_info",defaultMessage:"All team communication in one place, searchable and accessible anywhere"})),e))))}}]),t}(d.default.PureComponent);E.propTypes={location:c.default.object.isRequired,siteName:c.default.string,actions:c.default.shape({verifyUserEmail:c.default.func.isRequired}).isRequired},t.default=E,E.defaultProps={location:{}}},800:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=m(a(281)),n=m(a(280)),l=m(a(284)),i=m(a(282)),s=m(a(283)),u=m(a(1)),o=m(a(3)),c=a(764),d=a(286),f=a(763);function m(e){return e&&e.__esModule?e:{default:e}}var p=function(e){function t(){return(0,n.default)(this,t),(0,i.default)(this,(t.__proto__||(0,r.default)(t)).apply(this,arguments))}return(0,s.default)(t,e),(0,l.default)(t,[{key:"render",value:function(){return o.default.createElement("div",{className:"signup-header"},o.default.createElement(d.Link,{onClick:this.props.onClick,to:this.props.url},o.default.createElement("span",{className:"fa fa-chevron-left",title:(0,f.localizeMessage)("generic_icons.back","Back Icon")}),o.default.createElement(c.FormattedMessage,{id:"web.header.back",defaultMessage:"Back"})))}}]),t}(o.default.PureComponent);p.propTypes={url:u.default.string,onClick:u.default.func},p.defaultProps={url:"/"},t.default=p},810:function(e,t,a){e.exports=a.p+"files/5d6be4015bde2a4e0358c8bc110deadc.png"}}]);
//# sourceMappingURL=21.4e386b48d1b28ec0b6aa.js.map