forked from lynndylanhurley/redux-auth
-
Notifications
You must be signed in to change notification settings - Fork 1
/
bootstrap-theme.js
2 lines (2 loc) · 49.4 KB
/
bootstrap-theme.js
1
2
!function(e,t){for(var r in t)e[r]=t[r]}(exports,function(e){function t(n){if(r[n])return r[n].exports;var o=r[n]={exports:{},id:n,loaded:!1};return e[n].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var r={};return t.m=e,t.c=r,t.p="",t(0)}([function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0}),t.ButtonLoader=t.TokenBridge=t.DestroyAccountButton=t.UpdatePasswordForm=t.OAuthSignInButton=t.RequestPasswordResetForm=t.SignOutButton=t.EmailSignUpForm=t.EmailSignInForm=t.AuthGlobals=void 0;var o=r(62),s=n(o),i=r(64),a=n(i),u=r(65),p=n(u),l=r(69),c=n(l),f=r(68),d=n(f),h=r(67),y=n(h),b=r(70),m=n(b),g=r(63),w=n(g),P=r(17),v=n(P),E=r(12),_=n(E);t.AuthGlobals=s["default"],t.EmailSignInForm=a["default"],t.EmailSignUpForm=p["default"],t.SignOutButton=c["default"],t.RequestPasswordResetForm=d["default"],t.OAuthSignInButton=y["default"],t.UpdatePasswordForm=m["default"],t.DestroyAccountButton=w["default"],t.TokenBridge=v["default"],t.ButtonLoader=_["default"]},function(e,t){e.exports=require("react")},function(e,t){e.exports=require("redux-auth")},function(e,t){e.exports=require("react-redux")},function(e,t){e.exports=require("immutable")},,,,function(e,t){e.exports=require("react-bootstrap")},,,,function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},u=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),p=r(1),l=n(p),c=r(8),f=r(23),d=n(f),h=function(e){function t(){return o(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),u(t,[{key:"renderIcon",value:function(){var e=void 0;if(this.props.loading){var t=this.props.bsStyle&&"default"!==this.props.bsStyle?this.props.spinColorLight:this.props.spinColorDark;e=l["default"].createElement("div",null,l["default"].createElement(d["default"],a({ref:"spinner"},this.props.spinConfig,{color:t,loaded:!1})))}else e=this.props.icon;return l["default"].createElement("div",{style:{position:"relative",display:"inline-block",marginRight:"6px",width:"10px",height:"10px",top:"1px"}},e)}},{key:"render",value:function(){return l["default"].createElement(c.Button,{onClick:this.props.onClick,disabled:this.props.disabled||this.props.loading,bsStyle:this.props.bsStyle,className:this.props.className,type:this.props.type,style:this.props.style,bsSize:this.props.bsSize},this.renderIcon()," ",this.props.children)}}]),t}(l["default"].Component);h.propTypes={icon:p.PropTypes.any,loading:p.PropTypes.bool,spinConfig:p.PropTypes.object,spinColorDark:p.PropTypes.string,spinColorLight:p.PropTypes.string,children:p.PropTypes.node,onClick:p.PropTypes.func.isRequired,style:p.PropTypes.object},h.defaultProps={icon:l["default"].createElement(c.Glyphicon,{glyph:"heart"}),loading:!1,spinConfig:{lines:10,length:4,width:2,radius:3},spinColorDark:"#444",spinColorLight:"#fff",children:l["default"].createElement("span",null,"Submit"),style:{}},t["default"]=h},,,,,function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),u=r(1),p=n(u),l=r(3),c=function(e){function t(){return o(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),a(t,[{key:"render",value:function(){return p["default"].createElement("script",{id:"token-bridge",type:"application/json",dangerouslySetInnerHTML:{__html:this.props.initialCredentials}})}}]),t}(p["default"].Component);t["default"]=(0,l.connect)(function(e){var t=e.auth,r=t.getIn(["server","headers"]);return{initialCredentials:r&&JSON.stringify({user:t.getIn(["server","user"]),mustResetPassword:t.getIn(["server","mustResetPassword"]),firstTimeLogin:t.getIn(["server","firstTimeLogin"]),currentEndpointKey:t.getIn(["configure","currentEndpointKey"]),defaultEndpointKey:t.getIn(["configure","defaultEndpointKey"]),headers:r})}})(c)},,function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function o(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return Array.from(e)}function s(e){return Array.isArray(e)?e:Array.from(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var p=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),l=r(1),c=n(l),f=r(8),d=r(66),h=n(d),y=r(3),b=function(e){function t(){return i(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return u(t,e),p(t,[{key:"close",value:function(){this.props.dispatch(this.props.closeAction())}},{key:"getEndpoint",value:function(){return this.props.endpoint||this.props.auth.getIn(["configure","currentEndpointKey"])||this.props.auth.getIn(["configure","defaultEndpointKey"])}},{key:"getErrorList",value:function(){var e=s(this.props.errorAddr),t=e[0],r=e.slice(1);return c["default"].createElement(h["default"],{errors:this.props.auth.getIn([t,this.getEndpoint()].concat(o(r)))})}},{key:"render",value:function(){var e=this.props.errorAddr?this.getErrorList():this.props.children;return c["default"].createElement(f.Modal,{show:this.props.show,className:"redux-auth-modal "+this.props.containerClass,onHide:this.close.bind(this)},c["default"].createElement(f.Modal.Header,{closeButton:!0},c["default"].createElement(f.Modal.Title,null,this.props.title)),c["default"].createElement(f.Modal.Body,null,e),c["default"].createElement(f.Modal.Footer,null,c["default"].createElement(f.Button,{onClick:this.close.bind(this),className:this.props.containerClass+"-close"},this.props.closeBtnLabel)))}}]),t}(c["default"].Component);b.propTypes={show:l.PropTypes.bool,errorAddr:l.PropTypes.array,closeBtnLabel:l.PropTypes.string},b.defaultProps={show:!1,errorAddr:null,closeBtnLabel:"Ok"},t["default"]=(0,y.connect)(function(e){var t=e.auth;return{auth:t}})(b)},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},u=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),p=r(1),l=n(p),c=r(8),f=r(4),d=n(f),h=function(e){function t(){return o(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),u(t,[{key:"handleInput",value:function(e){this.props.onChange(e.target.value)}},{key:"renderErrorList",value:function(){var e=this;return this.props.errors.size?l["default"].createElement("div",{className:"auth-error-message has-error"},this.props.errors.map(function(t,r){return l["default"].createElement("p",{className:"control-label inline-error-item",style:{paddingLeft:"20px",position:"relative",marginBottom:"28px"},key:r},l["default"].createElement(c.Glyphicon,{glyph:"exclamation-sign",style:{position:"absolute",left:0,top:2}})," ",e.props.label," ",t)})):l["default"].createElement("span",null)}},{key:"render",value:function(){return l["default"].createElement("div",null,l["default"].createElement(c.Input,a({},this.props,{bsStyle:this.props.errors.size?"error":null,onChange:this.handleInput.bind(this)})),this.renderErrorList())}}]),t}(l["default"].Component);h.propTypes={label:p.PropTypes.string,value:p.PropTypes.string,errors:p.PropTypes.object},h.defaultProps={label:"",value:null,errors:d["default"].fromJS([])},t["default"]=h},,,function(e,t){e.exports=require("react-loader")},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),u=r(1),p=n(u),l=r(74),c=n(l),f=r(75),d=n(f),h=r(76),y=n(h),b=r(77),m=n(b),g=r(71),w=n(g),P=r(72),v=n(P),E=r(73),_=n(E),O=r(17),j=n(O),I=r(3),S=function(e){function t(){return o(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),a(t,[{key:"render",value:function(){var e=this.props.requestPasswordResetErrorEnabled&&this.props.auth.getIn(["ui","requestPasswordResetErrorModalVisible"]),t=this.props.requestPasswordResetSuccessEnabled&&this.props.auth.getIn(["ui","requestPasswordResetSuccessModalVisible"]),r=this.props.updatePasswordSuccessEnabled&&this.props.auth.getIn(["ui","updatePasswordSuccessModalVisible"]),n=this.props.updatePasswordErrorEnabled&&this.props.auth.getIn(["ui","updatePasswordErrorModalVisible"]),o=this.props.destroyAccountSuccessEnabled&&this.props.auth.getIn(["ui","destroyAccountSuccessModalVisible"]),s=this.props.destroyAccountErrorEnabled&&this.props.auth.getIn(["ui","destroyAccountErrorModalVisible"]),i=this.props.passwordResetSuccessEnabled&&this.props.auth.getIn(["ui","passwordResetSuccessModalVisible"]);return p["default"].createElement("div",{id:"auth-modals"},p["default"].createElement(c["default"],{show:e}),p["default"].createElement(d["default"],{show:t}),p["default"].createElement(y["default"],{show:n}),p["default"].createElement(m["default"],{show:r}),p["default"].createElement(w["default"],{show:s}),p["default"].createElement(v["default"],{show:o}),p["default"].createElement(_["default"],{show:i}),p["default"].createElement(j["default"],null))}}]),t}(p["default"].Component);S.propTypes={requestPasswordResetErrorEnabled:u.PropTypes.bool,requestPasswordResetSuccessEnabled:u.PropTypes.bool,updatePasswordErrorEnabled:u.PropTypes.bool,updatePasswordSuccessEnabled:u.PropTypes.bool,destroyAccountErrorEnabled:u.PropTypes.bool,destroyAccountSuccessEnabled:u.PropTypes.bool,passwordResetSuccessEnabled:u.PropTypes.bool,passwordResetErrorEnabled:u.PropTypes.bool},S.defaultProps={requestPasswordResetErrorEnabled:!0,requestPasswordResetSuccessEnabled:!0,updatePasswordErrorEnabled:!0,updatePasswordSuccessEnabled:!0,destroyAccountErrorEnabled:!0,destroyAccountSuccessEnabled:!0,passwordResetSuccessEnabled:!0,passwordResetErrorEnabled:!0},t["default"]=(0,I.connect)(function(e){var t=e.auth;return{auth:t}})(S)},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},u=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),p=r(1),l=n(p),c=r(12),f=n(c),d=r(2),h=r(3),y=r(8),b=function(e){function t(){return o(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),u(t,[{key:"getEndpoint",value:function(){return this.props.endpoint||this.props.auth.getIn(["configure","currentEndpointKey"])||this.props.auth.getIn(["configure","defaultEndpointKey"])}},{key:"handleClick",value:function(){this.props.dispatch((0,d.destroyAccount)(this.getEndpoint()))}},{key:"render",value:function(){var e=!this.props.auth.getIn(["user","isSignedIn"]);return l["default"].createElement(f["default"],a({loading:this.props.auth.getIn(["destroyAccount",this.getEndpoint(),"loading"]),icon:this.props.icon,disabled:e,className:"destroy-account-submit",onClick:this.handleClick.bind(this)},this.props))}}]),t}(l["default"].Component);b.propTypes={endpoint:p.PropTypes.string,children:p.PropTypes.node,icon:p.PropTypes.node},b.defaultProps={children:l["default"].createElement("span",null,"Destroy Account"),icon:l["default"].createElement(y.Glyphicon,{glyph:"remove"})},t["default"]=(0,h.connect)(function(e){var t=e.auth;return{auth:t}})(b)},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},u=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),p=r(1),l=n(p),c=r(12),f=n(c),d=r(20),h=n(d),y=r(2),b=r(8),m=r(3),g=function(e){function t(){return o(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),u(t,[{key:"getEndpoint",value:function(){return this.props.endpoint||this.props.auth.getIn(["configure","currentEndpointKey"])||this.props.auth.getIn(["configure","defaultEndpointKey"])}},{key:"handleInput",value:function(e,t){this.props.dispatch((0,y.emailSignInFormUpdate)(this.getEndpoint(),e,t))}},{key:"handleSubmit",value:function(e){e.preventDefault();var t=this.props.auth.getIn(["emailSignIn",this.getEndpoint(),"form"]).toJS();this.props.dispatch((0,y.emailSignIn)(t,this.getEndpoint())).then(this.props.next)["catch"](function(){})}},{key:"render",value:function(){var e=this.props.auth.getIn(["user","isSignedIn"])||this.props.auth.getIn(["emailSignIn",this.getEndpoint(),"loading"]);return l["default"].createElement("form",{className:"redux-auth email-sign-in-form clearfix",onSubmit:this.handleSubmit.bind(this)},l["default"].createElement(h["default"],a({type:"text",groupClassName:"email-sign-in-email",label:"Email",placeholder:"Email",disabled:e,value:this.props.auth.getIn(["emailSignIn",this.getEndpoint(),"form","email"]),errors:this.props.auth.getIn(["emailSignIn",this.getEndpoint(),"errors","email"]),onChange:this.handleInput.bind(this,"email")},this.props.inputProps.email)),l["default"].createElement(h["default"],a({type:"password",label:"Password",groupClassName:"email-sign-in-password",placeholder:"Password",disabled:e,value:this.props.auth.getIn(["emailSignIn",this.getEndpoint(),"form","password"]),errors:this.props.auth.getIn(["emailSignIn",this.getEndpoint(),"errors","password"]),onChange:this.handleInput.bind(this,"password")},this.props.inputProps.password)),l["default"].createElement(f["default"],a({loading:this.props.auth.getIn(["emailSignIn",this.getEndpoint(),"loading"]),type:"submit",icon:l["default"].createElement(b.Glyphicon,{glyph:"log-in"}),className:"email-sign-in-submit pull-right",disabled:e,onClick:this.handleSubmit.bind(this)},this.props.inputProps.submit),"Sign In"))}}]),t}(l["default"].Component);g.propTypes={endpoint:p.PropTypes.string,next:p.PropTypes.func,inputProps:p.PropTypes.shape({email:p.PropTypes.object,password:p.PropTypes.object,submit:p.PropTypes.object})},g.defaultProps={next:function(){},inputProps:{email:{},password:{},submit:{}}},t["default"]=(0,m.connect)(function(e){var t=e.auth;return{auth:t}})(g)},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},u=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),p=r(1),l=n(p),c=r(20),f=n(c),d=r(12),h=n(d),y=r(2),b=r(3),m=r(8),g=function(e){function t(){return o(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),u(t,[{key:"getEndpoint",value:function(){return this.props.endpoint||this.props.auth.getIn(["configure","currentEndpointKey"])||this.props.auth.getIn(["configure","defaultEndpointKey"])}},{key:"handleInput",value:function(e,t){this.props.dispatch((0,y.emailSignUpFormUpdate)(this.getEndpoint(),e,t))}},{key:"handleSubmit",value:function(e){e.preventDefault();var t=this.props.auth.getIn(["emailSignUp",this.getEndpoint(),"form"]).toJS();this.props.dispatch((0,y.emailSignUp)(t,this.getEndpoint())).then(this.props.next)["catch"](function(){})}},{key:"render",value:function(){var e=this.props.auth.getIn(["user","isSignedIn"])||this.props.auth.getIn(["emailSignUp",this.getEndpoint(),"loading"]);return l["default"].createElement("form",{className:"redux-auth email-sign-up-form clearfix",onSubmit:this.handleSubmit.bind(this)},l["default"].createElement(f["default"],a({type:"text",label:"Email",placeholder:"Email",groupClassName:"email-sign-up-email",disabled:e,value:this.props.auth.getIn(["emailSignUp",this.getEndpoint(),"form","email"]),errors:this.props.auth.getIn(["emailSignUp",this.getEndpoint(),"errors","email"]),onChange:this.handleInput.bind(this,"email")},this.props.inputProps.email)),l["default"].createElement(f["default"],a({type:"password",label:"Password",placeholder:"Password",groupClassName:"email-sign-up-password",disabled:e,value:this.props.auth.getIn(["emailSignUp",this.getEndpoint(),"form","password"]),errors:this.props.auth.getIn(["emailSignUp",this.getEndpoint(),"errors","password"]),onChange:this.handleInput.bind(this,"password")},this.props.inputProps.password)),l["default"].createElement(f["default"],a({type:"password",label:"Password Confirmation",placeholder:"Password Confirmation",groupClassName:"email-sign-up-password-confirmation",disabled:e,value:this.props.auth.getIn(["emailSignUp",this.getEndpoint(),"form","password_confirmation"]),errors:this.props.auth.getIn(["emailSignUp",this.getEndpoint(),"errors","password_confirmation"]),onChange:this.handleInput.bind(this,"password_confirmation")},this.props.inputProps.passwordConfirmation)),l["default"].createElement(h["default"],a({loading:this.props.auth.getIn(["emailSignUp",this.getEndpoint(),"loading"]),type:"submit",className:"email-sign-up-submit pull-right",icon:l["default"].createElement(m.Glyphicon,{glyph:"send"}),disabled:e,onClick:this.handleSubmit.bind(this)},this.props.inputProps.submit),"Sign Up"))}}]),t}(l["default"].Component);g.propTypes={endpoint:p.PropTypes.string,next:p.PropTypes.func,inputProps:p.PropTypes.shape({email:p.PropTypes.object,password:p.PropTypes.object,passwordConfirmation:p.PropTypes.object,submit:p.PropTypes.object})},g.defaultProps={next:function(){},inputProps:{email:{},password:{},submit:{}}},t["default"]=(0,b.connect)(function(e){var t=e.auth;return{auth:t}})(g)},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),u=r(1),p=n(u),l=r(8),c=r(4),f=n(c),d=function(e){function t(){return o(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),a(t,[{key:"renderErrorList",value:function(){var e=(this.props.errors||f["default"].fromJS([])).size;if(e>0){var t="error";return t+=1===e?"":"s",p["default"].createElement("div",{className:"has-error"},p["default"].createElement("p",null,"Please correct the following ",t,":"),this.props.errors.map(function(e,t){return p["default"].createElement("p",{key:t,className:"control-label modal-error-item",style:{paddingLeft:"20px",position:"relative"}},p["default"].createElement(l.Glyphicon,{glyph:"exclamation-sign",style:{position:"absolute",left:0,top:2}})," ",e)}))}return p["default"].createElement("p",null,p["default"].createElement(l.Glyphicon,{glyph:"exclamation-sign"})," There was an error processing this form. Please check each field and try again.")}},{key:"render",value:function(){return p["default"].createElement("div",{className:"auth-error-message"},this.renderErrorList())}}]),t}(p["default"].Component);d.propTypes={errors:u.PropTypes.object},d.defaultProps={errors:f["default"].fromJS([])},t["default"]=d},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},u=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),p=r(1),l=n(p),c=r(3),f=r(12),d=n(f),h=r(8),y=r(2),b=y.oAuthSignIn,m=function(e){function t(){return o(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),u(t,[{key:"getEndpoint",value:function(){return this.props.endpoint||this.props.auth.getIn(["configure","currentEndpointKey"])||this.props.auth.getIn(["configure","defaultEndpointKey"])}},{key:"handleClick",value:function(){this.props.dispatch(b({provider:this.props.provider,params:this.props.signInParams,endpointKey:this.getEndpoint()})).then(this.props.next)["catch"](function(){})}},{key:"render",value:function(){var e=this.props.auth.getIn(["user","isSignedIn"]),t=this.props.auth.getIn(["ui","oAuthSignInLoadingProvider"])===this.props.provider&&this.props.auth.getIn(["oAuthSignIn",this.getEndpoint(),"loading"]);return l["default"].createElement(d["default"],a({loading:t,icon:this.props.icon,className:this.props.className+" oauth-sign-in-submit",disabled:e,onClick:this.handleClick.bind(this)},this.props))}}]),t}(l["default"].Component);m.propTypes={provider:p.PropTypes.string.isRequired,label:p.PropTypes.string,signInParams:p.PropTypes.object,children:p.PropTypes.node,icon:p.PropTypes.node,next:p.PropTypes.func},m.defaultProps={signInParams:{},children:l["default"].createElement("span",null,"OAuth Sign In"),icon:l["default"].createElement(h.Glyphicon,{glyph:"log-in"}),next:function(){}},t["default"]=(0,c.connect)(function(e){var t=e.auth;return{auth:t}})(m)},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},u=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),p=r(1),l=n(p),c=r(20),f=n(c),d=r(12),h=n(d),y=r(8),b=r(3),m=r(2),g=function(e){function t(){return o(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),u(t,[{key:"getEndpoint",value:function(){return this.props.endpoint||this.props.auth.getIn(["configure","currentEndpointKey"])||this.props.auth.getIn(["configure","defaultEndpointKey"])}},{key:"handleInput",value:function(e,t){this.props.dispatch((0,m.requestPasswordResetFormUpdate)(this.getEndpoint(),e,t))}},{key:"handleSubmit",value:function(e){e.preventDefault();var t=this.props.auth.getIn(["requestPasswordReset",this.getEndpoint(),"form"]).toJS();this.props.dispatch((0,m.requestPasswordReset)(t,this.getEndpoint()))}},{key:"render",value:function(){var e=this.props.auth.getIn(["requestPasswordReset",this.getEndpoint(),"loading"]),t=this.props.auth.getIn(["user","isSignedIn"]),r=!this.props.auth.getIn(["requestPasswordReset",this.getEndpoint(),"form","email"]);return l["default"].createElement("form",{className:"redux-auth request-password-reset-form clearfix",onSubmit:this.handleSubmit.bind(this)},l["default"].createElement(f["default"],a({type:"text",label:"Email Address",groupClassName:"request-password-reset-email",placeholder:"Email Address",disabled:e||t,value:this.props.auth.getIn(["requestPasswordReset",this.getEndpoint(),"form","email"]),errors:this.props.auth.getIn(["requestPasswordReset",this.getEndpoint(),"errors","email"]),onChange:this.handleInput.bind(this,"email")},this.props.inputProps.email)),l["default"].createElement(h["default"],a({loading:e,type:"submit",icon:l["default"].createElement(y.Glyphicon,{glyph:"send"}),className:"pull-right request-password-reset-submit",disabled:t||r,onClick:this.handleSubmit.bind(this)},this.props.inputProps.submit),"Request Password Reset"))}}]),t}(l["default"].Component);g.propTypes={endpoint:p.PropTypes.string,inputProps:p.PropTypes.shape({email:p.PropTypes.object,submit:p.PropTypes.object})},g.defaultProps={inputProps:{email:{},submit:{}}},t["default"]=(0,b.connect)(function(e){var t=e.auth;return{auth:t}})(g)},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");
}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},u=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),p=r(1),l=n(p),c=r(12),f=n(c),d=r(8),h=r(3),y=r(2),b=function(e){function t(){return o(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),u(t,[{key:"getEndpoint",value:function(){return this.props.endpoint||this.props.auth.getIn(["configure","currentEndpointKey"])||this.props.auth.getIn(["configure","defaultEndpointKey"])}},{key:"handleClick",value:function(){this.props.dispatch((0,y.signOut)(this.getEndpoint())).then(this.props.next)["catch"](function(){})}},{key:"render",value:function(){var e=!this.props.auth.getIn(["user","isSignedIn"]);return l["default"].createElement(f["default"],a({loading:this.props.auth.getIn(["signOut",this.getEndpoint(),"loading"]),icon:this.props.icon,disabled:e,className:"sign-out-submit",onClick:this.handleClick.bind(this)},this.props))}}]),t}(l["default"].Component);b.propTypes={next:p.PropTypes.func,children:p.PropTypes.node,icon:p.PropTypes.node},b.defaultProps={next:function(){},children:l["default"].createElement("span",null,"Sign Out"),icon:l["default"].createElement(d.Glyphicon,{glyph:"log-out"})},t["default"]=(0,h.connect)(function(e){var t=e.auth;return{auth:t}})(b)},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},u=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),p=r(1),l=n(p),c=r(20),f=n(c),d=r(12),h=n(d),y=r(8),b=r(2),m=r(3),g=function(e){function t(){return o(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),u(t,[{key:"getEndpoint",value:function(){return this.props.endpoint||this.props.auth.getIn(["configure","currentEndpointKey"])||this.props.auth.getIn(["configure","defaultEndpointKey"])}},{key:"handleInput",value:function(e,t){this.props.dispatch((0,b.updatePasswordFormUpdate)(this.getEndpoint(),e,t))}},{key:"handleSubmit",value:function(e){e.preventDefault();var t=this.props.auth.getIn(["updatePassword",this.getEndpoint(),"form"]).toJS();this.props.dispatch((0,b.updatePassword)(t,this.getEndpoint()))}},{key:"render",value:function(){var e=this.getEndpoint(),t=this.props.auth.getIn(["updatePassword",e,"loading"]),r=!this.props.auth.getIn(["user","isSignedIn"])||t||"email"!==this.props.auth.getIn(["user","attributes","provider"]);return l["default"].createElement("form",{className:"redux-auth update-password-form clearfix",onSubmit:this.handleSubmit.bind(this)},l["default"].createElement(f["default"],a({type:"password",label:"Password",placeholder:"Password",disabled:r,groupClassName:"update-password-password",value:this.props.auth.getIn(["updatePassword",e,"form","password"]),errors:this.props.auth.getIn(["updatePassword",e,"errors","password"]),onChange:this.handleInput.bind(this,"password")},this.props.inputProps.password)),l["default"].createElement(f["default"],a({type:"password",label:"Password Confirmation",placeholder:"Password Confirmation",disabled:r,groupClassName:"update-password-password-confirmation",value:this.props.auth.getIn(["updatePassword",e,"form","password_confirmation"]),errors:this.props.auth.getIn(["updatePassword",e,"errors","password_confirmation"]),onChange:this.handleInput.bind(this,"password_confirmation")},this.props.inputProps.passwordConfirmation)),l["default"].createElement(h["default"],a({loading:t,type:"submit",disabled:r,className:"pull-right update-password-submit",icon:this.props.icon||l["default"].createElement(y.Glyphicon,{glyph:"lock"}),onClick:this.handleSubmit.bind(this)},this.props.inputProps.submit),"Update Password"))}}]),t}(l["default"].Component);g.propTypes={endpoint:p.PropTypes.string,inputProps:p.PropTypes.shape({password:p.PropTypes.object,passwordConfirmation:p.PropTypes.object})},g.defaultProps={inputProps:{password:{},passwordConfirmation:{}}},t["default"]=(0,m.connect)(function(e){var t=e.auth;return{auth:t}})(g)},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),u=r(1),p=n(u),l=r(2),c=r(19),f=n(c),d=function(e){function t(){return o(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),a(t,[{key:"render",value:function(){return p["default"].createElement(f["default"],{containerClass:"destroy-account-error-modal",show:this.props.show,closeAction:l.hideDestroyAccountErrorModal,title:"Error",errorAddr:["destroyAccount","errors"]})}}]),t}(p["default"].Component);t["default"]=d},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),u=r(1),p=n(u),l=r(3),c=r(2),f=r(19),d=n(f),h=function(e){function t(){return o(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),a(t,[{key:"render",value:function(){return p["default"].createElement(d["default"],{show:this.props.show,containerClass:"destroy-account-success-modal",closeAction:c.hideDestroyAccountSuccessModal,title:"Destroy Account Success"},p["default"].createElement("p",null,this.props.auth.getIn(["ui","destroyAccountMessage"])))}}]),t}(p["default"].Component);t["default"]=(0,l.connect)(function(e){var t=e.auth;return{auth:t}})(h)},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},u=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),p=r(1),l=n(p),c=r(8),f=r(12),d=n(f),h=r(20),y=n(h),b=r(3),m=r(2),g=r(2),w=function(e){function t(){return o(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),u(t,[{key:"getEndpoint",value:function(){return this.props.endpoint||this.props.auth.getIn(["configure","currentEndpointKey"])||this.props.auth.getIn(["configure","defaultEndpointKey"])}},{key:"handleInput",value:function(e,t){this.props.dispatch((0,g.updatePasswordModalFormUpdate)(this.getEndpoint(),e,t))}},{key:"handleSubmit",value:function(){var e=this.props.auth.getIn(["updatePasswordModal",this.getEndpoint(),"form"]).toJS();this.props.dispatch((0,g.updatePasswordModal)(e,this.getEndpoint()))}},{key:"close",value:function(){this.props.dispatch((0,m.hidePasswordResetSuccessModal)(this.getEndpoint()))}},{key:"render",value:function(){var e=this.props.auth.getIn(["updatePasswordModal",this.getEndpoint(),"loading"]),t=this.getEndpoint();return l["default"].createElement(c.Modal,{show:this.props.show,className:"password-reset-success-modal",onHide:this.close.bind(this)},l["default"].createElement(c.Modal.Header,{closeButton:!0},l["default"].createElement(c.Modal.Title,null,"Reset Your Password")),l["default"].createElement("form",null,l["default"].createElement(c.Modal.Body,null,l["default"].createElement(y["default"],a({type:"password",label:"Password",placeholder:"Password",disabled:e,groupClassName:"password-reset-success-modal-password",value:this.props.auth.getIn(["updatePasswordModal",t,"form","password"]),errors:this.props.auth.getIn(["updatePasswordModal",t,"errors","password"]),onChange:this.handleInput.bind(this,"password")},this.props.inputProps.password)),l["default"].createElement(y["default"],a({type:"password",label:"Password Confirmation",placeholder:"Password Confirmation",disabled:e,groupClassName:"password-reset-success-modal-password-confirmation",value:this.props.auth.getIn(["updatePasswordModal",t,"form","password_confirmation"]),errors:this.props.auth.getIn(["updatePasswordModal",t,"errors","password_confirmation"]),onChange:this.handleInput.bind(this,"password_confirmation")},this.props.inputProps.passwordConfirmation))),l["default"].createElement(c.Modal.Footer,null,l["default"].createElement(c.Button,a({className:"password-reset-success-modal-close",onClick:this.close.bind(this)},this.props.inputProps.cancel),"Cancel"),l["default"].createElement(d["default"],a({},this.props,{loading:e,type:"submit",className:"password-reset-success-modal-submit",icon:l["default"].createElement(c.Glyphicon,{glyph:"lock"}),onClick:this.handleSubmit.bind(this)},this.props.inputProps.submit)))))}}]),t}(l["default"].Component);w.propTypes={show:p.PropTypes.bool,inputProps:p.PropTypes.object},w.defaultProps={show:!1,inputProps:{}},t["default"]=(0,b.connect)(function(e){var t=e.auth;return{auth:t}})(w)},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),u=r(1),p=n(u),l=r(2),c=r(19),f=n(c),d=function(e){function t(){return o(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),a(t,[{key:"render",value:function(){return p["default"].createElement(f["default"],{show:this.props.show,containerClass:"request-password-reset-error-modal",closeAction:l.hidePasswordResetRequestErrorModal,title:"Error",errorAddr:["requestPasswordReset","errors"]})}}]),t}(p["default"].Component);t["default"]=d},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),u=r(1),p=n(u),l=r(3),c=r(2),f=r(19),d=n(f),h=function(e){function t(){return o(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),a(t,[{key:"render",value:function(){return p["default"].createElement(d["default"],{show:this.props.show,containerClass:"request-password-reset-success-modal",title:"Password Reset Request Success",closeAction:c.hidePasswordResetRequestSuccessModal},p["default"].createElement("p",null,this.props.auth.getIn(["ui","requestPasswordResetSuccessMessage"])))}}]),t}(p["default"].Component);t["default"]=(0,l.connect)(function(e){var t=e.auth;return{auth:t}})(h)},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),u=r(1),p=n(u),l=r(2),c=r(19),f=n(c),d=function(e){function t(){return o(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),a(t,[{key:"render",value:function(){return p["default"].createElement(f["default"],{show:this.props.show,containerClass:"update-password-error-modal",title:"Error",closeAction:l.hideUpdatePasswordErrorModal,errorAddr:["updatePassword","errors","full_messages"]})}}]),t}(p["default"].Component);t["default"]=d},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),u=r(1),p=n(u),l=r(2),c=r(19),f=n(c),d=function(e){function t(){return o(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),a(t,[{key:"render",value:function(){return p["default"].createElement(f["default"],{show:this.props.show,containerClass:"update-password-success-modal",closeAction:l.hideUpdatePasswordSuccessModal,title:"Success"},p["default"].createElement("p",null,"Your password has been successfully changed."))}}]),t}(p["default"].Component);t["default"]=d}]));