Liferay.Loader.define("@liferay/layout-content-page-editor-web@3.0.170/page_editor/plugins/page_content/components/ContentList",["module","exports","require","@frontend-taglib-clay$clayui/empty-state","liferay!frontend-js-react-web$prop-types","liferay!frontend-js-react-web$react","../../../app/config/constants/contentTypeLabels","../../../common/components/Collapse","./PageContent"],(function(e,t,n){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function ContentList({contents:e,selectedType:t}){const n=Object.keys(e),o=t&&t!==l.CONTENT_TYPE_LABELS.allContent;return r.default.createElement("div",{className:"overflow-auto page-editor__page-contents__content-list pt-4 px-3"},!n.includes(t)&&o||!n.length?r.default.createElement(a.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")}):o?r.default.createElement(PageContentList,{pageContents:e,type:t}):Object.keys(e).map((t=>r.default.createElement(s.default,{key:t,label:t,open:!0},r.default.createElement(PageContentList,{pageContents:e,type:t})))))};var a=_interopRequireDefault(n("@frontend-taglib-clay$clayui/empty-state")),o=_interopRequireDefault(n("liferay!frontend-js-react-web$prop-types")),r=_interopRequireDefault(n("liferay!frontend-js-react-web$react")),l=n("../../../app/config/constants/contentTypeLabels"),s=_interopRequireDefault(n("../../../common/components/Collapse")),c=_interopRequireDefault(n("./PageContent"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _extends(){return(_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(this,arguments)}const PageContentList=({pageContents:e,type:t})=>{var n;return r.default.createElement("ul",{className:"list-unstyled mb-1"},null===(n=e[t||l.CONTENT_TYPE_LABELS.allContent])||void 0===n?void 0:n.map(((e,t)=>r.default.createElement(c.default,_extends({key:"".concat(e.classPK).concat(t)},e)))))};PageContentList.proptypes={pageContents:o.default.array,type:o.default.string}}}));
//# sourceMappingURL=ContentList.js.map