"use strict";var r=require("@babel/runtime/helpers/defineProperty"),e=require("@babel/runtime/helpers/objectWithoutProperties"),t=require("react/jsx-runtime"),a=require("react"),o=require("@material-ui/core"),n=require("classnames");function c(r){return r&&"object"==typeof r&&"default"in r?r:{default:r}}var i=c(r),l=c(e),u=c(n),d=["classes","variation"];function p(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(r);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),t.push.apply(t,a)}return t}function b(r){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?p(Object(t),!0).forEach((function(e){i.default(r,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):p(Object(t)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(t,e))}))}return r}var s={primary:{color:"primary",variant:"contained"},secondary:{color:"primary"},dangerPrimary:{variant:"contained"}},f=o.makeStyles((function(r){return{label:{whiteSpace:"nowrap"},dangerPrimary:{color:r.palette.background.b2,backgroundColor:"".concat(r.palette.error.dark," !important"),"&:hover":{backgroundColor:"".concat(r.palette.error.main," !important")}},tertiary:{color:r.palette.primary.text6,backgroundColor:"rgba(255, 255, 255, 0.08)",textTransform:"capitalize","&:hover":{color:r.palette.primary.contrastText,backgroundColor:"rgba(255, 255, 255, 0.16)"}},dangerPrimaryDisabled:{backgroundColor:r.palette.error.dark,color:"".concat(r.palette.background.b2," !important")},dangerSecondary:{color:r.palette.error.dark,"&:hover":{color:r.palette.error.main,backgroundColor:"rgba(244, 67, 54, 0.24)"}},dangerSecondaryDisabled:{color:"".concat(r.palette.error.dark," !important")}}})),m=a.forwardRef((function(r,e){var a=r.classes,n=void 0===a?{}:a,c=r.variation,i=l.default(r,d),p=f(),m=p,y=b(b({},n),{},{root:u.default(c&&m[c],n.root),label:u.default(null==p?void 0:p.label,n.label),disabled:u.default(c&&m["".concat(c,"Disabled")],n.disabled)}),g=b(b(b({classes:y},function(r){return r&&s[r]||{}}(r.variation)),i),{},{ref:e});return t.jsx(o.Button,b({"data-testid":"Button_".concat(r.children)},g))}));m.defaultProps={variation:"default"};var y=a.memo(m);module.exports=y;
//# sourceMappingURL=index.js.map
