(window.webpackJsonp=window.webpackJsonp||[]).push([[30],{1901:function(e,t,r){"use strict";r.r(t);var a=r(154),n=r(35),o=(r(10),r(9),r(158),r(8)),s=r.n(o),c=r(17),l=r.n(c),i=r(159),u=r.n(i),f=r(554),p=r(571),m=r(0),d=r(555);function b(e){return(b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function y(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function w(e){return(w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function v(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var g=function(e){function t(e){var r,a,n,o,s,c;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),a=this,n=w(t).call(this,e),r=!n||"object"!==b(n)&&"function"!=typeof n?v(a):n,o=v(v(r)),c=function(e){e.preventDefault();var t=u.a.findDOMNode(r.refs.password).value;!t||t.length<m.G.MIN_PASSWORD_LENGTH?r.setState({error:l.a.createElement(f.c,{id:"password_form.error",defaultMessage:"Please enter at least {chars} characters.",values:{chars:m.G.MIN_PASSWORD_LENGTH}})}):(r.setState({error:null}),Object(p.q)(new URLSearchParams(r.props.location.search).get("token"),t,function(){r.setState({error:null})},function(e){r.setState({error:e.message})}))},(s="handlePasswordReset")in o?Object.defineProperty(o,s,{value:c,enumerable:!0,configurable:!0,writable:!0}):o[s]=c,r.state={},r}var r,a,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(t,l.a.Component),r=t,(a=[{key:"render",value:function(){var e=null;this.state.error&&(e=l.a.createElement("div",{className:"form-group has-error"},l.a.createElement("label",{className:"control-label"},this.state.error)));var t="form-group";return e&&(t+=" has-error"),l.a.createElement("div",{className:"col-sm-12"},l.a.createElement("div",{className:"signup-team__container"},l.a.createElement("h3",null,l.a.createElement(f.c,{id:"password_form.title",defaultMessage:"Password Reset"})),l.a.createElement("form",{onSubmit:this.handlePasswordReset},l.a.createElement("p",null,l.a.createElement(f.c,{id:"password_form.enter",defaultMessage:"Enter a new password for your {siteName} account.",values:{siteName:this.props.siteName}})),l.a.createElement("div",{className:t},l.a.createElement("input",{type:"password",className:"form-control",name:"password",ref:"password",placeholder:d.Y("password_form.pwd","Password"),spellCheck:"false"})),e,l.a.createElement("button",{type:"submit",className:"btn btn-primary"},l.a.createElement(f.c,{id:"password_form.change",defaultMessage:"Change my password"})))))}}])&&y(r.prototype,a),n&&y(r,n),t}();g.propTypes={location:s.a.object.isRequired,siteName:s.a.string};var E=g;t.default=Object(a.connect)(function(e){return{siteName:Object(n.getConfig)(e).SiteName}})(E)}}]);
//# sourceMappingURL=30.e410c16a45bdc32ea05b.js.map