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