Liferay.Loader.define("@liferay/layout-content-page-editor-web@3.0.151/page_editor/app/services/WidgetService",["module","exports","require","../config/index","./serviceFetch"],(function(e,t,i){window;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i("../config/index"),r=function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}(i("./serviceFetch"));var d={addPortlet:({onNetworkStatus:e,parentItemId:t,portletId:i,portletItemId:d,position:n,segmentsExperienceId:a})=>(0,r.default)(o.config.addPortletURL,{body:{parentItemId:t,portletId:i,portletItemId:d,position:n,segmentsExperienceId:a}},e,{requestGenerateDraft:!0}),getWidgets:()=>(0,r.default)(o.config.getPortletsURL,{},(()=>{})),toggleWidgetHighlighted:({highlighted:e,onNetworkStatus:t,portletId:i})=>(0,r.default)(o.config.updatePortletsHighlightedConfigurationURL,{body:{highlighted:e,portletId:i}},t,{requestGenerateDraft:!0})};t.default=d}));
//# sourceMappingURL=WidgetService.js.map