"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/toConsumableArray"),r=require("@babel/runtime/helpers/defineProperty"),t=require("@babel/runtime/helpers/objectWithoutProperties"),i=require("react/jsx-runtime"),a=require("react"),o=require("@material-ui/core"),s=require("classnames"),n=require("./ButtonIcon.scss.js");function c(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l=c(e),u=c(r),d=c(t),p=c(s),b=["children","disabled","testId","className","onClick","type","size","disableFocusState"];function y(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);r&&(i=i.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,i)}return t}function f(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?y(Object(t),!0).forEach((function(r){u.default(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):y(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}var m={large:n.large,medium:n.medium,small:n.small,xs:n.xsmall},j={primary:[n.primary],secondary:[n.secondary],tertiary:[n.tertiary],secondaryBg:[n.secondary,n.withBg],tertiaryBg:[n.tertiary,n.withBg]},O={center:!1},h=a.forwardRef((function(e,r){var t=e.children,a=e.disabled,s=e.testId,c=e.className,u=e.onClick,y=e.type,h=void 0===y?"tertiary":y,g=e.size,v=void 0===g?"medium":g,P=e.disableFocusState,w=d.default(e,b);return i.jsx("div",{className:p.default(n.root,c),children:i.jsx(o.IconButton,f(f({ref:r,className:p.default.apply(void 0,[n.button,m[v]].concat(l.default(j[h]),[a&&n.disabled])),onClick:u,disabled:a,"data-testid":s,disableRipple:P,TouchRippleProps:O},w),{},{children:t}))})}));exports.ButtonIcon=h;
//# sourceMappingURL=ButtonIcon.js.map
