Liferay.Loader.define("@liferay/layout-content-page-editor-web@3.0.179/page_editor/app/components/undo/undoUpdateFragmentConfiguration",["module","exports","require","../../actions/updateFragmentEntryLinkConfiguration","../../services/FragmentService"],(function(e,n,t){window;{Object.defineProperty(n,"__esModule",{value:!0}),n.undoAction=function undoAction({action:e}){const{editableValues:n,fragmentEntryLinkId:t}=e;return(e,i)=>{const{languageId:o,segmentsExperienceId:u}=i();return r.default.updateConfigurationValues({editableValues:n,fragmentEntryLinkId:t,languageId:o,onNetworkStatus:e,segmentsExperienceId:u}).then((({fragmentEntryLink:n,layoutData:r,pageContents:i})=>{e((0,a.default)({fragmentEntryLink:n,fragmentEntryLinkId:t,layoutData:r,pageContents:i}))}))}},n.getDerivedStateForUndo=function getDerivedStateForUndo({action:e,state:n}){const{fragmentEntryLink:t}=e;return{editableValues:n.fragmentEntryLinks[t.fragmentEntryLinkId].editableValues,fragmentEntryLinkId:t.fragmentEntryLinkId}};var a=_interopRequireDefault(t("../../actions/updateFragmentEntryLinkConfiguration")),r=_interopRequireDefault(t("../../services/FragmentService"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}}}));
//# sourceMappingURL=undoUpdateFragmentConfiguration.js.map