payroll_manager/front-end/build/cache-loader/a7f3d13488a2100def2e7c63c256744a.json

1 line
6.0 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/password/password.reducer.ts","dependencies":[{"path":"/var/www/html/payroll_manager/front-end/src/main/webapp/app/modules/account/password/password.reducer.ts","mtime":1533613272041},{"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 UPDATE_PASSWORD: 'account/UPDATE_PASSWORD',\n RESET: 'account/RESET'\n};\nvar initialState = {\n loading: false,\n errorMessage: null,\n updateSuccess: false,\n updateFailure: false\n};\n// Reducer\nexport default (function (state, action) {\n if (state === void 0) { state = initialState; }\n switch (action.type) {\n case REQUEST(ACTION_TYPES.UPDATE_PASSWORD):\n return tslib_1.__assign({}, initialState, { errorMessage: null, updateSuccess: false, loading: true });\n case FAILURE(ACTION_TYPES.UPDATE_PASSWORD):\n return tslib_1.__assign({}, initialState, { loading: false, updateSuccess: false, updateFailure: true });\n case SUCCESS(ACTION_TYPES.UPDATE_PASSWORD):\n return tslib_1.__assign({}, initialState, { loading: false, updateSuccess: true, updateFailure: false });\n case ACTION_TYPES.RESET:\n return tslib_1.__assign({}, initialState);\n default:\n return state;\n }\n});\n// Actions\nvar apiUrl = 'api/account';\nexport var savePassword = function (currentPassword, newPassword) { return ({\n type: ACTION_TYPES.UPDATE_PASSWORD,\n payload: axios.post(apiUrl + \"/change-password\", { currentPassword: currentPassword, newPassword: newPassword }),\n meta: {\n successMessage: '<strong>Password changed!</strong>',\n errorMessage: '<strong>An error has occurred!</strong> The password could not be changed.'\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/password/password.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/password/password.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,eAAe,EAAE,yBAAyB;IAC1C,KAAK,EAAE,eAAe;CACvB,CAAC;AAEF,IAAM,YAAY,GAAG;IACnB,OAAO,EAAE,KAAK;IACd,YAAY,EAAE,IAAI;IAClB,aAAa,EAAE,KAAK;IACpB,aAAa,EAAE,KAAK;CACrB,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,eAAe,CAAC;YACxC,4BACK,YAAY,IACf,YAAY,EAAE,IAAI,EAClB,aAAa,EAAE,KAAK,EACpB,OAAO,EAAE,IAAI,IACb;QACJ,KAAK,OAAO,CAAC,YAAY,CAAC,eAAe,CAAC;YACxC,4BACK,YAAY,IACf,OAAO,EAAE,KAAK,EACd,aAAa,EAAE,KAAK,EACpB,aAAa,EAAE,IAAI,IACnB;QACJ,KAAK,OAAO,CAAC,YAAY,CAAC,eAAe,CAAC;YACxC,4BACK,YAAY,IACf,OAAO,EAAE,KAAK,EACd,aAAa,EAAE,IAAI,EACnB,aAAa,EAAE,KAAK,IACpB;QACJ,KAAK,YAAY,CAAC,KAAK;YACrB,4BACK,YAAY,EACf;QACJ;YACE,OAAO,KAAK,CAAC;KAChB;AACH,CAAC,EAAC;AAEF,UAAU;AACV,IAAM,MAAM,GAAG,aAAa,CAAC;AAE7B,MAAM,CAAC,IAAM,YAAY,GAAG,UAAC,eAAe,EAAE,WAAW,IAAK,OAAA,CAAC;IAC7D,IAAI,EAAE,YAAY,CAAC,eAAe;IAClC,OAAO,EAAE,KAAK,CAAC,IAAI,CAAI,MAAM,qBAAkB,EAAE,EAAE,eAAe,iBAAA,EAAE,WAAW,aAAA,EAAE,CAAC;IAClF,IAAI,EAAE;QACJ,cAAc,EAAE,oCAAoC;QACpD,YAAY,EAAE,4EAA4E;KAC3F;CACF,CAAC,EAP4D,CAO5D,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 UPDATE_PASSWORD: 'account/UPDATE_PASSWORD',\n RESET: 'account/RESET'\n};\n\nconst initialState = {\n loading: false,\n errorMessage: null,\n updateSuccess: false,\n updateFailure: false\n};\n\nexport type PasswordState = Readonly<typeof initialState>;\n\n// Reducer\nexport default (state: PasswordState = initialState, action): PasswordState => {\n switch (action.type) {\n case REQUEST(ACTION_TYPES.UPDATE_PASSWORD):\n return {\n ...initialState,\n errorMessage: null,\n updateSuccess: false,\n loading: true\n };\n case FAILURE(ACTION_TYPES.UPDATE_PASSWORD):\n return {\n ...initialState,\n loading: false,\n updateSuccess: false,\n updateFailure: true\n };\n case SUCCESS(ACTION_TYPES.UPDATE_PASSWORD):\n return {\n ...initialState,\n loading: false,\n updateSuccess: true,\n updateFailure: false\n };\n case ACTION_TYPES.RESET:\n return {\n ...initialState\n };\n default:\n return state;\n }\n};\n\n// Actions\nconst apiUrl = 'api/account';\n\nexport const savePassword = (currentPassword, newPassword) => ({\n type: ACTION_TYPES.UPDATE_PASSWORD,\n payload: axios.post(`${apiUrl}/change-password`, { currentPassword, newPassword }),\n meta: {\n successMessage: '<strong>Password changed!</strong>',\n errorMessage: '<strong>An error has occurred!</strong> The password could not be changed.'\n }\n});\n\nexport const reset = () => ({\n type: ACTION_TYPES.RESET\n});\n"]}]}