"use strict";var e=require("@babel/runtime/helpers/defineProperty"),t=require("@babel/runtime/helpers/objectWithoutProperties"),r=require("classnames"),i=require("@material-ui/core"),n=require("../../IconButton/index.js"),o=require("react/jsx-runtime");function c(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var s=c(e),a=c(t),l=c(r),u=["onClick","className","children","tooltipProps","isActive","isHidden","disabled"];function d(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 p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach((function(t){s.default(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var b=i.makeStyles((function(e){return{button:{marginBottom:"4px","&.Mui-disabled":{opacity:1,backgroundColor:"rgba(255, 255, 255, 0.08)",color:e.palette.primary.text9}},isHidden:{visibility:"hidden"}}}));module.exports=function(e){var t=e.onClick,r=e.className,i=e.children,c=e.tooltipProps,d=e.isActive,f=e.isHidden,m=e.disabled,y=a.default(e,u),O=b();return o.jsx(n,p(p({tooltipProps:c,className:l.default(O.button,r,s.default({},O.isHidden,f)),variant:"contained",size:"small",isActive:d,disabled:m,onClick:m?null:t},y),{},{children:i}))};
