Liferay.Loader.define("@liferay/layout-content-page-editor-web@3.0.156/page_editor/app/utils/canBeDuplicated",["module","exports","require","../components/layout_data_items/hasDropZoneChild","../config/constants/layoutDataItemTypes","../utils/getWidget"],(function(e,t,a){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function canBeDuplicated(e,t,a,r){switch(t.type){case o.LAYOUT_DATA_ITEM_TYPES.collection:return!0;case o.LAYOUT_DATA_ITEM_TYPES.container:case o.LAYOUT_DATA_ITEM_TYPES.form:case o.LAYOUT_DATA_ITEM_TYPES.row:return!(0,n.default)(t,a);case o.LAYOUT_DATA_ITEM_TYPES.fragment:{const o=e[t.config.fragmentEntryLinkId].editableValues.portletId,u=o&&(0,i.default)(r,o);return(!u||u.instanceable)&&!(0,n.default)(t,a)}default:return!1}};var n=_interopRequireDefault(a("../components/layout_data_items/hasDropZoneChild")),o=a("../config/constants/layoutDataItemTypes"),i=_interopRequireDefault(a("../utils/getWidget"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}}}));
//# sourceMappingURL=canBeDuplicated.js.map