Liferay.Loader.define("@liferay/layout-content-page-editor-web@3.0.156/page_editor/app/thunks/addWidget",["module","exports","require","../actions/addFragmentEntryLinks","../services/WidgetService"],(function(e,t,d){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function addWidget({parentItemId:e,portletId:t,portletItemId:d,position:a,selectItem:i=(()=>{})}){return(o,u)=>{n.default.addPortlet({onNetworkStatus:o,parentItemId:e,portletId:t,portletItemId:d,position:a,segmentsExperienceId:u().segmentsExperienceId}).then((({addedItemId:e,fragmentEntryLink:t,layoutData:d})=>{o((0,r.default)({addedItemId:e,fragmentEntryLinks:[t],layoutData:d})),e&&i(e)}))}};var r=_interopRequireDefault(d("../actions/addFragmentEntryLinks")),n=_interopRequireDefault(d("../services/WidgetService"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}}}));
//# sourceMappingURL=addWidget.js.map