Liferay.Loader.define("@liferay/layout-content-page-editor-web@3.0.169/page_editor/app/components/undo/undoActions",["module","exports","require","../../../plugins/experience/actions","../../actions/types","./getItemNameFromAction","./undoAddFragmentEntryLinks","./undoAddItem","./undoChangeMasterLayout","./undoDeleteItem","./undoDuplicateItem","./undoMoveItem","./undoSelectExperience","./undoSwitchViewportSize","./undoToggleFragmentHighlighted","./undoToggleWidgetHighlighted","./undoUpdateColSize","./undoUpdateCollectionDisplayCollection","./undoUpdateEditableValuesAction","./undoUpdateFormItemConfig","./undoUpdateFragmentConfiguration","./undoUpdateItemConfig","./undoUpdateItemLocalConfig","./undoUpdateLanguage","./undoUpdateRowColumns"],(function(e,t,n){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.canUndoAction=function canUndoAction(t){return Object.keys(e).includes(t.type)&&!t.disableUndo},t.getDerivedStateForUndo=function getDerivedStateForUndo({action:t,state:n,type:o}){return _objectSpread(_objectSpread({},e[o].getDerivedStateForUndo({action:t,state:n})),{},{itemName:(0,i.getItemNameFromAction)({action:t,state:n}),segmentsExperienceId:n.segmentsExperienceId,type:o})},t.undoAction=function undoAction({action:t,store:n}){const{type:o}=t;return e[o].undoAction({action:t,store:n})};var o=n("../../../plugins/experience/actions"),r=n("../../actions/types"),i=n("./getItemNameFromAction"),d=_interopRequireWildcard(n("./undoAddFragmentEntryLinks")),a=_interopRequireWildcard(n("./undoAddItem")),u=_interopRequireWildcard(n("./undoChangeMasterLayout")),c=_interopRequireWildcard(n("./undoDeleteItem")),p=_interopRequireWildcard(n("./undoDuplicateItem")),l=_interopRequireWildcard(n("./undoMoveItem")),_=_interopRequireWildcard(n("./undoSelectExperience")),g=_interopRequireWildcard(n("./undoSwitchViewportSize")),E=_interopRequireWildcard(n("./undoToggleFragmentHighlighted")),s=_interopRequireWildcard(n("./undoToggleWidgetHighlighted")),f=_interopRequireWildcard(n("./undoUpdateColSize")),I=_interopRequireWildcard(n("./undoUpdateCollectionDisplayCollection")),O=_interopRequireWildcard(n("./undoUpdateEditableValuesAction")),m=_interopRequireWildcard(n("./undoUpdateFormItemConfig")),y=_interopRequireWildcard(n("./undoUpdateFragmentConfiguration")),T=_interopRequireWildcard(n("./undoUpdateItemConfig")),A=_interopRequireWildcard(n("./undoUpdateItemLocalConfig")),U=_interopRequireWildcard(n("./undoUpdateLanguage")),C=_interopRequireWildcard(n("./undoUpdateRowColumns"));function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function _getRequireWildcardCache(){return e},e}function _interopRequireWildcard(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var i=o?Object.getOwnPropertyDescriptor(e,r):null;i&&(i.get||i.set)?Object.defineProperty(n,r,i):n[r]=e[r]}return n.default=e,t&&t.set(e,n),n}function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(n),!0).forEach((function(t){_defineProperty(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _defineProperty(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const e={[r.ADD_FRAGMENT_ENTRY_LINKS]:d,[r.ADD_ITEM]:a,[r.CHANGE_MASTER_LAYOUT]:u,[r.DELETE_ITEM]:c,[r.DUPLICATE_ITEM]:p,[r.MOVE_ITEM]:l,[o.SELECT_SEGMENTS_EXPERIENCE]:_,[r.SWITCH_VIEWPORT_SIZE]:g,[r.TOGGLE_FRAGMENT_HIGHLIGHTED]:E,[r.TOGGLE_WIDGET_HIGHLIGHTED]:s,[r.UPDATE_COL_SIZE]:f,[r.UPDATE_COLLECTION_DISPLAY_COLLECTION]:I,[r.UPDATE_EDITABLE_VALUES]:O,[r.UPDATE_FORM_ITEM_CONFIG]:m,[r.UPDATE_FRAGMENT_ENTRY_LINK_CONFIGURATION]:y,[r.UPDATE_ITEM_CONFIG]:T,[r.UPDATE_ITEM_LOCAL_CONFIG]:A,[r.UPDATE_LANGUAGE_ID]:U,[r.UPDATE_ROW_COLUMNS]:C}}}));
//# sourceMappingURL=undoActions.js.map