Liferay.Loader.define("frontend-taglib-clay@9.1.10/management_toolbar/SearchControls",["module","exports","require","@frontend-taglib-clay$clayui/button","@frontend-taglib-clay$clayui/form","@frontend-taglib-clay$clayui/management-toolbar","liferay!frontend-js-react-web$react"],(function(e,a,t){window;{Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var l=t("@frontend-taglib-clay$clayui/button"),n=t("@frontend-taglib-clay$clayui/form"),o=u(t("@frontend-taglib-clay$clayui/management-toolbar")),r=u(t("liferay!frontend-js-react-web$react"));function u(e){return e&&e.__esModule?e:{default:e}}const e=({disabled:e,searchActionURL:a,searchData:t,searchFormMethod:u,searchFormName:c,searchInputAutoFocus:d,searchInputName:i,searchMobile:s,searchValue:m,setSearchMobile:y})=>r.default.createElement(r.default.Fragment,null,r.default.createElement(o.default.Search,{action:a,method:u,name:c,showMobile:s},r.default.createElement(n.ClayInput.Group,null,r.default.createElement(n.ClayInput.GroupItem,null,r.default.createElement(n.ClayInput,{autoFocus:d,className:"form-control input-group-inset input-group-inset-after",defaultValue:m,disabled:e,name:i,placeholder:Liferay.Language.get("search-for"),type:"text"}),r.default.createElement(n.ClayInput.GroupInsetItem,{after:!0,tag:"span"},r.default.createElement(l.ClayButtonWithIcon,{className:"navbar-breakpoint-d-none",disabled:e,displayType:"unstyled",onClick:()=>y(!1),symbol:"times"}),r.default.createElement(l.ClayButtonWithIcon,{disabled:e,displayType:"unstyled",symbol:"search",type:"submit"})))),t&&Object.keys(t).map((e=>t[e].map((a=>r.default.createElement(n.ClayInput,{key:e,name:e,type:"hidden",value:a}))))))),d=({disabled:e,setSearchMobile:a})=>r.default.createElement(o.default.Item,{className:"navbar-breakpoint-d-none"},r.default.createElement(l.ClayButtonWithIcon,{className:"nav-link nav-link-monospaced",disabled:e,displayType:"unstyled",onClick:()=>a(!0),symbol:"search"}));e.ShowMobileButton=d;var c=e;a.default=c}}));
//# sourceMappingURL=SearchControls.js.map