Liferay.Loader.define("@liferay/layout-content-page-editor-web@3.0.179/page_editor/app/thunks/updateFormItemConfig",["module","exports","require","frontend-js-web","../actions/updateFormItemConfig","../actions/updateItemLocalConfig","../services/FormService"],(function(e,t,o){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function updateFormItemConfig({itemConfig:e,itemId:t,overridePreviousConfig:o=!0}){const d=Boolean(e.classNameId);return(s,u)=>(d&&s((0,r.default)({disableUndo:!0,itemConfig:{loading:!0},itemId:t})),i.default.updateFormItemConfig({itemConfig:e,itemId:t,onNetworkStatus:s,segmentsExperienceId:u().segmentsExperienceId}).then((({addedFragmentEntryLinks:r,errorMessage:i,layoutData:u,removedFragmentEntryLinkIds:m})=>{s((0,a.default)({addedFragmentEntryLinks:r,isMapping:d,itemId:t,layoutData:u,overridePreviousConfig:o,removedFragmentEntryLinkIds:m})),i?(0,n.openToast)({message:i,type:"danger"}):d&&"0"!==e.classNameId&&(0,n.openToast)({message:Liferay.Language.get("your-form-has-been-successfully-loaded"),type:"success"})})))};var n=o("frontend-js-web"),a=_interopRequireDefault(o("../actions/updateFormItemConfig")),r=_interopRequireDefault(o("../actions/updateItemLocalConfig")),i=_interopRequireDefault(o("../services/FormService"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}}}));
//# sourceMappingURL=updateFormItemConfig.js.map