"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),r=require("@mui/material"),t=require("@mui/icons-material/Search"),a=require("react/jsx-runtime");exports.default=function(i){return e.useEffect(function(){i.setFilteredData&&i.setFilteredData(i.data)},[]),a.jsx(r.TextField,{id:"outlined-multiline-flexible",fullWidth:!0,type:"text",name:i.name,onChange:function(e){var r=(e.target||"").value,t=i.data.filter(function(e){return Object.values(e).join(" ").toLowerCase().includes(r.toLowerCase())});i.setFilteredData&&i.setFilteredData(t),i.onChange(e)},onFocus:i.onFocus,value:i.value||"",placeholder:i.placeholder,label:i.label,required:i.required,variant:i.variant,InputLabelProps:{shrink:null==i?void 0:i.shrink,required:i.required},InputProps:{readOnly:i.readOnly,endAdornment:a.jsx(r.InputAdornment,{position:"end",children:a.jsx(r.IconButton,{"aria-label":"toggle password visibility",onClick:i.handleSearchClick,children:a.jsx(t,{})})})}})};
//# sourceMappingURL=SearchInputComponent.js.map
