Liferay.Loader.define("product-navigation-control-menu@6.0.40/js/addPortlet",["module","exports","require","frontend-js-web","./addLoadingAnimation","./constants/layoutDataItemTypes"],(function(t,e,a){var o;window;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var d=a("frontend-js-web"),n=(o=a("./addLoadingAnimation"))&&o.__esModule?o:{default:o},l=a("./constants/layoutDataItemTypes");var r=({item:t,plid:e,targetItem:a,targetPosition:o})=>{const r=(0,n.default)(a,o);(0,d.openToast)({message:Liferay.Language.get("the-application-was-added-to-the-page"),type:"success"});const s=t.type===l.LAYOUT_DATA_ITEM_TYPES.widget?"":"".concat(t.data.classPK,",").concat(t.data.className);Liferay.Portlet.add({beforePortletLoaded:()=>null,placeHolder:r,plid:e,portletData:s,portletId:t.data.portletId,portletItemId:t.data.portletItemId||""})};e.default=r}));
//# sourceMappingURL=addPortlet.js.map