{"ast":null,"code":"import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"label\", \"icon\", \"showInMenu\", \"onClick\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport IconButton from '@mui/material/IconButton';\nimport MenuItem from '@mui/material/MenuItem';\nimport ListItemIcon from '@mui/material/ListItemIcon';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nconst GridActionsCellItem = /*#__PURE__*/React.forwardRef((props, ref) => {\n const {\n label,\n icon,\n showInMenu,\n onClick\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const handleClick = event => {\n if (onClick) {\n onClick(event);\n }\n };\n if (!showInMenu) {\n return /*#__PURE__*/_jsx(IconButton, _extends({\n ref: ref,\n size: \"small\",\n role: \"menuitem\",\n \"aria-label\": label\n }, other, {\n onClick: handleClick,\n children: /*#__PURE__*/React.cloneElement(icon, {\n fontSize: 'small'\n })\n }));\n }\n return /*#__PURE__*/_jsxs(MenuItem, _extends({\n ref: ref\n }, other, {\n onClick: onClick,\n children: [icon && /*#__PURE__*/_jsx(ListItemIcon, {\n children: icon\n }), label]\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? GridActionsCellItem.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 icon: PropTypes.element,\n label: PropTypes.string.isRequired,\n showInMenu: PropTypes.bool\n} : void 0;\nexport { GridActionsCellItem };","map":{"version":3,"names":["_extends","_objectWithoutPropertiesLoose","_excluded","React","PropTypes","IconButton","MenuItem","ListItemIcon","jsx","_jsx","jsxs","_jsxs","GridActionsCellItem","forwardRef","props","ref","label","icon","showInMenu","onClick","other","handleClick","event","size","role","children","cloneElement","fontSize","process","env","NODE_ENV","propTypes","element","string","isRequired","bool"],"sources":["/home/gnx/Desktop/ETB/ETB-FrontEnd/node_modules/@mui/x-data-grid/components/cell/GridActionsCellItem.js"],"sourcesContent":["import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"label\", \"icon\", \"showInMenu\", \"onClick\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport IconButton from '@mui/material/IconButton';\nimport MenuItem from '@mui/material/MenuItem';\nimport ListItemIcon from '@mui/material/ListItemIcon';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nconst GridActionsCellItem = /*#__PURE__*/React.forwardRef((props, ref) => {\n const {\n label,\n icon,\n showInMenu,\n onClick\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n\n const handleClick = event => {\n if (onClick) {\n onClick(event);\n }\n };\n\n if (!showInMenu) {\n return /*#__PURE__*/_jsx(IconButton, _extends({\n ref: ref,\n size: \"small\",\n role: \"menuitem\",\n \"aria-label\": label\n }, other, {\n onClick: handleClick,\n children: /*#__PURE__*/React.cloneElement(icon, {\n fontSize: 'small'\n })\n }));\n }\n\n return /*#__PURE__*/_jsxs(MenuItem, _extends({\n ref: ref\n }, other, {\n onClick: onClick,\n children: [icon && /*#__PURE__*/_jsx(ListItemIcon, {\n children: icon\n }), label]\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? GridActionsCellItem.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 icon: PropTypes.element,\n label: PropTypes.string.isRequired,\n showInMenu: PropTypes.bool\n} : void 0;\nexport { GridActionsCellItem };"],"mappings":"AAAA,OAAOA,QAAQ,MAAM,oCAAoC;AACzD,OAAOC,6BAA6B,MAAM,yDAAyD;AACnG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