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