"use strict";var e=require("@babel/runtime/helpers/defineProperty"),t=require("@babel/runtime/helpers/objectWithoutProperties"),r=require("prop-types"),i=require("classnames"),n=require("@material-ui/core/ListItemIcon"),o=require("@material-ui/core"),l=require("../MenuItem/index.js"),a=require("react/jsx-runtime");function c(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=c(e),s=c(t),p=c(r),d=c(i),f=c(n),m=["classes","icon","children","small","iconType"];function y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function b(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?y(Object(r),!0).forEach((function(t){u.default(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var h=o.makeStyles((function(e){return{menuItem:{height:function(e){return e.small?36:54},lineHeight:function(e){return e.small?"17px":"24px"},"&:hover svg":{fill:function(t){var r=t.iconType,i=t.disabled;return"iconPark"===r?"":i?e.palette.primary.text9:e.palette.primary.contrastText},color:function(t){var r=t.iconType,i=t.disabled;return"mui"===r?"":i?e.palette.primary.text9:e.palette.primary.contrastText}}},listItemIcon:{paddingRight:e.spacing(1),color:function(t){return t.disabled?e.palette.primary.text9:e.palette.primary.text7},minWidth:"auto",fontSize:function(e){return e.small?16:24},"& .MuiSvgIcon-root":{fontSize:"inherit"}}}})),j=function(e){var t=e.classes,r=void 0===t?{}:t,i=e.icon,n=e.children,o=e.small,c=e.iconType,u=s.default(e,m),p=h({small:o,disabled:u.disabled,iconType:c});return a.jsxs(l,b(b({classes:b(b({},r),{},{root:d.default(p.menuItem,r.root)})},u),{},{children:[a.jsx(f.default,{classes:{root:p.listItemIcon},children:i}),n]}))};j.propTypes={children:p.default.node.isRequired,icon:p.default.node.isRequired,iconType:p.default.string,small:p.default.bool},j.defaultProps={small:!1,iconType:"mui"},module.exports=j;
