Liferay.Loader.define("@liferay/layout-content-page-editor-web@3.0.151/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 undoAction({action:e,store:t}){const{itemId:n,portletIds:a}=e;return e=>r.default.unmarkItemsForDeletion({itemIds:[n],onNetworkStatus:e,segmentsExperienceId:t.segmentsExperienceId}).then((({layoutData:t,pageContents:r})=>{const d=(0,i.default)({itemId:n,layoutData:t});e((0,o.default)({fragmentEntryLinkIds:d,itemId:n,layoutData:t,pageContents:r,portletIds:a}))}))},t.getDerivedStateForUndo=function getDerivedStateForUndo({action:e}){return{itemId:e.itemId,portletIds:e.portletIds}};var o=_interopRequireDefault(n("../../actions/addItem")),r=_interopRequireDefault(n("../../services/LayoutService")),i=_interopRequireDefault(n("../../utils/getFragmentEntryLinkIdsFromItemId"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}}}));
//# sourceMappingURL=undoDeleteItem.js.map