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