Liferay.Loader.define("@liferay/layout-content-page-editor-web@3.0.179/page_editor/plugins/page_content/components/NoPageContents",["module","exports","require","@frontend-taglib-clay$clayui/alert","liferay!frontend-js-react-web$react","../../../app/config/constants/layoutDataItemTypes","../../../app/contexts/StoreContext","../../../app/utils/formIsRestricted"],(function(e,t,a){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function NoPageContents(){var e;const t=(0,i.useSelector)((e=>e.layoutData)),a=(0,i.useSelector)((e=>e.masterLayoutData)),s=[...Object.values(t.items),...Object.values(null!==(e=null==a?void 0:a.items)&&void 0!==e?e:{})];return s.some((e=>e.type===r.LAYOUT_DATA_ITEM_TYPES.form&&(0,l.formIsRestricted)(e)))&&Liferay.FeatureFlags["LPS-169923"]?n.default.createElement(o.default,{"aria-live":"polite",className:"m-3",displayType:"secondary"},Liferay.Language.get("this-content-cannot-be-displayed-due-to-permission-restrictions")):n.default.createElement(o.default,{"aria-live":"polite",className:"m-3",displayType:"info",title:Liferay.Language.get("info")},Liferay.Language.get("there-is-no-content-on-this-page"))};var o=_interopRequireDefault(a("@frontend-taglib-clay$clayui/alert")),n=_interopRequireDefault(a("liferay!frontend-js-react-web$react")),r=a("../../../app/config/constants/layoutDataItemTypes"),i=a("../../../app/contexts/StoreContext"),l=a("../../../app/utils/formIsRestricted");function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}}}));
//# sourceMappingURL=NoPageContents.js.map