(window.webpackJsonp=window.webpackJsonp||[]).push([[17],{2675:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(285),s=a(96),l=function(e){return e&&e.__esModule?e:{default:e}}(a(2676));t.default=(0,r.connect)(function(e){return{siteName:(0,s.getConfig)(e).SiteName}})(l.default)},2676:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=w(a(281)),s=w(a(280)),l=w(a(284)),o=w(a(282)),n=w(a(283)),u=w(a(1)),d=w(a(3)),f=w(a(288)),c=a(764),i=a(778),m=w(a(25)),p=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}(a(763));function w(e){return e&&e.__esModule?e:{default:e}}var _=function(e){function t(e){(0,s.default)(this,t);var a=(0,o.default)(this,(t.__proto__||(0,r.default)(t)).call(this,e));return a.handlePasswordReset=function(e){e.preventDefault();var t=f.default.findDOMNode(a.refs.password).value;!t||t.length<m.default.MIN_PASSWORD_LENGTH?a.setState({error:d.default.createElement(c.FormattedMessage,{id:"password_form.error",defaultMessage:"Please enter at least {chars} characters.",values:{chars:m.default.MIN_PASSWORD_LENGTH}})}):(a.setState({error:null}),(0,i.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,n.default)(t,e),(0,l.default)(t,[{key:"render",value:function(){var e=null;this.state.error&&(e=d.default.createElement("div",{className:"form-group has-error"},d.default.createElement("label",{className:"control-label"},this.state.error)));var t="form-group";return e&&(t+=" has-error"),d.default.createElement("div",{className:"col-sm-12"},d.default.createElement("div",{className:"signup-team__container"},d.default.createElement("h3",null,d.default.createElement(c.FormattedMessage,{id:"password_form.title",defaultMessage:"Password Reset"})),d.default.createElement("form",{onSubmit:this.handlePasswordReset},d.default.createElement("p",null,d.default.createElement(c.FormattedMessage,{id:"password_form.enter",defaultMessage:"Enter a new password for your {siteName} account.",values:{siteName:this.props.siteName}})),d.default.createElement("div",{className:t},d.default.createElement("input",{type:"password",className:"form-control",name:"password",ref:"password",placeholder:p.localizeMessage("password_form.pwd","Password"),spellCheck:"false"})),e,d.default.createElement("button",{type:"submit",className:"btn btn-primary"},d.default.createElement(c.FormattedMessage,{id:"password_form.change",defaultMessage:"Change my password"})))))}}]),t}(d.default.Component);_.propTypes={location:u.default.object.isRequired,siteName:u.default.string},t.default=_}}]);
//# sourceMappingURL=17.296e5fc9fa306b3d7e7b.js.map