Liferay.Loader.define("data-engine-taglib@3.3.53/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,l.useFormState)();return Object.keys(t).length?n.default.createElement(u.default,{field:t}):n.default.createElement(FieldListSidebar,{title:e})};var a=_interopRequireDefault(r("@frontend-taglib-clay$clayui/form")),l=r("data-engine-js-components-web"),n=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 l in e)if(Object.prototype.hasOwnProperty.call(e,l)){var n=a?Object.getOwnPropertyDescriptor(e,l):null;n&&(n.get||n.set)?Object.defineProperty(r,l,n):r[l]=e[l]}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,n.useState)("");return n.default.createElement(i.default,null,n.default.createElement(i.default.Header,null,n.default.createElement(i.default.Title,{className:"mb-3",title:e}),n.default.createElement("div",{"aria-live":"polite",className:"sr-only",id:"screenReaderSearchResult"}),n.default.createElement(a.default,{onSubmit:e=>e.preventDefault()},n.default.createElement(i.default.SearchInput,{onSearch:e=>r(e),searchText:t}))),n.default.createElement(i.default.Body,null,n.default.createElement(d.default,{keywords:t,setKeywords:r})))}}}));
//# sourceMappingURL=FieldsSidebar.js.map