Liferay.Loader.define("segments-web@3.0.77/js/components/criteria_sidebar/CriteriaSidebarSearchBar.es",["module","exports","require","@frontend-taglib-clay$clayui/button","@frontend-taglib-clay$clayui/icon","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 a=_interopRequireDefault(r("@frontend-taglib-clay$clayui/button")),n=_interopRequireDefault(r("@frontend-taglib-clay$clayui/icon")),i=(_interopRequireDefault(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={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var i=a?Object.getOwnPropertyDescriptor(e,n):null;i&&(i.get||i.set)?Object.defineProperty(r,n,i):r[n]=e[n]}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 CriteriaSidebarSearchBar extends i.Component{constructor(...e){super(...e),_defineProperty(this,"_handleChange",(e=>{this.props.onChange(e.target.value)})),_defineProperty(this,"_handleClear",(e=>{e.preventDefault(),this.props.onChange("")}))}render(){const{searchValue:e}=this.props;return i.default.createElement("div",{className:"input-group"},i.default.createElement("div",{className:"input-group-item"},i.default.createElement("input",{"aria-label":Liferay.Language.get("search-properties"),className:"form-control input-group-inset input-group-inset-after","data-testid":"search-input",onChange:this._handleChange,placeholder:Liferay.Language.get("search-properties"),type:"text",value:e}),i.default.createElement("div",{className:"input-group-inset-item input-group-inset-item-after"},i.default.createElement(a.default,{"aria-label":e?Liferay.Language.get("clear-search"):Liferay.Language.get("search-properties"),"data-testid":"search-button",displayType:"unstyled",onClick:e?this._handleClear:void 0,title:e?Liferay.Language.get("clear-search"):Liferay.Language.get("search-properties")},i.default.createElement(n.default,{symbol:e?"times":"search"})))))}}var l=CriteriaSidebarSearchBar;t.default=l}}));
//# sourceMappingURL=CriteriaSidebarSearchBar.es.js.map