Liferay.Loader.define("@liferay/layout-content-page-editor-web@3.0.132/page_editor/app/utils/drag-and-drop/checkAllowedChild",["module","exports","require","../../config/constants/fragmentEntryTypes","../../config/constants/layoutDataItemTypes","../formIsMapped","../hasFormParent"],(function(T,_,A){window;{Object.defineProperty(_,"__esModule",{value:!0}),_.default=function(_,A,Y){if(_.type===e.LAYOUT_DATA_ITEM_TYPES.fragment){if(_.fragmentEntryType===E.FRAGMENT_ENTRY_TYPES.input&&!(0,o.hasFormParent)(A,Y.current))return!1;if(A.type===e.LAYOUT_DATA_ITEM_TYPES.form&&_.isWidget)return!1}return T[A.type](_,A)};var E=A("../../config/constants/fragmentEntryTypes"),e=A("../../config/constants/layoutDataItemTypes"),Y=A("../formIsMapped"),o=A("../hasFormParent");const T={[e.LAYOUT_DATA_ITEM_TYPES.root]:T=>[e.LAYOUT_DATA_ITEM_TYPES.collection,e.LAYOUT_DATA_ITEM_TYPES.dropZone,e.LAYOUT_DATA_ITEM_TYPES.container,e.LAYOUT_DATA_ITEM_TYPES.row,e.LAYOUT_DATA_ITEM_TYPES.fragment,e.LAYOUT_DATA_ITEM_TYPES.form].includes(T.type),[e.LAYOUT_DATA_ITEM_TYPES.collection]:()=>!1,[e.LAYOUT_DATA_ITEM_TYPES.collectionItem]:T=>[e.LAYOUT_DATA_ITEM_TYPES.collection,e.LAYOUT_DATA_ITEM_TYPES.container,e.LAYOUT_DATA_ITEM_TYPES.row,e.LAYOUT_DATA_ITEM_TYPES.fragment].includes(T.type),[e.LAYOUT_DATA_ITEM_TYPES.dropZone]:()=>!1,[e.LAYOUT_DATA_ITEM_TYPES.container]:T=>[e.LAYOUT_DATA_ITEM_TYPES.collection,e.LAYOUT_DATA_ITEM_TYPES.container,e.LAYOUT_DATA_ITEM_TYPES.dropZone,e.LAYOUT_DATA_ITEM_TYPES.row,e.LAYOUT_DATA_ITEM_TYPES.fragment,e.LAYOUT_DATA_ITEM_TYPES.form].includes(T.type),[e.LAYOUT_DATA_ITEM_TYPES.form]:(T,_)=>!!(0,Y.formIsMapped)(_)&&[e.LAYOUT_DATA_ITEM_TYPES.collection,e.LAYOUT_DATA_ITEM_TYPES.container,e.LAYOUT_DATA_ITEM_TYPES.dropZone,e.LAYOUT_DATA_ITEM_TYPES.row,e.LAYOUT_DATA_ITEM_TYPES.fragment].includes(T.type),[e.LAYOUT_DATA_ITEM_TYPES.row]:T=>[e.LAYOUT_DATA_ITEM_TYPES.column].includes(T.type),[e.LAYOUT_DATA_ITEM_TYPES.column]:T=>[e.LAYOUT_DATA_ITEM_TYPES.collection,e.LAYOUT_DATA_ITEM_TYPES.container,e.LAYOUT_DATA_ITEM_TYPES.dropZone,e.LAYOUT_DATA_ITEM_TYPES.row,e.LAYOUT_DATA_ITEM_TYPES.fragment,e.LAYOUT_DATA_ITEM_TYPES.form].includes(T.type),[e.LAYOUT_DATA_ITEM_TYPES.fragment]:()=>!1,[e.LAYOUT_DATA_ITEM_TYPES.fragmentDropZone]:T=>[e.LAYOUT_DATA_ITEM_TYPES.collection,e.LAYOUT_DATA_ITEM_TYPES.dropZone,e.LAYOUT_DATA_ITEM_TYPES.container,e.LAYOUT_DATA_ITEM_TYPES.row,e.LAYOUT_DATA_ITEM_TYPES.fragment,e.LAYOUT_DATA_ITEM_TYPES.form].includes(T.type)}}}));
//# sourceMappingURL=checkAllowedChild.js.map