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