Liferay.Loader.define("@liferay/layout-content-page-editor-web@3.0.130/page_editor/app/components/undo/undoDeleteItem",["module","exports","require","../../actions/addItem","../../actions/updatePageContents","../../services/InfoItemService","../../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:s}=e;return e=>d.default.unmarkItemForDeletion({itemId:n,onNetworkStatus:e,segmentsExperienceId:t.segmentsExperienceId}).then((({layoutData:t})=>{const r=(0,i.default)({itemId:n,layoutData:t});e((0,o.default)({fragmentEntryLinkIds:r,itemId:n,layoutData:t,portletIds:s}))})).then((()=>{a.default.getPageContents({onNetworkStatus:e,segmentsExperienceId:t.segmentsExperienceId}).then((t=>{e((0,r.default)({pageContents:t}))}))}))},t.getDerivedStateForUndo=function({action:e}){return{itemId:e.itemId,portletIds:e.portletIds}};var o=s(n("../../actions/addItem")),r=s(n("../../actions/updatePageContents")),a=s(n("../../services/InfoItemService")),d=s(n("../../services/LayoutService")),i=s(n("../../utils/getFragmentEntryLinkIdsFromItemId"));function s(e){return e&&e.__esModule?e:{default:e}}}}));
//# sourceMappingURL=undoDeleteItem.js.map