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