Liferay.Loader.define("@liferay/layout-content-page-editor-web@3.0.130/page_editor/app/components/undo/undoUpdateColSize",["module","exports","require","../../actions/index","../../services/LayoutService"],(function(e,t,r){var o;window;{Object.defineProperty(t,"__esModule",{value:!0}),t.undoAction=function({action:e,store:t}){const{columnConfigs:r,rowItemId:o}=e,{layoutData:c}=t,u=r.reduce(((e,t)=>{const r=c.items[t.itemId];return e[r.itemId]=a(a({},r),{},{config:t.config}),e}),{}),s=a(a({},c),{},{items:a(a({},c.items),u)});return e=>i.default.updateLayoutData({layoutData:s,onNetworkStatus:e,segmentsExperienceId:t.segmentsExperienceId}).then((()=>{e((0,n.updateColSize)({layoutData:s,rowItemId:o}))}))},t.getDerivedStateForUndo=function({action:e,state:t}){const{rowItemId:r}=e,{layoutData:o}=t,n=o.items[r];return{columnConfigs:n.children.map((e=>({config:o.items[e].config,itemId:e}))),rowItemId:r}};var n=r("../../actions/index"),i=(o=r("../../services/LayoutService"))&&o.__esModule?o:{default:o};function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){u(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function u(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}}}));
//# sourceMappingURL=undoUpdateColSize.js.map