Liferay.Loader.define("@liferay/layout-content-page-editor-web@3.0.132/page_editor/app/components/undo/useUndo",["module","exports","require","liferay!frontend-js-react-web$react","../../actions/types","./undoActions"],(function(e,t,r){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function([e,t]){const r=(0,n.useRef)((e=>{(0,c.canUndoAction)(e)&&(e.isUndo?t(a(a({},e),{},{actionType:e.type,type:o.ADD_REDO_ACTION})):t(a(a({},e),{},{actionType:e.type,type:o.ADD_UNDO_ACTION}))),t(e)}));return[e,r.current]};var n=r("liferay!frontend-js-react-web$react"),o=r("../../actions/types"),c=r("./undoActions");function i(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 a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){p(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function p(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}}}));
//# sourceMappingURL=useUndo.js.map