Liferay.Loader.define("@liferay/layout-content-page-editor-web@3.0.132/page_editor/app/thunks/addItem",["module","exports","require","../actions/addItem","../services/LayoutService"],(function(e,t,a){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function({itemType:e,parentItemId:t,position:a,selectItem:o=(()=>{})}){return(i,r)=>{const{pageContents:u,segmentsExperienceId:s}=r();return d.default.addItem({itemType:e,onNetworkStatus:i,parentItemId:t,position:a,segmentsExperienceId:s}).then((({addedItemId:e,layoutData:t})=>{i((0,n.default)({itemId:e,layoutData:t,pageContents:u})),e&&o(e)}))}};var n=o(a("../actions/addItem")),d=o(a("../services/LayoutService"));function o(e){return e&&e.__esModule?e:{default:e}}}}));
//# sourceMappingURL=addItem.js.map