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

1 line
4.6 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/shared/error/error-boundary.tsx","dependencies":[{"path":"/var/www/html/payroll_manager/front-end/src/main/webapp/app/shared/error/error-boundary.tsx","mtime":1533613273369},{"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 React from 'react';\nvar ErrorBoundary = /** @class */ (function (_super) {\n tslib_1.__extends(ErrorBoundary, _super);\n function ErrorBoundary() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n _this.state = { error: undefined, errorInfo: undefined };\n return _this;\n }\n ErrorBoundary.prototype.componentDidCatch = function (error, errorInfo) {\n this.setState({\n error: error,\n errorInfo: errorInfo\n });\n };\n ErrorBoundary.prototype.render = function () {\n var _a = this.state, error = _a.error, errorInfo = _a.errorInfo;\n if (errorInfo) {\n var errorDetails = process.env.NODE_ENV === 'development' ? (React.createElement(\"details\", { className: \"preserve-space\" },\n error && error.toString(),\n React.createElement(\"br\", null),\n errorInfo.componentStack)) : (undefined);\n return (React.createElement(\"div\", null,\n React.createElement(\"h2\", { className: \"error\" }, \"An unexpected error has occurred.\"),\n errorDetails));\n }\n return this.props.children;\n };\n return ErrorBoundary;\n}(React.Component));\nexport default ErrorBoundary;\n",{"version":3,"file":"/var/www/html/payroll_manager/front-end/src/main/webapp/app/shared/error/error-boundary.tsx","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/shared/error/error-boundary.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAW1B;IAA4B,yCAAyD;IAArF;QAAA,qEAgCC;QA/BU,WAAK,GAAwB,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,CAAC;;IA+BnF,CAAC;IA7BC,yCAAiB,GAAjB,UAAkB,KAAK,EAAE,SAAS;QAChC,IAAI,CAAC,QAAQ,CAAC;YACZ,KAAK,OAAA;YACL,SAAS,WAAA;SACV,CAAC,CAAC;IACL,CAAC;IAED,8BAAM,GAAN;QACQ,IAAA,eAAiC,EAA/B,gBAAK,EAAE,wBAAS,CAAgB;QACxC,IAAI,SAAS,EAAE;YACb,IAAM,YAAY,GAChB,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,aAAa,CAAC,CAAC,CAAC,CACvC,iCAAS,SAAS,EAAC,gBAAgB;gBAChC,KAAK,IAAI,KAAK,CAAC,QAAQ,EAAE;gBAC1B,+BAAM;gBACL,SAAS,CAAC,cAAc,CACjB,CACX,CAAC,CAAC,CAAC,CACF,SAAS,CACV,CAAC;YACJ,OAAO,CACL;gBACE,4BAAI,SAAS,EAAC,OAAO,wCAAuC;gBAC3D,YAAY,CACT,CACP,CAAC;SACH;QACD,OAAO,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC;IAC7B,CAAC;IACH,oBAAC;AAAD,CAAC,AAhCD,CAA4B,KAAK,CAAC,SAAS,GAgC1C;AAED,eAAe,aAAa,CAAC","sourcesContent":["import React from 'react';\n\ninterface IErrorBoundaryProps {\n readonly children: JSX.Element | JSX.Element[];\n}\n\ninterface IErrorBoundaryState {\n readonly error: any;\n readonly errorInfo: any;\n}\n\nclass ErrorBoundary extends React.Component<IErrorBoundaryProps, IErrorBoundaryState> {\n readonly state: IErrorBoundaryState = { error: undefined, errorInfo: undefined };\n\n componentDidCatch(error, errorInfo) {\n this.setState({\n error,\n errorInfo\n });\n }\n\n render() {\n const { error, errorInfo } = this.state;\n if (errorInfo) {\n const errorDetails =\n process.env.NODE_ENV === 'development' ? (\n <details className=\"preserve-space\">\n {error && error.toString()}\n <br />\n {errorInfo.componentStack}\n </details>\n ) : (\n undefined\n );\n return (\n <div>\n <h2 className=\"error\">An unexpected error has occurred.</h2>\n {errorDetails}\n </div>\n );\n }\n return this.props.children;\n }\n}\n\nexport default ErrorBoundary;\n"]}]}