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