Liferay.Loader.define("@liferay/layout-content-page-editor-web@3.0.132/page_editor/app/components/undo/undoDeleteItem",["module","exports","require","../../actions/addItem","../../services/LayoutService","../../utils/getFragmentEntryLinkIdsFromItemId"],(function(e,t,n){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.undoAction=function({action:e,store:t}){const{itemId:n,portletIds:a}=e;return e=>r.default.unmarkItemForDeletion({itemId:n,onNetworkStatus:e,segmentsExperienceId:t.segmentsExperienceId}).then((({layoutData:t,pageContents:r})=>{const i=(0,d.default)({itemId:n,layoutData:t});e((0,o.default)({fragmentEntryLinkIds:i,itemId:n,layoutData:t,pageContents:r,portletIds:a}))}))},t.getDerivedStateForUndo=function({action:e}){return{itemId:e.itemId,portletIds:e.portletIds}};var o=a(n("../../actions/addItem")),r=a(n("../../services/LayoutService")),d=a(n("../../utils/getFragmentEntryLinkIdsFromItemId"));function a(e){return e&&e.__esModule?e:{default:e}}}}));
//# sourceMappingURL=undoDeleteItem.js.map