Liferay.Loader.define("@liferay/layout-content-page-editor-web@3.0.169/page_editor/app/thunks/redo",["module","exports","require","../actions/types","../components/undo/undoActions"],(function(e,t,r){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function redo({store:t}){return r=>{if(!t.redoHistory||!t.redoHistory.length)return;const[i,...c]=t.redoHistory||[];r({redoHistory:c,type:o.UPDATE_REDO_ACTIONS});const redoDispatch=e=>r(_objectSpread(_objectSpread({},e),{},{isRedo:!0,originalType:i.originalType||i.type}));e=e.then((()=>(0,n.undoAction)({action:i,store:t})(redoDispatch,(()=>t))))}};var o=r("../actions/types"),n=r("../components/undo/undoActions");function ownKeys(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 _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach((function(t){_defineProperty(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function _defineProperty(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}let e=Promise.resolve()}}));
//# sourceMappingURL=redo.js.map