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