"use strict";var e=require("@babel/runtime/helpers/defineProperty"),t=require("@babel/runtime/helpers/objectWithoutProperties"),r=require("react/jsx-runtime"),o=require("react"),i=require("@material-ui/core"),n=require("classnames");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l=a(e),s=a(t),c=a(n),u=["DisabledTooltipProps","disabled"];function p(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 b(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach((function(t){l.default(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var d=i.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}}})),f=o.forwardRef((function(e,t){var o=e.DisabledTooltipProps,n=void 0===o?void 0:o,a=e.disabled,l=void 0!==a&&a,p=s.default(e,u),f=d();return l?r.jsx(i.MenuItem,b(b({},p),{},{ref:t,className:c.default(f.disabled,p.className),tabIndex:-1,button:!1,children:r.jsxs(r.Fragment,{children:[p.children,r.jsx(i.Tooltip,b(b({title:"Disabled",placement:"right"},n),{},{children:r.jsx("div",{onClick:function(e){e.stopPropagation()},className:f.tooltipTrigger})}))]})})):r.jsx(i.MenuItem,b({},p))}));module.exports=f;
//# sourceMappingURL=index.js.map
