-
Notifications
You must be signed in to change notification settings - Fork 258
/
Copy pathindex.js
2 lines (2 loc) · 55.4 KB
/
index.js
1
2
!function(e,t){for(var r in t)e[r]=t[r]}(exports,function(e){function t(n){if(r[n])return r[n].exports;var o=r[n]={exports:{},id:n,loaded:!1};return e[n].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var r={};return t.m=e,t.c=r,t.p="",t(0)}([function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0}),t.fetch=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 u=r(24);Object.defineProperty(t,"authenticate",{enumerable:!0,get:function(){return u.authenticate}});var i=r(26);Object.defineProperty(t,"emailSignIn",{enumerable:!0,get:function(){return i.emailSignIn}}),Object.defineProperty(t,"emailSignInFormUpdate",{enumerable:!0,get:function(){return i.emailSignInFormUpdate}});var a=r(30);Object.defineProperty(t,"signOut",{enumerable:!0,get:function(){return a.signOut}});var s=r(27);Object.defineProperty(t,"emailSignUp",{enumerable:!0,get:function(){return s.emailSignUp}}),Object.defineProperty(t,"emailSignUpFormUpdate",{enumerable:!0,get:function(){return s.emailSignUpFormUpdate}});var d=r(28);Object.defineProperty(t,"oAuthSignIn",{enumerable:!0,get:function(){return d.oAuthSignIn}});var c=r(33);Object.defineProperty(t,"requestPasswordReset",{enumerable:!0,get:function(){return c.requestPasswordReset}}),Object.defineProperty(t,"requestPasswordResetFormUpdate",{enumerable:!0,get:function(){return c.requestPasswordResetFormUpdate}});var l=r(36);Object.defineProperty(t,"updatePassword",{enumerable:!0,get:function(){return l.updatePassword}}),Object.defineProperty(t,"updatePasswordFormUpdate",{enumerable:!0,get:function(){return l.updatePasswordFormUpdate}});var _=r(35);Object.defineProperty(t,"updatePasswordModal",{enumerable:!0,get:function(){return _.updatePasswordModal}}),Object.defineProperty(t,"updatePasswordModalFormUpdate",{enumerable:!0,get:function(){return _.updatePasswordModalFormUpdate}});var f=r(25);Object.defineProperty(t,"destroyAccount",{enumerable:!0,get:function(){return f.destroyAccount}});var E=r(11);Object.defineProperty(t,"getApiUrl",{enumerable:!0,get:function(){return E.getApiUrl}});var S=r(34);Object.defineProperty(t,"hideEmailSignInSuccessModal",{enumerable:!0,get:function(){return S.hideEmailSignInSuccessModal}}),Object.defineProperty(t,"hideEmailSignInErrorModal",{enumerable:!0,get:function(){return S.hideEmailSignInErrorModal}}),Object.defineProperty(t,"hideOAuthSignInSuccessModal",{enumerable:!0,get:function(){return S.hideOAuthSignInSuccessModal}}),Object.defineProperty(t,"hideOAuthSignInErrorModal",{enumerable:!0,get:function(){return S.hideOAuthSignInErrorModal}}),Object.defineProperty(t,"hideSignOutSuccessModal",{enumerable:!0,get:function(){return S.hideSignOutSuccessModal}}),Object.defineProperty(t,"hideSignOutErrorModal",{enumerable:!0,get:function(){return S.hideSignOutErrorModal}}),Object.defineProperty(t,"hideEmailSignUpSuccessModal",{enumerable:!0,get:function(){return S.hideEmailSignUpSuccessModal}}),Object.defineProperty(t,"hideEmailSignUpErrorModal",{enumerable:!0,get:function(){return S.hideEmailSignUpErrorModal}}),Object.defineProperty(t,"showFirstTimeLoginSuccessModal",{enumerable:!0,get:function(){return S.showFirstTimeLoginSuccessModal}}),Object.defineProperty(t,"showPasswordResetSuccessModal",{enumerable:!0,get:function(){return S.showPasswordResetSuccessModal}}),Object.defineProperty(t,"hideFirstTimeLoginSuccessModal",{enumerable:!0,get:function(){return S.hideFirstTimeLoginSuccessModal}}),Object.defineProperty(t,"hidePasswordResetSuccessModal",{enumerable:!0,get:function(){return S.hidePasswordResetSuccessModal}}),Object.defineProperty(t,"showFirstTimeLoginErrorModal",{enumerable:!0,get:function(){return S.showFirstTimeLoginErrorModal}}),Object.defineProperty(t,"showPasswordResetErrorModal",{enumerable:!0,get:function(){return S.showPasswordResetErrorModal}}),Object.defineProperty(t,"hideFirstTimeLoginErrorModal",{enumerable:!0,get:function(){return S.hideFirstTimeLoginErrorModal}}),Object.defineProperty(t,"hidePasswordResetErrorModal",{enumerable:!0,get:function(){return S.hidePasswordResetErrorModal}}),Object.defineProperty(t,"hidePasswordResetRequestSuccessModal",{enumerable:!0,get:function(){return S.hidePasswordResetRequestSuccessModal}}),Object.defineProperty(t,"hidePasswordResetRequestErrorModal",{enumerable:!0,get:function(){return S.hidePasswordResetRequestErrorModal}}),Object.defineProperty(t,"hideUpdatePasswordSuccessModal",{enumerable:!0,get:function(){return S.hideUpdatePasswordSuccessModal}}),Object.defineProperty(t,"hideUpdatePasswordErrorModal",{enumerable:!0,get:function(){return S.hideUpdatePasswordErrorModal}}),Object.defineProperty(t,"hideDestroyAccountSuccessModal",{enumerable:!0,get:function(){return S.hideDestroyAccountSuccessModal}}),Object.defineProperty(t,"hideDestroyAccountErrorModal",{enumerable:!0,get:function(){return S.hideDestroyAccountErrorModal}});var p=r(12);Object.defineProperty(t,"fetch",{enumerable:!0,get:function(){return n(p)["default"]}});var O=r(47),R=n(O),T=r(48),P=n(T),A=r(59),g=n(A),M=r(56),I=n(M),h=r(50),D=n(h),m=r(51),y=n(m),v=r(52),U=n(v),b=r(53),N=n(b),C=r(58),L=n(C),w=r(57),j=n(w),K=r(54),G=n(K),H=r(55),F=n(H),W=r(49),V=n(W),k=r(10),Y=r(41),q=n(Y);t.authStateReducer=(0,k.combineReducers)({configure:P["default"],emailSignIn:D["default"],emailSignUp:y["default"],signOut:F["default"],authentication:R["default"],requestPasswordReset:N["default"],oAuthSignIn:U["default"],updatePassword:L["default"],updatePasswordModal:j["default"],destroyAccount:V["default"],server:G["default"],ui:I["default"],user:g["default"]});t.verifyAuth=q["default"]},,,,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 u(e,t,r){return{type:A,endpoints:e,currentEndpointKey:t,defaultEndpointKey:r}}function i(e){return{type:g,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,l.authenticateStart)());var n=void 0,o=void 0,i=void 0,a=void 0,s=void 0;if(t.isServer)n=(0,O["default"])(e,t).then(function(e){var t=e.user,n=e.headers,o=e.firstTimeLogin,i=e.mustResetPassword,a=e.currentEndpoint,s=e.currentEndpointKey,d=e.defaultEndpointKey;return r((0,f.ssAuthTokenUpdate)({headers:n,user:t,firstTimeLogin:o,mustResetPassword:i})),r(u(Object.keys(a),s,d)),t})["catch"](function(e){var t=e.reason,n=e.firstTimeLogin,o=e.mustResetPassword,i=e.currentEndpoint,a=e.defaultEndpointKey;return r((0,f.ssAuthTokenUpdate)({firstTimeLogin:n,mustResetPassword:o})),r(u(Object.keys(i||{}),null,a)),Promise.reject({reason:t})});else{var c=document.getElementById("token-bridge");if(c){var p=c.innerHTML;if(p){var R=JSON.parse(p);s=R.headers,a=R.user,o=R.firstTimeLogin,i=R.mustResetPassword,a&&(r((0,l.authenticateComplete)(a)),t.initialCredentials=R),r((0,f.ssAuthTokenUpdate)({user:a,headers:s,mustResetPassword:i,firstTimeLogin:o}))}}var A=(0,T["default"])(window.location),g=A.authRedirectPath,M=A.authRedirectHeaders;g&&r((0,P.push)({pathname:g})),M&&M.uid&&M["access-token"]&&(t.initialCredentials=(0,d["default"])({},t.initialCredentials,M)),(!t.clientOnly&&!t.initialCredentials||t.cleanSession)&&(0,S.destroySession)(),n=Promise.resolve((0,E.applyConfig)({dispatch:r,endpoint:e,settings:t}))}return n.then(function(e){return r((0,l.authenticateComplete)(e)),o&&r((0,_.showFirstTimeLoginSuccessModal)()),i&&r((0,_.showPasswordResetSuccessModal)()),e})["catch"](function(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],t=e.reason;return r((0,l.authenticateError)([t])),o&&r((0,_.showFirstTimeLoginErrorModal)()),i&&r((0,_.showPasswordResetErrorModal)()),Promise.resolve({reason:t})})}}Object.defineProperty(t,"__esModule",{value:!0}),t.STORE_CURRENT_ENDPOINT_KEY=t.SET_ENDPOINT_KEYS=void 0,t.setEndpointKeys=u,t.storeCurrentEndpointKey=i,t.configure=a;var s=r(16),d=o(s),c=r(19),l=(n(c),r(24)),_=r(34),f=r(29),E=r(60),S=r(11),p=r(41),O=o(p),R=r(37),T=o(R),P=r(148),A=t.SET_ENDPOINT_KEYS="SET_ENDPOINT_KEYS",g=t.STORE_CURRENT_ENDPOINT_KEY="STORE_CURRENT_ENDPOINT_KEY"},,,,,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 u(e){G.authState.currentSettings=e}function i(){return G.authState.currentSettings}function a(e){G.authState.currentEndpoint=e}function s(){return G.authState.currentEndpoint}function d(e){N(K.SAVED_CONFIG_KEY,e||_())}function c(){return C(K.SAVED_CONFIG_KEY)||_()}function l(e){N(K.DEFAULT_CONFIG_KEY,e)}function _(){return C(K.DEFAULT_CONFIG_KEY)}function f(){G.authState=G.authState||{},G.authState.currentSettings={},G.authState.currentEndpoint={},E()}function E(){var e=[K.SAVED_CREDS_KEY,K.SAVED_CONFIG_KEY];for(var t in e)t=e[t],G.localStorage&&G.localStorage.removeItem(t),w["default"].erase(t,{path:G.authState.currentSettings.cookiePath||"/"})}function S(e){return e&&e.replace(/("|')/g,"")}function p(){return S(w["default"].get(K.SAVED_CONFIG_KEY)||G.localStorage&&G.localStorage.getItem(K.SAVED_CONFIG_KEY))}function O(e){var t=e||c();if(t)return t;throw"You must configure redux-auth before use."}function R(e){return s()[O(e)]}function T(e){return""+v(e)+R(e).accountDeletePath}function P(e){return""+v(e)+R(e).signOutPath}function A(e){return""+v(e)+R(e).emailSignInPath}function g(e){return""+v(e)+R(e).emailRegistrationPath+"?config_name="+e}function M(e){return""+v(e)+R(e).passwordResetPath+"?config_name="+e}function I(e){return""+v(e)+R(e).passwordUpdatePath}function h(e){return""+v(e)+R(e).tokenValidationPath}function D(e){var t=e.provider,r=e.params,n=e.endpointKey,o=v(n)+R(n).authProviderPaths[t]+"?auth_origin_url="+encodeURIComponent(G.location.href)+"&config_name="+encodeURIComponent(O(n));if(r)for(var u in r)o+="&",o+=encodeURIComponent(u),o+="=",o+=encodeURIComponent(r[u]);return o}function m(){return G.authState.currentSettings.confirmationSuccessUrl()}function y(){return G.authState.currentSettings.confirmationSuccessUrl()}function v(e){var t=O(e);return G.authState.currentEndpoint[t].apiUrl}function U(){return G.authState.currentSettings.tokenFormat}function b(e){switch(G.authState.currentSettings.storage){case"localStorage":G.localStorage.removeItem(e);break;default:w["default"].erase(e)}}function N(e,t){switch(t=JSON.stringify(t),G.authState.currentSettings.storage){case"localStorage":G.localStorage.setItem(e,t);break;default:w["default"].set(e,t,{expires:G.authState.currentSettings.cookieExpiry,path:G.authState.currentSettings.cookiePath})}}function C(e,t){var r=null;switch(t||G.authState.currentSettings.storage){case"localStorage":r=G.localStorage&&G.localStorage.getItem(e);break;default:r=w["default"].get(e)}try{return JSON.parse(r)}catch(n){return S(r)}}Object.defineProperty(t,"__esModule",{value:!0}),t.setCurrentSettings=u,t.getCurrentSettings=i,t.setCurrentEndpoint=a,t.getCurrentEndpoint=s,t.setCurrentEndpointKey=d,t.getCurrentEndpointKey=c,t.setDefaultEndpointKey=l,t.getDefaultEndpointKey=_,t.resetConfig=f,t.destroySession=E,t.getInitialEndpointKey=p,t.getSessionEndpointKey=O,t.getSessionEndpoint=R,t.getDestroyAccountUrl=T,t.getSignOutUrl=P,t.getEmailSignInUrl=A,t.getEmailSignUpUrl=g,t.getPasswordResetRequestUrl=M,t.getPasswordUpdateUrl=I,t.getTokenValidationPath=h,t.getOAuthUrl=D,t.getConfirmationSuccessUrl=m,t.getPasswordResetRedirectUrl=y,t.getApiUrl=v,t.getTokenFormat=U,t.removeData=b,t.persistData=N,t.retrieveData=C;var L=r(140),w=o(L),j=r(19),K=n(j),G=Function("return this")()||(0,eval)("this");G.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 u(e,t){return Object.assign({},t,{Authorization:"Bearer "+e})}function i(e){if(S(e)){var t=(0,E.retrieveData)(l.SAVED_CREDS_KEY)||{},r={};r["If-Modified-Since"]="Mon, 26 Jul 1997 05:00:00 GMT";for(var n in(0,E.getTokenFormat)())r[n]=t[n];return u(t["access-token"],r)}return{}}function a(e){if(S(e.url)){var t={},r=!0;for(var n in(0,E.getTokenFormat)())t[n]=e.headers.get(n),t[n]&&(r=!1);r||(0,E.persistData)(l.SAVED_CREDS_KEY,t)}return e}Object.defineProperty(t,"__esModule",{value:!0}),t.addAuthorizationHeader=u,t["default"]=function(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];return t.headers||(t.headers={}),(0,f["default"])(t.headers,i(e)),(0,d["default"])(e,t).then(function(e){return a(e)})};var s=r(42),d=o(s),c=r(19),l=n(c),_=r(16),f=o(_),E=r(11),S=function(e){return e.match((0,E.getApiUrl)((0,E.getSessionEndpointKey)()))}},,,,function(e,t){e.exports=require("extend")},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){"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){"use strict";function r(){return{type:u}}function n(e){return{type:i,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 u=t.AUTHENTICATE_START="AUTHENTICATE_START",i=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 u(e,t){return{type:E,endpoint:t,message:e}}function i(e,t){return{type:S,endpoint:t,errors:e}}function a(e){return function(t){return t(o(e)),(0,_["default"])((0,s.getDestroyAccountUrl)(e),{method:"delete"}).then(d.parseResponse).then(function(r){var n=r.message;t(u(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(i(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=u,t.destroyAccountError=i,t.destroyAccount=a;var s=r(11),d=r(17),c=r(5),l=r(12),_=n(l),f=t.DESTROY_ACCOUNT_START="DESTROY_ACCOUNT_START",E=t.DESTROY_ACCOUNT_COMPLETE="DESTROY_ACCOUNT_COMPLETE",S=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:O,endpoint:e,key:t,value:r}}function u(e){return{type:E,endpoint:e}}function i(e,t){return{type:S,user:t,endpoint:e}}function a(e,t){return{type:p,errors:t,endpoint:e}}function s(e,t){return function(r){var n=(0,d.getCurrentEndpointKey)();(0,d.setCurrentEndpointKey)(t);var o=(0,d.getCurrentEndpointKey)();return r((0,c.storeCurrentEndpointKey)(o)),r(u(o)),(0,f["default"])((0,d.getEmailSignInUrl)(o),{headers:{Accept:"application/json","Content-Type":"application/json"},method:"post",body:JSON.stringify(e)}).then(l.parseResponse).then(function(e){return r(i(o,e))})["catch"](function(e){throw(0,d.setCurrentEndpointKey)(n),r((0,c.storeCurrentEndpointKey)(n)),r(a(o,e)),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=u,t.emailSignInComplete=i,t.emailSignInError=a,t.emailSignIn=s;var d=r(11),c=r(5),l=r(17),_=r(12),f=n(_),E=t.EMAIL_SIGN_IN_START="EMAIL_SIGN_IN_START",S=t.EMAIL_SIGN_IN_COMPLETE="EMAIL_SIGN_IN_COMPLETE",p=t.EMAIL_SIGN_IN_ERROR="EMAIL_SIGN_IN_ERROR",O=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,t,r){return{type:R,endpoint:e,key:t,value:r}}function u(e){return{type:S,endpoint:e}}function i(e,t){return{type:p,user:e,endpoint:t}}function a(e,t){return{type:O,errors:e,endpoint:t}}function s(e,t){return function(r){return r(u(t)),(0,E["default"])((0,d.getEmailSignUpUrl)(t),{headers:{Accept:"application/json","Content-Type":"application/json"},method:"post",body:JSON.stringify((0,_["default"])(e,{confirm_success_url:(0,d.getConfirmationSuccessUrl)()}))}).then(c.parseResponse).then(function(e){var n=e.data;return r(i(n,t))})["catch"](function(e){var n=e.errors;throw r(a(n,t)),n})}}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=u,t.emailSignUpComplete=i,t.emailSignUpError=a,t.emailSignUp=s;var d=r(11),c=r(17),l=r(16),_=n(l),f=r(12),E=n(f),S=t.EMAIL_SIGN_UP_START="EMAIL_SIGN_UP_START",p=t.EMAIL_SIGN_UP_COMPLETE="EMAIL_SIGN_UP_COMPLETE",O=t.EMAIL_SIGN_UP_ERROR="EMAIL_SIGN_UP_ERROR",R=t.EMAIL_SIGN_UP_FORM_UPDATE="EMAIL_SIGN_UP_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 u(e,t,r,n,o){if(!n)return new Promise(function(n,o){u(e,t,r,n,o)});var i=void 0;try{i=(0,f.getAllParams)(t.location)}catch(a){}i&&i.uid?(t.close(),(0,E.persistData)(_.SAVED_CREDS_KEY,(0,f.normalizeTokenKeys)(i)),(0,R["default"])((0,E.getTokenValidationPath)(e)).then(p.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(){u(e,t,r,n,o)},0)}function i(e){var t=e.endpointKey,r=e.provider,n=e.url,o=e.tab,i=void 0!==o&&o,a=i?"_blank":r,s=I(r,n,a);return u(t,s,r)}function a(e,t){return{type:A,provider:e,endpoint:t}}function s(e,t){return{type:g,user:e,endpoint:t}}function d(e,t){return{type:M,errors:e,endpoint:t}}function c(e){var t=e.provider,r=e.params,n=e.endpointKey;return function(e){var o=(0,E.getCurrentEndpointKey)();(0,E.setCurrentEndpointKey)(n),e((0,S.storeCurrentEndpointKey)(n));var u=(0,E.getCurrentEndpointKey)();e(a(t,u));var c=(0,E.getOAuthUrl)({provider:t,params:r,currentEndpointKey:u});return i({endpointKey:n,provider:t,url:c}).then(function(t){return e(s(t,u))})["catch"](function(t){var r=t.errors;throw(0,E.setCurrentEndpointKey)(o),e((0,S.storeCurrentEndpointKey)(o)),e(d(r,u)),r})}}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=d,t.oAuthSignIn=c;var l=r(19),_=o(l),f=r(37),E=r(11),S=r(5),p=r(17),O=r(12),R=n(O),T=r(61),P=n(T),A=t.OAUTH_SIGN_IN_START="OAUTH_SIGN_IN_START",g=t.OAUTH_SIGN_IN_COMPLETE="OAUTH_SIGN_IN_COMPLETE",M=t.OAUTH_SIGN_IN_ERROR="OAUTH_SIGN_IN_ERROR",I=P["default"]},function(e,t){"use strict";function r(e){var t=e.user,r=e.headers,o=e.mustResetPassword,u=e.firstTimeLogin,i=e.endpointKey;return{type:n,user:t,headers:r,mustResetPassword:o,firstTimeLogin:u,endpointKey:i}}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 u(e,t){return{type:E,user:t,endpoint:e}}function i(e,t){return{type:S,endpoint:e,errors:t}}function a(e){return function(t){return t(o(e)),(0,_["default"])((0,s.getSignOutUrl)(e),{method:"delete"}).then(d.parseResponse).then(function(r){t(u(e,r)),t((0,c.storeCurrentEndpointKey)(null)),(0,s.destroySession)()})["catch"](function(r){var n=r.errors;throw t(i(e,n)),t((0,c.storeCurrentEndpointKey)(null)),(0,s.destroySession)(),n})}}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=u,t.signOutError=i,t.signOut=a;var s=r(11),d=r(17),c=r(5),l=r(12),_=n(l),f=t.SIGN_OUT_START="SIGN_OUT_START",E=t.SIGN_OUT_COMPLETE="SIGN_OUT_COMPLETE",S=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:R,endpoint:e,key:t,value:r}}function u(e){return{type:S,endpoint:e}}function i(e,t){return{type:p,endpoint:e,message:t}}function a(e,t){return{type:O,endpoint:e,errors:t}}function s(e,t){return function(r){return r(u(t)),(0,E["default"])((0,d.getPasswordResetRequestUrl)(t),{headers:{Accept:"application/json","Content-Type":"application/json"},method:"post",body:JSON.stringify((0,_["default"])(e,{redirect_url:(0,d.getPasswordResetRedirectUrl)(t)}))}).then(c.parseResponse).then(function(e){var n=e.message;return r(i(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=u,t.requestPasswordResetComplete=i,t.requestPasswordResetError=a,t.requestPasswordReset=s;var d=r(11),c=r(17),l=r(16),_=n(l),f=r(12),E=n(f),S=t.REQUEST_PASSWORD_RESET_START="REQUEST_PASSWORD_RESET_START",p=t.REQUEST_PASSWORD_RESET_COMPLETE="REQUEST_PASSWORD_RESET_COMPLETE",O=t.REQUEST_PASSWORD_RESET_ERROR="REQUEST_PASSWORD_RESET_ERROR",R=t.REQUEST_PASSWORD_RESET_FORM_UPDATE="REQUEST_PASSWORD_RESET_FORM_UPDATE"},function(e,t){"use strict";function r(){return{type:I}}function n(){return{type:h}}function o(){return{type:D}}function u(){return{type:m}}function i(){return{type:v}}function a(){return{type:y}}function s(){return{type:U}}function d(){return{type:b}}function c(){return{type:N}}function l(){return{type:w}}function _(){return{type:C}}function f(){return{type:L}}function E(){return{type:j}}function S(){return{type:H}}function p(){return{type:K}}function O(){return{type:G}}function R(){return{type:F}}function T(){return{type:W}}function P(){return{type:V}}function A(){return{type:k}}function g(){return{type:Y}}function M(){return{type:q}}Object.defineProperty(t,"__esModule",{value:!0}),t.hideEmailSignInSuccessModal=r,t.hideEmailSignInErrorModal=n,t.hideOAuthSignInSuccessModal=o,t.hideOAuthSignInErrorModal=u,t.hideSignOutSuccessModal=i,t.hideSignOutErrorModal=a,t.hideEmailSignUpSuccessModal=s,t.hideEmailSignUpErrorModal=d,t.showFirstTimeLoginSuccessModal=c,t.showPasswordResetSuccessModal=l,t.hideFirstTimeLoginSuccessModal=_,t.hidePasswordResetSuccessModal=f,t.showFirstTimeLoginErrorModal=E,t.showPasswordResetErrorModal=S,t.hideFirstTimeLoginErrorModal=p,t.hidePasswordResetErrorModal=O,t.hidePasswordResetRequestSuccessModal=R,t.hidePasswordResetRequestErrorModal=T,t.hideUpdatePasswordSuccessModal=P,t.hideUpdatePasswordErrorModal=A,t.hideDestroyAccountSuccessModal=g,t.hideDestroyAccountErrorModal=M;var I=t.HIDE_EMAIL_SIGN_IN_SUCCESS_MODAL="HIDE_EMAIL_SIGN_IN_SUCCESS_MODAL",h=t.HIDE_EMAIL_SIGN_IN_ERROR_MODAL="HIDE_EMAIL_SIGN_IN_ERROR_MODAL",D=t.HIDE_OAUTH_SIGN_IN_SUCCESS_MODAL="HIDE_OAUTH_SIGN_IN_SUCCESS_MODAL",m=t.HIDE_OAUTH_SIGN_IN_ERROR_MODAL="HIDE_OAUTH_SIGN_IN_ERROR_MODAL",y=t.HIDE_SIGN_OUT_ERROR_MODAL="HIDE_SIGN_OUT_ERROR_MODAL",v=t.HIDE_SIGN_OUT_SUCCESS_MODAL="HIDE_SIGN_OUT_SUCCESS_MODAL",U=t.HIDE_EMAIL_SIGN_UP_SUCCESS_MODAL="HIDE_EMAIL_SIGN_UP_SUCCESS_MODAL",b=t.HIDE_EMAIL_SIGN_UP_ERROR_MODAL="HIDE_EMAIL_SIGN_UP_ERROR_MODAL",N=t.SHOW_FIRST_TIME_LOGIN_SUCCESS_MODAL="SHOW_FIRST_TIME_LOGIN_SUCCESS_MODAL",C=t.HIDE_FIRST_TIME_LOGIN_SUCCESS_MODAL="HIDE_FIRST_TIME_LOGIN_SUCCESS_MODAL",L=t.HIDE_PASSWORD_RESET_SUCCESS_MODAL="HIDE_PASSWORD_RESET_SUCCESS_MODAL",w=t.SHOW_PASSWORD_RESET_SUCCESS_MODAL="SHOW_PASSWORD_RESET_SUCCESS_MODAL",j=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",G=t.HIDE_PASSWORD_RESET_ERROR_MODAL="HIDE_PASSWORD_RESET_ERROR_MODAL",H=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",W=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",k=t.HIDE_UPDATE_PASSWORD_ERROR_MODAL="HIDE_UPDATE_PASSWORD_ERROR_MODAL",Y=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:p,endpoint:e,key:t,value:r}}function u(e){return{type:f}}function i(e,t){return{type:E,endpoint:e,user:t}}function a(e,t){return{type:S,endpoint:e,errors:t}}function s(e,t){return function(r){return r(u(t)),(0,_["default"])((0,d.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(i(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=u,t.updatePasswordModalComplete=i,t.updatePasswordModalError=a,t.updatePasswordModal=s;var d=r(11),c=r(17),l=r(12),_=n(l),f=t.UPDATE_PASSWORD_MODAL_START="UPDATE_PASSWORD_MODAL_START",E=t.UPDATE_PASSWORD_MODAL_COMPLETE="UPDATE_PASSWORD_MODAL_COMPLETE",S=t.UPDATE_PASSWORD_MODAL_ERROR="UPDATE_PASSWORD_MODAL_ERROR",p=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:p,endpoint:e,key:t,value:r}}function u(e){return{type:f,endpoint:e}}function i(e,t){return{type:E,endpoint:e,user:t}}function a(e,t){return{type:S,endpoint:e,errors:t}}function s(e,t){return function(r){return r(u(t)),(0,_["default"])((0,d.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(i(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=u,t.updatePasswordComplete=i,t.updatePasswordError=a,t.updatePassword=s;var d=r(11),c=r(17),l=r(12),_=n(l),f=t.UPDATE_PASSWORD_START="UPDATE_PASSWORD_START",E=t.UPDATE_PASSWORD_COMPLETE="UPDATE_PASSWORD_COMPLETE",S=t.UPDATE_PASSWORD_ERROR="UPDATE_PASSWORD_ERROR",p=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 u(e){return(0,c["default"])({},f(e),_(e))}function i(e){if(e){var t=["access-token","token","auth_token","config","client","client_id","expiry","uid","reset_password","account_confirmation_success"],r=S(e,t),n=p(e,t);return n!==e?{authRedirectHeaders:r,authRedirectPath:n}:{}}return{}}Object.defineProperty(t,"__esModule",{value:!0}),t.normalizeTokenKeys=o,t.getAllParams=u,t["default"]=i;var a=r(146),s=n(a),d=r(16),c=n(d),l=function(e){var t=e.anchor||"",r=t.split("?");return r.length>1?r[1]:null},_=function(e){var t=e.search||"",r=t.replace("?",""),n=r?s["default"].parse(r):{};return n},f=function(e){var t=l(e),r=t?s["default"].parse(t):{};return r},E=function(e,t){for(var r in t)delete e[t[r]];return e},S=function(e,t){var r=u(e),n={},i=!0,a=!1,s=void 0;try{for(var d,c=t[Symbol.iterator]();!(i=(d=c.next()).done);i=!0){var l=d.value;n[l]=r[l]}}catch(_){a=!0,s=_}finally{try{!i&&c["return"]&&c["return"]()}finally{if(a)throw s}}return o(n)},p=function(e,t){var r=s["default"].stringify(E(_(e),t)),n=s["default"].stringify(E(f(e),t)),o=(e.hash||"").split("?")[0];r&&(r="?"+r),n&&(o+="?"+n),o&&!o.match(/^#/)&&(o="#/"+o);var u=e.pathname+r+o;return 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 u(e){for(var t in e)return t}function i(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 i=u(e[o]);t||(t=i),n[i]=(0,c["default"])({},l,e[o][i])}return{defaultEndpointKey:t,currentEndpoint:n}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=i;var a=r(19),s=o(a),d=r(16),c=n(d),l={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 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"===s(t[u])&&(t[u]=t[u][0]),r=!1)}if(!r)return t}function i(e){var t=e.rawEndpoints,r=e.cookies,n=e.currentLocation,o=(0,E["default"])(A["default"].parse(n)),i=o.authRedirectHeaders;return new Promise(function(e,n){if(r||i){var o,a,d,l,f,E,S=function(){var s=_["default"].parse(r||"{}"),S=JSON.parse(s.authHeaders||"false"),R=void 0,P=void 0,A=void 0,g=void 0;if(i&&i.uid&&i["access-token"]?(g=u(i),A=i.endpointKey||null,P=JSON.parse(i.reset_password||"false"),R=JSON.parse(i.account_confirmation_success||"false")):s&&S&&(g=S,
A=JSON.parse(s[p.SAVED_CONFIG_KEY]||"null"),P=JSON.parse(S.mustResetPassword||"false"),R=JSON.parse(S.firstTimeLogin||"false")),!g)return{v:n({reason:"No creds",currentEndpoint:d,defaultEndpointKey:l})};var M=(0,T["default"])(t);d=M.currentEndpoint,l=M.defaultEndpointKey;var I=d[A||l];return f=I.apiUrl,E=I.tokenValidationPath,a=""+f+E+"?unbatch=true",{v:(0,c["default"])(a,{headers:(0,O.addAuthorizationHeader)(g["access-token"],g)}).then(function(e){return o=u(e.headers.raw()),e.json()}).then(function(t){return t.success?e({headers:o,user:t.data,mustResetPassword:P,firstTimeLogin:R,currentEndpoint:d,currentEndpointKey:A,defaultEndpointKey:l}):n({reason:t.errors,mustResetPassword:P,firstTimeLogin:R,currentEndpoint:d,defaultEndpointKey:l})})["catch"](function(e){return n({reason:e,firstTimeLogin:R,mustResetPassword:P,currentEndpoint:d,defaultEndpointKey:l})})}}();if("object"===("undefined"==typeof S?"undefined":s(S)))return S.v}else{var R=(0,T["default"])(t),P=R.currentEndpoint,A=R.defaultEndpointKey;n({reason:"No creds",currentEndpoint:P,defaultEndpointKey:A})}})}function a(e,t){var r=t.isServer,n=t.cookies,o=t.currentLocation;return new Promise(function(t,u){if(r)return i({rawEndpoints:e,cookies:n,currentLocation:o}).then(function(e){return t(e)})["catch"](function(e){return u(e)})})}Object.defineProperty(t,"__esModule",{value:!0});var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};t.fetchToken=i;var d=r(42),c=o(d),l=r(141),_=o(l),f=r(37),E=o(f),S=r(19),p=n(S),O=r(12),R=r(40),T=o(R),P=r(149),A=o(P);t["default"]=a},function(e,t){e.exports=require("isomorphic-fetch")},,,,,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 u(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 i,a=r(4),s=o(a),d=r(10),c=r(24),l=n(c),_=s["default"].fromJS({loading:!1,valid:!1,errors:null});t["default"]=(0,d.createReducer)(_,(i={},u(i,l.AUTHENTICATE_START,function(e){return e.set("loading",!0)}),u(i,l.AUTHENTICATE_COMPLETE,function(e){return e.merge({loading:!1,errors:null,valid:!0})}),u(i,l.AUTHENTICATE_ERROR,function(e){return e.merge({loading:!1,errors:"Invalid token",valid:!1})}),i))},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 u(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 i,a=r(4),s=o(a),d=r(10),c=r(5),l=n(c),_=s["default"].fromJS({loading:!0,errors:null,config:null,endpointKeys:null,defaultEndpointKey:null,currentEndpointKey:null});t["default"]=(0,d.createReducer)(_,(i={},u(i,l.CONFIGURE_START,function(e){return e.set("loading",!0)}),u(i,l.STORE_CURRENT_ENDPOINT_KEY,function(e,t){var r=t.currentEndpointKey;return e.merge({currentEndpointKey:r})}),u(i,l.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})}),u(i,l.CONFIGURE_COMPLETE,function(e,t){var r=t.config;return e.merge({loading:!1,errors:null,config:r})}),u(i,l.CONFIGURE_ERROR,function(e,t){var r=t.errors;return e.merge({loading:!1,errors:r})}),i))},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 u(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 i,a=r(4),s=o(a),d=r(10),c=r(25),l=n(c),_=r(5),f={loading:!1,errors:null};t["default"]=(0,d.createReducer)(s["default"].fromJS({}),(i={},u(i,_.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},{}))}),u(i,l.DESTROY_ACCOUNT_START,function(e,t){var r=t.endpoint;return e.setIn([r,"loading"],!0)}),u(i,l.DESTROY_ACCOUNT_COMPLETE,function(e,t){var r=t.endpoint;return e.merge(u({},r,f))}),u(i,l.DESTROY_ACCOUNT_ERROR,function(e,t){var r=t.endpoint,n=t.errors;return e.merge(u({},r,{loading:!1,errors:n}))}),i))},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 u(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 i,a=r(4),s=o(a),d=r(10),c=r(26),l=n(c),_=r(5),f={loading:!1,errors:null,form:{}};t["default"]=(0,d.createReducer)(s["default"].fromJS({}),(i={},u(i,_.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},{}))}),u(i,l.EMAIL_SIGN_IN_START,function(e,t){var r=t.endpoint;return e.setIn([r,"loading"],!0)}),u(i,l.EMAIL_SIGN_IN_COMPLETE,function(e,t){var r=t.endpoint;return e.merge(u({},r,f))}),u(i,l.EMAIL_SIGN_IN_ERROR,function(e,t){var r=t.endpoint,n=t.errors;return e.mergeDeep(u({},r,{loading:!1,errors:n}))}),u(i,l.EMAIL_SIGN_IN_FORM_UPDATE,function(e,t){var r=t.endpoint,n=t.key,o=t.value;return e.mergeDeep(u({},r,{form:u({},n,o)}))}),i))},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 u(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 i,a=r(4),s=o(a),d=r(10),c=r(27),l=n(c),_=r(5),f={loading:!1,errors:null,form:{}};t["default"]=(0,d.createReducer)(s["default"].fromJS({}),(i={},u(i,_.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},{}))}),u(i,l.EMAIL_SIGN_UP_START,function(e,t){var r=t.endpoint;return e.setIn([r,"loading"],!0)}),u(i,l.EMAIL_SIGN_UP_COMPLETE,function(e,t){var r=t.endpoint;return e.merge(u({},r,f))}),u(i,l.EMAIL_SIGN_UP_ERROR,function(e,t){var r=t.endpoint,n=t.errors;return e.mergeDeep(u({},r,{loading:!1,errors:n}))}),u(i,l.EMAIL_SIGN_UP_FORM_UPDATE,function(e,t){var r=t.endpoint,n=t.key,o=t.value;return e.mergeDeep(u({},r,{form:u({},n,o)}))}),i))},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 u(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 i,a=r(4),s=o(a),d=r(10),c=r(28),l=n(c),_=r(5),f={loading:!1,errors:null};t["default"]=(0,d.createReducer)(s["default"].fromJS({}),(i={},u(i,_.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},{}))}),u(i,l.OAUTH_SIGN_IN_START,function(e,t){var r=t.endpoint;return e.setIn([r,"loading"],!0)}),u(i,l.OAUTH_SIGN_IN_COMPLETE,function(e,t){var r=t.endpoint;return e.mergeDeep(u({},r,{loading:!1,errors:null}))}),u(i,l.OAUTH_SIGN_IN_ERROR,function(e,t){var r=t.endpoint,n=t.errors;return e.mergeDeep(u({},r,{loading:!1,errors:n}))}),i))},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 u(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 i,a=r(4),s=o(a),d=r(10),c=r(33),l=n(c),_=r(5),f={loading:!1,errors:null,form:{}};t["default"]=(0,d.createReducer)(s["default"].fromJS({}),(i={},u(i,_.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},{}))}),u(i,l.REQUEST_PASSWORD_RESET_START,function(e,t){var r=t.endpoint;return e.setIn([r,"loading"],!0)}),u(i,l.REQUEST_PASSWORD_RESET_COMPLETE,function(e,t){var r=t.endpoint;return e.merge(u({},r,f))}),u(i,l.REQUEST_PASSWORD_RESET_ERROR,function(e,t){var r=t.endpoint,n=t.errors;return e.mergeDeep(u({},r,{loading:!1,errors:n}))}),u(i,l.REQUEST_PASSWORD_RESET_FORM_UPDATE,function(e,t){var r=t.endpoint,n=t.key,o=t.value;return e.mergeDeep(u({},r,{form:u({},n,o)}))}),i))},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 u(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 i=r(4),a=o(i),s=r(10),d=r(29),c=n(d),l=a["default"].fromJS({user:null,headers:null,firstTimeLogin:!1,mustResetPassword:!1});t["default"]=(0,s.createReducer)(l,u({},c.SS_AUTH_TOKEN_UPDATE,function(e,t){var r=t.user,n=void 0===r?null:r,o=t.headers,u=void 0===o?null:o,i=t.mustResetPassword,a=void 0!==i&&i,s=t.firstTimeLogin,d=void 0!==s&&s;return e.merge({user:n,headers:u,mustResetPassword:a,firstTimeLogin:d})}))},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 u(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 i,a=r(4),s=o(a),d=r(10),c=r(30),l=n(c),_=r(5),f={loading:!1,errors:null};t["default"]=(0,d.createReducer)(s["default"].fromJS({}),(i={},u(i,_.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},{}))}),u(i,l.SIGN_OUT_START,function(e,t){var r=t.endpoint;return e.setIn([r,"loading"],!0)}),u(i,l.SIGN_OUT_COMPLETE,function(e,t){var r=t.endpoint;return e.mergeDeep(u({},r,{loading:!1,errors:null}))}),u(i,l.SIGN_OUT_ERROR,function(e,t){var r=t.endpoint,n=t.errors;return e.mergeDeep(u({},r,{loading:!1,errors:n}))}),i))},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 u(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 i,a=r(4),s=o(a),d=r(10),c=r(34),l=n(c),_=r(26),f=n(_),E=r(27),S=n(E),p=r(30),O=n(p),R=r(33),T=n(R),P=r(28),A=n(P),g=r(36),M=n(g),I=r(25),h=n(I),D=r(35),m=n(D),y=r(29),v=n(y),U=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,d.createReducer)(U,(i={},u(i,f.EMAIL_SIGN_IN_COMPLETE,function(e){return e.set("emailSignInSuccessModalVisible",!0)}),u(i,f.EMAIL_SIGN_IN_ERROR,function(e){return e.set("emailSignInErrorModalVisible",!0)}),u(i,A.OAUTH_SIGN_IN_COMPLETE,function(e){return e.merge({oAuthSignInSuccessModalVisible:!0,oAuthSignInLoadingProvider:null})}),u(i,A.OAUTH_SIGN_IN_ERROR,function(e){return e.merge({oAuthSignInErrorModalVisible:!0,oAuthSignInLoadingProvider:null})}),u(i,A.OAUTH_SIGN_IN_START,function(e,t){var r=t.provider;return e.merge({oAuthSignInLoadingProvider:r})}),u(i,l.HIDE_EMAIL_SIGN_IN_SUCCESS_MODAL,function(e){return e.set("emailSignInSuccessModalVisible",!1)}),u(i,l.HIDE_EMAIL_SIGN_IN_ERROR_MODAL,function(e){return e.set("emailSignInErrorModalVisible",!1)}),u(i,O.SIGN_OUT_COMPLETE,function(e){return e.set("signOutSuccessModalVisible",!0)}),u(i,O.SIGN_OUT_ERROR,function(e){return e.set("signOutErrorModalVisible",!0)}),u(i,l.HIDE_SIGN_OUT_SUCCESS_MODAL,function(e){return e.set("signOutSuccessModalVisible",!1)}),u(i,l.HIDE_SIGN_OUT_ERROR_MODAL,function(e){return e.set("signOutErrorModalVisible",!1)}),u(i,S.EMAIL_SIGN_UP_COMPLETE,function(e,t){var r=t.user;return e.merge({emailSignUpSuccessModalVisible:!0,emailSignUpAddress:r.email})}),u(i,S.EMAIL_SIGN_UP_ERROR,function(e){return e.set("emailSignUpErrorModalVisible",!0)}),u(i,l.HIDE_EMAIL_SIGN_UP_SUCCESS_MODAL,function(e){return e.merge({emailSignUpSuccessModalVisible:!1,emailSignUpAddress:null})}),u(i,l.HIDE_EMAIL_SIGN_UP_ERROR_MODAL,function(e){return e.set("emailSignUpErrorModalVisible",!1)}),u(i,l.SHOW_FIRST_TIME_LOGIN_SUCCESS_MODAL,function(e){return e.set("firstTimeLoginSuccessModalVisible",!0)}),u(i,l.HIDE_FIRST_TIME_LOGIN_SUCCESS_MODAL,function(e){return e.set("firstTimeLoginSuccessModalVisible",!1)}),u(i,l.HIDE_PASSWORD_RESET_SUCCESS_MODAL,function(e){return e.set("passwordResetSuccessModalVisible",!1)}),u(i,l.SHOW_PASSWORD_RESET_SUCCESS_MODAL,function(e){return e.set("passwordResetSuccessModalVisible",!0)}),u(i,l.SHOW_FIRST_TIME_LOGIN_ERROR_MODAL,function(e){return e.set("firstTimeLoginErrorModalVisible",!0)}),u(i,l.HIDE_FIRST_TIME_LOGIN_ERROR_MODAL,function(e){return e.set("firstTimeLoginErrorModalVisible",!1)}),u(i,l.HIDE_PASSWORD_RESET_ERROR_MODAL,function(e){return e.set("passwordResetErrorModalVisible",!1)}),u(i,l.SHOW_PASSWORD_RESET_ERROR_MODAL,function(e){return e.set("passwordResetErrorModalVisible",!0)}),u(i,T.REQUEST_PASSWORD_RESET_COMPLETE,function(e,t){var r=t.message;return e.merge({requestPasswordResetSuccessModalVisible:!0,requestPasswordResetSuccessMessage:r})}),u(i,T.REQUEST_PASSWORD_RESET_ERROR,function(e){return e.set("requestPasswordResetErrorModalVisible",!0)}),u(i,l.HIDE_REQUEST_PASSWORD_RESET_SUCCESS_MODAL,function(e){return e.merge({requestPasswordResetSuccessModalVisible:!1,requestPasswordResetSuccessMessage:null})}),u(i,l.HIDE_REQUEST_PASSWORD_RESET_ERROR_MODAL,function(e){return e.set("requestPasswordResetErrorModalVisible",!1)}),u(i,l.HIDE_OAUTH_SIGN_IN_SUCCESS_MODAL,function(e){return e.set("oAuthSignInSuccessModalVisible",!1)}),u(i,l.HIDE_OAUTH_SIGN_IN_ERROR_MODAL,function(e){return e.set("oAuthSignInErrorModalVisible",!1)}),u(i,M.UPDATE_PASSWORD_COMPLETE,function(e){return e.set("updatePasswordSuccessModalVisible",!0)}),u(i,M.UPDATE_PASSWORD_ERROR,function(e){return e.set("updatePasswordErrorModalVisible",!0)}),u(i,l.HIDE_UPDATE_PASSWORD_SUCCESS_MODAL,function(e){return e.set("updatePasswordSuccessModalVisible",!1)}),u(i,l.HIDE_UPDATE_PASSWORD_ERROR_MODAL,function(e){return e.set("updatePasswordErrorModalVisible",!1)}),u(i,h.DESTROY_ACCOUNT_COMPLETE,function(e,t){var r=t.message;return e.merge({destroyAccountSuccessModalVisible:!0,destroyAccountMessage:r})}),u(i,h.DESTROY_ACCOUNT_ERROR,function(e){return e.set("destroyAccountErrorModalVisible",!0)}),u(i,l.HIDE_DESTROY_ACCOUNT_SUCCESS_MODAL,function(e){return e.merge({destroyAccountSuccessModalVisible:!1,destroyAccountMessage:null})}),u(i,l.HIDE_DESTROY_ACCOUNT_ERROR_MODAL,function(e){return e.set("destroyAccountErrorModalVisible",!1)}),u(i,v.SS_AUTH_TOKEN_UPDATE,function(e,t){var r=t.mustResetPassword,n=t.firstTimeLogin;return e.merge({passwordResetSuccessModalVisible:r,firstTimeLoginSuccessModalVisible:n})}),u(i,l.HIDE_PASSWORD_RESET_SUCCESS_MODAL,function(e){return e.set("passwordResetSuccessModalVisible",!1)}),u(i,l.HIDE_PASSWORD_RESET_ERROR_MODAL,function(e){return e.set("passwordResetSuccessModalVisible",!1)}),u(i,m.UPDATE_PASSWORD_MODAL_COMPLETE,function(e){return e.merge({passwordResetSuccessModalVisible:!1,updatePasswordSuccessModalVisible:!0})}),i))},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 u(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 i,a=r(4),s=o(a),d=r(10),c=r(35),l=n(c),_=r(5),f={loading:!1,errors:null,form:{}};t["default"]=(0,d.createReducer)(s["default"].fromJS({}),(i={},u(i,_.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},{}))}),u(i,l.UPDATE_PASSWORD_MODAL_START,function(e,t){var r=t.endpoint;return e.setIn([r,"loading"],!0)}),u(i,l.UPDATE_PASSWORD_MODAL_COMPLETE,function(e,t){var r=t.endpoint;return e.merge(u({},r,f))}),u(i,l.UPDATE_PASSWORD_MODAL_ERROR,function(e,t){var r=t.endpoint,n=t.errors;return e.mergeDeep(u({},r,{loading:!1,errors:n}))}),u(i,l.UPDATE_PASSWORD_MODAL_FORM_UPDATE,function(e,t){var r=t.endpoint,n=t.key,o=t.value;return e.mergeDeep(u({},r,{form:u({},n,o)}))}),i))},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 u(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 i,a=r(4),s=o(a),d=r(10),c=r(36),l=n(c),_=r(5),f={loading:!1,errors:null,form:{}};t["default"]=(0,d.createReducer)(s["default"].fromJS({}),(i={},u(i,_.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},{}))}),u(i,l.UPDATE_PASSWORD_START,function(e,t){var r=t.endpoint;return e.setIn([r,"loading"],!0)}),u(i,l.UPDATE_PASSWORD_COMPLETE,function(e,t){var r=t.endpoint;return e.merge(u({},r,f))}),u(i,l.UPDATE_PASSWORD_ERROR,function(e,t){var r=t.endpoint,n=t.errors;return e.mergeDeep(u({},r,{loading:!1,errors:n}))}),u(i,l.UPDATE_PASSWORD_FORM_UPDATE,function(e,t){var r=t.endpoint,n=t.key,o=t.value;return e.mergeDeep(u({},r,{form:u({},n,o)}))}),i))},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 u(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 i,a=r(4),s=o(a),d=r(10),c=r(11),l=r(24),_=n(l),f=r(26),E=r(27),S=r(30),p=r(28),O=r(25),R=r(29),T=n(R),P=r(5),A=s["default"].fromJS({attributes:null,isSignedIn:!1,firstTimeLogin:!1,mustResetPassword:!1,endpointKey:null});t["default"]=(0,d.createReducer)(A,(i={},u(i,_.AUTHENTICATE_COMPLETE,function(e,t){var r=t.user;return e.merge({attributes:r,isSignedIn:!0,endpointKey:(0,c.getCurrentEndpointKey)()})}),u(i,T.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})}),u(i,P.STORE_CURRENT_ENDPOINT_KEY,function(e,t){var r=t.currentEndpointKey;return e.set("endpointKey",r)}),u(i,P.SET_ENDPOINT_KEYS,function(e,t){var r=t.currentEndpointKey;return e.set("endpointKey",r)}),u(i,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})}),u(i,E.EMAIL_SIGN_UP_COMPLETE,function(e,t){var r=t.endpoint,n=t.user;return n.uid?e.merge({attributes:n,isSignedIn:!0,endpointKey:r}):e}),u(i,p.OAUTH_SIGN_IN_COMPLETE,function(e,t){var r=t.endpoint,n=t.user;return e.merge({attributes:n,isSignedIn:!0,endpointKey:r})}),u(i,T.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})}),u(i,_.AUTHENTICATE_FAILURE,function(e){return e.merge(A)}),u(i,T.SS_TOKEN_VALIDATION_ERROR,function(e){return e.merge(A)}),u(i,S.SIGN_OUT_COMPLETE,function(e){return e.merge(A)}),u(i,S.SIGN_OUT_ERROR,function(e){return e.merge(A)}),u(i,O.DESTROY_ACCOUNT_COMPLETE,function(e){return e.merge(A)}),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 u(){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,u=void 0===o?{}:o,i=e.reset,s=void 0!==i&&i,c=void 0;s&&resetConfig(),u.initialCredentials&&(c=u.initialCredentials.currentEndpointKey),(0,S.setCurrentSettings)((0,d["default"])({},O,u));var _=(0,f["default"])(n,(0,S.getInitialEndpointKey)()),p=_.defaultEndpointKey,R=_.currentEndpoint;c||(c=p),(0,S.setDefaultEndpointKey)(p),(0,S.setCurrentEndpoint)(R),t((0,E.setEndpointKeys)(Object.keys(R),c,p)),(0,S.setCurrentEndpointKey)(c);var T=(0,S.retrieveData)(a.SAVED_CREDS_KEY);if((0,S.getCurrentSettings)().initialCredentials){var P=(0,S.getCurrentSettings)().initialCredentials,A=P.user,g=P.headers;return(0,S.persistData)(a.SAVED_CREDS_KEY,g),Promise.resolve(A)}return T?(0,l["default"])(""+(0,S.getApiUrl)(c)+R[c].tokenValidationPath).then(function(e){return e.status>=200&&e.status<300?e.json().then(function(e){var t=e.data;return t}):((0,S.removeData)(a.SAVED_CREDS_KEY),Promise.reject({reason:"No credentials."}))}):Promise.reject({reason:"No credentials."})}Object.defineProperty(t,"__esModule",{value:!0}),t.applyConfig=u;var i=r(19),a=o(i),s=r(16),d=n(s),c=r(12),l=n(c),_=r(40),f=n(_),E=r(5),S=r(11),p=Function("return this")()||(0,eval)("this"),O={proxyIf:function(){return!1},proxyUrl:"/proxy",forceHardRedirect:!1,storage:"cookies",cookieExpiry:14,cookiePath:"/",initialCredentials:null,passwordResetSuccessUrl:function(){return p.location.href},confirmationSuccessUrl:function(){return p.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,u=n+window.innerWidth/2-t/2,i=o+window.innerHeight/2-r/2;return{top:i,left:u}}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,u=t.height,i=r({width:o,height:u}),a=i.top,s=i.left;return"width="+o+",height="+u+",top="+a+",left="+s}function u(e,t,r){return window.open(t,r,i+","+o(e))}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=u;var i="scrollbars=no,toolbar=no,location=no,titlebar=no,directories=no,status=no,menubar=no"},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t){e.exports=require("browser-cookies")},function(e,t){e.exports=require("cookie")},,,,,function(e,t){e.exports=require("querystring")},,function(e,t){e.exports=require("react-router-redux")},function(e,t){e.exports=require("url")}]));