Liferay.Loader.define("segments-web@3.0.68/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=o(r("@frontend-taglib-clay$clayui/button")),n=o(r("@frontend-taglib-clay$clayui/icon")),i=(o(r("liferay!frontend-js-react-web$prop-types")),function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=l();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 l(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function o(e){return e&&e.__esModule?e:{default:e}}function u(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class e extends i.Component{constructor(...e){super(...e),u(this,"_handleChange",(e=>{this.props.onChange(e.target.value)})),u(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",{className:"form-control input-group-inset input-group-inset-after","data-testid":"search-input",onChange:this._handleChange,placeholder:Liferay.Language.get("search"),type:"text",value:e}),i.default.createElement("div",{className:"input-group-inset-item input-group-inset-item-after"},i.default.createElement(a.default,{"data-testid":"search-button",displayType:"unstyled",onClick:e?this._handleClear:void 0},i.default.createElement(n.default,{symbol:e?"times":"search"})))))}}var c=e;t.default=c}}));
//# sourceMappingURL=CriteriaSidebarSearchBar.es.js.map