Liferay.Loader.define("@liferay/layout-content-page-editor-web@3.0.132/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(t){return Object.keys(e).includes(t.type)&&!t.disableUndo},t.getDerivedStateForUndo=function({action:t,state:n,type:o}){return P(P({},e[o].getDerivedStateForUndo({action:t,state:n})),{},{itemName:(0,i.getItemNameFromAction)({action:t,state:n}),segmentsExperienceId:n.segmentsExperienceId,type:o})},t.undoAction=function({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"),u=L(n("./undoAddFragmentEntryLinks")),d=L(n("./undoAddItem")),a=L(n("./undoChangeMasterLayout")),c=L(n("./undoDeleteItem")),p=L(n("./undoDuplicateItem")),l=L(n("./undoMoveItem")),g=L(n("./undoSelectExperience")),E=L(n("./undoSwitchViewportSize")),s=L(n("./undoToggleFragmentHighlighted")),f=L(n("./undoToggleWidgetHighlighted")),I=L(n("./undoUpdateColSize")),O=L(n("./undoUpdateCollectionDisplayCollection")),_=L(n("./undoUpdateEditableValuesAction")),m=L(n("./undoUpdateFormItemConfig")),T=L(n("./undoUpdateFragmentConfiguration")),y=L(n("./undoUpdateItemConfig")),A=L(n("./undoUpdateItemLocalConfig")),U=L(n("./undoUpdateLanguage")),D=L(n("./undoUpdateRowColumns"));function C(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return C=function(){return e},e}function L(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=C();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 b(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 P(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){M(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function M(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]:u,[r.ADD_ITEM]:d,[r.CHANGE_MASTER_LAYOUT]:a,[r.DELETE_ITEM]:c,[r.DUPLICATE_ITEM]:p,[r.MOVE_ITEM]:l,[o.SELECT_SEGMENTS_EXPERIENCE]:g,[r.SWITCH_VIEWPORT_SIZE]:E,[r.TOGGLE_FRAGMENT_HIGHLIGHTED]:s,[r.TOGGLE_WIDGET_HIGHLIGHTED]:f,[r.UPDATE_COL_SIZE]:I,[r.UPDATE_COLLECTION_DISPLAY_COLLECTION]:O,[r.UPDATE_EDITABLE_VALUES]:_,[r.UPDATE_FORM_ITEM_CONFIG]:m,[r.UPDATE_FRAGMENT_ENTRY_LINK_CONFIGURATION]:T,[r.UPDATE_ITEM_CONFIG]:y,[r.UPDATE_ITEM_LOCAL_CONFIG]:A,[r.UPDATE_LANGUAGE_ID]:U,[r.UPDATE_ROW_COLUMNS]:D}}}));
//# sourceMappingURL=undoActions.js.map