Liferay.Loader.define("data-engine-taglib@3.3.26/data_layout_builder/js/plugins/fields-sidebar/components/FieldsSidebar",["module","exports","require","@frontend-taglib-clay$clayui/form","data-engine-js-components-web","liferay!frontend-js-react-web$react","../../../components/sidebar/Sidebar.es","./FieldsSidebarBody","./SidebarFieldSettings"],(function(e,t,r){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.FieldsSidebar=function({title:t}){const{focusedField:r}=(0,n.useFormState)();return Object.keys(r).length?l.default.createElement(u.default,{field:r}):l.default.createElement(e,{title:t})};var a=f(r("@frontend-taglib-clay$clayui/form")),n=r("data-engine-js-components-web"),l=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=o();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 l=a?Object.getOwnPropertyDescriptor(e,n):null;l&&(l.get||l.set)?Object.defineProperty(r,n,l):r[n]=e[n]}r.default=e,t&&t.set(e,r);return r}(r("liferay!frontend-js-react-web$react")),d=f(r("../../../components/sidebar/Sidebar.es")),i=f(r("./FieldsSidebarBody")),u=f(r("./SidebarFieldSettings"));function o(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}function f(e){return e&&e.__esModule?e:{default:e}}const e=({title:e})=>{const[t,r]=(0,l.useState)("");return l.default.createElement(d.default,null,l.default.createElement(d.default.Header,null,l.default.createElement(d.default.Title,{className:"mb-3",title:e}),l.default.createElement(a.default,{onSubmit:e=>e.preventDefault()},l.default.createElement(d.default.SearchInput,{onSearch:e=>r(e),searchText:t}))),l.default.createElement(d.default.Body,null,l.default.createElement(i.default,{keywords:t,setKeywords:r})))}}}));
//# sourceMappingURL=FieldsSidebar.js.map