Liferay.Loader.define("frontend-js-web@5.0.45/liferay/util/navigate.es",["module","exports","require"],(function(e,t,o){window;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var o,n,i;let r=e;"URL"===(null==e||null===(o=e.constructor)||void 0===o?void 0:o.name)&&(r=String(e));(null===(n=Liferay.SPA)||void 0===n||null===(i=n.app)||void 0===i?void 0:i.canNavigate(r))?(Liferay.SPA.app.navigate(r),t&&Object.keys(t).forEach((e=>{Liferay.once(e,t[e])}))):function(e){let t;try{t=e.startsWith("/")?new URL(e,window.location.origin):new URL(e)}catch(e){return!1}return"http:"===t.protocol||"https:"===t.protocol}(r)&&(window.location.href=r)}}));
//# sourceMappingURL=navigate.es.js.map