payroll_manager/front-end/build/cache-loader/9cb917e7467736c4dd49d8bbc05035b2.json

1 line
5.8 KiB
JSON

{"remainingRequest":"/var/www/html/payroll_manager/front-end/node_modules/thread-loader/dist/cjs.js??ref--4-2!/var/www/html/payroll_manager/front-end/node_modules/ts-loader/index.js??ref--4-3!/var/www/html/payroll_manager/front-end/node_modules/tslint-loader/index.js!/var/www/html/payroll_manager/front-end/src/main/webapp/app/modules/account/register/register.reducer.ts","dependencies":[{"path":"/var/www/html/payroll_manager/front-end/src/main/webapp/app/modules/account/register/register.reducer.ts","mtime":1533613271965},{"path":"/var/www/html/payroll_manager/front-end/node_modules/react-hot-loader/webpack.js","mtime":1505850161000},{"path":"/var/www/html/payroll_manager/front-end/node_modules/cache-loader/dist/cjs.js","mtime":0},{"path":"/var/www/html/payroll_manager/front-end/node_modules/thread-loader/dist/cjs.js","mtime":0},{"path":"/var/www/html/payroll_manager/front-end/node_modules/ts-loader/index.js","mtime":1530127508000},{"path":"/var/www/html/payroll_manager/front-end/node_modules/tslint-loader/index.js","mtime":1519899048000}],"contextDependencies":[],"result":["import * as tslib_1 from \"tslib\";\nimport axios from 'axios';\nimport { REQUEST, SUCCESS, FAILURE } from 'app/shared/reducers/action-type.util';\nexport var ACTION_TYPES = {\n CREATE_ACCOUNT: 'register/CREATE_ACCOUNT',\n RESET: 'register/RESET'\n};\nvar initialState = {\n loading: false,\n registrationSuccess: false,\n registrationFailure: false,\n errorMessage: null\n};\n// Reducer\nexport default (function (state, action) {\n if (state === void 0) { state = initialState; }\n switch (action.type) {\n case REQUEST(ACTION_TYPES.CREATE_ACCOUNT):\n return tslib_1.__assign({}, state, { loading: true });\n case FAILURE(ACTION_TYPES.CREATE_ACCOUNT):\n return tslib_1.__assign({}, initialState, { registrationFailure: true, errorMessage: action.payload.response.data.errorKey });\n case SUCCESS(ACTION_TYPES.CREATE_ACCOUNT):\n return tslib_1.__assign({}, initialState, { registrationSuccess: true });\n case ACTION_TYPES.RESET:\n return tslib_1.__assign({}, initialState);\n default:\n return state;\n }\n});\n// Actions\nexport var handleRegister = function (login, email, password, langKey) {\n if (langKey === void 0) { langKey = 'en'; }\n return ({\n type: ACTION_TYPES.CREATE_ACCOUNT,\n payload: axios.post('api/register', { login: login, email: email, password: password, langKey: langKey }),\n meta: {\n successMessage: '<strong>Registration saved!</strong> Please check your email for confirmation.'\n }\n });\n};\nexport var reset = function () { return ({\n type: ACTION_TYPES.RESET\n}); };\n",{"version":3,"file":"/var/www/html/payroll_manager/front-end/src/main/webapp/app/modules/account/register/register.reducer.ts","sourceRoot":"","sources":["/var/www/html/payroll_manager/front-end/node_modules/tslint-loader/index.js!/var/www/html/payroll_manager/front-end/src/main/webapp/app/modules/account/register/register.reducer.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,sCAAsC,CAAC;AAEjF,MAAM,CAAC,IAAM,YAAY,GAAG;IAC1B,cAAc,EAAE,yBAAyB;IACzC,KAAK,EAAE,gBAAgB;CACxB,CAAC;AAEF,IAAM,YAAY,GAAG;IACnB,OAAO,EAAE,KAAK;IACd,mBAAmB,EAAE,KAAK;IAC1B,mBAAmB,EAAE,KAAK;IAC1B,YAAY,EAAE,IAAI;CACnB,CAAC;AAIF,UAAU;AACV,gBAAe,UAAC,KAAmC,EAAE,MAAM;IAA3C,sBAAA,EAAA,oBAAmC;IACjD,QAAQ,MAAM,CAAC,IAAI,EAAE;QACnB,KAAK,OAAO,CAAC,YAAY,CAAC,cAAc,CAAC;YACvC,4BACK,KAAK,IACR,OAAO,EAAE,IAAI,IACb;QACJ,KAAK,OAAO,CAAC,YAAY,CAAC,cAAc,CAAC;YACvC,4BACK,YAAY,IACf,mBAAmB,EAAE,IAAI,EACzB,YAAY,EAAE,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,IACnD;QACJ,KAAK,OAAO,CAAC,YAAY,CAAC,cAAc,CAAC;YACvC,4BACK,YAAY,IACf,mBAAmB,EAAE,IAAI,IACzB;QACJ,KAAK,YAAY,CAAC,KAAK;YACrB,4BACK,YAAY,EACf;QACJ;YACE,OAAO,KAAK,CAAC;KAChB;AACH,CAAC,EAAC;AAEF,UAAU;AACV,MAAM,CAAC,IAAM,cAAc,GAAG,UAAC,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAc;IAAd,wBAAA,EAAA,cAAc;IAAK,OAAA,CAAC;QACzE,IAAI,EAAE,YAAY,CAAC,cAAc;QACjC,OAAO,EAAE,KAAK,CAAC,IAAI,CAAC,cAAc,EAAE,EAAE,KAAK,OAAA,EAAE,KAAK,OAAA,EAAE,QAAQ,UAAA,EAAE,OAAO,SAAA,EAAE,CAAC;QACxE,IAAI,EAAE;YACJ,cAAc,EAAE,gFAAgF;SACjG;KACF,CAAC;AANwE,CAMxE,CAAC;AAEH,MAAM,CAAC,IAAM,KAAK,GAAG,cAAM,OAAA,CAAC;IAC1B,IAAI,EAAE,YAAY,CAAC,KAAK;CACzB,CAAC,EAFyB,CAEzB,CAAC","sourcesContent":["import axios from 'axios';\n\nimport { REQUEST, SUCCESS, FAILURE } from 'app/shared/reducers/action-type.util';\n\nexport const ACTION_TYPES = {\n CREATE_ACCOUNT: 'register/CREATE_ACCOUNT',\n RESET: 'register/RESET'\n};\n\nconst initialState = {\n loading: false,\n registrationSuccess: false,\n registrationFailure: false,\n errorMessage: null\n};\n\nexport type RegisterState = Readonly<typeof initialState>;\n\n// Reducer\nexport default (state: RegisterState = initialState, action): RegisterState => {\n switch (action.type) {\n case REQUEST(ACTION_TYPES.CREATE_ACCOUNT):\n return {\n ...state,\n loading: true\n };\n case FAILURE(ACTION_TYPES.CREATE_ACCOUNT):\n return {\n ...initialState,\n registrationFailure: true,\n errorMessage: action.payload.response.data.errorKey\n };\n case SUCCESS(ACTION_TYPES.CREATE_ACCOUNT):\n return {\n ...initialState,\n registrationSuccess: true\n };\n case ACTION_TYPES.RESET:\n return {\n ...initialState\n };\n default:\n return state;\n }\n};\n\n// Actions\nexport const handleRegister = (login, email, password, langKey = 'en') => ({\n type: ACTION_TYPES.CREATE_ACCOUNT,\n payload: axios.post('api/register', { login, email, password, langKey }),\n meta: {\n successMessage: '<strong>Registration saved!</strong> Please check your email for confirmation.'\n }\n});\n\nexport const reset = () => ({\n type: ACTION_TYPES.RESET\n});\n"]}]}