"use strict";var e=require("@babel/runtime/helpers/defineProperty"),r=require("react"),t=require("prop-types"),n=require("@material-ui/core"),o=require("@material-ui/lab/Autocomplete"),a=require("react/jsx-runtime");function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l=u(e),p=u(t),i=u(o);function c(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function s(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?c(Object(t),!0).forEach((function(r){l.default(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):c(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}var b=n.makeStyles({root:{marginLeft:10,marginTop:8,width:130},paper:{maxHeight:400,width:320,boxShadow:"0px 5px 5px -3px rgb(0 0 0 / 20%), 0px 8px 10px 1px rgb(0 0 0 / 14%), 0px 3px 14px 2px rgb(0 0 0 / 12%)"}});function f(e){var r=e.wells,t=e.subjectWell,o=e.onChange,u=b();return a.jsx(i.default,{"data-testid":"".concat("SubjectWellSearch","_autocomplete"),openOnFocus:!0,options:r,disableClearable:!0,blurOnSelect:!0,classes:{root:u.root,paper:u.paper},value:t,getOptionLabel:function(e){return e.name},renderInput:function(e){return a.jsx(n.TextField,s(s({},e),{},{label:"Subject Well"}))},onChange:function(e,r){o(r.id)}})}f.propTypes={wells:p.default.arrayOf(p.default.shape({})).isRequired,subjectWell:p.default.shape({}),onChange:p.default.func.isRequired},f.defaultProps={subjectWell:null};var d=r.memo(f);module.exports=d;
//# sourceMappingURL=SubjectWellSearch.js.map
