{"ast":null,"code":"import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { useGridApiContext } from '../../hooks/utils/useGridApiContext';\nimport { useGridLogger } from '../../hooks/utils/useGridLogger';\nimport { GridMainContainer } from '../containers/GridMainContainer';\nimport { ErrorBoundary } from '../ErrorBoundary';\nimport { useGridRootProps } from '../../hooks/utils/useGridRootProps';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nfunction GridErrorHandler(props) {\n const {\n children\n } = props;\n const apiRef = useGridApiContext();\n const logger = useGridLogger(apiRef, 'GridErrorHandler');\n const rootProps = useGridRootProps();\n const errorState = apiRef.current.state.error;\n return /*#__PURE__*/_jsx(ErrorBoundary, {\n hasError: errorState != null,\n api: apiRef,\n logger: logger,\n render: errorProps => {\n var _rootProps$components;\n return /*#__PURE__*/_jsx(GridMainContainer, {\n children: /*#__PURE__*/_jsx(rootProps.components.ErrorOverlay, _extends({}, errorProps, errorState, (_rootProps$components = rootProps.componentsProps) == null ? void 0 : _rootProps$components.errorOverlay))\n });\n },\n children: children\n });\n}\nprocess.env.NODE_ENV !== \"production\" ? GridErrorHandler.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"yarn proptypes\" |\n // ----------------------------------------------------------------------\n children: PropTypes.node\n} : void 0;\nexport { GridErrorHandler };","map":{"version":3,"names":["_extends","React","PropTypes","useGridApiContext","useGridLogger","GridMainContainer","ErrorBoundary","useGridRootProps","jsx","_jsx","GridErrorHandler","props","children","apiRef","logger","rootProps","errorState","current","state","error","hasError","api","render","errorProps","_rootProps$components","components","ErrorOverlay","componentsProps","errorOverlay","process","env","NODE_ENV","propTypes","node"],"sources":["/home/gnx/Desktop/ETB/ETB-FrontEnd/node_modules/@mui/x-data-grid/components/base/GridErrorHandler.js"],"sourcesContent":["import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { useGridApiContext } from '../../hooks/utils/useGridApiContext';\nimport { useGridLogger } from '../../hooks/utils/useGridLogger';\nimport { GridMainContainer } from '../containers/GridMainContainer';\nimport { ErrorBoundary } from '../ErrorBoundary';\nimport { useGridRootProps } from '../../hooks/utils/useGridRootProps';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\n\nfunction GridErrorHandler(props) {\n const {\n children\n } = props;\n const apiRef = useGridApiContext();\n const logger = useGridLogger(apiRef, 'GridErrorHandler');\n const rootProps = useGridRootProps();\n const errorState = apiRef.current.state.error;\n return /*#__PURE__*/_jsx(ErrorBoundary, {\n hasError: errorState != null,\n api: apiRef,\n logger: logger,\n render: errorProps => {\n var _rootProps$components;\n\n return /*#__PURE__*/_jsx(GridMainContainer, {\n children: /*#__PURE__*/_jsx(rootProps.components.ErrorOverlay, _extends({}, errorProps, errorState, (_rootProps$components = rootProps.componentsProps) == null ? void 0 : _rootProps$components.errorOverlay))\n });\n },\n children: children\n });\n}\n\nprocess.env.NODE_ENV !== \"production\" ? GridErrorHandler.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the TypeScript types and run \"yarn proptypes\" |\n // ----------------------------------------------------------------------\n children: PropTypes.node\n} : void 0;\nexport { GridErrorHandler };"],"mappings":"AAAA,OAAOA,QAAQ,MAAM,oCAAoC;AACzD,OAAO,KAAKC,KAAK,MAAM,OAAO;AAC9B,OAAOC,SAAS,MAAM,YAAY;AAClC,SAASC,iBAAiB,QAAQ,qCAAqC;AACvE,SAASC,aAAa,QAAQ,iCAAiC;AAC/D,SAASC,iBAAiB,QAAQ,iCAAiC;AACnE,SAASC,aAAa,QAAQ,kBAAkB;AAChD,SAASC,gBAAgB,QAAQ,oCAAoC;AACrE,SAASC,GAAG,IAAIC,IAAI,QAAQ,mBAAmB;AAE/C,SAASC,gBAAgBA,CAACC,KAAK,EAAE;EAC/B,MAAM;IACJC;EACF,CAAC,GAAGD,KAA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