UNPKG

124 kBJavaScriptView Raw
1!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.fetch=t.TokenBridge=t.DestroyAccountButton=t.UpdatePasswordForm=t.OAuthSignInButton=t.RequestPasswordResetForm=t.SignOutButton=t.EmailSignUpForm=t.EmailSignInForm=t.AuthGlobals=t.hideDestroyAccountErrorModal=t.hideDestroyAccountSuccessModal=t.hideUpdatePasswordErrorModal=t.hideUpdatePasswordSuccessModal=t.hidePasswordResetRequestErrorModal=t.hidePasswordResetRequestSuccessModal=t.hidePasswordResetErrorModal=t.hideFirstTimeLoginErrorModal=t.showPasswordResetErrorModal=t.showFirstTimeLoginErrorModal=t.hidePasswordResetSuccessModal=t.hideFirstTimeLoginSuccessModal=t.showPasswordResetSuccessModal=t.showFirstTimeLoginSuccessModal=t.hideEmailSignUpErrorModal=t.hideEmailSignUpSuccessModal=t.hideSignOutErrorModal=t.hideSignOutSuccessModal=t.hideOAuthSignInErrorModal=t.hideOAuthSignInSuccessModal=t.hideEmailSignInErrorModal=t.hideEmailSignInSuccessModal=t.getApiUrl=t.verifyAuth=t.destroyAccount=t.updatePasswordModalFormUpdate=t.updatePasswordModal=t.updatePasswordFormUpdate=t.updatePassword=t.requestPasswordResetFormUpdate=t.requestPasswordReset=t.oAuthSignIn=t.emailSignUpFormUpdate=t.emailSignUp=t.signOut=t.emailSignInFormUpdate=t.emailSignIn=t.authenticate=t.configure=t.authStateReducer=void 0;var o=r(5);Object.defineProperty(t,"configure",{enumerable:!0,get:function(){return o.configure}});var i=r(25);Object.defineProperty(t,"authenticate",{enumerable:!0,get:function(){return i.authenticate}});var u=r(27);Object.defineProperty(t,"emailSignIn",{enumerable:!0,get:function(){return u.emailSignIn}}),Object.defineProperty(t,"emailSignInFormUpdate",{enumerable:!0,get:function(){return u.emailSignInFormUpdate}});var a=r(30);Object.defineProperty(t,"signOut",{enumerable:!0,get:function(){return a.signOut}});var s=r(33);Object.defineProperty(t,"emailSignUp",{enumerable:!0,get:function(){return s.emailSignUp}}),Object.defineProperty(t,"emailSignUpFormUpdate",{enumerable:!0,get:function(){return s.emailSignUpFormUpdate}});var l=r(28);Object.defineProperty(t,"oAuthSignIn",{enumerable:!0,get:function(){return l.oAuthSignIn}});var c=r(34);Object.defineProperty(t,"requestPasswordReset",{enumerable:!0,get:function(){return c.requestPasswordReset}}),Object.defineProperty(t,"requestPasswordResetFormUpdate",{enumerable:!0,get:function(){return c.requestPasswordResetFormUpdate}});var p=r(37);Object.defineProperty(t,"updatePassword",{enumerable:!0,get:function(){return p.updatePassword}}),Object.defineProperty(t,"updatePasswordFormUpdate",{enumerable:!0,get:function(){return p.updatePasswordFormUpdate}});var d=r(36);Object.defineProperty(t,"updatePasswordModal",{enumerable:!0,get:function(){return d.updatePasswordModal}}),Object.defineProperty(t,"updatePasswordModalFormUpdate",{enumerable:!0,get:function(){return d.updatePasswordModalFormUpdate}});var f=r(26);Object.defineProperty(t,"destroyAccount",{enumerable:!0,get:function(){return f.destroyAccount}});var h=r(11);Object.defineProperty(t,"getApiUrl",{enumerable:!0,get:function(){return h.getApiUrl}});var E=r(35);Object.defineProperty(t,"hideEmailSignInSuccessModal",{enumerable:!0,get:function(){return E.hideEmailSignInSuccessModal}}),Object.defineProperty(t,"hideEmailSignInErrorModal",{enumerable:!0,get:function(){return E.hideEmailSignInErrorModal}}),Object.defineProperty(t,"hideOAuthSignInSuccessModal",{enumerable:!0,get:function(){return E.hideOAuthSignInSuccessModal}}),Object.defineProperty(t,"hideOAuthSignInErrorModal",{enumerable:!0,get:function(){return E.hideOAuthSignInErrorModal}}),Object.defineProperty(t,"hideSignOutSuccessModal",{enumerable:!0,get:function(){return E.hideSignOutSuccessModal}}),Object.defineProperty(t,"hideSignOutErrorModal",{enumerable:!0,get:function(){return E.hideSignOutErrorModal}}),Object.defineProperty(t,"hideEmailSignUpSuccessModal",{enumerable:!0,get:function(){return E.hideEmailSignUpSuccessModal}}),Object.defineProperty(t,"hideEmailSignUpErrorModal",{enumerable:!0,get:function(){return E.hideEmailSignUpErrorModal}}),Object.defineProperty(t,"showFirstTimeLoginSuccessModal",{enumerable:!0,get:function(){return E.showFirstTimeLoginSuccessModal}}),Object.defineProperty(t,"showPasswordResetSuccessModal",{enumerable:!0,get:function(){return E.showPasswordResetSuccessModal}}),Object.defineProperty(t,"hideFirstTimeLoginSuccessModal",{enumerable:!0,get:function(){return E.hideFirstTimeLoginSuccessModal}}),Object.defineProperty(t,"hidePasswordResetSuccessModal",{enumerable:!0,get:function(){return E.hidePasswordResetSuccessModal}}),Object.defineProperty(t,"showFirstTimeLoginErrorModal",{enumerable:!0,get:function(){return E.showFirstTimeLoginErrorModal}}),Object.defineProperty(t,"showPasswordResetErrorModal",{enumerable:!0,get:function(){return E.showPasswordResetErrorModal}}),Object.defineProperty(t,"hideFirstTimeLoginErrorModal",{enumerable:!0,get:function(){return E.hideFirstTimeLoginErrorModal}}),Object.defineProperty(t,"hidePasswordResetErrorModal",{enumerable:!0,get:function(){return E.hidePasswordResetErrorModal}}),Object.defineProperty(t,"hidePasswordResetRequestSuccessModal",{enumerable:!0,get:function(){return E.hidePasswordResetRequestSuccessModal}}),Object.defineProperty(t,"hidePasswordResetRequestErrorModal",{enumerable:!0,get:function(){return E.hidePasswordResetRequestErrorModal}}),Object.defineProperty(t,"hideUpdatePasswordSuccessModal",{enumerable:!0,get:function(){return E.hideUpdatePasswordSuccessModal}}),Object.defineProperty(t,"hideUpdatePasswordErrorModal",{enumerable:!0,get:function(){return E.hideUpdatePasswordErrorModal}}),Object.defineProperty(t,"hideDestroyAccountSuccessModal",{enumerable:!0,get:function(){return E.hideDestroyAccountSuccessModal}}),Object.defineProperty(t,"hideDestroyAccountErrorModal",{enumerable:!0,get:function(){return E.hideDestroyAccountErrorModal}});var _=r(91);Object.defineProperty(t,"AuthGlobals",{enumerable:!0,get:function(){return _.AuthGlobals}}),Object.defineProperty(t,"EmailSignInForm",{enumerable:!0,get:function(){return _.EmailSignInForm}}),Object.defineProperty(t,"EmailSignUpForm",{enumerable:!0,get:function(){return _.EmailSignUpForm}}),Object.defineProperty(t,"SignOutButton",{enumerable:!0,get:function(){return _.SignOutButton}}),Object.defineProperty(t,"RequestPasswordResetForm",{enumerable:!0,get:function(){return _.RequestPasswordResetForm}}),Object.defineProperty(t,"OAuthSignInButton",{enumerable:!0,get:function(){return _.OAuthSignInButton}}),Object.defineProperty(t,"UpdatePasswordForm",{enumerable:!0,get:function(){return _.UpdatePasswordForm}}),Object.defineProperty(t,"DestroyAccountButton",{enumerable:!0,get:function(){return _.DestroyAccountButton}}),Object.defineProperty(t,"TokenBridge",{enumerable:!0,get:function(){return _.TokenBridge}});var y=r(13);Object.defineProperty(t,"fetch",{enumerable:!0,get:function(){return y["default"]}});var g=r(41),b=n(g),S=r(42),m=n(S),O=r(53),P=n(O),v=r(50),R=n(v),w=r(44),T=n(w),I=r(45),M=n(I),A=r(46),C=n(A),D=r(47),U=n(D),j=r(52),N=n(j),L=r(51),k=n(L),K=r(48),G=n(K),F=r(49),H=n(F),V=r(43),W=n(V),x=r(10),q=r(40),Y=n(q);t.authStateReducer=(0,x.combineReducers)({configure:m["default"],emailSignIn:T["default"],emailSignUp:M["default"],signOut:H["default"],authentication:b["default"],requestPasswordReset:U["default"],oAuthSignIn:C["default"],updatePassword:N["default"],updatePasswordModal:k["default"],destroyAccount:W["default"],server:G["default"],ui:R["default"],user:P["default"]});t.verifyAuth=Y["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,r){"use strict";function n(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t["default"]=e,t}function o(e){return e&&e.__esModule?e:{"default":e}}function i(e,t,r){return{type:m,endpoints:e,currentEndpointKey:t,defaultEndpointKey:r}}function u(e){return{type:O,currentEndpointKey:e}}function a(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];return function(r){if(t.currentLocation&&t.currentLocation.match(/blank=true/))return Promise.resolve({blank:!0});r((0,p.authenticateStart)());var n=void 0,o=void 0,u=void 0,a=void 0,s=void 0;if(t.isServer)n=(0,y["default"])(e,t).then(function(e){var t=e.user,n=e.headers,o=e.firstTimeLogin,u=e.mustResetPassword,a=e.currentEndpoint,s=e.currentEndpointKey,l=e.defaultEndpointKey;return r((0,f.ssAuthTokenUpdate)({headers:n,user:t,firstTimeLogin:o,mustResetPassword:u})),r(i(Object.keys(a),s,l)),t})["catch"](function(e){var t=e.reason,n=e.firstTimeLogin,o=e.mustResetPassword,u=e.currentEndpoint,a=e.defaultEndpointKey;return r((0,f.ssAuthTokenUpdate)({firstTimeLogin:n,mustResetPassword:o})),r(i(Object.keys(u||{}),null,a)),Promise.reject({reason:t})});else{var c=document.getElementById("token-bridge");if(c){var _=c.innerHTML;if(_){var g=JSON.parse(_);s=g.headers,a=g.user,o=g.firstTimeLogin,u=g.mustResetPassword,a&&(r((0,p.authenticateComplete)(a)),t.initialCredentials=g),r((0,f.ssAuthTokenUpdate)({user:a,headers:s,mustResetPassword:u,firstTimeLogin:o}))}}var m=(0,b["default"])(window.location),O=m.authRedirectPath,P=m.authRedirectHeaders;O&&r((0,S.pushState)(null,O)),P&&P.uid&&P["access-token"]&&(t.initialCredentials=(0,l["default"])({},t.initialCredentials,P)),t.initialCredentials||(0,E.destroySession)(),n=Promise.resolve((0,h.applyConfig)({dispatch:r,endpoint:e,settings:t}))}return n.then(function(e){return r((0,p.authenticateComplete)(e)),o&&r((0,d.showFirstTimeLoginSuccessModal)()),u&&r((0,d.showPasswordResetSuccessModal)()),e})["catch"](function(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],t=e.reason;return r((0,p.authenticateError)([t])),o&&r((0,d.showFirstTimeLoginErrorModal)()),u&&r((0,d.showPasswordResetErrorModal)()),Promise.resolve({reason:t})})}}Object.defineProperty(t,"__esModule",{value:!0}),t.STORE_CURRENT_ENDPOINT_KEY=t.SET_ENDPOINT_KEYS=void 0,t.setEndpointKeys=i,t.storeCurrentEndpointKey=u,t.configure=a;var s=r(19),l=o(s),c=r(20),p=(n(c),r(25)),d=r(35),f=r(29),h=r(54),E=r(11),_=r(40),y=o(_),g=r(38),b=o(g),S=r(141),m=t.SET_ENDPOINT_KEYS="SET_ENDPOINT_KEYS",O=t.STORE_CURRENT_ENDPOINT_KEY="STORE_CURRENT_ENDPOINT_KEY"},,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 i(e){return Array.isArray(e)?e:Array.from(e)}function u(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 s(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)}var l=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}}();Object.defineProperty(t,"__esModule",{value:!0});var c=r(1),p=n(c),d=r(140),f=n(d),h=r(86),E=n(h),_=r(3),y=function(e){function t(){return u(this,t),a(this,Object.getPrototypeOf(t).apply(this,arguments))}return s(t,e),l(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=i(this.props.errorAddr),t=e[0],r=e.slice(1);return p["default"].createElement(E["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 this.props.show?p["default"].createElement(f["default"],{visible:this.props.show,className:"redux-auth-modal "+this.props.containerClass,title:this.props.title,onClose:this.close.bind(this)},p["default"].createElement("div",{className:"redux-auth-modal-body"},e),p["default"].createElement("div",{className:"redux-auth-modal-footer"},p["default"].createElement("button",{onClick:this.close.bind(this),className:this.props.containerClass+"-close"},this.props.closeBtnLabel))):p["default"].createElement("span",null)}}]),t}(p["default"].Component);y.propTypes={show:c.PropTypes.bool,errorAddr:c.PropTypes.array,closeBtnLabel:c.PropTypes.string,closeAction:c.PropTypes.func},y.defaultProps={show:!1,errorAddr:null,closeBtnLabel:"Ok"},t["default"]=(0,_.connect)(function(e){var t=e.auth;return{auth:t}})(y)},,function(e,t){e.exports=require("react-bootstrap")},function(e,t){e.exports=require("redux-immutablejs")},function(e,t,r){"use strict";function n(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t["default"]=e,t}function o(e){return e&&e.__esModule?e:{"default":e}}function i(e){k.authState.currentSettings=e}function u(){return k.authState.currentSettings}function a(e){k.authState.currentEndpoint=e}function s(){return k.authState.currentEndpoint}function l(e){C(L.SAVED_CONFIG_KEY,e||d())}function c(){return D(L.SAVED_CONFIG_KEY)||d()}function p(e){C(L.DEFAULT_CONFIG_KEY,e)}function d(){return D(L.DEFAULT_CONFIG_KEY)}function f(){k.authState=k.authState||{},k.authState.currentSettings={},k.authState.currentEndpoint={},h()}function h(){var e=[L.SAVED_CREDS_KEY,L.SAVED_CONFIG_KEY];for(var t in e)t=e[t],k.localStorage&&k.localStorage.removeItem(t),j["default"].remove(t,{path:k.authState.currentSettings.cookiePath||"/"})}function E(e){return e&&e.replace(/("|')/g,"")}function _(){return E(j["default"].get(L.SAVED_CONFIG_KEY)||k.localStorage&&k.localStorage.getItem(L.SAVED_CONFIG_KEY))}function y(e){var t=e||c();if(t)return t;throw"You must configure redux-auth before use."}function g(e){return s()[y(e)]}function b(e){return""+M(e)+g(e).accountDeletePath}function S(e){return""+M(e)+g(e).signOutPath}function m(e){return""+M(e)+g(e).emailSignInPath}function O(e){return""+M(e)+g(e).emailRegistrationPath+"?config_name="+e}function P(e){return""+M(e)+g(e).passwordResetPath+"?config_name="+e}function v(e){return""+M(e)+g(e).passwordUpdatePath}function R(e){return""+M(e)+g(e).tokenValidationPath}function w(e){var t=e.provider,r=e.params,n=e.endpointKey,o=M(n)+g(n).authProviderPaths[t]+"?auth_origin_url="+encodeURIComponent(k.location.href)+"&config_name="+encodeURIComponent(y(n));if(r)for(var i in r)o+="&",o+=encodeURIComponent(i),o+="=",o+=encodeURIComponent(r[i]);return o}function T(){return k.authState.currentSettings.confirmationSuccessUrl()}function I(){return k.authState.currentSettings.confirmationSuccessUrl()}function M(e){var t=y(e);return k.authState.currentEndpoint[t].apiUrl}function A(){return k.authState.currentSettings.tokenFormat}function C(e,t){switch(t=JSON.stringify(t),k.authState.currentSettings.storage){case"localStorage":k.localStorage.setItem(e,t);break;default:j["default"].set(e,t,{expires:k.authState.currentSettings.cookieExpiry,path:k.authState.currentSettings.cookiePath})}}function D(e){var t=null;switch(k.authState.currentSettings.storage){case"localStorage":t=k.localStorage&&k.localStorage.getItem(e);break;default:t=j["default"].get(e)}try{return JSON.parse(t)}catch(r){return E(t)}}Object.defineProperty(t,"__esModule",{value:!0}),t.setCurrentSettings=i,t.getCurrentSettings=u,t.setCurrentEndpoint=a,t.getCurrentEndpoint=s,t.setCurrentEndpointKey=l,t.getCurrentEndpointKey=c,t.setDefaultEndpointKey=p,t.getDefaultEndpointKey=d,t.resetConfig=f,t.destroySession=h,t.getInitialEndpointKey=_,t.getSessionEndpointKey=y,t.getSessionEndpoint=g,t.getDestroyAccountUrl=b,t.getSignOutUrl=S,t.getEmailSignInUrl=m,t.getEmailSignUpUrl=O,t.getPasswordResetRequestUrl=P,t.getPasswordUpdateUrl=v,t.getTokenValidationPath=R,t.getOAuthUrl=w,t.getConfirmationSuccessUrl=T,t.getPasswordResetRedirectUrl=I,t.getApiUrl=M,t.getTokenFormat=A,t.persistData=C,t.retrieveData=D;var U=r(137),j=o(U),N=r(20),L=n(N),k=Function("return this")()||(42,eval)("this");k.authState={currentSettings:{},currentEndpoint:{},defaultEndpointKey:null}},,function(e,t,r){"use strict";function n(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t["default"]=e,t}function o(e){return e&&e.__esModule?e:{"default":e}}function i(e){if(h(e)){var t=(0,f.retrieveData)(c.SAVED_CREDS_KEY)||{},r={};r["If-Modified-Since"]="Mon, 26 Jul 1997 05:00:00 GMT";for(var n in(0,f.getTokenFormat)())r[n]=t[n];return r}return{}}function u(e){if(h(e.url)){var t={},r=!0;for(var n in(0,f.getTokenFormat)())t[n]=e.headers.get(n),t[n]&&(r=!1);r||(0,f.persistData)(c.SAVED_CREDS_KEY,t)}return e}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=function(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];return t.headers||(t.headers={}),(0,d["default"])(t.headers,i(e)),(0,s["default"])(e,t).then(function(e){return u(e)})};var a=r(136),s=o(a),l=r(20),c=n(l),p=r(19),d=o(p),f=r(11),h=function(e){return e.match((0,f.getApiUrl)((0,f.getSessionEndpointKey)()))}},,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 i(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)}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},s=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}}();Object.defineProperty(t,"__esModule",{value:!0});var l=r(1),c=n(l),p=r(24),d=n(p),f=r(19),h=n(f),E=function(e){function t(){return o(this,t),i(this,Object.getPrototypeOf(t).apply(this,arguments))}return u(t,e),s(t,[{key:"getColor",value:function(){return this.props.disabled?this.props.spinColorDisabled:this.props.primary||this.props.secondary?this.props.spinColorLight:this.props.spinColorDark}},{key:"handleClick",value:function(e){e.preventDefault(),this.props.onClick()}},{key:"renderIcon",value:function(){var e=void 0,t=this.getColor();return e=this.props.loading?c["default"].createElement(d["default"],a({ref:"spinner"},this.props.spinConfig,{color:t,loaded:!1})):c["default"].createElement("div",{color:t,style:{width:10,height:10}},this.props.icon),c["default"].createElement("span",{style:{width:15,height:15,position:"absolute",left:0,top:2}},e)}},{key:"render",value:function(){var e=this.getColor(),t=(0,h["default"])({color:e,paddingLeft:15,position:"relative"},this.props.style);return c["default"].createElement("button",a({disabled:this.props.disabled||this.props.loading},this.props,{style:t,onClick:this.handleClick.bind(this)}),this.renderIcon()," ",this.props.children)}}]),t}(c["default"].Component);E.propTypes={icon:l.PropTypes.string,loading:l.PropTypes.bool,spinConfig:l.PropTypes.object,spinColorDark:l.PropTypes.string,spinColorLight:l.PropTypes.string,spinColorDisabled:l.PropTypes.string,children:l.PropTypes.node,onClick:l.PropTypes.func.isRequired,style:l.PropTypes.object},E.defaultProps={icon:"▸",loading:!1,spinConfig:{lines:10,length:4,width:2,radius:3},spinColorDark:"#444",spinColorLight:"#444",spinColorDisabled:"#999",children:c["default"].createElement("span",null,"Submit"),style:{}},t["default"]=E},,function(e,t){"use strict";function r(e){var t=e.json();return e.status>=200&&e.status<300?t:t.then(function(e){return Promise.reject(e)})}Object.defineProperty(t,"__esModule",{value:!0}),t.parseResponse=r},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 i(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)}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}}();Object.defineProperty(t,"__esModule",{value:!0});var s=r(1),l=n(s),c=r(3),p=function(e){function t(){return o(this,t),i(this,Object.getPrototypeOf(t).apply(this,arguments))}return u(t,e),a(t,[{key:"render",value:function(){return l["default"].createElement("script",{id:"token-bridge",type:"application/json",dangerouslySetInnerHTML:{__html:this.props.initialCredentials}})}}]),t}(l["default"].Component);t["default"]=(0,c.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})}})(p)},function(e,t){e.exports=require("extend")},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.INITIAL_CONFIG_KEY="default",t.DEFAULT_CONFIG_KEY="defaultConfigKey",t.SAVED_CONFIG_KEY="currentConfigName",t.SAVED_CREDS_KEY="authHeaders"},,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 i(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)}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},s=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}}();Object.defineProperty(t,"__esModule",{value:!0});var l=r(1),c=n(l),p=r(4),d=n(p),f=function(e){function t(){return o(this,t),i(this,Object.getPrototypeOf(t).apply(this,arguments))}return u(t,e),s(t,[{key:"handleInput",value:function(e){this.props.onChange(e.target.value)}},{key:"renderErrorList",value:function(){var e=this;return this.props.errors.size?c["default"].createElement("div",{className:"auth-error-message"},this.props.errors.map(function(t,r){return c["default"].createElement("p",{className:"inline-error-item",style:{paddingLeft:"20px",position:"relative",marginBottom:"28px"},key:r},c["default"].createElement("i",{style:{position:"absolute",left:0,top:0}},"✗"),e.props.label," ",t)})):null}},{key:"render",value:function(){return c["default"].createElement("div",null,c["default"].createElement("label",null,this.props.label),c["default"].createElement("input",a({placeholder:this.props.label},this.props,{onChange:this.handleInput.bind(this)})),this.renderErrorList())}}]),t}(c["default"].Component);f.propTypes={label:l.PropTypes.string,value:l.PropTypes.string,errors:l.PropTypes.object},f.defaultProps={label:"",value:null,errors:d["default"].fromJS([])},t["default"]=f},,function(e,t){e.exports=require("react-loader")},function(e,t){"use strict";function r(){return{type:i}}function n(e){return{type:u,user:e}}function o(e){return{type:a,errors:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.authenticateStart=r,t.authenticateComplete=n,t.authenticateError=o;var i=t.AUTHENTICATE_START="AUTHENTICATE_START",u=t.AUTHENTICATE_COMPLETE="AUTHENTICATE_COMPLETE",a=t.AUTHENTICATE_ERROR="AUTHENTICATE_ERROR"},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function o(e){return{type:f,endpoint:e}}function i(e,t){return{type:h,endpoint:t,message:e}}function u(e,t){return{type:E,endpoint:t,errors:e}}function a(e){return function(t){return t(o(e)),(0,d["default"])((0,s.getDestroyAccountUrl)(e),{method:"delete"}).then(l.parseResponse).then(function(r){var n=r.message;t(i(n,e));var o=(0,s.getDefaultEndpointKey)();t((0,c.storeCurrentEndpointKey)(o)),(0,s.setCurrentEndpointKey)(o)})["catch"](function(r){var n=r.errors;return t(u(n,e))})}}Object.defineProperty(t,"__esModule",{value:!0}),t.DESTROY_ACCOUNT_ERROR=t.DESTROY_ACCOUNT_COMPLETE=t.DESTROY_ACCOUNT_START=void 0,t.destroyAccountStart=o,t.destroyAccountComplete=i,t.destroyAccountError=u,t.destroyAccount=a;var s=r(11),l=r(17),c=r(5),p=r(13),d=n(p),f=t.DESTROY_ACCOUNT_START="DESTROY_ACCOUNT_START",h=t.DESTROY_ACCOUNT_COMPLETE="DESTROY_ACCOUNT_COMPLETE",E=t.DESTROY_ACCOUNT_ERROR="DESTROY_ACCOUNT_ERROR"},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,r){return{type:y,endpoint:e,key:t,value:r}}function i(e){return{type:h,endpoint:e}}function u(e,t){return{type:E,user:t,endpoint:e}}function a(e,t){return{type:_,errors:t,endpoint:e}}function s(e,t){return function(r){var n=(0,l.getCurrentEndpointKey)();(0,l.setCurrentEndpointKey)(t);var o=(0,l.getCurrentEndpointKey)();return r((0,c.storeCurrentEndpointKey)(o)),r(i(o)),(0,f["default"])((0,l.getEmailSignInUrl)(o),{headers:{Accept:"application/json","Content-Type":"application/json"},method:"post",body:JSON.stringify(e)}).then(p.parseResponse).then(function(e){return r(u(o,e))})["catch"](function(e){return(0,l.setCurrentEndpointKey)(n),r((0,c.storeCurrentEndpointKey)(n)),r(a(o,e))})}}Object.defineProperty(t,"__esModule",{value:!0}),t.EMAIL_SIGN_IN_FORM_UPDATE=t.EMAIL_SIGN_IN_ERROR=t.EMAIL_SIGN_IN_COMPLETE=t.EMAIL_SIGN_IN_START=void 0,t.emailSignInFormUpdate=o,t.emailSignInStart=i,t.emailSignInComplete=u,t.emailSignInError=a,t.emailSignIn=s;var l=r(11),c=r(5),p=r(17),d=r(13),f=n(d),h=t.EMAIL_SIGN_IN_START="EMAIL_SIGN_IN_START",E=t.EMAIL_SIGN_IN_COMPLETE="EMAIL_SIGN_IN_COMPLETE",_=t.EMAIL_SIGN_IN_ERROR="EMAIL_SIGN_IN_ERROR",y=t.EMAIL_SIGN_IN_FORM_UPDATE="EMAIL_SIGN_IN_FORM_UPDATE"},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function o(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t["default"]=e,t}function i(e,t,r,n,o){if(!n)return new Promise(function(n,o){i(e,t,r,n,o)});var u=void 0;try{u=(0,f.getAllParams)(t.location)}catch(a){}u&&u.uid?(t.close(),(0,h.persistData)(d.SAVED_CREDS_KEY,(0,f.normalizeTokenKeys)(u)),(0,g["default"])((0,h.getTokenValidationPath)(e)).then(_.parseResponse).then(function(e){var t=e.data;return n(t)})["catch"](function(e){var t=e.errors;return o({errors:t})})):t.closed?o({errors:"Authentication was cancelled."}):setTimeout(function(){i(e,t,r,n,o)},0)}function u(e){var t=e.endpointKey,r=e.provider,n=e.url,o=e.tab,u=void 0===o?!1:o,a=u?"_blank":r,s=v(r,n,a);return i(t,s,r)}function a(e,t){return{type:m,provider:e,endpoint:t}}function s(e,t){return{type:O,user:e,endpoint:t}}function l(e,t){return{type:P,errors:e,endpoint:t}}function c(e){var t=e.provider,r=e.params,n=e.endpointKey;return function(e){var o=(0,h.getCurrentEndpointKey)();(0,h.setCurrentEndpointKey)(n),e((0,E.storeCurrentEndpointKey)(n));var i=(0,h.getCurrentEndpointKey)();e(a(t,i));var c=(0,h.getOAuthUrl)({provider:t,params:r,currentEndpointKey:i});u({endpointKey:n,provider:t,url:c}).then(function(t){return e(s(t,i))})["catch"](function(t){var r=t.errors;(0,h.setCurrentEndpointKey)(o),e((0,E.storeCurrentEndpointKey)(o)),e(l(r,i))})}}Object.defineProperty(t,"__esModule",{value:!0}),t.OAUTH_SIGN_IN_ERROR=t.OAUTH_SIGN_IN_COMPLETE=t.OAUTH_SIGN_IN_START=void 0,t.oAuthSignInStart=a,t.oAuthSignInComplete=s,t.oAuthSignInError=l,t.oAuthSignIn=c;var p=r(20),d=o(p),f=r(38),h=r(11),E=r(5),_=r(17),y=r(13),g=n(y),b=r(55),S=n(b),m=t.OAUTH_SIGN_IN_START="OAUTH_SIGN_IN_START",O=t.OAUTH_SIGN_IN_COMPLETE="OAUTH_SIGN_IN_COMPLETE",P=t.OAUTH_SIGN_IN_ERROR="OAUTH_SIGN_IN_ERROR",v=S["default"]},function(e,t){"use strict";function r(e){var t=e.user,r=e.headers,o=e.mustResetPassword,i=e.firstTimeLogin,u=e.endpointKey;return{type:n,user:t,headers:r,mustResetPassword:o,firstTimeLogin:i,endpointKey:u}}Object.defineProperty(t,"__esModule",{value:!0}),t.ssAuthTokenUpdate=r;var n=t.SS_AUTH_TOKEN_UPDATE="SS_AUTH_TOKEN_UPDATE"},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function o(e){return{type:f,endpoint:e}}function i(e,t){return{type:h,user:t,endpoint:e}}function u(e,t){return{type:E,endpoint:e,errors:t}}function a(e){return function(t){return t(o(e)),(0,d["default"])((0,s.getSignOutUrl)(e),{method:"delete"}).then(l.parseResponse).then(function(r){t(i(e,r)),t((0,c.storeCurrentEndpointKey)(null)),(0,s.destroySession)()})["catch"](function(r){var n=r.errors;t(u(e,n)),t((0,c.storeCurrentEndpointKey)(null)),(0,s.destroySession)()})}}Object.defineProperty(t,"__esModule",{value:!0}),t.SIGN_OUT_ERROR=t.SIGN_OUT_COMPLETE=t.SIGN_OUT_START=void 0,t.signOutStart=o,t.signOutComplete=i,t.signOutError=u,t.signOut=a;var s=r(11),l=r(17),c=r(5),p=r(13),d=n(p),f=t.SIGN_OUT_START="SIGN_OUT_START",h=t.SIGN_OUT_COMPLETE="SIGN_OUT_COMPLETE",E=t.SIGN_OUT_ERROR="SIGN_OUT_ERROR"},,,function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,r){return{type:g,endpoint:e,key:t,value:r}}function i(e){return{type:E,endpoint:e}}function u(e,t){return{type:_,user:e,endpoint:t}}function a(e,t){return{type:y,errors:e,endpoint:t}}function s(e,t){return function(r){return r(i(t)),(0,h["default"])((0,l.getEmailSignUpUrl)(t),{headers:{Accept:"application/json","Content-Type":"application/json"},method:"post",body:JSON.stringify((0,d["default"])(e,{confirm_success_url:(0,l.getConfirmationSuccessUrl)()}))}).then(c.parseResponse).then(function(e){var n=e.data;return r(u(n,t))})["catch"](function(e){var n=e.errors;return r(a(n,t))})}}Object.defineProperty(t,"__esModule",{value:!0}),t.EMAIL_SIGN_UP_FORM_UPDATE=t.EMAIL_SIGN_UP_ERROR=t.EMAIL_SIGN_UP_COMPLETE=t.EMAIL_SIGN_UP_START=void 0,t.emailSignUpFormUpdate=o,t.emailSignUpStart=i,t.emailSignUpComplete=u,t.emailSignUpError=a,t.emailSignUp=s;var l=r(11),c=r(17),p=r(19),d=n(p),f=r(13),h=n(f),E=t.EMAIL_SIGN_UP_START="EMAIL_SIGN_UP_START",_=t.EMAIL_SIGN_UP_COMPLETE="EMAIL_SIGN_UP_COMPLETE",y=t.EMAIL_SIGN_UP_ERROR="EMAIL_SIGN_UP_ERROR",g=t.EMAIL_SIGN_UP_FORM_UPDATE="EMAIL_SIGN_UP_FORM_UPDATE";
2},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,r){return{type:g,endpoint:e,key:t,value:r}}function i(e){return{type:E,endpoint:e}}function u(e,t){return{type:_,endpoint:e,message:t}}function a(e,t){return{type:y,endpoint:e,errors:t}}function s(e,t){return function(r){return r(i(t)),(0,h["default"])((0,l.getPasswordResetRequestUrl)(t),{headers:{Accept:"application/json","Content-Type":"application/json"},method:"post",body:JSON.stringify((0,d["default"])(e,{redirect_url:(0,l.getPasswordResetRedirectUrl)(t)}))}).then(c.parseResponse).then(function(e){var n=e.message;return r(u(t,n))})["catch"](function(e){var n=e.errors;return r(a(t,n))})}}Object.defineProperty(t,"__esModule",{value:!0}),t.REQUEST_PASSWORD_RESET_FORM_UPDATE=t.REQUEST_PASSWORD_RESET_ERROR=t.REQUEST_PASSWORD_RESET_COMPLETE=t.REQUEST_PASSWORD_RESET_START=void 0,t.requestPasswordResetFormUpdate=o,t.requestPasswordResetStart=i,t.requestPasswordResetComplete=u,t.requestPasswordResetError=a,t.requestPasswordReset=s;var l=r(11),c=r(17),p=r(19),d=n(p),f=r(13),h=n(f),E=t.REQUEST_PASSWORD_RESET_START="REQUEST_PASSWORD_RESET_START",_=t.REQUEST_PASSWORD_RESET_COMPLETE="REQUEST_PASSWORD_RESET_COMPLETE",y=t.REQUEST_PASSWORD_RESET_ERROR="REQUEST_PASSWORD_RESET_ERROR",g=t.REQUEST_PASSWORD_RESET_FORM_UPDATE="REQUEST_PASSWORD_RESET_FORM_UPDATE"},function(e,t){"use strict";function r(){return{type:v}}function n(){return{type:R}}function o(){return{type:w}}function i(){return{type:T}}function u(){return{type:M}}function a(){return{type:I}}function s(){return{type:A}}function l(){return{type:C}}function c(){return{type:D}}function p(){return{type:N}}function d(){return{type:U}}function f(){return{type:j}}function h(){return{type:L}}function E(){return{type:G}}function _(){return{type:k}}function y(){return{type:K}}function g(){return{type:F}}function b(){return{type:H}}function S(){return{type:V}}function m(){return{type:W}}function O(){return{type:x}}function P(){return{type:q}}Object.defineProperty(t,"__esModule",{value:!0}),t.hideEmailSignInSuccessModal=r,t.hideEmailSignInErrorModal=n,t.hideOAuthSignInSuccessModal=o,t.hideOAuthSignInErrorModal=i,t.hideSignOutSuccessModal=u,t.hideSignOutErrorModal=a,t.hideEmailSignUpSuccessModal=s,t.hideEmailSignUpErrorModal=l,t.showFirstTimeLoginSuccessModal=c,t.showPasswordResetSuccessModal=p,t.hideFirstTimeLoginSuccessModal=d,t.hidePasswordResetSuccessModal=f,t.showFirstTimeLoginErrorModal=h,t.showPasswordResetErrorModal=E,t.hideFirstTimeLoginErrorModal=_,t.hidePasswordResetErrorModal=y,t.hidePasswordResetRequestSuccessModal=g,t.hidePasswordResetRequestErrorModal=b,t.hideUpdatePasswordSuccessModal=S,t.hideUpdatePasswordErrorModal=m,t.hideDestroyAccountSuccessModal=O,t.hideDestroyAccountErrorModal=P;var v=t.HIDE_EMAIL_SIGN_IN_SUCCESS_MODAL="HIDE_EMAIL_SIGN_IN_SUCCESS_MODAL",R=t.HIDE_EMAIL_SIGN_IN_ERROR_MODAL="HIDE_EMAIL_SIGN_IN_ERROR_MODAL",w=t.HIDE_OAUTH_SIGN_IN_SUCCESS_MODAL="HIDE_OAUTH_SIGN_IN_SUCCESS_MODAL",T=t.HIDE_OAUTH_SIGN_IN_ERROR_MODAL="HIDE_OAUTH_SIGN_IN_ERROR_MODAL",I=t.HIDE_SIGN_OUT_ERROR_MODAL="HIDE_SIGN_OUT_ERROR_MODAL",M=t.HIDE_SIGN_OUT_SUCCESS_MODAL="HIDE_SIGN_OUT_SUCCESS_MODAL",A=t.HIDE_EMAIL_SIGN_UP_SUCCESS_MODAL="HIDE_EMAIL_SIGN_UP_SUCCESS_MODAL",C=t.HIDE_EMAIL_SIGN_UP_ERROR_MODAL="HIDE_EMAIL_SIGN_UP_ERROR_MODAL",D=t.SHOW_FIRST_TIME_LOGIN_SUCCESS_MODAL="SHOW_FIRST_TIME_LOGIN_SUCCESS_MODAL",U=t.HIDE_FIRST_TIME_LOGIN_SUCCESS_MODAL="HIDE_FIRST_TIME_LOGIN_SUCCESS_MODAL",j=t.HIDE_PASSWORD_RESET_SUCCESS_MODAL="HIDE_PASSWORD_RESET_SUCCESS_MODAL",N=t.SHOW_PASSWORD_RESET_SUCCESS_MODAL="SHOW_PASSWORD_RESET_SUCCESS_MODAL",L=t.SHOW_FIRST_TIME_LOGIN_ERROR_MODAL="SHOW_FIRST_TIME_LOGIN_ERROR_MODAL",k=t.HIDE_FIRST_TIME_LOGIN_ERROR_MODAL="HIDE_FIRST_TIME_LOGIN_ERROR_MODAL",K=t.HIDE_PASSWORD_RESET_ERROR_MODAL="HIDE_PASSWORD_RESET_ERROR_MODAL",G=t.SHOW_PASSWORD_RESET_ERROR_MODAL="SHOW_PASSWORD_RESET_ERROR_MODAL",F=t.HIDE_REQUEST_PASSWORD_RESET_SUCCESS_MODAL="HIDE_REQUEST_PASSWORD_RESET_SUCCESS_MODAL",H=t.HIDE_REQUEST_PASSWORD_RESET_ERROR_MODAL="HIDE_REQUEST_PASSWORD_RESET_ERROR_MODAL",V=t.HIDE_UPDATE_PASSWORD_SUCCESS_MODAL="HIDE_UPDATE_PASSWORD_SUCCESS_MODAL",W=t.HIDE_UPDATE_PASSWORD_ERROR_MODAL="HIDE_UPDATE_PASSWORD_ERROR_MODAL",x=t.HIDE_DESTROY_ACCOUNT_SUCCESS_MODAL="HIDE_DESTROY_ACCOUNT_SUCCESS_MODAL",q=t.HIDE_DESTROY_ACCOUNT_ERROR_MODAL="HIDE_DESTROY_ACCOUNT_ERROR_MODAL"},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,r){return{type:_,endpoint:e,key:t,value:r}}function i(e){return{type:f}}function u(e,t){return{type:h,endpoint:e,user:t}}function a(e,t){return{type:E,endpoint:e,errors:t}}function s(e,t){return function(r){return r(i(t)),(0,d["default"])((0,l.getPasswordUpdateUrl)(t),{headers:{Accept:"application/json","Content-Type":"application/json"},method:"put",body:JSON.stringify(e)}).then(c.parseResponse).then(function(e){var n=e.user;return r(u(t,n))})["catch"](function(e){var n=e.errors;return r(a(t,n))})}}Object.defineProperty(t,"__esModule",{value:!0}),t.UPDATE_PASSWORD_MODAL_FORM_UPDATE=t.UPDATE_PASSWORD_MODAL_ERROR=t.UPDATE_PASSWORD_MODAL_COMPLETE=t.UPDATE_PASSWORD_MODAL_START=void 0,t.updatePasswordModalFormUpdate=o,t.updatePasswordModalStart=i,t.updatePasswordModalComplete=u,t.updatePasswordModalError=a,t.updatePasswordModal=s;var l=r(11),c=r(17),p=r(13),d=n(p),f=t.UPDATE_PASSWORD_MODAL_START="UPDATE_PASSWORD_MODAL_START",h=t.UPDATE_PASSWORD_MODAL_COMPLETE="UPDATE_PASSWORD_MODAL_COMPLETE",E=t.UPDATE_PASSWORD_MODAL_ERROR="UPDATE_PASSWORD_MODAL_ERROR",_=t.UPDATE_PASSWORD_MODAL_FORM_UPDATE="UPDATE_PASSWORD_MODAL_FORM_UPDATE"},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,r){return{type:_,endpoint:e,key:t,value:r}}function i(e){return{type:f,endpoint:e}}function u(e,t){return{type:h,endpoint:e,user:t}}function a(e,t){return{type:E,endpoint:e,errors:t}}function s(e,t){return function(r){return r(i(t)),(0,d["default"])((0,l.getPasswordUpdateUrl)(t),{headers:{Accept:"application/json","Content-Type":"application/json"},method:"put",body:JSON.stringify(e)}).then(c.parseResponse).then(function(e){var n=e.user;return r(u(t,n))})["catch"](function(e){var n=e.errors;return r(a(t,n))})}}Object.defineProperty(t,"__esModule",{value:!0}),t.UPDATE_PASSWORD_FORM_UPDATE=t.UPDATE_PASSWORD_ERROR=t.UPDATE_PASSWORD_COMPLETE=t.UPDATE_PASSWORD_START=void 0,t.updatePasswordFormUpdate=o,t.updatePasswordStart=i,t.updatePasswordComplete=u,t.updatePasswordError=a,t.updatePassword=s;var l=r(11),c=r(17),p=r(13),d=n(p),f=t.UPDATE_PASSWORD_START="UPDATE_PASSWORD_START",h=t.UPDATE_PASSWORD_COMPLETE="UPDATE_PASSWORD_COMPLETE",E=t.UPDATE_PASSWORD_ERROR="UPDATE_PASSWORD_ERROR",_=t.UPDATE_PASSWORD_FORM_UPDATE="UPDATE_PASSWORD_FORM_UPDATE"},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function o(e){return e.token&&(e["access-token"]=e.token,delete e.token),e.auth_token&&(e["access-token"]=e.auth_token,delete e.auth_token),e.client_id&&(e.client=e.client_id,delete e.client_id),e.config&&(e.endpointKey=e.config,delete e.config),e}function i(e){return(0,c["default"])({},f(e),d(e))}function u(e){if(e){var t=["access-token","token","auth_token","config","client","client_id","expiry","uid","reset_password","account_confirmation_success"],r=E(e,t),n=_(e,t);return n!==e?{authRedirectHeaders:r,authRedirectPath:n}:{}}return{}}Object.defineProperty(t,"__esModule",{value:!0}),t.normalizeTokenKeys=o,t.getAllParams=i,t["default"]=u;var a=r(139),s=n(a),l=r(19),c=n(l),p=function(e){var t=e.anchor||"",r=t.split("?");return r.length>1?r[1]:null},d=function(e){var t=e.search||"",r=t.replace("?",""),n=r?s["default"].parse(r):{};return n},f=function(e){var t=p(e),r=t?s["default"].parse(t):{};return r},h=function(e,t){for(var r in t)delete e[t[r]];return e},E=function(e,t){var r=i(e),n={},u=!0,a=!1,s=void 0;try{for(var l,c=t[Symbol.iterator]();!(u=(l=c.next()).done);u=!0){var p=l.value;n[p]=r[p]}}catch(d){a=!0,s=d}finally{try{!u&&c["return"]&&c["return"]()}finally{if(a)throw s}}return o(n)},_=function(e,t){var r=s["default"].stringify(h(d(e),t)),n=s["default"].stringify(h(f(e),t)),o=(e.hash||"").split("?")[0];r&&(r="?"+r),n&&(o+="?"+n),o&&!o.match(/^#/)&&(o="#/"+o);var i=e.pathname+r+o;return i}},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function o(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t["default"]=e,t}function i(e){for(var t in e)return t}function u(e){var t=arguments.length<=1||void 0===arguments[1]?null:arguments[1];if(e.constructor!==Array){t=s.INITIAL_CONFIG_KEY;var r={};r[t]=e,e=[r]}for(var n={},o=0;o<e.length;o++){var u=i(e[o]);t||(t=u),n[u]=(0,c["default"])({},p,e[o][u])}return{defaultEndpointKey:t,currentEndpoint:n}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=u;var a=r(20),s=o(a),l=r(19),c=n(l),p={apiUrl:"/api",signOutPath:"/auth/sign_out",emailSignInPath:"/auth/sign_in",emailRegistrationPath:"/auth",accountUpdatePath:"/auth",accountDeletePath:"/auth",passwordResetPath:"/auth/password",passwordUpdatePath:"/auth/password",tokenValidationPath:"/auth/validate_token",authProviderPaths:{github:"/auth/github",facebook:"/auth/facebook",google:"/auth/google_oauth2"}}},function(e,t,r){"use strict";function n(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t["default"]=e,t}function o(e){return e&&e.__esModule?e:{"default":e}}function i(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function u(e){for(var t={},r=!0,n=["access-token","token-type","client","expiry","uid","config","endpointKey"],o=0;o<n.length;o++){var u=n[o];t[u]=e[u],t[u]&&("object"===i(t[u])&&(t[u]=t[u][0]),r=!1)}return r?void 0:t}function a(e){var t=e.rawEndpoints,r=e.cookies,n=e.currentLocation,o=(0,h["default"])(S["default"].parse(n)),a=o.authRedirectHeaders;return new Promise(function(e,n){if(r||a){var o,s,l,p,f,h,E=function(){var i=d["default"].parse(r||"{}"),E=JSON.parse(i.authHeaders||"false"),y=void 0,b=void 0,S=void 0,m=void 0;if(a&&a.uid&&a["access-token"]?(m=u(a),S=a.endpointKey||null,b=JSON.parse(a.reset_password||"false"),y=JSON.parse(a.account_confirmation_success||"false")):i&&E&&(m=E,S=JSON.parse(i[_.SAVED_CONFIG_KEY]||"null"),b=JSON.parse(E.mustResetPassword||"false"),y=JSON.parse(E.firstTimeLogin||"false")),!m)return{v:n({reason:"No creds",currentEndpoint:l,defaultEndpointKey:p})};var O=(0,g["default"])(t);l=O.currentEndpoint,p=O.defaultEndpointKey;var P=l[S||p];return f=P.apiUrl,h=P.tokenValidationPath,s=""+f+h+"?unbatch=true",{v:(0,c["default"])(s,{headers:m}).then(function(e){return o=u(e.headers.raw()),e.json()}).then(function(t){return t.success?e({headers:o,user:t.data,mustResetPassword:b,firstTimeLogin:y,currentEndpoint:l,currentEndpointKey:S,defaultEndpointKey:p}):n({reason:t.errors,mustResetPassword:b,firstTimeLogin:y,currentEndpoint:l,defaultEndpointKey:p})})["catch"](function(e){return n({reason:e,firstTimeLogin:y,mustResetPassword:b,currentEndpoint:l,defaultEndpointKey:p})})}}();if("object"===("undefined"==typeof E?"undefined":i(E)))return E.v}else{var y=(0,g["default"])(t),b=y.currentEndpoint,S=y.defaultEndpointKey;n({reason:"No creds",currentEndpoint:b,defaultEndpointKey:S})}})}function s(e,t){var r=t.isServer,n=t.cookies,o=t.currentLocation;return new Promise(function(t,i){return r?a({rawEndpoints:e,cookies:n,currentLocation:o}).then(function(e){return t(e)})["catch"](function(e){return i(e)}):void 0})}Object.defineProperty(t,"__esModule",{value:!0}),t.fetchToken=a;var l=r(138),c=o(l),p=r(135),d=o(p),f=r(38),h=o(f),E=r(20),_=n(E),y=r(39),g=o(y),b=r(142),S=o(b);t["default"]=s},function(e,t,r){"use strict";function n(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t["default"]=e,t}function o(e){return e&&e.__esModule?e:{"default":e}}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var u;Object.defineProperty(t,"__esModule",{value:!0});var a=r(4),s=o(a),l=r(10),c=r(25),p=n(c),d=s["default"].fromJS({loading:!1,valid:!1,errors:null});t["default"]=(0,l.createReducer)(d,(u={},i(u,p.AUTHENTICATE_START,function(e){return e.set("loading",!0)}),i(u,p.AUTHENTICATE_COMPLETE,function(e){return e.merge({loading:!1,errors:null,valid:!0})}),i(u,p.AUTHENTICATE_ERROR,function(e){return e.merge({loading:!1,errors:"Invalid token",valid:!1})}),u))},function(e,t,r){"use strict";function n(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t["default"]=e,t}function o(e){return e&&e.__esModule?e:{"default":e}}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var u;Object.defineProperty(t,"__esModule",{value:!0});var a=r(4),s=o(a),l=r(10),c=r(5),p=n(c),d=s["default"].fromJS({loading:!0,errors:null,config:null,endpointKeys:null,defaultEndpointKey:null,currentEndpointKey:null});t["default"]=(0,l.createReducer)(d,(u={},i(u,p.CONFIGURE_START,function(e){return e.set("loading",!0)}),i(u,p.STORE_CURRENT_ENDPOINT_KEY,function(e,t){var r=t.currentEndpointKey;return e.merge({currentEndpointKey:r})}),i(u,p.SET_ENDPOINT_KEYS,function(e,t){var r=t.endpointKeys,n=t.defaultEndpointKey,o=t.currentEndpointKey;return e.merge({endpointKeys:r,defaultEndpointKey:n,currentEndpointKey:o})}),i(u,p.CONFIGURE_COMPLETE,function(e,t){var r=t.config;return e.merge({loading:!1,errors:null,config:r})}),i(u,p.CONFIGURE_ERROR,function(e,t){var r=t.errors;return e.merge({loading:!1,errors:r})}),u))},function(e,t,r){"use strict";function n(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t["default"]=e,t}function o(e){return e&&e.__esModule?e:{"default":e}}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var u;Object.defineProperty(t,"__esModule",{value:!0});var a=r(4),s=o(a),l=r(10),c=r(26),p=n(c),d=r(5),f={loading:!1,errors:null};t["default"]=(0,l.createReducer)(s["default"].fromJS({}),(u={},i(u,d.SET_ENDPOINT_KEYS,function(e,t){var r=t.endpoints;return e.merge(r.reduce(function(e,t){return e[t]=s["default"].fromJS(f),e},{}))}),i(u,p.DESTROY_ACCOUNT_START,function(e,t){var r=t.endpoint;return e.setIn([r,"loading"],!0)}),i(u,p.DESTROY_ACCOUNT_COMPLETE,function(e,t){var r=t.endpoint;return e.merge(i({},r,f))}),i(u,p.DESTROY_ACCOUNT_ERROR,function(e,t){var r=t.endpoint,n=t.errors;return e.merge(i({},r,{loading:!1,errors:n}))}),u))},function(e,t,r){"use strict";function n(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t["default"]=e,t}function o(e){return e&&e.__esModule?e:{"default":e}}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var u;Object.defineProperty(t,"__esModule",{value:!0});var a=r(4),s=o(a),l=r(10),c=r(27),p=n(c),d=r(5),f={loading:!1,errors:null,form:{}};t["default"]=(0,l.createReducer)(s["default"].fromJS({}),(u={},i(u,d.SET_ENDPOINT_KEYS,function(e,t){var r=t.endpoints;return e.merge(r.reduce(function(e,t){return e[t]=s["default"].fromJS(f),e},{}))}),i(u,p.EMAIL_SIGN_IN_START,function(e,t){var r=t.endpoint;return e.setIn([r,"loading"],!0)}),i(u,p.EMAIL_SIGN_IN_COMPLETE,function(e,t){var r=t.endpoint;return e.merge(i({},r,f))}),i(u,p.EMAIL_SIGN_IN_ERROR,function(e,t){var r=t.endpoint,n=t.errors;return e.mergeDeep(i({},r,{loading:!1,errors:n}))}),i(u,p.EMAIL_SIGN_IN_FORM_UPDATE,function(e,t){var r=t.endpoint,n=t.key,o=t.value;return e.mergeDeep(i({},r,{form:i({},n,o)}))}),u))},function(e,t,r){"use strict";function n(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t["default"]=e,t}function o(e){return e&&e.__esModule?e:{"default":e}}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var u;Object.defineProperty(t,"__esModule",{value:!0});var a=r(4),s=o(a),l=r(10),c=r(33),p=n(c),d=r(5),f={loading:!1,errors:null,form:{}};t["default"]=(0,l.createReducer)(s["default"].fromJS({}),(u={},i(u,d.SET_ENDPOINT_KEYS,function(e,t){var r=t.endpoints;return e.merge(r.reduce(function(e,t){return e[t]=s["default"].fromJS(f),e},{}))}),i(u,p.EMAIL_SIGN_UP_START,function(e,t){var r=t.endpoint;return e.setIn([r,"loading"],!0)}),i(u,p.EMAIL_SIGN_UP_COMPLETE,function(e,t){var r=t.endpoint;return e.merge(i({},r,f))}),i(u,p.EMAIL_SIGN_UP_ERROR,function(e,t){var r=t.endpoint,n=t.errors;return e.mergeDeep(i({},r,{loading:!1,errors:n}))}),i(u,p.EMAIL_SIGN_UP_FORM_UPDATE,function(e,t){var r=t.endpoint,n=t.key,o=t.value;return e.mergeDeep(i({},r,{form:i({},n,o)}))}),u))},function(e,t,r){"use strict";function n(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t["default"]=e,t}function o(e){return e&&e.__esModule?e:{"default":e}}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var u;Object.defineProperty(t,"__esModule",{value:!0});var a=r(4),s=o(a),l=r(10),c=r(28),p=n(c),d=r(5),f={loading:!1,errors:null};t["default"]=(0,l.createReducer)(s["default"].fromJS({}),(u={},i(u,d.SET_ENDPOINT_KEYS,function(e,t){var r=t.endpoints;return e.merge(r.reduce(function(e,t){return e[t]=s["default"].fromJS(f),e},{}))}),i(u,p.OAUTH_SIGN_IN_START,function(e,t){var r=t.endpoint;return e.setIn([r,"loading"],!0)}),i(u,p.OAUTH_SIGN_IN_COMPLETE,function(e,t){var r=t.endpoint;return e.mergeDeep(i({},r,{loading:!1,errors:null}))}),i(u,p.OAUTH_SIGN_IN_ERROR,function(e,t){var r=t.endpoint,n=t.errors;return e.mergeDeep(i({},r,{loading:!1,errors:n}))}),u))},function(e,t,r){"use strict";function n(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t["default"]=e,t}function o(e){return e&&e.__esModule?e:{"default":e}}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var u;Object.defineProperty(t,"__esModule",{value:!0});var a=r(4),s=o(a),l=r(10),c=r(34),p=n(c),d=r(5),f={loading:!1,errors:null,form:{}};t["default"]=(0,l.createReducer)(s["default"].fromJS({}),(u={},i(u,d.SET_ENDPOINT_KEYS,function(e,t){var r=t.endpoints;return e.merge(r.reduce(function(e,t){return e[t]=s["default"].fromJS(f),e},{}))}),i(u,p.REQUEST_PASSWORD_RESET_START,function(e,t){var r=t.endpoint;return e.setIn([r,"loading"],!0)}),i(u,p.REQUEST_PASSWORD_RESET_COMPLETE,function(e,t){var r=t.endpoint;return e.merge(i({},r,f))}),i(u,p.REQUEST_PASSWORD_RESET_ERROR,function(e,t){var r=t.endpoint,n=t.errors;return e.mergeDeep(i({},r,{loading:!1,errors:n}))}),i(u,p.REQUEST_PASSWORD_RESET_FORM_UPDATE,function(e,t){var r=t.endpoint,n=t.key,o=t.value;return e.mergeDeep(i({},r,{form:i({},n,o)}))}),u))},function(e,t,r){"use strict";function n(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t["default"]=e,t}function o(e){return e&&e.__esModule?e:{"default":e}}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Object.defineProperty(t,"__esModule",{value:!0});var u=r(4),a=o(u),s=r(10),l=r(29),c=n(l),p=a["default"].fromJS({user:null,headers:null,firstTimeLogin:!1,mustResetPassword:!1});t["default"]=(0,s.createReducer)(p,i({},c.SS_AUTH_TOKEN_UPDATE,function(e,t){var r=t.user,n=void 0===r?null:r,o=t.headers,i=void 0===o?null:o,u=t.mustResetPassword,a=void 0===u?!1:u,s=t.firstTimeLogin,l=void 0===s?!1:s;return e.merge({user:n,headers:i,mustResetPassword:a,firstTimeLogin:l})}))},function(e,t,r){"use strict";function n(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t["default"]=e,t}function o(e){return e&&e.__esModule?e:{"default":e}}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var u;Object.defineProperty(t,"__esModule",{value:!0});var a=r(4),s=o(a),l=r(10),c=r(30),p=n(c),d=r(5),f={loading:!1,errors:null};t["default"]=(0,l.createReducer)(s["default"].fromJS({}),(u={},i(u,d.SET_ENDPOINT_KEYS,function(e,t){var r=t.endpoints;return e.merge(r.reduce(function(e,t){return e[t]=s["default"].fromJS(f),e},{}))}),i(u,p.SIGN_OUT_START,function(e,t){var r=t.endpoint;return e.setIn([r,"loading"],!0)}),i(u,p.SIGN_OUT_COMPLETE,function(e,t){var r=t.endpoint;return e.mergeDeep(i({},r,{loading:!1,errors:null}))}),i(u,p.SIGN_OUT_ERROR,function(e,t){var r=t.endpoint,n=t.errors;return e.mergeDeep(i({},r,{loading:!1,errors:n}))}),u))},function(e,t,r){"use strict";function n(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t["default"]=e,t}function o(e){return e&&e.__esModule?e:{"default":e}}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var u;Object.defineProperty(t,"__esModule",{value:!0});var a=r(4),s=o(a),l=r(10),c=r(35),p=n(c),d=r(27),f=n(d),h=r(33),E=n(h),_=r(30),y=n(_),g=r(34),b=n(g),S=r(28),m=n(S),O=r(37),P=n(O),v=r(26),R=n(v),w=r(36),T=n(w),I=r(29),M=n(I),A=s["default"].fromJS({emailSignInSuccessModalVisible:!1,emailSignInErrorModalVisible:!1,oAuthSignInSuccessModalVisible:!1,oAuthSignInErrorModalVisible:!1,oAuthSignInLoadingProvider:null,signOutSuccessModalVisible:!1,signOutErrorModalVisible:!1,emailSignUpSuccessModalVisible:!1,emailSignUpAddress:null,firstTimeLoginSuccessModalVisible:!1,firstTimeLoginErrorModalVisible:!1,requestPasswordResetSuccessModalVisible:!1,requestPasswordResetErrorModalVisible:!1,requestPasswordResetSuccessMessage:null,updatePasswordSuccessModalVisible:!1,updatePasswordErrorModalVisible:!1,destroyAccountSuccessModalVisible:!1,destroyAccountErrorModalVisible:!1,destroyAccountMessage:null,passwordResetSuccessModalVisible:!1,passwordResetErrorModalVisible:!1});t["default"]=(0,l.createReducer)(A,(u={},i(u,f.EMAIL_SIGN_IN_COMPLETE,function(e){return e.set("emailSignInSuccessModalVisible",!0)}),i(u,f.EMAIL_SIGN_IN_ERROR,function(e){return e.set("emailSignInErrorModalVisible",!0)}),i(u,m.OAUTH_SIGN_IN_COMPLETE,function(e){return e.merge({oAuthSignInSuccessModalVisible:!0,oAuthSignInLoadingProvider:null})}),i(u,m.OAUTH_SIGN_IN_ERROR,function(e){return e.merge({oAuthSignInErrorModalVisible:!0,oAuthSignInLoadingProvider:null})}),i(u,m.OAUTH_SIGN_IN_START,function(e,t){var r=t.provider;return e.merge({oAuthSignInLoadingProvider:r})}),i(u,p.HIDE_EMAIL_SIGN_IN_SUCCESS_MODAL,function(e){return e.set("emailSignInSuccessModalVisible",!1)}),i(u,p.HIDE_EMAIL_SIGN_IN_ERROR_MODAL,function(e){return e.set("emailSignInErrorModalVisible",!1)}),i(u,y.SIGN_OUT_COMPLETE,function(e){return e.set("signOutSuccessModalVisible",!0)}),i(u,y.SIGN_OUT_ERROR,function(e){return e.set("signOutErrorModalVisible",!0)}),i(u,p.HIDE_SIGN_OUT_SUCCESS_MODAL,function(e){return e.set("signOutSuccessModalVisible",!1)}),i(u,p.HIDE_SIGN_OUT_ERROR_MODAL,function(e){return e.set("signOutErrorModalVisible",!1)}),i(u,E.EMAIL_SIGN_UP_COMPLETE,function(e,t){var r=t.user;return e.merge({emailSignUpSuccessModalVisible:!0,emailSignUpAddress:r.email})}),i(u,E.EMAIL_SIGN_UP_ERROR,function(e){return e.set("emailSignUpErrorModalVisible",!0)}),i(u,p.HIDE_EMAIL_SIGN_UP_SUCCESS_MODAL,function(e){return e.merge({emailSignUpSuccessModalVisible:!1,emailSignUpAddress:null})}),i(u,p.HIDE_EMAIL_SIGN_UP_ERROR_MODAL,function(e){return e.set("emailSignUpErrorModalVisible",!1)}),i(u,p.SHOW_FIRST_TIME_LOGIN_SUCCESS_MODAL,function(e){return e.set("firstTimeLoginSuccessModalVisible",!0)}),i(u,p.HIDE_FIRST_TIME_LOGIN_SUCCESS_MODAL,function(e){return e.set("firstTimeLoginSuccessModalVisible",!1)}),i(u,p.HIDE_PASSWORD_RESET_SUCCESS_MODAL,function(e){return e.set("passwordResetSuccessModalVisible",!1)}),i(u,p.SHOW_PASSWORD_RESET_SUCCESS_MODAL,function(e){return e.set("passwordResetSuccessModalVisible",!0)}),i(u,p.SHOW_FIRST_TIME_LOGIN_ERROR_MODAL,function(e){return e.set("firstTimeLoginErrorModalVisible",!0)}),i(u,p.HIDE_FIRST_TIME_LOGIN_ERROR_MODAL,function(e){return e.set("firstTimeLoginErrorModalVisible",!1)}),i(u,p.HIDE_PASSWORD_RESET_ERROR_MODAL,function(e){return e.set("passwordResetErrorModalVisible",!1)}),i(u,p.SHOW_PASSWORD_RESET_ERROR_MODAL,function(e){return e.set("passwordResetErrorModalVisible",!0)}),i(u,b.REQUEST_PASSWORD_RESET_COMPLETE,function(e,t){var r=t.message;return e.merge({requestPasswordResetSuccessModalVisible:!0,requestPasswordResetSuccessMessage:r})}),i(u,b.REQUEST_PASSWORD_RESET_ERROR,function(e){return e.set("requestPasswordResetErrorModalVisible",!0)}),i(u,p.HIDE_REQUEST_PASSWORD_RESET_SUCCESS_MODAL,function(e){return e.merge({requestPasswordResetSuccessModalVisible:!1,requestPasswordResetSuccessMessage:null})}),i(u,p.HIDE_REQUEST_PASSWORD_RESET_ERROR_MODAL,function(e){return e.set("requestPasswordResetErrorModalVisible",!1)}),i(u,p.HIDE_OAUTH_SIGN_IN_SUCCESS_MODAL,function(e){return e.set("oAuthSignInSuccessModalVisible",!1)}),i(u,p.HIDE_OAUTH_SIGN_IN_ERROR_MODAL,function(e){return e.set("oAuthSignInErrorModalVisible",!1)}),i(u,P.UPDATE_PASSWORD_COMPLETE,function(e){return e.set("updatePasswordSuccessModalVisible",!0)}),i(u,P.UPDATE_PASSWORD_ERROR,function(e){return e.set("updatePasswordErrorModalVisible",!0)}),i(u,p.HIDE_UPDATE_PASSWORD_SUCCESS_MODAL,function(e){return e.set("updatePasswordSuccessModalVisible",!1)}),i(u,p.HIDE_UPDATE_PASSWORD_ERROR_MODAL,function(e){return e.set("updatePasswordErrorModalVisible",!1)}),i(u,R.DESTROY_ACCOUNT_COMPLETE,function(e,t){var r=t.message;return e.merge({destroyAccountSuccessModalVisible:!0,destroyAccountMessage:r})}),i(u,R.DESTROY_ACCOUNT_ERROR,function(e){return e.set("destroyAccountErrorModalVisible",!0)}),i(u,p.HIDE_DESTROY_ACCOUNT_SUCCESS_MODAL,function(e){return e.merge({destroyAccountSuccessModalVisible:!1,destroyAccountMessage:null})}),i(u,p.HIDE_DESTROY_ACCOUNT_ERROR_MODAL,function(e){return e.set("destroyAccountErrorModalVisible",!1)}),i(u,M.SS_AUTH_TOKEN_UPDATE,function(e,t){var r=t.mustResetPassword,n=t.firstTimeLogin;return e.merge({passwordResetSuccessModalVisible:r,firstTimeLoginSuccessModalVisible:n})}),i(u,p.HIDE_PASSWORD_RESET_SUCCESS_MODAL,function(e){return e.set("passwordResetSuccessModalVisible",!1)}),i(u,p.HIDE_PASSWORD_RESET_ERROR_MODAL,function(e){return e.set("passwordResetSuccessModalVisible",!1)}),i(u,T.UPDATE_PASSWORD_MODAL_COMPLETE,function(e){return e.merge({passwordResetSuccessModalVisible:!1,updatePasswordSuccessModalVisible:!0})}),u))},function(e,t,r){"use strict";function n(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t["default"]=e,t}function o(e){return e&&e.__esModule?e:{"default":e}}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var u;Object.defineProperty(t,"__esModule",{value:!0});var a=r(4),s=o(a),l=r(10),c=r(36),p=n(c),d=r(5),f={loading:!1,errors:null,form:{}};t["default"]=(0,l.createReducer)(s["default"].fromJS({}),(u={},i(u,d.SET_ENDPOINT_KEYS,function(e,t){var r=t.endpoints;return e.merge(r.reduce(function(e,t){return e[t]=s["default"].fromJS(f),e},{}))}),i(u,p.UPDATE_PASSWORD_MODAL_START,function(e,t){var r=t.endpoint;return e.setIn([r,"loading"],!0)}),i(u,p.UPDATE_PASSWORD_MODAL_COMPLETE,function(e,t){var r=t.endpoint;return e.merge(i({},r,f))}),i(u,p.UPDATE_PASSWORD_MODAL_ERROR,function(e,t){var r=t.endpoint,n=t.errors;return e.mergeDeep(i({},r,{loading:!1,errors:n}))}),i(u,p.UPDATE_PASSWORD_MODAL_FORM_UPDATE,function(e,t){var r=t.endpoint,n=t.key,o=t.value;return e.mergeDeep(i({},r,{form:i({},n,o)}))}),u))},function(e,t,r){"use strict";function n(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t["default"]=e,t}function o(e){return e&&e.__esModule?e:{"default":e}}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var u;Object.defineProperty(t,"__esModule",{value:!0});var a=r(4),s=o(a),l=r(10),c=r(37),p=n(c),d=r(5),f={loading:!1,errors:null,form:{}};t["default"]=(0,l.createReducer)(s["default"].fromJS({}),(u={},i(u,d.SET_ENDPOINT_KEYS,function(e,t){var r=t.endpoints;return e.merge(r.reduce(function(e,t){return e[t]=s["default"].fromJS(f),e},{}))}),i(u,p.UPDATE_PASSWORD_START,function(e,t){var r=t.endpoint;return e.setIn([r,"loading"],!0)}),i(u,p.UPDATE_PASSWORD_COMPLETE,function(e,t){var r=t.endpoint;return e.merge(i({},r,f))}),i(u,p.UPDATE_PASSWORD_ERROR,function(e,t){var r=t.endpoint,n=t.errors;return e.mergeDeep(i({},r,{loading:!1,errors:n}))}),i(u,p.UPDATE_PASSWORD_FORM_UPDATE,function(e,t){var r=t.endpoint,n=t.key,o=t.value;return e.mergeDeep(i({},r,{form:i({},n,o)}))}),u))},function(e,t,r){"use strict";function n(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t["default"]=e,t}function o(e){return e&&e.__esModule?e:{"default":e}}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var u;Object.defineProperty(t,"__esModule",{value:!0});var a=r(4),s=o(a),l=r(10),c=r(11),p=r(25),d=n(p),f=r(27),h=r(30),E=r(28),_=r(26),y=r(29),g=n(y),b=r(5),S=s["default"].fromJS({attributes:null,isSignedIn:!1,firstTimeLogin:!1,mustResetPassword:!1,endpointKey:null});t["default"]=(0,l.createReducer)(S,(u={},i(u,d.AUTHENTICATE_COMPLETE,function(e,t){var r=t.user;return e.merge({attributes:r,isSignedIn:!0,endpointKey:(0,c.getCurrentEndpointKey)()})}),i(u,g.SS_TOKEN_VALIDATION_COMPLETE,function(e,t){var r=t.user,n=t.mustResetPassword,o=t.firstTimeLogin;return e.merge({attributes:r,isSignedIn:!0,firstTimeLogin:o,mustResetPassword:n})}),i(u,b.STORE_CURRENT_ENDPOINT_KEY,function(e,t){var r=t.currentEndpointKey;return e.set("endpointKey",r)}),i(u,b.SET_ENDPOINT_KEYS,function(e,t){var r=t.currentEndpointKey;return e.set("endpointKey",r)}),i(u,f.EMAIL_SIGN_IN_COMPLETE,function(e,t){var r=t.endpoint,n=t.user;return e.merge({attributes:n.data,isSignedIn:!0,endpointKey:r})}),i(u,E.OAUTH_SIGN_IN_COMPLETE,function(e,t){var r=t.endpoint,n=t.user;return e.merge({attributes:n,isSignedIn:!0,endpointKey:r})}),i(u,g.SS_AUTH_TOKEN_UPDATE,function(e,t){var r=t.user,n=t.mustResetPassword,o=t.firstTimeLogin;return e.merge({mustResetPassword:n,firstTimeLogin:o,isSignedIn:!!r,attributes:r})}),i(u,d.AUTHENTICATE_FAILURE,function(e){return e.merge(S)}),i(u,g.SS_TOKEN_VALIDATION_ERROR,function(e){return e.merge(S)}),i(u,h.SIGN_OUT_COMPLETE,function(e){return e.merge(S)}),i(u,h.SIGN_OUT_ERROR,function(e){return e.merge(S)}),i(u,_.DESTROY_ACCOUNT_COMPLETE,function(e){return e.merge(S)}),u))},function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function o(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t["default"]=e,t}function i(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],t=e.dispatch,r=e.endpoint,n=void 0===r?{}:r,o=e.settings,i=void 0===o?{}:o,u=e.reset,s=void 0===u?!1:u,c=void 0;s&&resetConfig(),i.initialCredentials&&(c=i.initialCredentials.currentEndpointKey),(0,E.setCurrentSettings)((0,l["default"])({},y,i));var d=(0,f["default"])(n,(0,E.getInitialEndpointKey)()),_=d.defaultEndpointKey,g=d.currentEndpoint;c||(c=_),(0,E.setDefaultEndpointKey)(_),(0,E.setCurrentEndpoint)(g),t((0,h.setEndpointKeys)(Object.keys(g),c,_)),
3(0,E.setCurrentEndpointKey)(c);var b=(0,E.retrieveData)(a.SAVED_CREDS_KEY);if((0,E.getCurrentSettings)().initialCredentials){var S=(0,E.getCurrentSettings)().initialCredentials,m=S.user,O=S.headers;S.config;return(0,E.persistData)(a.SAVED_CREDS_KEY,O),Promise.resolve(m)}return b?(0,p["default"])(b):Promise.reject({reason:"No credentials."})}Object.defineProperty(t,"__esModule",{value:!0}),t.applyConfig=i;var u=r(20),a=o(u),s=r(19),l=n(s),c=r(13),p=n(c),d=r(39),f=n(d),h=r(5),E=r(11),_=Function("return this")()||(42,eval)("this"),y={proxyIf:function(){return!1},proxyUrl:"/proxy",forceHardRedirect:!1,storage:"cookies",cookieExpiry:14,cookiePath:"/",initialCredentials:null,passwordResetSuccessUrl:function(){return _.location.href},confirmationSuccessUrl:function(){return _.location.href},tokenFormat:{"access-token":"{{ access-token }}","token-type":"Bearer",client:"{{ client }}",expiry:"{{ expiry }}",uid:"{{ uid }}"},parseExpiry:function(e){return 1e3*parseInt(e.expiry,10)||null},handleLoginResponse:function(e){return e.data},handleAccountUpdateResponse:function(e){return e.data},handleTokenValidationResponse:function(e){return e.data}}},function(e,t){"use strict";function r(e){var t=e.width,r=e.height,n=window.screenLeft?window.screenLeft:window.screenX,o=window.screenTop?window.screenTop:window.screenY,i=n+window.innerWidth/2-t/2,u=o+window.innerHeight/2-r/2;return{top:u,left:i}}function n(e){switch(e){case"facebook":return{width:580,height:400};case"google":return{width:452,height:633};case"github":return{width:1020,height:618};case"linkedin":return{width:527,height:582};case"twitter":return{width:495,height:645};case"live":return{width:500,height:560};case"yahoo":return{width:559,height:519};default:return{width:1020,height:618}}}function o(e){var t=n(e),o=t.width,i=t.height,u=r({width:o,height:i}),a=u.top,s=u.left;return"width="+o+",height="+i+",top="+a+",left="+s}function i(e,t,r){return window.open(t,r,u+","+o(e))}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=i;var u="scrollbars=no,toolbar=no,location=no,titlebar=no,directories=no,status=no,menubar=no"},,,,,,,,,,,,,,,,,,,,,,,,,,,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 i(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)}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}}();Object.defineProperty(t,"__esModule",{value:!0});var s=r(1),l=n(s),c=r(95),p=n(c),d=r(94),f=n(d),h=r(101),E=n(h),_=r(100),y=n(_),g=r(97),b=n(g),S=r(96),m=n(S),O=r(106),P=n(O),v=r(105),R=n(v),w=r(99),T=n(w),I=r(98),M=n(I),A=r(103),C=n(A),D=r(104),U=n(D),j=r(107),N=n(j),L=r(108),k=n(L),K=r(92),G=n(K),F=r(93),H=n(F),V=r(102),W=n(V),x=r(18),q=n(x),Y=r(3),J=function(e){function t(){return o(this,t),i(this,Object.getPrototypeOf(t).apply(this,arguments))}return u(t,e),a(t,[{key:"render",value:function(){var e=this.props.emailSignInSuccessEnabled&&this.props.auth.getIn(["ui","emailSignInSuccessModalVisible"]),t=this.props.emailSignInErrorEnabled&&this.props.auth.getIn(["ui","emailSignInErrorModalVisible"]),r=this.props.emailSignUpSuccessEnabled&&this.props.auth.getIn(["ui","emailSignUpSuccessModalVisible"]),n=this.props.emailSignUpErrorEnabled&&this.props.auth.getIn(["ui","emailSignUpErrorModalVisible"]),o=this.props.signOutSuccessEnabled&&this.props.auth.getIn(["ui","signOutSuccessModalVisible"]),i=this.props.signOutErrorEnabled&&this.props.auth.getIn(["ui","signOutErrorModalVisible"]),u=this.props.firstTimeLoginSuccessEnabled&&this.props.auth.getIn(["ui","firstTimeLoginSuccessModalVisible"]),a=this.props.firstTimeLoginErrorEnabled&&this.props.auth.getIn(["ui","firstTimeLoginErrorModalVisible"]),s=this.props.requestPasswordResetErrorEnabled&&this.props.auth.getIn(["ui","requestPasswordResetErrorModalVisible"]),c=this.props.requestPasswordResetSuccessEnabled&&this.props.auth.getIn(["ui","requestPasswordResetSuccessModalVisible"]),d=this.props.oAuthSignInSuccessEnabled&&this.props.auth.getIn(["ui","oAuthSignInSuccessModalVisible"]),h=this.props.oAuthSignInErrorEnabled&&this.props.auth.getIn(["ui","oAuthSignInErrorModalVisible"]),_=this.props.updatePasswordSuccessEnabled&&this.props.auth.getIn(["ui","updatePasswordSuccessModalVisible"]),g=this.props.updatePasswordErrorEnabled&&this.props.auth.getIn(["ui","updatePasswordErrorModalVisible"]),S=this.props.destroyAccountSuccessEnabled&&this.props.auth.getIn(["ui","destroyAccountSuccessModalVisible"]),O=this.props.destroyAccountErrorEnabled&&this.props.auth.getIn(["ui","destroyAccountErrorModalVisible"]),v=this.props.passwordResetSuccessEnabled&&this.props.auth.getIn(["ui","passwordResetSuccessModalVisible"]);return l["default"].createElement("div",{id:"auth-modals"},l["default"].createElement(p["default"],{show:e}),l["default"].createElement(f["default"],{show:t}),l["default"].createElement(E["default"],{show:d}),l["default"].createElement(y["default"],{show:h}),l["default"].createElement(b["default"],{show:r}),l["default"].createElement(m["default"],{show:n}),l["default"].createElement(P["default"],{show:o}),l["default"].createElement(R["default"],{show:i}),l["default"].createElement(T["default"],{show:u}),l["default"].createElement(M["default"],{show:a}),l["default"].createElement(C["default"],{show:s}),l["default"].createElement(U["default"],{show:c}),l["default"].createElement(N["default"],{show:g}),l["default"].createElement(k["default"],{show:_}),l["default"].createElement(G["default"],{show:O}),l["default"].createElement(H["default"],{show:S}),l["default"].createElement(W["default"],{show:v}),l["default"].createElement(q["default"],null))}}]),t}(l["default"].Component);J.propTypes={signOutSuccessEnabled:s.PropTypes.bool,signOutErrorEnabled:s.PropTypes.bool,emailSignInSuccessEnabled:s.PropTypes.bool,emailSignInErrorEnabled:s.PropTypes.bool,oAuthSignInSuccessEnabled:s.PropTypes.bool,oAuthSignInErrorEnabled:s.PropTypes.bool,emailSignUpSuccessEnabled:s.PropTypes.bool,emailSignUpErrorEnabled:s.PropTypes.bool,firstTimeLoginSuccessEnabled:s.PropTypes.bool,firstTimeLoginErrorEnabled:s.PropTypes.bool,requestPasswordResetErrorEnabled:s.PropTypes.bool,requestPasswordResetSuccessEnabled:s.PropTypes.bool,updatePasswordErrorEnabled:s.PropTypes.bool,updatePasswordSuccessEnabled:s.PropTypes.bool,destroyAccountErrorEnabled:s.PropTypes.bool,destroyAccountSuccessEnabled:s.PropTypes.bool,passwordResetSuccessEnabled:s.PropTypes.bool,passwordResetErrorEnabled:s.PropTypes.bool},J.defaultProps={signOutSuccessEnabled:!0,signOutErrorEnabled:!0,emailSignInSuccessEnabled:!0,emailSignInErrorEnabled:!0,oAuthSignInSuccessEnabled:!0,oAuthSignInErrorEnabled:!0,emailSignUpSuccessEnabled:!0,emailSignUpErrorEnabled:!0,firstTimeLoginSuccessEnabled:!0,firstTimeLoginErrorEnabled:!0,requestPasswordResetErrorEnabled:!0,requestPasswordResetSuccessEnabled:!0,updatePasswordErrorEnabled:!0,updatePasswordSuccessEnabled:!0,destroyAccountErrorEnabled:!0,destroyAccountSuccessEnabled:!0,passwordResetSuccessEnabled:!0,passwordResetErrorEnabled:!0},t["default"]=(0,Y.connect)(function(e){var t=e.auth;return{auth:t}})(J)},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 i(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)}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},s=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}}();Object.defineProperty(t,"__esModule",{value:!0});var l=r(1),c=n(l),p=r(15),d=n(p),f=r(2),h=r(3),E=function(e){function t(){return o(this,t),i(this,Object.getPrototypeOf(t).apply(this,arguments))}return u(t,e),s(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,f.destroyAccount)(this.getEndpoint()))}},{key:"render",value:function(){var e=!this.props.auth.getIn(["user","isSignedIn"]);return c["default"].createElement(d["default"],a({loading:this.props.auth.getIn(["destroyAccount",this.getEndpoint(),"loading"]),icon:this.props.icon,disabled:e,primary:!0,className:"destroy-account-submit",onClick:this.handleClick.bind(this)},this.props))}}]),t}(c["default"].Component);E.propTypes={endpoint:l.PropTypes.string,children:l.PropTypes.node,icon:l.PropTypes.string},E.defaultProps={children:c["default"].createElement("span",null,"Destroy Account")},t["default"]=(0,h.connect)(function(e){var t=e.auth;return{auth:t}})(E)},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 i(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)}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},s=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}}();Object.defineProperty(t,"__esModule",{value:!0});var l=r(1),c=n(l),p=r(15),d=n(p),f=r(22),h=n(f),E=r(2),_=r(3),y=function(e){function t(){return o(this,t),i(this,Object.getPrototypeOf(t).apply(this,arguments))}return u(t,e),s(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,E.emailSignInFormUpdate)(this.getEndpoint(),e,t))}},{key:"handleSubmit",value:function(){var e=this.props.auth.getIn(["emailSignIn",this.getEndpoint(),"form"]).toJS();this.props.dispatch((0,E.emailSignIn)(e,this.getEndpoint()))}},{key:"render",value:function(){var e=this.props.auth.getIn(["user","isSignedIn"])||this.props.auth.getIn(["emailSignIn",this.getEndpoint(),"loading"]);return c["default"].createElement("form",{className:"redux-auth email-sign-in-form",style:{clear:"both",overflow:"hidden"},onSubmit:this.handleSubmit.bind(this)},c["default"].createElement(h["default"],a({type:"text",className:"email-sign-in-email",label:"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)),c["default"].createElement(h["default"],a({type:"password",label:"Password",className:"email-sign-in-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)),c["default"].createElement(d["default"],a({loading:this.props.auth.getIn(["emailSignIn","loading"]),type:"submit",style:{"float":"right"},icon:this.props.icon,className:"email-sign-in-submit",disabled:e,onClick:this.handleSubmit.bind(this),primary:!0},this.props.inputProps.submit),"Sign In"))}}]),t}(c["default"].Component);y.propTypes={endpoint:l.PropTypes.string,inputProps:l.PropTypes.shape({email:l.PropTypes.object,password:l.PropTypes.object,submit:l.PropTypes.object})},y.defaultProps={inputProps:{email:{},password:{},submit:{}}},t["default"]=(0,_.connect)(function(e){var t=e.auth;return{auth:t}})(y)},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 i(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)}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},s=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}}();Object.defineProperty(t,"__esModule",{value:!0});var l=r(1),c=n(l),p=r(22),d=n(p),f=r(15),h=n(f),E=r(2),_=r(3),y=function(e){function t(){return o(this,t),i(this,Object.getPrototypeOf(t).apply(this,arguments))}return u(t,e),s(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,E.emailSignUpFormUpdate)(this.getEndpoint(),e,t))}},{key:"handleSubmit",value:function(){console.log("submitting form to endpoint",this.getEndpoint());var e=this.props.auth.getIn(["emailSignUp",this.getEndpoint(),"form"]).toJS();this.props.dispatch((0,E.emailSignUp)(e,this.getEndpoint()))}},{key:"render",value:function(){var e=this.props.auth.getIn(["user","isSignedIn"])||this.props.auth.getIn(["emailSignUp",this.getEndpoint(),"loading"]);return c["default"].createElement("form",{className:"redux-auth email-sign-up-form",style:{clear:"both",overflow:"hidden"},onSubmit:this.handleSubmit.bind(this)},c["default"].createElement(d["default"],a({type:"text",label:"Email",className:"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)),c["default"].createElement(d["default"],a({type:"password",label:"Password",className:"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)),c["default"].createElement(d["default"],a({type:"password",label:"Password Confirmation",className:"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)),c["default"].createElement(h["default"],a({loading:this.props.auth.getIn(["emailSignUp",this.getEndpoint(),"loading"]),type:"submit",className:"email-sign-up-submit",primary:!0,style:{"float":"right"},icon:this.props.icon,disabled:e,onClick:this.handleSubmit.bind(this)},this.props.inputProps.submit),"Sign Up"))}}]),t}(c["default"].Component);y.propTypes={endpoint:l.PropTypes.string,icon:l.PropTypes.string,inputProps:l.PropTypes.shape({email:l.PropTypes.object,password:l.PropTypes.object,passwordConfirmation:l.PropTypes.object,submit:l.PropTypes.object})},y.defaultProps={inputProps:{email:{},password:{},submit:{}}},t["default"]=(0,_.connect)(function(e){var t=e.auth;return{auth:t}})(y)},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 i(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)}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}}();Object.defineProperty(t,"__esModule",{value:!0});var s=r(1),l=n(s),c=r(4),p=n(c),d=function(e){function t(){return o(this,t),i(this,Object.getPrototypeOf(t).apply(this,arguments))}return u(t,e),a(t,[{key:"renderErrorList",value:function(){var e=(this.props.errors||p["default"].fromJS([])).size;if(e>0){var t="error";return t+=1===e?"":"s",l["default"].createElement("div",{className:"has-error"},l["default"].createElement("p",null,"Please correct the following ",t,":"),this.props.errors.map(function(e,t){return l["default"].createElement("p",{key:t,className:"control-label modal-error-item",style:{paddingLeft:"20px",position:"relative"}},l["default"].createElement("i",{style:{position:"absolute",left:0,top:2}},"✗")," ",e)}))}return l["default"].createElement("p",null,l["default"].createElement("i",{style:{position:"absolute",left:0,top:2}},"✗")," There was an error processing this form. Please check each field and try again.")}},{key:"render",value:function(){return l["default"].createElement("div",{className:"auth-error-message"},this.renderErrorList())}}]),t}(l["default"].Component);d.propTypes={errors:s.PropTypes.object},d.defaultProps={errors:p["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 i(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)}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},s=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}}();Object.defineProperty(t,"__esModule",{value:!0});var l=r(1),c=n(l),p=r(3),d=r(15),f=n(d),h=r(2),E=h.oAuthSignIn,_=function(e){function t(){return o(this,t),i(this,Object.getPrototypeOf(t).apply(this,arguments))}return u(t,e),s(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(E({provider:this.props.provider,params:this.props.signInParams,endpointKey:this.getEndpoint()}))}},{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 c["default"].createElement(f["default"],a({loading:t,icon:this.props.icon,className:"oauth-sign-in-submit",disabled:e,onClick:this.handleClick.bind(this)},this.props))}}]),t}(c["default"].Component);_.propTypes={provider:l.PropTypes.string.isRequired,label:l.PropTypes.string,signInParams:l.PropTypes.object,children:l.PropTypes.node,icon:l.PropTypes.string},_.defaultProps={signInParams:{},children:c["default"].createElement("span",null,"OAuth Sign In")},t["default"]=(0,p.connect)(function(e){var t=e.auth;return{auth:t}})(_)},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 i(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)}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},s=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}}();Object.defineProperty(t,"__esModule",{value:!0});var l=r(1),c=n(l),p=r(22),d=n(p),f=r(15),h=n(f),E=r(3),_=r(2),y=function(e){function t(){return o(this,t),i(this,Object.getPrototypeOf(t).apply(this,arguments))}return u(t,e),s(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,_.requestPasswordResetFormUpdate)(this.getEndpoint(),e,t))}},{key:"handleSubmit",value:function(){var e=this.props.auth.getIn(["requestPasswordReset",this.getEndpoint(),"form"]).toJS();this.props.dispatch((0,_.requestPasswordReset)(e,this.getEndpoint()))}},{key:"render",value:function(){var e=this.getEndpoint(),t=this.props.auth.getIn(["requestPasswordReset",e,"loading"]),r=this.props.auth.getIn(["user","isSignedIn"]),n=!this.props.auth.getIn(["requestPasswordReset",e,"form","email"]);return c["default"].createElement("form",{className:"redux-auth request-password-reset-form clearfix",style:{clear:"both",overflow:"hidden"},onSubmit:this.handleSubmit.bind(this)},c["default"].createElement(d["default"],a({type:"text",label:"Email Address",placeholder:"Email Address",className:"request-password-reset-email",disabled:t||r,value:this.props.auth.getIn(["requestPasswordReset",e,"form","email"]),errors:this.props.auth.getIn(["requestPasswordReset",e,"errors","email"]),onChange:this.handleInput.bind(this,"email")},this.props.inputProps.email)),c["default"].createElement(h["default"],a({loading:t,type:"submit",primary:!0,style:{"float":"right"},className:"request-password-reset-submit",disabled:r||n,onClick:this.handleSubmit.bind(this)},this.props.inputProps.submit),"Request Password Reset"))}}]),t}(c["default"].Component);y.propTypes={icon:l.PropTypes.string,endpoint:l.PropTypes.string,inputProps:l.PropTypes.shape({email:l.PropTypes.object,submit:l.PropTypes.object})},y.defaultProps={inputProps:{email:{},submit:{}}},t["default"]=(0,E.connect)(function(e){var t=e.auth;return{auth:t}})(y)},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 i(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)}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},s=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}}();Object.defineProperty(t,"__esModule",{value:!0});var l=r(1),c=n(l),p=r(15),d=n(p),f=r(3),h=r(2),E=function(e){function t(){return o(this,t),i(this,Object.getPrototypeOf(t).apply(this,arguments))}return u(t,e),s(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,h.signOut)(this.getEndpoint()))}},{key:"render",value:function(){var e=!this.props.auth.getIn(["user","isSignedIn"]);return c["default"].createElement(d["default"],a({loading:this.props.auth.getIn(["signOut",this.getEndpoint(),"loading"]),icon:this.props.icon,disabled:e,primary:!0,className:"sign-out-submit",onClick:this.handleClick.bind(this)},this.props))}}]),t}(c["default"].Component);E.propTypes={endpoint:l.PropTypes.string,children:l.PropTypes.node,icon:l.PropTypes.string},E.defaultProps={children:c["default"].createElement("span",null,"Sign Out")},t["default"]=(0,f.connect)(function(e){var t=e.auth;return{auth:t}})(E)},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 i(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)}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},s=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}}();Object.defineProperty(t,"__esModule",{value:!0});var l=r(1),c=n(l),p=r(22),d=n(p),f=r(15),h=n(f),E=r(2),_=r(3),y=function(e){function t(){return o(this,t),i(this,Object.getPrototypeOf(t).apply(this,arguments))}return u(t,e),s(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,E.updatePasswordFormUpdate)(this.getEndpoint(),e,t))}},{key:"handleSubmit",value:function(){var e=this.props.auth.getIn(["updatePassword",this.getEndpoint(),"form"]).toJS();this.props.dispatch((0,E.updatePassword)(e,this.getEndpoint()))}},{key:"render",value:function(){var e=this.getEndpoint(),t=this.props.auth.getIn(["updatePassword","loading"]),r=!this.props.auth.getIn(["user","isSignedIn"])||t||"email"!==this.props.auth.getIn(["user","attributes","provider"]);return c["default"].createElement("form",{className:"redux-auth update-password-form clearfix",onSubmit:this.handleSubmit.bind(this)},c["default"].createElement(d["default"],a({type:"password",label:"Password",placeholder:"Password",disabled:r,className:"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)),c["default"].createElement(d["default"],a({type:"password",label:"Password Confirmation",placeholder:"Password Confirmation",className:"update-password-password-confirmation",disabled:r,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)),c["default"].createElement(h["default"],a({loading:t,type:"submit",className:"update-password-submit",icon:this.props.icon,primary:!0,disabled:r,style:{"float":"right"},onClick:this.handleSubmit.bind(this)},this.props.inputProps.submit),"Update Password"))}}]),t}(c["default"].Component);y.propTypes={icon:l.PropTypes.string,endpoint:l.PropTypes.string,inputProps:l.PropTypes.shape({password:l.PropTypes.object,passwordConfirmation:l.PropTypes.object,submit:l.PropTypes.object})},y.defaultProps={inputProps:{password:{},passwordConfirmation:{},submit:{}}},t["default"]=(0,_.connect)(function(e){var t=e.auth;return{auth:t}})(y)},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(82),i=n(o),u=r(84),a=n(u),s=r(85),l=n(s),c=r(89),p=n(c),d=r(88),f=n(d),h=r(87),E=n(h),_=r(90),y=n(_),g=r(83),b=n(g),S=r(18),m=n(S),O=r(15),P=n(O);t.AuthGlobals=i["default"],t.EmailSignInForm=a["default"],t.EmailSignUpForm=l["default"],t.SignOutButton=p["default"],t.RequestPasswordResetForm=f["default"],t.OAuthSignInButton=E["default"],t.UpdatePasswordForm=y["default"],t.DestroyAccountButton=b["default"],t.TokenBridge=m["default"],t.ButtonLoader=P["default"]},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 i(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);
4e.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)}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}}();Object.defineProperty(t,"__esModule",{value:!0});var s=r(1),l=n(s),c=r(2),p=r(7),d=n(p),f=function(e){function t(){return o(this,t),i(this,Object.getPrototypeOf(t).apply(this,arguments))}return u(t,e),a(t,[{key:"render",value:function(){return l["default"].createElement(d["default"],{containerClass:"destroy-account-error-modal",show:this.props.show,closeAction:c.hideDestroyAccountErrorModal,title:"Error",errorAddr:["destroyAccount","errors"]})}}]),t}(l["default"].Component);t["default"]=f},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 i(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)}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}}();Object.defineProperty(t,"__esModule",{value:!0});var s=r(1),l=n(s),c=r(3),p=r(2),d=r(7),f=n(d),h=function(e){function t(){return o(this,t),i(this,Object.getPrototypeOf(t).apply(this,arguments))}return u(t,e),a(t,[{key:"render",value:function(){return l["default"].createElement(f["default"],{show:this.props.show,containerClass:"destroy-account-success-modal",closeAction:p.hideDestroyAccountSuccessModal,title:"Destroy Account Success"},l["default"].createElement("p",null,this.props.auth.getIn(["ui","destroyAccountMessage"])))}}]),t}(l["default"].Component);t["default"]=(0,c.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 i(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)}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}}();Object.defineProperty(t,"__esModule",{value:!0});var s=r(1),l=n(s),c=r(2),p=r(7),d=n(p),f=function(e){function t(){return o(this,t),i(this,Object.getPrototypeOf(t).apply(this,arguments))}return u(t,e),a(t,[{key:"render",value:function(){return l["default"].createElement(d["default"],{show:this.props.show,containerClass:"email-sign-in-error-modal",closeAction:c.hideEmailSignInErrorModal,title:"Sign In Error",errorAddr:["emailSignIn","errors"]})}}]),t}(l["default"].Component);t["default"]=f},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 i(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)}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}}();Object.defineProperty(t,"__esModule",{value:!0});var s=r(1),l=n(s),c=r(3),p=r(2),d=r(7),f=n(d),h=function(e){function t(){return o(this,t),i(this,Object.getPrototypeOf(t).apply(this,arguments))}return u(t,e),a(t,[{key:"render",value:function(){return l["default"].createElement(f["default"],{show:this.props.show,containerClass:"email-sign-in-success-modal",closeAction:p.hideEmailSignInSuccessModal,closeBtnLabel:"Close",title:"Welcome Back"},l["default"].createElement("p",null,"You are now signed in as ",this.props.auth.getIn(["user","attributes","email"]),"."))}}]),t}(l["default"].Component);t["default"]=(0,c.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 i(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)}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}}();Object.defineProperty(t,"__esModule",{value:!0});var s=r(1),l=n(s),c=r(2),p=r(7),d=n(p),f=function(e){function t(){return o(this,t),i(this,Object.getPrototypeOf(t).apply(this,arguments))}return u(t,e),a(t,[{key:"render",value:function(){return l["default"].createElement(d["default"],{show:this.props.show,containerClass:"email-sign-up-error-modal",title:"Sign Up Error",errorAddr:["emailSignUp","errors","full_messages"],closeAction:c.hideEmailSignUpErrorModal})}}]),t}(l["default"].Component);t["default"]=f},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 i(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)}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}}();Object.defineProperty(t,"__esModule",{value:!0});var s=r(1),l=n(s),c=r(2),p=r(3),d=r(7),f=n(d),h=function(e){function t(){return o(this,t),i(this,Object.getPrototypeOf(t).apply(this,arguments))}return u(t,e),a(t,[{key:"render",value:function(){return l["default"].createElement(f["default"],{containerClass:"email-sign-up-success-modal",show:this.props.show,closeAction:c.hideEmailSignUpSuccessModal,title:"Sign Up Success"},l["default"].createElement("p",null,"A confirmation email was sent to your account at ",this.props.auth.getIn(["ui","emailSignUpAddress"]),". Follow the instructions in the email to complete registration."))}}]),t}(l["default"].Component);t["default"]=(0,p.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 i(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)}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}}();Object.defineProperty(t,"__esModule",{value:!0});var s=r(1),l=n(s),c=r(2),p=r(7),d=n(p),f=function(e){function t(){return o(this,t),i(this,Object.getPrototypeOf(t).apply(this,arguments))}return u(t,e),a(t,[{key:"render",value:function(){return l["default"].createElement(d["default"],{show:this.props.show,containerClass:"first-time-login-error-modal",closeAction:c.hideFirstTimeLoginErrorModal,title:"Confirmation Error"},l["default"].createElement("p",null,"There was a problem confirming your account. Please try again."))}}]),t}(l["default"].Component);t["default"]=f},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 i(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)}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}}();Object.defineProperty(t,"__esModule",{value:!0});var s=r(1),l=n(s),c=r(2),p=r(7),d=n(p),f=r(3),h=function(e){function t(){return o(this,t),i(this,Object.getPrototypeOf(t).apply(this,arguments))}return u(t,e),a(t,[{key:"render",value:function(){return l["default"].createElement(d["default"],{show:this.props.show,containerClass:"first-time-login-success-modal",title:"Welcome "+this.props.auth.getIn(["user","attributes","email"])+"!",closeBtnLabel:"Close",closeAction:c.hideFirstTimeLoginSuccessModal},l["default"].createElement("p",null,"Your account has been confirmed."))}}]),t}(l["default"].Component);t["default"]=(0,f.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 i(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)}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}}();Object.defineProperty(t,"__esModule",{value:!0});var s=r(1),l=n(s),c=r(9),p=r(7),d=n(p),f=r(2),h=function(e){function t(){return o(this,t),i(this,Object.getPrototypeOf(t).apply(this,arguments))}return u(t,e),a(t,[{key:"render",value:function(){return l["default"].createElement(d["default"],{show:this.props.show,containerClass:"oauth-sign-in-error-modal",closeAction:f.hideOAuthSignInErrorModal,title:"OAuth Sign In Error"},l["default"].createElement("p",null,l["default"].createElement(c.Glyphicon,{glyph:"exclamation-sign"})," There was an error authenticating your account. Please try again."))}}]),t}(l["default"].Component);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 i(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)}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}}();Object.defineProperty(t,"__esModule",{value:!0});var s=r(1),l=n(s),c=r(2),p=r(3),d=r(7),f=n(d),h=function(e){function t(){return o(this,t),i(this,Object.getPrototypeOf(t).apply(this,arguments))}return u(t,e),a(t,[{key:"render",value:function(){return l["default"].createElement(f["default"],{show:this.props.show,containerClass:"oauth-sign-in-success-modal",closeAction:c.hideOAuthSignInSuccessModal,title:"Welcome"},l["default"].createElement("p",null,"You are now signed in via ",this.props.auth.getIn(["user","attributes","provider"]),"."))}}]),t}(l["default"].Component);t["default"]=(0,p.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 i(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)}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},s=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}}();Object.defineProperty(t,"__esModule",{value:!0});var l=r(1),c=n(l),p=r(9),d=r(15),f=n(d),h=r(22),E=n(h),_=r(3),y=r(2),g=r(2),b=function(e){function t(){return o(this,t),i(this,Object.getPrototypeOf(t).apply(this,arguments))}return u(t,e),s(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(){console.log("@-->submitting");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,y.hidePasswordResetSuccessModal)(this.getEndpoint()))}},{key:"render",value:function(){var e=this.props.auth.getIn(["updatePasswordModal",this.getEndpoint(),"loading"]),t=this.getEndpoint();return c["default"].createElement(p.Modal,{show:this.props.show,className:"password-reset-success-modal",onHide:this.close.bind(this)},c["default"].createElement(p.Modal.Header,{closeButton:!0},c["default"].createElement(p.Modal.Title,null,"Reset Your Password")),c["default"].createElement("form",null,c["default"].createElement(p.Modal.Body,null,c["default"].createElement(E["default"],a({type:"password",label:"Password",placeholder:"Password",disabled:e,className:"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)),c["default"].createElement(E["default"],a({type:"password",label:"Password Confirmation",placeholder:"Password Confirmation",disabled:e,className:"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))),c["default"].createElement(p.Modal.Footer,null,c["default"].createElement(p.Button,a({className:"password-reset-success-modal-close",onClick:this.close.bind(this)},this.props.inputProps.cancel),"Cancel"),c["default"].createElement(f["default"],a({},this.props,{loading:e,type:"submit",className:"password-reset-success-modal-submit",icon:c["default"].createElement(p.Glyphicon,{glyph:"lock"}),onClick:this.handleSubmit.bind(this)},this.props.inputProps.submit)))))}}]),t}(c["default"].Component);b.propTypes={show:l.PropTypes.bool,inputProps:l.PropTypes.object},b.defaultProps={show:!1,inputProps:{}},t["default"]=(0,_.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 i(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)}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}}();Object.defineProperty(t,"__esModule",{value:!0});var s=r(1),l=n(s),c=r(2),p=r(7),d=n(p),f=function(e){function t(){return o(this,t),i(this,Object.getPrototypeOf(t).apply(this,arguments))}return u(t,e),a(t,[{key:"render",value:function(){return l["default"].createElement(d["default"],{show:this.props.show,containerClass:"request-password-reset-error-modal",closeAction:c.hidePasswordResetRequestErrorModal,title:"Error",errorAddr:["requestPasswordReset","errors"]})}}]),t}(l["default"].Component);t["default"]=f},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 i(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)}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}}();Object.defineProperty(t,"__esModule",{value:!0});var s=r(1),l=n(s),c=r(3),p=r(2),d=r(7),f=n(d),h=function(e){function t(){return o(this,t),i(this,Object.getPrototypeOf(t).apply(this,arguments))}return u(t,e),a(t,[{key:"render",value:function(){return l["default"].createElement(f["default"],{show:this.props.show,containerClass:"request-password-reset-success-modal",title:"Password Reset Request Success",closeAction:p.hidePasswordResetRequestSuccessModal},l["default"].createElement("p",null,this.props.auth.getIn(["ui","requestPasswordResetSuccessMessage"])))}}]),t}(l["default"].Component);t["default"]=(0,c.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 i(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)}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}}();Object.defineProperty(t,"__esModule",{value:!0});var s=r(1),l=n(s),c=r(2),p=r(7),d=n(p),f=function(e){function t(){return o(this,t),i(this,Object.getPrototypeOf(t).apply(this,arguments))}return u(t,e),a(t,[{key:"render",value:function(){return l["default"].createElement(d["default"],{show:this.props.show,containerClass:"sign-out-error-modal",closeAction:c.hideSignOutErrorModal,title:"Sign Out Error"},l["default"].createElement("p",null,"The server encountered an error while trying to sign you out. Your account information has been wiped from this browser, but you may want to sign in and then sign back out again to resolve any issues."))}}]),t}(l["default"].Component);t["default"]=f},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 i(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)}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}}();Object.defineProperty(t,"__esModule",{value:!0});var s=r(1),l=n(s),c=r(2),p=r(7),d=n(p),f=function(e){function t(){return o(this,t),i(this,Object.getPrototypeOf(t).apply(this,arguments))}return u(t,e),a(t,[{key:"render",value:function(){return l["default"].createElement(d["default"],{show:this.props.show,containerClass:"sign-out-success-modal",title:"Goodbye!",closeAction:c.hideSignOutSuccessModal},l["default"].createElement("p",null,"You have been successfully signed out."))}}]),t}(l["default"].Component);t["default"]=f},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 i(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)}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}}();Object.defineProperty(t,"__esModule",{value:!0});var s=r(1),l=n(s),c=r(2),p=r(7),d=n(p),f=function(e){function t(){return o(this,t),i(this,Object.getPrototypeOf(t).apply(this,arguments))}return u(t,e),a(t,[{key:"render",value:function(){return l["default"].createElement(d["default"],{show:this.props.show,containerClass:"update-password-error-modal",title:"Error",closeAction:c.hideUpdatePasswordErrorModal,errorAddr:["updatePassword","errors","full_messages"]})}}]),t}(l["default"].Component);t["default"]=f},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 i(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)}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}}();Object.defineProperty(t,"__esModule",{value:!0});var s=r(1),l=n(s),c=r(2),p=r(7),d=n(p),f=function(e){function t(){return o(this,t),i(this,Object.getPrototypeOf(t).apply(this,arguments))}return u(t,e),a(t,[{key:"render",value:function(){return l["default"].createElement(d["default"],{show:this.props.show,containerClass:"update-password-success-modal",closeAction:c.hideUpdatePasswordSuccessModal,title:"Success"},l["default"].createElement("p",null,"Your password has been successfully changed."))}}]),t}(l["default"].Component);t["default"]=f},,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t){e.exports=require("cookie")},function(e,t){e.exports=require("isomorphic-fetch")},function(e,t){e.exports=require("js-cookie")},function(e,t){e.exports=require("node-fetch")},function(e,t){e.exports=require("querystring")},function(e,t){e.exports=require("rc-dialog")},function(e,t){e.exports=require("redux-router")},function(e,t){e.exports=require("url")}]));
\No newline at end of file