payroll_manager/front-end/build/cache-loader/861e415adce71084be0ae56ecc15868c.json

1 line
7.7 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-reset/password-reset.reducer.ts","dependencies":[{"path":"/var/www/html/payroll_manager/front-end/src/main/webapp/app/modules/account/password-reset/password-reset.reducer.ts","mtime":1533613272017},{"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 RESET_PASSWORD_INIT: 'passwordReset/RESET_PASSWORD_INIT',\n RESET_PASSWORD_FINISH: 'passwordReset/RESET_PASSWORD_FINISH',\n RESET: 'passwordReset/RESET'\n};\nvar initialState = {\n loading: false,\n resetPasswordSuccess: false,\n resetPasswordFailure: 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.RESET_PASSWORD_FINISH):\n case REQUEST(ACTION_TYPES.RESET_PASSWORD_INIT):\n return tslib_1.__assign({}, state, { loading: true });\n case FAILURE(ACTION_TYPES.RESET_PASSWORD_FINISH):\n case FAILURE(ACTION_TYPES.RESET_PASSWORD_INIT):\n return tslib_1.__assign({}, initialState, { loading: false, resetPasswordFailure: true });\n case SUCCESS(ACTION_TYPES.RESET_PASSWORD_FINISH):\n case SUCCESS(ACTION_TYPES.RESET_PASSWORD_INIT):\n return tslib_1.__assign({}, initialState, { loading: false, resetPasswordSuccess: true });\n case ACTION_TYPES.RESET:\n return tslib_1.__assign({}, initialState);\n default:\n return state;\n }\n});\nvar apiUrl = 'api/account/reset-password';\n// Actions\nexport var handlePasswordResetInit = function (mail) {\n var _a;\n return ({\n type: ACTION_TYPES.RESET_PASSWORD_INIT,\n // If the content-type isn't set that way, axios will try to encode the body and thus modify the data sent to the server.\n payload: axios.post(apiUrl + \"/init\", mail, { headers: (_a = {}, _a['Content-Type'] = 'text/plain', _a) }),\n meta: {\n successMessage: 'Check your emails for details on how to reset your password.',\n errorMessage: \"<strong>Email address isn't registered!</strong> Please check and try again\"\n }\n });\n};\nexport var handlePasswordResetFinish = function (key, newPassword) { return ({\n type: ACTION_TYPES.RESET_PASSWORD_FINISH,\n payload: axios.post(apiUrl + \"/finish\", { key: key, newPassword: newPassword }),\n meta: {\n successMessage: '<strong>Your password has been reset.</strong> Please '\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-reset/password-reset.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-reset/password-reset.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,mBAAmB,EAAE,mCAAmC;IACxD,qBAAqB,EAAE,qCAAqC;IAC5D,KAAK,EAAE,qBAAqB;CAC7B,CAAC;AAEF,IAAM,YAAY,GAAG;IAC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AQ7C,CAAC;AAEH,MAAM,CAAC,IAAM,yBAAyB,GAAG,UAAC,GAAG,EAAE,WAAW,IAAK,OAAA,CAAC;IAC9D,IAAI,EAAE,YAAY,CAAC,qBAAqB;IACxC,OAAO,EAAE,KAAK,CAAC,IAAI,CAAI,MAAM,YAAS,EAAE,EAAE,GAAG,KAAA,EAAE,WAAW,aAAA,EAAE,CAAC;IAC7D,IAAI,EAAE;QACJ,cAAc,EAAE,wDAAwD;KACzE;CACF,CAAC,EAN6D,CAM7D,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 RESET_PASSWORD_INIT: 'passwordReset/RESET_PASSWORD_INIT',\n RESET_PASSWORD_FINISH: 'passwordReset/RESET_PASSWORD_FINISH',\n RESET: 'passwordReset/RESET'\n};\n\nconst initialState = {\n loading: false,\n resetPasswordSuccess: false,\n resetPasswordFailure: false\n};\n\nexport type PasswordResetState = Readonly<typeof initialState>;\n\n// Reducer\nexport default (state: PasswordResetState = initialState, action): PasswordResetState => {\n switch (action.type) {\n case REQUEST(ACTION_TYPES.RESET_PASSWORD_FINISH):\n case REQUEST(ACTION_TYPES.RESET_PASSWORD_INIT):\n return {\n ...state,\n loading: true\n };\n case FAILURE(ACTION_TYPES.RESET_PASSWORD_FINISH):\n case FAILURE(ACTION_TYPES.RESET_PASSWORD_INIT):\n return {\n ...initialState,\n loading: false,\n resetPasswordFailure: true\n };\n case SUCCESS(ACTION_TYPES.RESET_PASSWORD_FINISH):\n case SUCCESS(ACTION_TYPES.RESET_PASSWORD_INIT):\n return {\n ...initialState,\n loading: false,\n resetPasswordSuccess: true\n };\n case ACTION_TYPES.RESET:\n return {\n ...initialState\n };\n default:\n return state;\n }\n};\n\nconst apiUrl = 'api/account/reset-password';\n\n// Actions\nexport const handlePasswordResetInit = mail => ({\n type: ACTION_TYPES.RESET_PASSWORD_INIT,\n // If the content-type isn't set that way, axios will try to encode the body and thus modify the data sent to the server.\n payload: axios.post(`${apiUrl}/init`, mail, { headers: { ['Content-Type']: 'text/plain' } }),\n meta: {\n successMessage: 'Check your emails for details on how to reset your password.',\n errorMessage: \"<strong>Email address isn't registered!</strong> Please check and try again\"\n }\n});\n\nexport const handlePasswordResetFinish = (key, newPassword) => ({\n type: ACTION_TYPES.RESET_PASSWORD_FINISH,\n payload: axios.post(`${apiUrl}/finish`, { key, newPassword }),\n meta: {\n successMessage: '<strong>Your password has been reset.</strong> Please '\n }\n});\n\nexport const reset = () => ({\n type: ACTION_TYPES.RESET\n});\n"]}]}