Liferay.Loader.define("@liferay/layout-content-page-editor-web@3.0.145/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 updateFormItemConfig({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:u})=>{d((0,a.default)({addedFragmentEntryLinks:r,isMapping:n,itemId:t,layoutData:s,overridePreviousConfig:!0,removedFragmentEntryLinkIds:u})),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=_interopRequireDefault(n("../actions/updateFormItemConfig")),r=_interopRequireDefault(n("../actions/updateItemLocalConfig")),i=_interopRequireDefault(n("../services/FormService"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}}}));
//# sourceMappingURL=updateFormItemConfig.js.map