Liferay.Loader.define("@liferay/layout-content-page-editor-web@3.0.132/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({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({action:e,state:n}){const{fragmentEntryLink:t}=e;return{editableValues:n.fragmentEntryLinks[t.fragmentEntryLinkId].editableValues,fragmentEntryLinkId:t.fragmentEntryLinkId}};var a=i(t("../../actions/updateFragmentEntryLinkConfiguration")),r=i(t("../../services/FragmentService"));function i(e){return e&&e.__esModule?e:{default:e}}}}));
//# sourceMappingURL=undoUpdateFragmentConfiguration.js.map