Liferay.Loader.define("@liferay/layout-content-page-editor-web@3.0.132/page_editor/app/components/undo/undoMoveItem",["module","exports","require","../../thunks/moveItem"],(function(e,t,o){var n;window;Object.defineProperty(t,"__esModule",{value:!0}),t.undoAction=function({action:e}){const{itemId:t,parentItemId:o,position:n}=e;return(0,i.default)({itemId:t,parentItemId:o,position:n})},t.getDerivedStateForUndo=function({action:e,state:t}){const{itemId:o}=e,{layoutData:n}=t,i=n.items[o],d=n.items[i.parentId],a=d.children.indexOf(o);return{itemId:e.itemId,parentItemId:d.itemId,position:a}};var i=(n=o("../../thunks/moveItem"))&&n.__esModule?n:{default:n}}));
//# sourceMappingURL=undoMoveItem.js.map