"use strict";var r=require('./../../../../ext-esm/tslib/tslib.es6.js'),a=require("react/jsx-runtime"),e=require("react"),o=require("@material-ui/core");function t(r){return r&&"object"==typeof r&&"default"in r?r:{default:r}}var n=t(require("classnames")),i=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")}}})),l=e.forwardRef((function(e,t){var l=e.classes,c=void 0===l?{}:l,d=e.variation,s=r.__rest(e,["classes","variation"]),u=i(),b=r.__assign(r.__assign({},c),{root:n.default(null==u?void 0:u[d],c.root),label:n.default(null==u?void 0:u.label,c.label),disabled:n.default(null==u?void 0:u["".concat(d,"Disabled")],c.disabled)}),p=r.__assign(r.__assign(r.__assign({classes:b},function(r){return{primary:{color:"primary",variant:"contained"},secondary:{color:"primary"},dangerPrimary:{variant:"contained"}}[r]||{}}(e.variation)),s),{ref:t});return a.jsx(o.Button,r.__assign({"data-testid":"Button_".concat(e.children)},p))}));l.defaultProps={variation:"default"};var c=e.memo(l);module.exports=c;
