Liferay.Loader.define("portal-search-ranking-web@3.0.53/js/components/list/FilterInput.es",["module","exports","require","@frontend-taglib-clay$clayui/button","@frontend-taglib-clay$clayui/form","@frontend-taglib-clay$clayui/icon","frontend-js-components-web","liferay!frontend-js-react-web$prop-types","liferay!frontend-js-react-web$react"],(function(e,t,r){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=_interopRequireDefault(r("@frontend-taglib-clay$clayui/button")),a=r("@frontend-taglib-clay$clayui/form"),l=_interopRequireDefault(r("@frontend-taglib-clay$clayui/icon")),o=r("frontend-js-components-web"),i=(r("liferay!frontend-js-react-web$prop-types"),function _interopRequireWildcard(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var l=n?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(r,a,l):r[a]=e[a]}r.default=e,t&&t.set(e,r);return r}(r("liferay!frontend-js-react-web$react")));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function _getRequireWildcardCache(){return e},e}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _defineProperty(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class FilterInput extends i.Component{constructor(...e){super(...e),_defineProperty(this,"_handleChange",(e=>{e.preventDefault(),this.props.onChange(e.target.value)})),_defineProperty(this,"_handleKeyDown",(e=>{"Enter"===e.key&&e.currentTarget.value.trim()&&this.props.onSubmit()}))}render(){const{disableSearch:e,onSubmit:t,searchBarTerm:r}=this.props;return i.default.createElement(o.ManagementToolbar.Search,null,i.default.createElement(a.ClayInput.Group,null,i.default.createElement(a.ClayInput.GroupItem,null,i.default.createElement(a.ClayInput,{"aria-label":Liferay.Language.get("search"),className:"form-control input-group-inset input-group-inset-after",disabled:e,onChange:this._handleChange,onKeyDown:this._handleKeyDown,placeholder:Liferay.Language.get("contains-text"),type:"text",value:r}),i.default.createElement(a.ClayInput.GroupInsetItem,{after:!0,tag:"span"},i.default.createElement(n.default,{displayType:"unstyled",onClick:t,title:Liferay.Language.get("search-icon")},i.default.createElement(l.default,{symbol:"search"}))))))}}_defineProperty(FilterInput,"defaultProps",{disableSearch:!1});var u=FilterInput;t.default=u}}));
//# sourceMappingURL=FilterInput.es.js.map