Liferay.Loader.define("@liferay/layout-content-page-editor-web@3.0.130/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:n=(()=>{})}){return(o,r)=>i.default.addItem({itemType:e,onNetworkStatus:o,parentItemId:t,position:a,segmentsExperienceId:r().segmentsExperienceId}).then((({addedItemId:e,layoutData:t})=>{o((0,d.default)({itemId:e,layoutData:t})),e&&n(e)}))};var d=n(a("../actions/addItem")),i=n(a("../services/LayoutService"));function n(e){return e&&e.__esModule?e:{default:e}}}}));
//# sourceMappingURL=addItem.js.map