import r from"@babel/runtime/helpers/defineProperty";import e from"@babel/runtime/helpers/objectWithoutProperties";import{jsx as t}from"react/jsx-runtime";import{forwardRef as o,memo as a}from"react";import{makeStyles as n,Button as c}from"@material-ui/core";import i from"classnames";var l=["classes","variation"];function p(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(r);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),t.push.apply(t,o)}return t}function b(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?p(Object(o),!0).forEach((function(t){r(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):p(Object(o)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(o,r))}))}return e}var d={primary:{color:"primary",variant:"contained"},secondary:{color:"primary"},dangerPrimary:{variant:"contained"}},s=n((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")}}})),u=o((function(r,o){var a=r.classes,n=void 0===a?{}:a,p=r.variation,u=e(r,l),m=s(),f=m,y=b(b({},n),{},{root:i(p&&f[p],n.root),label:i(null==m?void 0:m.label,n.label),disabled:i(p&&f["".concat(p,"Disabled")],n.disabled)}),g=b(b(b({classes:y},function(r){return r&&d[r]||{}}(r.variation)),u),{},{ref:o});return t(c,b({"data-testid":"Button_".concat(r.children)},g))}));u.defaultProps={variation:"default"};var m=a(u);export{m as default};
//# sourceMappingURL=index.js.map
