Liferay.Loader.define("@liferay/layout-content-page-editor-web@3.0.169/page_editor/app/utils/hasRestrictedParent",["module","exports","require","../config/constants/layoutDataItemTypes","./formIsRestricted"],(function(e,t,r){window;Object.defineProperty(t,"__esModule",{value:!0}),t.hasRestrictedParent=function hasRestrictedParent(e,t,r){var n;if(e.type===a.LAYOUT_DATA_ITEM_TYPES.form)return(0,i.formIsRestricted)(e);if(e.type===a.LAYOUT_DATA_ITEM_TYPES.collection)return r.has(e.itemId);const o=null==t||null===(n=t.items)||void 0===n?void 0:n[e.parentId];if(!o)return!1;return hasRestrictedParent(o,t,r)};var a=r("../config/constants/layoutDataItemTypes"),i=r("./formIsRestricted")}));
//# sourceMappingURL=hasRestrictedParent.js.map