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