import o from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/objectWithoutProperties";import e from"classnames";import{makeStyles as s,Select as n,MenuItem as r}from"@material-ui/core";import{DownOneIcon as i}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/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{jsx as c,jsxs as a,Fragment as m}from"react/jsx-runtime";var l=["className","classes","value","onChange","unit","options"];function p(o,t){var e=Object.keys(o);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(o);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(o,t).enumerable}))),e.push.apply(e,s)}return e}function u(t){for(var e=1;e<arguments.length;e++){var s=null!=arguments[e]?arguments[e]:{};e%2?p(Object(s),!0).forEach((function(e){o(t,e,s[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):p(Object(s)).forEach((function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(s,o))}))}return t}var f=s((function(o){var t=o.palette;return{selectContainer:{color:t.primary.contrastText,background:"transparen !important","& .MuiSelect-icon ":{top:"unset",right:4},"& .MuiSelect-icon  > svg > path":{fill:t.primary.text6,stroke:t.primary.text6},"& .MuiSelect-iconOpen > svg > path":{fill:t.primary.main,stroke:t.primary.main},"&:hover":{"& .MuiSelect-icon > svg > path":{fill:t.primary.contrastText,stroke:t.primary.contrastText}},"&:active":{"& .MuiSelect-icon  > svg > path":{fill:t.primary.main,stroke:t.primary.main}}},selectRoot:{fontSize:16,"&:focus":{backgroundColor:"transparent"}},unit:{fontSize:12,lineHeight:0,color:t.primary.text7}}})),j=function(o){var s=o.className,p=o.classes,j=o.value,d=o.onChange,h=o.unit,b=o.options,I=t(o,l),y=f();return c(n,u(u({className:e(y.selectContainer,s),value:j,classes:u({root:y.selectRoot},p),onChange:d,disableUnderline:!0,IconComponent:function(o){return c(i,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 t=o.label,e=o.value;return c(r,{value:e,children:t},e)}))}))};export{j as default};
