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