"use strict";var e=require("@babel/runtime/helpers/defineProperty"),t=require("@babel/runtime/helpers/objectWithoutProperties"),r=require("react"),o=require("@material-ui/core"),i=require("prop-types"),a=require("classnames"),l=require("react/jsx-runtime");function s(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=s(e),p=s(t),u=s(i),c=s(a),d=["DisabledTooltipProps","disabled"];function b(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?b(Object(r),!0).forEach((function(t){n.default(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var j=o.makeStyles((function(e){return{disabled:{color:e.palette.primary.text9,opacity:1,cursor:"default"},tooltipTrigger:{position:"absolute",top:0,bottom:0,left:0,right:0}}})),m=r.forwardRef((function(e,t){var r=e.DisabledTooltipProps,i=void 0===r?void 0:r,a=e.disabled,s=void 0!==a&&a,n=p.default(e,d),u=j();return s?l.jsx(o.MenuItem,f(f({},n),{},{ref:t,className:c.default(u.disabled,n.className),tabIndex:-1,button:!1,children:l.jsxs(l.Fragment,{children:[n.children,l.jsx(o.Tooltip,f(f({title:"Disabled",placement:"right"},i),{},{children:l.jsx("div",{onClick:function(e){e.stopPropagation()},className:u.tooltipTrigger})}))]})})):l.jsx(o.MenuItem,f({},n))}));m.propTypes={disabled:u.default.bool,DisabledTooltipProps:u.default.shape({})},m.defaultProps={disabled:!1,DisabledTooltipProps:{}},module.exports=m;
