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