import e from"@babel/runtime/helpers/defineProperty";import r from"@babel/runtime/helpers/objectWithoutProperties";import{forwardRef as t}from"react";import o from"classnames";import{makeStyles as n}from"@material-ui/core";import i from"../context/index.js";import p from"../../../effects/useOutsideClick.js";import{jsxs as c,Fragment as s}from"react/jsx-runtime";var l=["className","children","inputRef"];function a(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function u(r){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?a(Object(o),!0).forEach((function(t){e(r,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):a(Object(o)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))}))}return r}var m=n((function(){return{paper:{boxShadow:"0px 2px 1px -1px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%), 0px 1px 3px 0px rgb(0 0 0 / 12%)",backgroundColor:"#424242",transition:"box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms",borderRadius:5,position:"absolute",top:0,left:0,width:"100%",margin:0}}})),b=t((function(e,t){var n,a=e.className,b=e.children,f=e.inputRef,d=r(e,l),O=m(),x=i(),h=x.loading,j=x.AllSelectComponent,g=x.RecentSearchesComponent,y=x.GroupsComponent,v=x.isEmptyOptions,P=x.onOutsideClick;return p(t,P,["#removeGroupIcon","#selectAllLabel",null==f||null===(n=f.current)||void 0===n?void 0:n.parentNode]),c("div",u(u({},d),{},{ref:t,className:o(a,O.paper),children:[!h&&c(s,{children:[y," ",g," ",j]}),v&&y?null:b]}))}));export{b as default};
//# sourceMappingURL=Paper.js.map
