"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/defineProperty"),t=require("@babel/runtime/helpers/objectWithoutProperties"),r=require("@babel/runtime/helpers/typeof"),i=require("react/jsx-runtime"),l=require("react"),a=require("@material-ui/core"),s=require("classnames"),c=require("./MenuItem.scss.js");function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=n(e),o=n(t),d=n(r),f=n(s),m=["children","testId","className","onClick","disabled","prefix","suffix","size","tagName","disableClickEffect","selected","type"];function p(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?p(Object(r),!0).forEach((function(t){u.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 y={medium:c.medium,large:c.large},j={medium:"small",large:"medium"},v={medium:16,large:24},O=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(l.isValidElement(e)){var i=e&&"object"===d.default(e.type)&&e.type.displayName;return"Checkbox"===i?l.cloneElement(e,{size:j[t],className:f.default(c.checkboxAffix,r?c.suffix:c.prefix),labelPlacement:r?"start":"end"}):l.cloneElement(e,{size:v[t],className:f.default(c.iconAffix,e.props.className)})}return e},h={normal:"",destructive:c.destructive},x=l.forwardRef((function(e,t){var r=e.children,l=e.testId,s=e.className,n=e.onClick,u=e.disabled,d=e.prefix,p=e.suffix,j=e.size,v=void 0===j?"medium":j,x=e.tagName,g=void 0===x?"li":x,P=e.disableClickEffect,N=e.selected,k=e.type,q=void 0===k?"normal":k,w=o.default(e,m);return i.jsxs(a.MenuItem,b(b({className:f.default(c.menuItem,h[q],y[v],s),"data-testid":l,onClick:n,disabled:u,disableRipple:P,disableTouchRipple:P,component:g,selected:N,ref:t},w),{},{children:[O(d,v),i.jsx("div",{className:c.itemLabel,children:r}),O(p,v,!0)]}))}));exports.MenuItem=x;
//# sourceMappingURL=MenuItem.js.map
