Liferay.Loader.define("@liferay/layout-content-page-editor-web@3.0.132/page_editor/common/components/SearchForm",["module","exports","require","@frontend-taglib-clay$clayui/button","@frontend-taglib-clay$clayui/form","@frontend-taglib-clay$clayui/icon","frontend-js-web","liferay!frontend-js-react-web$prop-types","liferay!frontend-js-react-web$react"],(function(e,t,a){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function({className:t,onChange:a}){const u="pageEditorSearchFormInput".concat(e++),f=(0,c.useRef)((0,o.debounce)((e=>a(e)),100)),[i,s]=(0,c.useState)("");return c.default.createElement(n.default.Group,{className:t,role:"search"},c.default.createElement("label",{className:"sr-only",htmlFor:u},Liferay.Language.get("search-form")),c.default.createElement(n.ClayInput.Group,null,c.default.createElement(n.ClayInput.GroupItem,null,c.default.createElement(n.ClayInput,{id:u,insetAfter:!0,onChange:e=>{s(e.target.value),f.current(e.target.value)},placeholder:"".concat(Liferay.Language.get("search"),"..."),sizing:"sm",value:i}),c.default.createElement(n.ClayInput.GroupInsetItem,{after:!0,tag:"span"},i?c.default.createElement(r.ClayButtonWithIcon,{borderless:!0,displayType:"secondary",monospaced:!1,onClick:()=>{s(""),f.current("")},small:!0,symbol:i?"times":"search",title:Liferay.Language.get("clear")}):c.default.createElement(l.default,{className:"mt-0 search-icon",symbol:"search"})))))};var r=a("@frontend-taglib-clay$clayui/button"),n=i(a("@frontend-taglib-clay$clayui/form")),l=u(a("@frontend-taglib-clay$clayui/icon")),o=a("frontend-js-web"),c=(u(a("liferay!frontend-js-react-web$prop-types")),i(a("liferay!frontend-js-react-web$react")));function u(e){return e&&e.__esModule?e:{default:e}}function f(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return f=function(){return e},e}function i(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=f();if(t&&t.has(e))return t.get(e);var a={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var l=r?Object.getOwnPropertyDescriptor(e,n):null;l&&(l.get||l.set)?Object.defineProperty(a,n,l):a[n]=e[n]}return a.default=e,t&&t.set(e,a),a}let e=0}}));
//# sourceMappingURL=SearchForm.js.map