"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/defineProperty"),r=require("@babel/runtime/helpers/objectWithoutProperties"),t=require("react/jsx-runtime"),i=require("react"),a=require("@material-ui/core"),o=require("classnames"),c=require("./Button.scss.js");function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var s=n(e),u=n(r),l=n(o),d=["children","onClick","size","type","prefix","suffix","disabled","testId","className","htmlAttributes"];function p(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?p(Object(t),!0).forEach((function(r){s.default(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):p(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}var y={primary:{variant:"contained",color:"primary"},secondary:{variant:"text",color:"primary"},primaryDestructive:{variant:"contained",color:"primary"},secondaryDestructive:{variant:"text",color:"primary"},tertiary:{variant:"text",color:"default"},chart:{variant:"text",color:"default"},chartColored:{variant:"text",color:"primary"}},b={primaryDestructive:c.primaryDestructive,secondaryDestructive:c.secondaryDestructive,chart:c.chart,chartColored:c.chart},m=i.forwardRef((function(e,r){var i=e.children,o=e.onClick,n=e.size,s=void 0===n?"medium":n,p=e.type,m=void 0===p?"secondary":p,v=e.prefix,h=e.suffix,j=e.disabled,O=e.testId,x=e.className,P=e.htmlAttributes,D=u.default(e,d);return t.jsx("div",{className:l.default(c.root,x),children:t.jsx(a.Button,f(f(f(f({},P),y[m]),{},{size:s,ref:r,disabled:j,className:l.default(c.button,b[m],j&&c.disabled),"data-testid":O,startIcon:v,endIcon:h,onClick:o},D),{},{children:i}))})}));exports.Button=m;
//# sourceMappingURL=Button.js.map
