import o from"@babel/runtime/helpers/defineProperty";import s from"@babel/runtime/helpers/objectWithoutProperties";import t from"classnames";import{makeStyles as e,Select as n,MenuItem as r}from"@material-ui/core";import{DownOneIcon as c}from"../../../icons/iconParkIcons.js";import"../../../icons/customIcons/icons/AddMessage.js";import"../../../icons/customIcons/icons/Attention.js";import"../../../icons/customIcons/icons/Collapse.js";import"../../../icons/customIcons/icons/Dashboard.js";import"../../../icons/customIcons/icons/Expand.js";import"../../../icons/customIcons/icons/FolderClosed.js";import"../../../icons/customIcons/icons/FolderClosedFilled.js";import"../../../icons/customIcons/icons/FolderOpened.js";import"../../../icons/customIcons/icons/GreaterOrEqual.js";import"../../../icons/customIcons/icons/LessOrEqual.js";import"../../../icons/customIcons/icons/Search.js";import"../../../icons/customIcons/icons/Wellhub.js";import"../../../icons/customIcons/icons/MultiRuler.js";import"../../../icons/customIcons/icons/Checkbox.js";import"../../../icons/customIcons/icons/CheckboxChecked.js";import"../../../icons/customIcons/icons/CheckboxIndeterminate.js";import"../../../icons/customIcons/icons/Radio.js";import"../../../icons/customIcons/icons/RadioChecked.js";import"../../../icons/customIcons/icons/SimulFrac.js";import"../../../icons/customIcons/icons/ZipperFrac.js";import"../../../icons/customIcons/icons/CautionFilled.js";import"../../../icons/customIcons/icons/MoreApp.js";import{jsx as i,jsxs as a,Fragment as m}from"react/jsx-runtime";var l=["className","classes","value","onChange","unit","options"];function p(o,s){var t=Object.keys(o);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(o);s&&(e=e.filter((function(s){return Object.getOwnPropertyDescriptor(o,s).enumerable}))),t.push.apply(t,e)}return t}function u(s){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?p(Object(e),!0).forEach((function(t){o(s,t,e[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(e)):p(Object(e)).forEach((function(o){Object.defineProperty(s,o,Object.getOwnPropertyDescriptor(e,o))}))}return s}var j=e((function(o){var s=o.palette;return{selectContainer:{color:s.primary.contrastText,background:"transparen !important","& .MuiSelect-icon ":{top:"unset",right:4},"& .MuiSelect-icon  > svg > path":{fill:s.primary.text6,stroke:s.primary.text6},"& .MuiSelect-iconOpen > svg > path":{fill:s.primary.main,stroke:s.primary.main},"&:hover":{"& .MuiSelect-icon > svg > path":{fill:s.primary.contrastText,stroke:s.primary.contrastText}},"&:active":{"& .MuiSelect-icon  > svg > path":{fill:s.primary.main,stroke:s.primary.main}}},selectRoot:{fontSize:16,"&:focus":{backgroundColor:"transparent"}},unit:{fontSize:12,lineHeight:0,color:s.primary.text7}}})),f=function(o){var e=o.className,p=o.classes,f=o.value,d=o.onChange,h=o.unit,b=o.options,I=s(o,l),y=j();return i(n,u(u({className:t(y.selectContainer,e),value:f,classes:u({root:y.selectRoot},p),onChange:d,disableUnderline:!0,IconComponent:function(o){return i(c,u({theme:"filled",fill:"#BDBDBD",size:16},o))},renderValue:function(o){return a(m,{children:[o,h&&a("span",{className:y.unit,children:["(",h,")"]})]})}},I),{},{children:null==b?void 0:b.map((function(o){var s=o.label,t=o.value;return i(r,{value:t,children:s},t)}))}))};export{f as default};
