webpackJsonp([19],{2530:function(e,t,a){"use strict";function r(e){return{siteName:(0,l.getConfig)(e).SiteName}}Object.defineProperty(t,"__esModule",{value:!0});var s=a(263),l=a(758),o=a(2531),n=function(e){return e&&e.__esModule?e:{default:e}}(o);t.default=(0,s.connect)(r)(n.default)},2531:function(e,t,a){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var s=a(259),l=r(s),o=a(258),n=r(o),u=a(262),d=r(u),f=a(260),c=r(f),i=a(261),m=r(i),p=a(22),_=r(p),h=a(14),w=r(h),g=a(266),v=r(g),N=a(749),E=a(769),M=a(43),b=r(M),P=a(750),y=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t.default=e,t}(P),S=function(e){function t(e){(0,n.default)(this,t);var a=(0,c.default)(this,(t.__proto__||(0,l.default)(t)).call(this,e));return a.handlePasswordReset=function(e){e.preventDefault();var t=v.default.findDOMNode(a.refs.password).value;if(!t||t.length<b.default.MIN_PASSWORD_LENGTH)return void a.setState({error:w.default.createElement(N.FormattedMessage,{id:"password_form.error",defaultMessage:"Please enter at least {chars} characters.",values:{chars:b.default.MIN_PASSWORD_LENGTH}})});a.setState({error:null}),(0,E.resetPassword)(new URLSearchParams(a.props.location.search).get("token"),t,function(){a.setState({error:null})},function(e){a.setState({error:e.message})})},a.state={},a}return(0,m.default)(t,e),(0,d.default)(t,[{key:"render",value:function(){var e=null;this.state.error&&(e=w.default.createElement("div",{className:"form-group has-error"},w.default.createElement("label",{className:"control-label"},this.state.error)));var t="form-group";return e&&(t+=" has-error"),w.default.createElement("div",{className:"col-sm-12"},w.default.createElement("div",{className:"signup-team__container"},w.default.createElement("h3",null,w.default.createElement(N.FormattedMessage,{id:"password_form.title",defaultMessage:"Password Reset"})),w.default.createElement("form",{onSubmit:this.handlePasswordReset},w.default.createElement("p",null,w.default.createElement(N.FormattedMessage,{id:"password_form.enter",defaultMessage:"Enter a new password for your {siteName} account.",values:{siteName:this.props.siteName}})),w.default.createElement("div",{className:t},w.default.createElement("input",{type:"password",className:"form-control",name:"password",ref:"password",placeholder:y.localizeMessage("password_form.pwd","Password"),spellCheck:"false"})),e,w.default.createElement("button",{type:"submit",className:"btn btn-primary"},w.default.createElement(N.FormattedMessage,{id:"password_form.change",defaultMessage:"Change my password"})))))}}]),t}(w.default.Component);S.propTypes={location:_.default.object.isRequired,siteName:_.default.string},t.default=S}});
//# sourceMappingURL=19.30e8f413b3c020d36890.js.map