diff --git a/dummy/package.json b/dummy/package.json index aa51bed9..5ee0ea8f 100644 --- a/dummy/package.json +++ b/dummy/package.json @@ -39,6 +39,7 @@ "classnames": "^2.1.5", "config": "^1.17.1", "cookie": "^0.2.2", + "cross-fetch": "1.1.0", "exports-loader": "^0.6.2", "extend": "^3.0.0", "h2o2": "4.0.1", @@ -47,7 +48,6 @@ "immutable": "^3.7.5", "imports-loader": "^0.6.4", "inert": "3.0.1", - "isomorphic-fetch": "2.1.1", "jquery-deparam": "^0.4.2", "less": "^2.5.3", "less-loader": "^2.2.1", diff --git a/index.js b/index.js index b14242d3..b7306fcd 100644 --- a/index.js +++ b/index.js @@ -1,2 +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=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")}])); \ No newline at end of file +!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=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")}])); diff --git a/package.json b/package.json index c2f8df57..333f190b 100644 --- a/package.json +++ b/package.json @@ -1,124 +1,124 @@ -{ - "name": "redux-auth", - "description": "Complete token authentication system for react + redux.", - "version": "0.0.5-beta5", - "license": "WTFPL", - "repository": { - "type": "git", - "url": "https://github.com/lynndylanhurley/redux-auth.git" - }, - "homepage": "https://github.com/lynndylanhurley/redux-auth", - "keywords": [ - "react", - "isomorphic", - "universal", - "starter", - "boilerplate", - "template", - "webpack", - "koa", - "transmit" - ], - "main": "index.js", - "scripts": { - "release": "node ./node_modules/webpack/bin/webpack.js --verbose --colors --display-error-details --config webpack.release.js", - "test": "node_modules/.bin/_mocha --timeout 5000 --compilers .:test/compiler.js test/runner.js", - "test-coverage": "node_modules/.bin/babel-node node_modules/.bin/isparta cover --root ./src node_modules/.bin/_mocha -- --timeout 5000 test/runner.js && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js" - }, - "files": [ - "src", - "default-theme.js", - "bootstrap-theme.js", - "material-ui-theme.js", - "index.js", - "LICENSE.md", - "README.md" - ], - "dependencies": { - "browser-cookies": "^1.0.8", - "classnames": "^2.1.5", - "cookie": "^0.2.3", - "extend": "^3.0.0", - "immutable": "^3.7.5", - "isomorphic-fetch": "^2.1.1", - "query-string": "^2.4.2", - "rc-dialog": "^6.1.1", - "react-bootstrap": "^0.29.5", - "react-loader": "^2.4.0", - "redux-immutablejs": "0.0.8" - }, - "devDependencies": { - "babel-cli": "6.3.13", - "babel-core": "6.3.13", - "babel-loader": "6.1.0", - "babel-polyfill": "6.3.13", - "babel-preset-es2015": "6.3.13", - "babel-preset-react": "6.3.13", - "babel-preset-stage-0": "6.3.13", - "babel-register": "6.3.13", - "bootstrap": "^3.3.5", - "bootstrap-sass": "^3.3.5", - "bootstrap-webpack": "0.0.5", - "chai": "^3.3.0", - "chai-as-promised": "^5.1.0", - "concurrently": "0.1.1", - "coveralls": "^2.11.4", - "css-loader": "^0.19.0", - "exports-loader": "^0.6.2", - "extract-text-webpack-plugin": "0.9.1", - "fetch-mock": "^2.1.0", - "file-loader": "0.8.5", - "h2o2": "4.0.1", - "hapi": "9.3.1", - "highlight.js": "^8.8.0", - "imports-loader": "^0.6.4", - "inert": "3.0.1", - "install": "^0.3.0", - "invariant": "^2.2.0", - "isparta": "^4.0.0", - "istanbul": "^0.3.22", - "istanbul-instrumenter-loader": "^0.1.3", - "jquery": "^2.1.4", - "jquery-deparam": "^0.4.2", - "jsdom": "^9.4.1", - "jsdomify": "^2.1.0", - "json-loader": "0.5.4", - "material-ui": "0.15.2", - "mocha": "^2.3.4", - "mockery": "^1.4.0", - "nock": "^3.3.2", - "node-sass": "^3.3.3", - "nodemon": "^1.7.2", - "piping": "0.2.0", - "react": "^15.2.1", - "react-addons-test-utils": "^0.14.3", - "react-dom": "^15.2.1", - "react-hot-loader": "1.3.0", - "react-redux": "^3.1.2", - "react-router": "^2.5.2", - "react-router-bootstrap": "^0.19.0", - "react-router-redux": "^4.0.5", - "react-select": "^1.0.0-beta13", - "react-tap-event-plugin": "^0.2.1", - "react-transmit": "3.0.6", - "redux": "^3.3.1", - "redux-thunk": "^1.0.0", - "require-subvert": "^0.1.0", - "rewire": "^2.5.1", - "sass-loader": "^3.0.0", - "serialize-javascript": "^1.1.2", - "sinon": "1.17.0", - "style-loader": "^0.12.4", - "thunk": "^0.0.1", - "url-loader": "^0.5.6", - "warning": "^2.1.0", - "webpack": "1.12.9", - "webpack-dev-server": "1.14.0" - }, - "peerDependencies": { - "react-router-bootstrap": "*" - }, - "engines": { - "node": ">=0.10.32" - } -} +{ + "name": "redux-auth", + "description": "Complete token authentication system for react + redux.", + "version": "0.0.5-beta5", + "license": "WTFPL", + "repository": { + "type": "git", + "url": "https://github.com/lynndylanhurley/redux-auth.git" + }, + "homepage": "https://github.com/lynndylanhurley/redux-auth", + "keywords": [ + "react", + "isomorphic", + "universal", + "starter", + "boilerplate", + "template", + "webpack", + "koa", + "transmit" + ], + "main": "index.js", + "scripts": { + "release": "node ./node_modules/webpack/bin/webpack.js --verbose --colors --display-error-details --config webpack.release.js", + "test": "node_modules/.bin/_mocha --timeout 5000 --compilers .:test/compiler.js test/runner.js", + "test-coverage": "node_modules/.bin/babel-node node_modules/.bin/isparta cover --root ./src node_modules/.bin/_mocha -- --timeout 5000 test/runner.js && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js" + }, + "files": [ + "src", + "default-theme.js", + "bootstrap-theme.js", + "material-ui-theme.js", + "index.js", + "LICENSE.md", + "README.md" + ], + "dependencies": { + "browser-cookies": "^1.0.8", + "classnames": "^2.1.5", + "cookie": "^0.2.3", + "cross-fetch": "^1.1.0", + "extend": "^3.0.0", + "immutable": "^3.7.5", + "query-string": "^2.4.2", + "rc-dialog": "^6.1.1", + "react-bootstrap": "^0.29.5", + "react-loader": "^2.4.0", + "redux-immutablejs": "0.0.8" + }, + "devDependencies": { + "babel-cli": "6.3.13", + "babel-core": "6.3.13", + "babel-loader": "6.1.0", + "babel-polyfill": "6.3.13", + "babel-preset-es2015": "6.3.13", + "babel-preset-react": "6.3.13", + "babel-preset-stage-0": "6.3.13", + "babel-register": "6.3.13", + "bootstrap": "^3.3.5", + "bootstrap-sass": "^3.3.5", + "bootstrap-webpack": "0.0.5", + "chai": "^3.3.0", + "chai-as-promised": "^5.1.0", + "concurrently": "0.1.1", + "coveralls": "^2.11.4", + "css-loader": "^0.19.0", + "exports-loader": "^0.6.2", + "extract-text-webpack-plugin": "0.9.1", + "fetch-mock": "^2.1.0", + "file-loader": "0.8.5", + "h2o2": "4.0.1", + "hapi": "9.3.1", + "highlight.js": "^8.8.0", + "imports-loader": "^0.6.4", + "inert": "3.0.1", + "install": "^0.3.0", + "invariant": "^2.2.0", + "isparta": "^4.0.0", + "istanbul": "^0.3.22", + "istanbul-instrumenter-loader": "^0.1.3", + "jquery": "^2.1.4", + "jquery-deparam": "^0.4.2", + "jsdom": "^9.4.1", + "jsdomify": "^2.1.0", + "json-loader": "0.5.4", + "material-ui": "0.15.2", + "mocha": "^2.3.4", + "mockery": "^1.4.0", + "nock": "^3.3.2", + "node-sass": "^3.3.3", + "nodemon": "^1.7.2", + "piping": "0.2.0", + "react": "^15.2.1", + "react-addons-test-utils": "^0.14.3", + "react-dom": "^15.2.1", + "react-hot-loader": "1.3.0", + "react-redux": "^3.1.2", + "react-router": "^2.5.2", + "react-router-bootstrap": "^0.19.0", + "react-router-redux": "^4.0.5", + "react-select": "^1.0.0-beta13", + "react-tap-event-plugin": "^0.2.1", + "react-transmit": "3.0.6", + "redux": "^3.3.1", + "redux-thunk": "^1.0.0", + "require-subvert": "^0.1.0", + "rewire": "^2.5.1", + "sass-loader": "^3.0.0", + "serialize-javascript": "^1.1.2", + "sinon": "1.17.0", + "style-loader": "^0.12.4", + "thunk": "^0.0.1", + "url-loader": "^0.5.6", + "warning": "^2.1.0", + "webpack": "1.12.9", + "webpack-dev-server": "1.14.0" + }, + "peerDependencies": { + "react-router-bootstrap": "*" + }, + "engines": { + "node": ">=0.10.32" + } +} diff --git a/src/utils/fetch.js b/src/utils/fetch.js index ddd1f87a..082ec895 100644 --- a/src/utils/fetch.js +++ b/src/utils/fetch.js @@ -1,4 +1,4 @@ -import originalFetch from "isomorphic-fetch"; +import originalFetch from "cross-fetch"; import * as C from "./constants"; import extend from "extend"; import { diff --git a/src/utils/verify-auth.js b/src/utils/verify-auth.js index 31314ac8..af3f26d9 100644 --- a/src/utils/verify-auth.js +++ b/src/utils/verify-auth.js @@ -1,4 +1,4 @@ -import fetch from "isomorphic-fetch"; +import fetch from "cross-fetch"; import cookie from "cookie"; import getRedirectInfo from "../utils/parse-url"; import * as C from "../utils/constants"; diff --git a/webpack.release.js b/webpack.release.js index ad9863b8..2bfd1686 100644 --- a/webpack.release.js +++ b/webpack.release.js @@ -32,7 +32,7 @@ module.exports = { "extend": "commonjs extend", "history": "commonjs history", "immutable": "commonjs immutable", - "isomorphic-fetch": "commonjs isomorphic-fetch", + "cross-fetch": "commonjs cross-fetch", "query-string": "commonjs query-string", "querystring": "commonjs querystring", "react-dom": "commonjs react-dom",