text: (window.webpackJsonp=window.webpackJsonp||[]).push([[22],{2518:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=_(a(282)),l=_(a(279)),s=_(a(283)),n=_(a(280)),d=_(a(281)),u=_(a(768)),o=_(a(1)),i=_(a(3)),f=_(a(287)),c=a(762),m=a(777),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)),h=_(a(805));function _(e){return e&&e.__esModule?e:{default:e}}var v=function(e){function t(e){(0,l.default)(this,t);var a=(0,n.default)(this,(t.__proto__||(0,r.default)(t)).call(this,e));return a.handleSendLink=a.handleSendLink.bind(a),a.state={error:"",updateText:""},a}return(0,d.default)(t,e),(0,s.default)(t,[{key:"handleSendLink",value:function(e){var t=this;e.preventDefault();var a=f.default.findDOMNode(this.refs.email).value.trim().toLowerCase();a&&p.isEmail(a)?(this.setState({error:""}),(0,m.sendPasswordResetEmail)(a,function(){t.setState({error:null,updateText:i.default.createElement("div",{className:"reset-form alert alert-success"},i.default.createElement(c.FormattedHTMLMessage,{id:"password_send.link",defaultMessage:"If the account exists, a password reset email will be sent to: <br/><b>{email}</b><br/><br/>",values:{email:a}}),i.default.createElement(c.FormattedMessage,{id:"password_send.checkInbox",defaultMessage:"Please check your inbox."}))}),(0,u.default)(f.default.findDOMNode(t.refs.reset_form)).hide()},function(e){t.setState({error:e.message,update_text:null})})):this.setState({error:i.default.createElement(c.FormattedMessage,{id:"password_send.error",defaultMessage:"Please enter a valid email address."})})}},{key:"render",value:function(){var e=null;this.state.error&&(e=i.default.createElement("div",{className:"form-group has-error"},i.default.createElement("label",{className:"control-label"},this.state.error)));var t="form-group";return e&&(t+=" has-error"),i.default.createElement("div",null,i.default.createElement(h.default,null),i.default.createElement("div",{className:"col-sm-12"},i.default.createElement("div",{className:"signup-team__container"},i.default.createElement("h3",null,i.default.createElement(c.FormattedMessage,{id:"password_send.title",defaultMessage:"Password Reset"})),this.state.updateText,i.default.createElement("form",{onSubmit:this.handleSendLink,ref:"reset_form"},i.default.createElement("p",null,i.default.createElement(c.FormattedMessage,{id:"password_send.description",defaultMessage:"To reset your password, enter the email address you used to sign up"})),i.default.createElement("div",{className:t},i.default.createElement("input",{type:"email",className:"form-control",name:"email",ref:"email",placeholder:p.localizeMessage("password_send.email","Email"),spellCheck:"false"})),e,i.default.createElement("button",{type:"submit",className:"btn btn-primary"},i.default.createElement(c.FormattedMessage,{id:"password_send.reset",defaultMessage:"Reset my password"}))))))}}]),t}(i.default.Component);v.defaultProps={},v.propTypes={params:o.default.object.isRequired},t.default=v},805:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=m(a(282)),l=m(a(279)),s=m(a(283)),n=m(a(280)),d=m(a(281)),u=m(a(1)),o=m(a(3)),i=a(762),f=a(285),c=a(763);function m(e){return e&&e.__esModule?e:{default:e}}var p=function(e){function t(){return(0,l.default)(this,t),(0,n.default)(this,(t.__proto__||(0,r.default)(t)).apply(this,arguments))}return(0,d.default)(t,e),(0,s.default)(t,[{key:"render",value:function(){return o.default.createElement("div",{className:"signup-header"},o.default.createElement(f.Link,{onClick:this.props.onClick,to:this.props.url},o.default.createElement("span",{className:"fa fa-chevron-left",title:(0,c.localizeMessage)("generic_icons.back","Back Icon")}),o.default.createElement(i.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}}]);
  //# sourceMappingURL=22.2d7ae357edf05385231a.js.map