Liferay.Loader.define("@liferay/layout-content-page-editor-web@3.0.179/page_editor/app/thunks/duplicateItem",["module","exports","require","../actions/duplicateItem","../config/constants/itemActivationOrigins","../services/FragmentService"],(function(e,t,i){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function duplicateItem({itemId:e,selectItem:t=(()=>{})}){return(i,d)=>{r.default.duplicateItem({itemId:e,onNetworkStatus:i,segmentsExperienceId:d().segmentsExperienceId}).then((({duplicatedFragmentEntryLinks:e,duplicatedItemId:r,layoutData:d,restrictedItemIds:u})=>{i((0,n.default)({addedFragmentEntryLinks:e,itemId:r,layoutData:d,restrictedItemIds:u})),r&&t(r,{origin:a.ITEM_ACTIVATION_ORIGINS.itemActions})}))}};var n=_interopRequireDefault(i("../actions/duplicateItem")),a=i("../config/constants/itemActivationOrigins"),r=_interopRequireDefault(i("../services/FragmentService"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}}}));
//# sourceMappingURL=duplicateItem.js.map