"use strict";var e=require("@babel/runtime/helpers/defineProperty"),t=require("@babel/runtime/helpers/objectWithoutProperties"),r=require("@material-ui/core"),n=require("classnames"),o=require("prop-types"),c=require("react/jsx-runtime");function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=l(e),s=l(t),a=l(n),u=l(o),d=["numSelected","actions","content","classes"];function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach((function(t){i.default(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var b=r.makeStyles({root:{"&.MuiToolbar-gutters":{paddingLeft:8,paddingRight:8}},highlight:{display:"flex",justifyContent:"space-between",backgroundColor:"rgba(3, 188, 212, 0.2)"},numSelected:{fontSize:14}}),m=function(e){var t=e.numSelected,n=e.actions,o=e.content,l=e.classes,u=s.default(e,d),p=b();return c.jsx(r.Toolbar,f(f({classes:l,className:a.default(p.root,null==l?void 0:l.root,i.default({},p.highlight,t>0)),variant:"dense"},u),{},{children:t>0?c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:p.numSelected,children:[t," selected"]}),c.jsx("div",{children:n})]}):c.jsx(c.Fragment,{children:o})}))};m.propTypes={numSelected:u.default.number,actions:u.default.node,content:u.default.node},m.defaultProps={numSelected:u.default.number,actions:null,content:null},module.exports=m;
