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