Liferay.Loader.define("@liferay/layout-content-page-editor-web@3.0.156/page_editor/plugins/fragments_and_widgets/components/SearchResultsPanel",["module","exports","require","@frontend-taglib-clay$clayui/empty-state","@frontend-taglib-clay$clayui/loading-indicator","liferay!frontend-js-react-web$prop-types","liferay!frontend-js-react-web$react","./TabCollection"],(function(e,t,a){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=SearchResultsPanel;var l=_interopRequireDefault(a("@frontend-taglib-clay$clayui/empty-state")),r=_interopRequireDefault(a("@frontend-taglib-clay$clayui/loading-indicator")),i=_interopRequireDefault(a("liferay!frontend-js-react-web$prop-types")),n=_interopRequireDefault(a("liferay!frontend-js-react-web$react")),o=_interopRequireDefault(a("./TabCollection"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function SearchResultsPanel({filteredTabs:e,loading:t=!1}){return t?n.default.createElement(r.default,{className:"mt-3",size:"sm"}):e.length?n.default.createElement("div",{className:"overflow-auto px-3"},e.map(((e,t)=>n.default.createElement("div",{key:t},n.default.createElement("div",{className:"font-weight-semi-bold page-editor__fragments-widgets__search-results-panel__filter-subtitle py-2"},e.label),n.default.createElement("ul",{"aria-orientation":"vertical",className:"list-unstyled",role:"menubar"},e.collections.map(((e,t)=>n.default.createElement(o.default,{collection:e,initialOpen:!0,isSearchResult:!0,key:t})))))))):n.default.createElement(l.default,{description:Liferay.Language.get("try-again-with-a-different-search"),imgSrc:"".concat(themeDisplay.getPathThemeImages(),"/states/search_state.gif"),small:!0,title:Liferay.Language.get("no-results-found")})}SearchResultsPanel.proptypes={filteredTabs:i.default.object.isRequired,loading:i.default.bool}}}));
//# sourceMappingURL=SearchResultsPanel.js.map