Liferay.Loader.define("frontend-js-spa-web@5.0.28/surface/Surface",["module","exports","require","frontend-js-web"],(function(t,e,i){window;{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var s=i("frontend-js-web");class t extends s.Disposable{constructor(e){if(super(),!e)throw new Error("Surface element id not specified. A surface element requires a valid id.");this.activeChild=null,this.defaultChild=null,this.element=null,this.id=e,this.transitionFn=null,this.defaultChild=this.getChild(t.DEFAULT),this.maybeWrapContentAsDefault_(),this.activeChild=this.defaultChild}addContent(t,e){const i="string"==typeof e?(0,s.buildFragment)(e):e;Liferay.DOMTaskRunner.runTasks(i);let n=this.defaultChild;if(i){if(n=this.getChild(t),n)for(;n.firstChild;)n.removeChild(n.firstChild);else n=this.createChild(t),this.transition(n,null);n.appendChild(i)}const d=this.getElement();return d&&n&&d.appendChild(n),n}createChild(t){const e=document.createElement("div");return e.setAttribute("id",this.makeId_(t)),e}getChild(t){return document.getElementById(this.makeId_(t))}getElement(){return this.element||(this.element=document.getElementById(this.id)),this.element}getId(){return this.id}getTransitionFn(){return this.transitionFn}makeId_(t){return this.id+"-"+t}maybeWrapContentAsDefault_(){const e=this.getElement();if(e&&!this.defaultChild){const i=[];e.childNodes.forEach((t=>{t.classList&&(t.classList.contains("yui3-dd-proxy")||t.classList.contains("yui3-dd-shim"))||i.push(t)}));const s=document.createDocumentFragment();i.forEach((t=>{s.appendChild(t)})),this.defaultChild=this.addContent(t.DEFAULT,s),this.transition(null,this.defaultChild)}}setId(t){this.id=t}setTransitionFn(t){this.transitionFn=t}show(t){const e=this.activeChild;let i=this.getChild(t);return i||(i=this.defaultChild),this.activeChild=i,this.transition(e,i).finally((()=>{e&&e!==i&&e.remove()}))}remove(t){const e=this.getChild(t);e&&e.remove()}toString(){return this.id}transition(e,i){const s=this.transitionFn||t.defaultTransition;return Promise.resolve(s.call(this,e,i))}}t.DEFAULT="default",t.defaultTransition=function(t,e){t&&(t.style.display="none",t.classList.remove("flipped")),e&&(e.style.display="block",e.classList.add("flipped"))};var n=t;e.default=n}}));
//# sourceMappingURL=Surface.js.map
Liferay.Loader.define("frontend-js-spa-web@5.0.28/util/utils",["module","exports","require"],(function(t,e,n){window;{Object.defineProperty(e,"__esModule",{value:!0}),e.clearNodeAttributes=function(t){Array.prototype.slice.call(t.attributes).forEach((e=>t.removeAttribute(e.name)))},e.copyNodeAttributes=function(t,e){Array.prototype.slice.call(t.attributes).forEach((t=>e.setAttribute(t.name,t.value)))},e.getCurrentBrowserPath=function(){return"".concat(window.location.pathname).concat(window.location.search).concat(window.location.hash)},e.getCurrentBrowserPathWithoutHash=r,e.getNodeOffset=function(t){let[e,n]=[0,0];do{e+=t.offsetLeft,n+=t.offsetTop,t=t.offsetParent}while(t);return{offsetLeft:e,offsetTop:n}},e.getPortletBoundaryId=o,e.getPortletBoundaryIds=i,e.getUid=function(){return t++},e.getUrlPath=a,e.getUrlPathWithoutHash=c,e.getUrlPathWithoutHashAndSearch=function(t){return(!t||t.startsWith("/")?new URL(t,window.location.origin):new URL(t)).pathname},e.isCurrentBrowserPath=function(t){if(t){const e=r();return c(t)===a(e)}return!1},e.removePathTrailingSlash=function(t){const e=t?t.length:0;e>1&&"/"===t[e-1]&&(t=t.substr(0,e-1));return t},e.resetAllPortlets=function(){i(Liferay.Portlet.list).forEach((t=>{const e=document.querySelector("#"+t);e&&(Liferay.Portlet.destroy(e),e.portletProcessed=!1)})),Liferay.Portlet.readyCounter=0,Liferay.destroyComponents(((t,e)=>e.destroyOnNavigate))},e.runStyle=s,e.runStylesInElement=function(t,e,n){const r=t.querySelectorAll("style,link");if(!r.length&&e)return void setTimeout(e);let o=0;const i=function(){e&&++o===r.length&&setTimeout(e)};for(let t=0;t<r.length;t++)s(r[t],i,n)},e.setReferrer=function(t){Object.defineProperty(document,"referrer",{configurable:!0,get:()=>t})};let t=1;function r(){return"".concat(window.location.pathname).concat(window.location.search)}function o(t){return"p_p_id_"+t+"_"}function i(t){return t.map((t=>o(t)))}function a(t){const e=!t||t.startsWith("/")?new URL(t,window.location.origin):new URL(t);return e.pathname+e.search+e.hash}function c(t){const e=!t||t.startsWith("/")?new URL(t,window.location.origin):new URL(t);return e.pathname+e.search}function s(t,e,n){const r=function(){e&&e()};if(!t.rel||"stylesheet"===t.rel||"canonical"===t.rel||"alternate"===t.rel)return"STYLE"===t.tagName||"canonical"===t.rel||"alternate"===t.rel?setTimeout(r):(t.addEventListener("load",r,{once:!0}),t.addEventListener("error",r,{once:!0})),n?n(t):document.head.appendChild(t),t;setTimeout(r)}}}));
//# sourceMappingURL=utils.js.map
Liferay.Loader.define("frontend-js-spa-web@5.0.28/util/pathParser",["module","exports","require"],(function(e,t,n){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.parse=f,t.toRegex=function(e){return i(f(e))},t.extractData=function(e,t){const n={},r=f(e),a=t.match(i(r));if(!a)return null;let o=1;for(let e=0;e<r.length;e++)if("string"!=typeof r[e]){let t=a[o++];void 0!==t&&(r[e].repeat&&(t=t.split("/")),n[r[e].name]=t)}return n};const e=/([/])?(?:(?::(\w+)(?:\(((?:\\.|[^\\()])*)\))?|\(((?:\\.|[^\\()])+)\))([+*?])?)/g;function r(e){return{match:e[0],modifier:e[5],name:e[2],paramPattern:e[3],prefix:e[1],unnamedPattern:e[4]}}function i(e){let t="";for(let n=0;n<e.length;n++)if("string"==typeof e[n])t+=o(e[n]);else{let r=a(e[n].pattern);e[n].repeat&&(r+=a("\\/"+r)+"*"),r=o(e[n].prefix)+"(".concat(r,")"),e[n].optional&&(e[n].partial||(r=a(r)),r+="?"),t+=r}return new RegExp("^"+function(e){e.endsWith("/")?e+="?":e+="\\/?";return e}(t)+"$")}function a(e){return"(?:".concat(e,")")}function o(e){return e.replace(/([.+*?=^!:${}()[]|\/\\])/g,"\\$1")}function f(t){if("string"!=typeof t)return t;const n=t;let i=0;const a=[];let o="",f=0,u=e.exec(n);for(;u;){const t=r(u);o=n.slice(f,u.index),f=u.index+t.match.length,a.push(o),a.push({name:t.name?t.name:""+i++,optional:"*"===t.modifier||"?"===t.modifier,partial:n[f]&&n[f]!==t.prefix,pattern:t.paramPattern||t.unnamedPattern||"[^\\/]+",prefix:t.prefix||"",repeat:"*"===t.modifier||"+"===t.modifier}),u=e.exec(n)}return f<n.length&&a.push(n.substr(f)),a}}}));
//# sourceMappingURL=pathParser.js.map
Liferay.Loader.define("frontend-js-spa-web@5.0.28/route/Route",["module","exports","require","../util/pathParser"],(function(t,e,a){window;{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=a("../util/pathParser");class t{constructor(t,e){if(!t)throw new Error("Route path not specified.");if("function"!=typeof e)throw new Error("Route handler is not a function.");this.handler=e,this.path=t}buildParsedData_(){if(!this.parsedData_){const t=(0,r.parse)(this.path),e=(0,r.toRegex)(t);this.parsedData_={regex:e,tokens:t}}return this.parsedData_}extractParams(t){return"string"==typeof this.path?(0,r.extractData)(this.buildParsedData_().tokens,t):{}}getHandler(){return this.handler}getPath(){return this.path}matchesPath(t){let e=this.path;return"function"==typeof e?e(t):("string"==typeof e&&(e=this.buildParsedData_().regex),e instanceof RegExp&&t.search(e)>-1)}}var s=t;e.default=s}}));
//# sourceMappingURL=Route.js.map
Liferay.Loader.define("frontend-js-spa-web@5.0.28/cacheable/Cacheable",["module","exports","require","frontend-js-web"],(function(e,a,c){window;{Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var t=c("frontend-js-web");class e extends t.Disposable{constructor(){super(),this.cache=null,this.cacheable=!1}addCache(e){return this.cacheable&&(this.cache=e),this}clearCache(){return this.cache=null,this}disposeInternal(){this.clearCache()}getCache(){return this.cache}isCacheable(){return this.cacheable}setCacheable(e){e||this.clearCache(),this.cacheable=e}}var h=e;a.default=h}}));
//# sourceMappingURL=Cacheable.js.map
Liferay.Loader.define("frontend-js-spa-web@5.0.28/screen/Screen",["module","exports","require","frontend-js-web","../cacheable/Cacheable","../util/utils"],(function(e,t,r){var s;window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r("frontend-js-web"),a=(s=r("../cacheable/Cacheable"))&&s.__esModule?s:{default:s},n=r("../util/utils");class e extends a.default{constructor(){super(),this.id=this.makeId_((0,n.getUid)()),this.metas=null,this.title=null}activate(){}beforeActivate(){}beforeDeactivate(){}beforeUpdateHistoryPath(e){return e}beforeUpdateHistoryState(e){return e}deactivate(){}disposeInternal(){super.disposeInternal()}evaluateScripts(e){return Object.keys(e).forEach((t=>{e[t].activeChild&&(0,i.runScriptsInElement)(e[t].activeChild)})),Promise.resolve()}evaluateStyles(){return Promise.resolve()}flip(e){const t=[];return Object.keys(e).forEach((r=>{const s=e[r].show(this.id);t.push(s)})),Promise.all(t)}getId(){return this.id}getMetas(){return this.metas}getSurfaceContent(){}getTitle(){return this.title}load(){return Promise.resolve()}makeId_(e){return"screen_"+e}setId(e){this.id=e}setMetas(e){this.metas=e}setTitle(e){this.title=e}toString(){return this.id}}e.isImplementedBy=function(t){return t instanceof e};var l=e;t.default=l}}));
//# sourceMappingURL=Screen.js.map
Liferay.Loader.define("frontend-js-spa-web@5.0.28/app/App",["module","exports","require","frontend-js-web","../route/Route","../screen/Screen","../surface/Surface","../util/utils"],(function(e,t,i){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i("frontend-js-web"),a=h(i("../route/Route")),o=h(i("../screen/Screen")),s=h(i("../surface/Surface")),n=i("../util/utils");function h(e){return e&&e.__esModule?e:{default:e}}const e={IMMEDIATE:"immediate",SCHEDULE_LAST:"scheduleLast"};class c extends r.EventEmitter{constructor(t){super(),this.activeScreen=null,this.activePath=null,this.allowPreventNavigate=!0,this.basePath="",this.browserPathBeforeNavigate=(0,n.getCurrentBrowserPathWithoutHash)(),this.captureScrollPositionFromScrollEvent=!0,this.defaultTitle=document.title,this.formSelector=(null==t?void 0:t.navigationExceptionSelectors)?"form".concat(t.navigationExceptionSelectors):'form[enctype="multipart/form-data"]:not([data-senna-off])',this.ignoreQueryStringFromRoutePath=!1,this.linkSelector=(null==t?void 0:t.navigationExceptionSelectors)?"a".concat(t.navigationExceptionSelectors):'a:not([data-senna-off]):not([target="_blank"])',this.loadingCssClass="senna-loading",this.nativeScrollRestorationSupported="scrollRestoration"in window.history,this.navigationStrategy=e.IMMEDIATE,this.isNavigationPending=!1,this.pendingNavigate=null,this.popstateScrollLeft=0,this.popstateScrollTop=0,this.redirectPath=null,this.routes=[],this.scheduledNavigationQueue=[],this.screens={},this.skipLoadPopstate=!1,this.surfaces={},this.updateScrollPosition=!0,this.appEventHandlers_=new r.EventHandler,this.appEventHandlers_.add(this.addDOMEventListener(window,"scroll",(0,r.debounce)(this.onScroll_.bind(this),100)),this.addDOMEventListener(window,"load",this.onLoad_.bind(this)),this.addDOMEventListener(window,"popstate",this.onPopstate_.bind(this))),this.on("startNavigate",this.onStartNavigate_),this.on("beforeNavigate",this.onBeforeNavigate_),this.on("beforeNavigate",this.onBeforeNavigateDefault_,!0),this.on("beforeUnload",this.onBeforeUnloadDefault_),this.setLinkSelector(this.linkSelector),this.setFormSelector(this.formSelector),this.maybeOverloadBeforeUnload_()}addDOMEventListener(e,t,i){return e.addEventListener(t,i),{removeListener(){e.removeEventListener(t,i)}}}addRoutes(e){return Array.isArray(e)||(e=[e]),e.forEach((e=>{e instanceof a.default||(e=new a.default(e.path,e.handler)),this.routes.push(e)})),this}addSurfaces(e){return Array.isArray(e)||(e=[e]),e.forEach((e=>{"string"==typeof e&&(e=new s.default(e)),this.surfaces[e.getId()]=e})),this}canNavigate(e){try{const t=e.startsWith("/")?new URL(e,window.location.origin):new URL(e),i=(0,n.getUrlPath)(e);return!!this.isLinkSameOrigin_(t.host)&&(!!this.isSameBasePath_(i)&&((!t.hash&&!e.endsWith("#")||!(0,n.isCurrentBrowserPath)(i))&&!!this.findRoute(i)))}catch(e){return!1}}clearScreensCache(){Object.keys(this.screens).forEach((e=>{e===this.activePath?this.activeScreen.clearCache():this.isNavigationPending&&this.pendingNavigate.path===e||this.removeScreen(e)}))}createScreenInstance(e,t){if(!this.pendingNavigate&&e===this.activePath)return this.activeScreen;let i=this.screens[e];if(!i){const e=t.getHandler();i=e===o.default||o.default.isImplementedBy(e.prototype)?new e:e(t)||new o.default}return i}disposeInternal(){this.activeScreen&&this.removeScreen(this.activePath),this.clearScreensCache(),this.formEventHandler_.dispose(),this.linkEventHandler_.dispose(),this.appEventHandlers_.removeAllListeners(),super.disposeInternal()}dispatch(){return this.navigate((0,n.getCurrentBrowserPath)(),!0)}doNavigate_(t,i){const r=this.findRoute(t);if(!r)return Promise.reject(new Error("No route for "+t));this.stopPendingNavigate_(),this.isNavigationPending=!0;const a=this.createScreenInstance(t,r);return this.maybePreventDeactivate_().then((()=>this.maybePreventActivate_(a))).then((()=>a.load(t))).then((()=>{this.navigationStrategy=e.SCHEDULE_LAST,this.activeScreen&&this.activeScreen.deactivate(),this.prepareNavigateHistory_(t,a,i),this.prepareNavigateSurfaces_(a,this.surfaces,this.extractParams(r,t))})).then((()=>a.evaluateStyles(this.surfaces))).then((()=>a.flip(this.surfaces))).then((()=>a.evaluateScripts(this.surfaces))).then((()=>this.maybeUpdateScrollPositionState_())).then((()=>this.syncScrollPositionSyncThenAsync_())).then((()=>this.finalizeNavigate_(t,a))).then((()=>this.maybeOverloadBeforeUnload_())).catch((e=>{throw this.isNavigationPending=!1,this.handleNavigateError_(t,a,e),e})).finally((()=>{if(this.navigationStrategy=e.IMMEDIATE,this.scheduledNavigationQueue.length){const e=this.scheduledNavigationQueue.shift();this.maybeNavigate_(e.href,e)}}))}extractParams(e,t){return e.extractParams(this.getRoutePath(t))}finalizeNavigate_(e,t){t.activate(),this.activeScreen&&!this.activeScreen.isCacheable()&&this.activeScreen!==t&&this.removeScreen(this.activePath),this.activePath=e,this.activeScreen=t,this.browserPathBeforeNavigate=(0,n.getCurrentBrowserPathWithoutHash)(),this.screens[e]=t,this.isNavigationPending=!1,this.pendingNavigate=null,Liferay.SPA.__capturedFormElement__=null,Liferay.SPA.__capturedFormButtonElement__=null}findRoute(e){e=this.getRoutePath(e);for(let t=0;t<this.routes.length;t++){const i=this.routes[t];if(i.matchesPath(e))return i}return null}getAllowPreventNavigate(){return this.allowPreventNavigate}getBasePath(){return this.basePath}getDefaultTitle(){return this.defaultTitle}getFormSelector(){return this.formSelector}getIgnoreQueryStringFromRoutePath(){return this.ignoreQueryStringFromRoutePath}getLinkSelector(){return this.linkSelector}getLoadingCssClass(){return this.loadingCssClass}getRoutePath(e){return this.getIgnoreQueryStringFromRoutePath()?(e=(0,n.getUrlPathWithoutHashAndSearch)(e),(0,n.getUrlPathWithoutHashAndSearch)(e.substr(this.basePath.length))):(e=(0,n.getUrlPathWithoutHash)(e),(0,n.getUrlPathWithoutHash)(e.substr(this.basePath.length)))}getUpdateScrollPosition(){return this.updateScrollPosition}handleNavigateError_(e,t,i){this.emit("navigationError",{error:i,nextScreen:t,path:e}),(0,n.isCurrentBrowserPath)(e)||(this.isNavigationPending&&this.pendingNavigate?this.pendingNavigate.finally((()=>this.removeScreen(e)),this):this.removeScreen(e))}hasRoutes(){return!!this.routes.length}isLinkSameOrigin_(e){return e===window.location.host}isSameBasePath_(e){return 0===e.indexOf(this.basePath)}lockHistoryScrollPosition_(){const e=window.history.state;if(!e)return;let t=!1;const i=function i(){document.removeEventListener("scroll",i,!1),t||(window.scrollTo(e.scrollLeft,e.scrollTop),t=!0)};setTimeout(i),document.addEventListener("scroll",i,!1)}maybeDisableNativeScrollRestoration(){this.nativeScrollRestorationSupported&&(this.nativeScrollRestoration_=window.history.scrollRestoration,window.history.scrollRestoration="manual")}maybeScheduleNavigation_(t,i){return!(!this.isNavigationPending||this.navigationStrategy!==e.SCHEDULE_LAST)&&(this.scheduledNavigationQueue=[{href:t,isScheduledNavigation:!0},...i],!0)}maybeNavigate_(e,t){if(!this.canNavigate(e))return;if(this.maybeScheduleNavigation_(e,t))return void t.preventDefault();let i=!1;try{this.navigate((0,n.getUrlPath)(e),!1,t)}catch(e){i=!0}i||t.isScheduledNavigation||t.preventDefault()}maybeOverloadBeforeUnload_(){"function"==typeof window.onbeforeunload&&(window._onbeforeunload=window.onbeforeunload,window.onbeforeunload=e=>{if(this.emit("beforeUnload",e),e&&e.defaultPrevented)return!0},window.onbeforeunload._overloaded=!0)}maybePreventActivate_(e){return Promise.resolve().then((()=>e.beforeActivate())).then((e=>{if(e)return Promise.reject(new Error("Cancelled by next screen"))}))}maybePreventDeactivate_(){return Promise.resolve().then((()=>{if(this.activeScreen)return this.activeScreen.beforeDeactivate()})).then((e=>{if(e)return Promise.reject(new Error("Cancelled by active screen"))}))}maybeRepositionScrollToHashedAnchor(){const e=window.location.hash;if(e){const t=document.getElementById(e.substring(1));if(t){const{offsetLeft:e,offsetTop:i}=(0,n.getNodeOffset)(t);window.scrollTo(e,i)}}}maybeRestoreNativeScrollRestoration(){this.nativeScrollRestorationSupported&&this.nativeScrollRestoration_&&(window.history.scrollRestoration=this.nativeScrollRestoration_)}maybeRestoreRedirectPathHash_(e,t,i){return t===(0,n.getUrlPathWithoutHash)(e)?t+i:t}maybeUpdateScrollPositionState_(){const e=window.location.hash,t=document.getElementById(e.substring(1));if(t){const{offsetLeft:e,offsetTop:i}=(0,n.getNodeOffset)(t);this.saveHistoryCurrentPageScrollPosition_(i,e)}}navigate(e,t,i){return i&&(Liferay.SPA.__capturedFormElement__=i.capturedFormElement,Liferay.SPA.__capturedFormButtonElement__=i.capturedFormButtonElement),e===this.activePath&&(t=!0),this.emit("beforeNavigate",{event:i,path:e,replaceHistory:!!t}),this.pendingNavigate}onBeforeNavigate_(e){Liferay.SPA.__capturedFormElement__&&(e.form=Liferay.SPA.__capturedFormElement__)}onBeforeNavigateDefault_(t){(!this.pendingNavigate||this.pendingNavigate.path!==t.path&&this.navigationStrategy!==e.SCHEDULE_LAST)&&(this.emit("beforeUnload",t),this.emit("startNavigate",{form:t.form,path:t.path,replaceHistory:t.replaceHistory}))}onBeforeUnloadDefault_(e){const t=window._onbeforeunload;t&&!t._overloaded&&t()&&e.preventDefault()}onDocClickDelegate_(e){e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.button||this.maybeNavigate_(e.delegateTarget.href,e)}onDocSubmitDelegate_(e){const t=e.delegateTarget;if("get"===t.method)return;e.capturedFormElement=t;const i="button:not([type]),button[type=submit],input[type=submit]";document.activeElement.matches(i)?e.capturedFormButtonElement=document.activeElement:e.capturedFormButtonElement=t.querySelector(i),this.maybeNavigate_(t.action,e)}onLoad_(){this.skipLoadPopstate=!0,setTimeout((()=>{this.skipLoadPopstate=!1})),this.maybeRepositionScrollToHashedAnchor()}onPopstate_(e){if(this.skipLoadPopstate)return;if((0,n.isCurrentBrowserPath)(this.browserPathBeforeNavigate))return void this.maybeRepositionScrollToHashedAnchor();const t=e.state;if(t){if(t.senna){this.popstateScrollTop=t.scrollTop,this.popstateScrollLeft=t.scrollLeft,this.nativeScrollRestorationSupported||this.lockHistoryScrollPosition_(),this.once("endNavigate",(()=>{t.referrer&&(0,n.setReferrer)(t.referrer)}));const e=t.path.startsWith("/")?new URL(t.path,window.location.origin):new URL(t.path);e.hostname=window.location.hostname,e.port=window.location.port;if(this.maybeScheduleNavigation_(e.toString(),new Map))return;this.navigate(t.path,!0)}}else window.location.hash?(this.redirectPath&&!(0,n.isCurrentBrowserPath)(this.redirectPath)&&this.reloadPage(),this.maybeRepositionScrollToHashedAnchor()):this.reloadPage()}onScroll_(){this.captureScrollPositionFromScrollEvent&&this.saveHistoryCurrentPageScrollPosition_(window.pageYOffset,window.pageXOffset)}onStartNavigate_(e){this.maybeDisableNativeScrollRestoration(),this.captureScrollPositionFromScrollEvent=!1,document.documentElement.classList.add(this.loadingCssClass);const t={form:e.form,path:e.path};this.pendingNavigate=this.doNavigate_(e.path,e.replaceHistory).catch((e=>{throw t.error=e,e})).finally((()=>{this.pendingNavigate||this.scheduledNavigationQueue.length||(document.documentElement.classList.remove(this.loadingCssClass),this.maybeRestoreNativeScrollRestoration(),this.captureScrollPositionFromScrollEvent=!0),this.emit("endNavigate",t)})),this.pendingNavigate.path=e.path}prefetch(e){const t=this.findRoute(e);if(!t)return Promise.reject(new Error("No route for "+e));const i=this.createScreenInstance(e,t);return i.load(e).then((()=>{this.screens[e]=i})).catch((t=>{throw this.handleNavigateError_(e,i,t),t}))}prepareNavigateHistory_(e,t,i){let r=t.getTitle();"string"!=typeof r&&(r=this.getDefaultTitle());let a=t.beforeUpdateHistoryPath(e);const o=e.startsWith("/")?new URL(e,window.location.origin).hash:new URL(e).hash;a=this.maybeRestoreRedirectPathHash_(e,a,o);const s={form:!!Liferay.SPA.__capturedFormElement__,path:e,redirectPath:a,scrollLeft:0,scrollTop:0,senna:!0};i&&(s.scrollTop=this.popstateScrollTop,s.scrollLeft=this.popstateScrollLeft),this.updateHistory_(r,a,t.beforeUpdateHistoryState(s),i),this.redirectPath=a}prepareNavigateSurfaces_(e,t,i){Object.keys(t).forEach((r=>{const a=e.getSurfaceContent(r,i);t[r].addContent(e.getId(),a)}))}reloadPage(){window.location.reload()}removeRoute(e){const t=this.routes.indexOf(e);return t>=0&&this.routes.splice(t,1),t>=0}removeScreen(e){const t=this.screens[e];t&&(Object.keys(this.surfaces).forEach((e=>this.surfaces[e].remove(t.getId()))),t.dispose(),delete this.screens[e])}saveHistoryCurrentPageScrollPosition_(e,t){const i=window.history.state;i&&i.senna&&([i.scrollTop,i.scrollLeft]=[e,t],window.history.replaceState(i,null,null))}setAllowPreventNavigate(e){this.allowPreventNavigate=e}setBasePath(e){this.basePath=(0,n.removePathTrailingSlash)(e)}setDefaultTitle(e){this.defaultTitle=e}setFormSelector(e){this.formSelector=e,this.formEventHandler_&&this.formEventHandler_.dispose(),this.formEventHandler_=(0,r.delegate)(document,"submit",this.formSelector,this.onDocSubmitDelegate_.bind(this),this.allowPreventNavigate)}setIgnoreQueryStringFromRoutePath(e){this.ignoreQueryStringFromRoutePath=e}setLinkSelector(e){this.linkSelector=e,this.linkEventHandler_&&this.linkEventHandler_.dispose(),this.linkEventHandler_=(0,r.delegate)(document,"click",this.linkSelector,this.onDocClickDelegate_.bind(this),this.allowPreventNavigate)}setLoadingCssClass(e){this.loadingCssClass=e}setUpdateScrollPosition(e){this.updateScrollPosition=e}stopPendingNavigate_(){this.pendingNavigate,this.pendingNavigate=null}syncScrollPositionSyncThenAsync_(){const e=window.history.state;if(!e)return;const t=e.scrollTop,i=e.scrollLeft,r=()=>{this.updateScrollPosition&&window.scrollTo(i,t)};return new Promise((e=>{r(),setTimeout((()=>{r(),e()}))}))}updateHistory_(e,t,i,r){const a=window.location.href;i&&(i.referrer=a),r?window.history.replaceState(i,e,t):window.history.pushState(i,e,t),(0,n.setReferrer)(a);const o=document.querySelector("title");o?o.innerHTML=e:document.title=e}}var l=c;t.default=l}}));
//# sourceMappingURL=App.js.map
Liferay.Loader.define("frontend-js-spa-web@5.0.28/app/LiferayApp",["module","exports","require","frontend-js-web","../surface/Surface","../util/utils","./App"],(function(t,e,a){window;{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=a("frontend-js-web"),r=o(a("../surface/Surface")),n=a("../util/utils"),s=o(a("./App"));function o(t){return t&&t.__esModule?t:{default:t}}function c(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,i)}return a}function l(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}const t=Math.pow(2,31)-1,u=["bodyCssClass"],d="\n@keyframes shift-rightwards {\n\t0% {\n\t\ttransform: translateX(-100%);\n\t}\n\t40% {\n\t\ttransform: translateX(0%);\n\t}\n\t60% {\n\t\ttransform: translateX(0%);\n\t}\n\t100% {\n\t\ttransform: translateX(100%);\n\t}\n}\n\n.lfr-spa-loading-bar {\n\tbackground: var(--primary);\n\tdisplay: none;\n\theight: 2px;\n\tleft: 0;\n\tposition: fixed;\n\tright: 0;\n\ttop: 0;\n\ttransform: translateX(100%);\n\tz-index: 2000;\n\n\t.lfr-spa-loading & {\n\t\tanimation: shift-rightwards 1s ease-in-out infinite;\n\t\tanimation-delay: 0.4s;\n\t\tdisplay: block;\n\t}\n}";class f extends s.default{constructor({cacheExpirationTime:e,clearScreensCache:a,debugEnabled:s,navigationExceptionSelectors:o,portletsBlacklist:c,requestTimeout:l,userNotification:h,validStatusCodes:u}){super({navigationExceptionSelectors:o}),this._cacheExpirationTime=e,this._clearScreensCache=a,this._debugEnabled=s,this.portletsBlacklist=c,this.userNotification=h,this.validStatusCodes=u,this.setShouldUseFacade(!0),this.timeout=Math.max(l,0)||t,this.timeoutAlert=null,this.setLoadingCssClass("lfr-spa-loading"),this.on("beforeNavigate",this.onBeforeNavigate),this.on("endNavigate",this.onEndNavigate),this.on("navigationError",this.onNavigationError),this.on("startNavigate",this.onStartNavigate),Liferay.on("beforeScreenFlip",n.resetAllPortlets),Liferay.on("beforeScreenFlip",Liferay.destroyUnfulfilledPromises),Liferay.on("io:complete",this.onLiferayIOComplete,this);const f=document.body;f.id||(f.id="senna_surface"+(0,n.getUid)()),this.addSurfaces(new r.default(f.id)),document.head.appendChild((0,i.buildFragment)('<style type="text/css">'.concat(d,"</style>"))),f.appendChild((0,i.buildFragment)('<div class="lfr-spa-loading-bar"></div>'))}createScreenInstance(t,e){if(t===this.activePath){"1"===new URL(t,window.location.origin).searchParams.get("p_p_lifecycle")&&(this.activePath=this.activePath+"__".concat((0,n.getUid)()),this.screens[this.activePath]=this.screens[t],delete this.screens[t])}return super.createScreenInstance(t,e)}getCacheExpirationTime(){return this._cacheExpirationTime}getValidStatusCodes(){return this.validStatusCodes}isCacheEnabled(){return this.getCacheExpirationTime()>-1}isInPortletBlacklist(t){const e=this.portletsBlacklist.map((t=>'[id^="'.concat((0,n.getPortletBoundaryId)(t),'"]'))).join();return!!t.closest(e)}isScreenCacheExpired(t){let e=!1;if(0!==this.getCacheExpirationTime()){e=(new Date).getTime()-t.getCacheLastModified()>this.getCacheExpirationTime()}return e}onBeforeNavigate(t,e){(this._clearScreensCache||t.form)&&this.clearScreensCache(),this._clearLayoutData(),t.path=this._propagateParams(t),Liferay.fire("beforeNavigate",{app:this,originalEvent:e,path:t.path})}onDataLayoutConfigReady_(){Liferay.Layout&&Liferay.Data.layoutConfig?Liferay.Layout.init(Liferay.Data.layoutConfig):this.dataLayoutConfigReadyHandle_=Liferay.once("dataLayoutConfigReady",this.onDataLayoutConfigReady_)}onDocClickDelegate_(t){this.isInPortletBlacklist(t.target.closest(this.getLinkSelector()))||t.detail>1||super.onDocClickDelegate_(t)}onDocSubmitDelegate_(t){this.isInPortletBlacklist(t.target.closest(this.getFormSelector()))||super.onDocSubmitDelegate_(t)}onEndNavigate(t){Liferay.fire("endNavigate",{app:this,error:t.error,path:t.path}),this.pendingNavigate||(this._clearRequestTimer(),this._hideTimeoutAlert()),t.error||this.onDataLayoutConfigReady_(),AUI().Get._insertCache={},Liferay.DOMTaskRunner.reset()}onLiferayIOComplete(){this.clearScreensCache()}onNavigationError(t){if(t.error.requestPrematureTermination)window.location.href=t.path;else if(t.error.invalidStatus||t.error.requestError||t.error.timeout){let e='Vyskytla\x20sa\x20neočakávaná\x20chyba\x2e\x20Prosím\x2c\x20načítajte\x20stránku\x20znova\x2e';this._debugEnabled&&(console.error(t.error),t.error.invalidStatus&&(e='Požiadavka\x20na\x20navigáciu\x20SPA\x20prijala\x20neplatný\x20kód\x20stavu\x20protokolu\x20HTTP\x2e'),t.error.requestError&&(e='V\x20požiadavke\x20spa\x20sa\x20vyskytla\x20neočakávaná\x20chyba\x2e'),t.error.timeout&&(e='Časový\x20časový\x20omesou\x20požiadavky\x20spa\x2e')),Liferay.Data.layoutConfig=this.dataLayoutConfig_,this._createNotification({message:e,title:'Chyba',type:"danger"})}}onStartNavigate(t){Liferay.fire("startNavigate",{app:this,path:t.path}),this._startRequestTimer(t.path)}setPortletsBlacklist(t){this.portletsBlacklist=t}setValidStatusCodes(t){this.validStatusCodes=t}_clearLayoutData(){this.dataLayoutConfig_=Liferay.Data.layoutConfig,Liferay.Data.layoutConfig=null,this.dataLayoutConfigReadyHandle_&&(this.dataLayoutConfigReadyHandle_.detach(),this.dataLayoutConfigReadyHandle_=null)}_clearRequestTimer(){this.requestTimer&&clearTimeout(this.requestTimer)}_createNotification(t){return new Promise((e=>{e((0,i.openToast)(function(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?c(Object(a),!0).forEach((function(e){l(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):c(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}({type:"warning"},t)))}))}_hideTimeoutAlert(){this.timeoutAlert&&this.timeoutAlert.dispose()}_propagateParams(t){const e=this.activePath?new URL(this.activePath,window.location.origin):new URL(window.location.href),a=e.searchParams.get("p_p_id"),i=new URL(t.path,window.location.origin),r=i.searchParams.get("p_p_id");return r&&r===a&&u.forEach((t=>{const a="_".concat(r,"_").concat(t),n=e.searchParams.get(a);n&&i.searchParams.set(a,n)})),i.toString()}_startRequestTimer(t){this._clearRequestTimer(),this.userNotification.timeout>0&&(this.requestTimer=setTimeout((()=>{Liferay.fire("spaRequestTimeout",{path:t}),this._hideTimeoutAlert(),this._createNotification({message:this.userNotification.message,title:this.userNotification.title,type:"warning"}).then((t=>{this.timeoutAlert=t}))}),this.userNotification.timeout))}updateHistory_(t,e,a,i){a&&a.redirectPath&&(a.path=a.redirectPath),super.updateHistory_(t,e,a,i)}}var h=f;e.default=h}}));
//# sourceMappingURL=LiferayApp.js.map
Liferay.Loader.define("frontend-js-spa-web@5.0.28/screen/RequestScreen",["module","exports","require","frontend-js-web","../util/utils","./Screen"],(function(e,t,r){var s;window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r("frontend-js-web"),n=r("../util/utils"),i=(s=r("./Screen"))&&s.__esModule?s:{default:s};function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,s)}return r}function u(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const e="Invalid status code",h="Failed to fetch",d="NetworkError when attempting to fetch resource.",l="Preflight response is not successful",p="Request error",f="Request timeout",m="Request terminated prematurely";class w extends i.default{constructor(){super(),this.cacheable=!0,this.httpHeaders={"X-PJAX":"true","X-Requested-With":"XMLHttpRequest"},this.httpMethod=w.GET,this.request=null,this.timeout=3e4}assertValidResponseStatusCode(t){if(!this.isValidResponseStatusCode(t)){const r=new Error(e);throw r.invalidStatus=!0,r.statusCode=t,r}}beforeUpdateHistoryPath(e){const t=this.getRequestPath();return t&&t!==e?t:e}beforeUpdateHistoryState(e){return e.senna&&e.form&&e.redirectPath===e.path?null:e}formatLoadPath(e){const t=new URL(e,window.location.origin);return t.hostname=window.location.hostname,t.protocol=window.location.protocol,window.location.port&&(t.port=window.location.port),t.toString()}getHttpHeaders(){return this.httpHeaders}getHttpMethod(){return this.httpMethod}getRequestPath(){const e=this.getRequest();if(e){let t=e.url;const r=this.getResponse();if(r){const e=r.url;e&&(t=e)}return(0,n.getUrlPath)(t)}return null}getResponse(){return this.response}getRequest(){return this.request}getTimeout(){return this.timeout}isValidResponseStatusCode(e){return e>=200&&e<=399}getFormData(e,t){const r=new FormData(e);return this.maybeAppendSubmitButtonValue_(r,t),r}load(e){const t=this.getCache();if(t)return Promise.resolve(t);let r=null,s=this.httpMethod;const n=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){u(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({"X-PJAX":"true"},this.httpHeaders);Liferay.SPA.__capturedFormElement__&&(r=this.getFormData(Liferay.SPA.__capturedFormElement__,Liferay.SPA.__capturedFormButtonElement__),s=w.POST);const i=this.formatLoadPath(e);return this.setRequest({method:s,requestBody:r,requestHeaders:n,url:i}),Promise.race([(0,o.fetch)(i,{body:r,headers:n,method:s,mode:"cors",redirect:"follow",referrer:"client"}).then((e=>(this.assertValidResponseStatusCode(e.status),this.setResponse(e),e.clone().text()))).then((e=>(s===w.GET&&this.isCacheable()&&this.addCache(e),e))),new Promise(((e,t)=>{setTimeout((()=>t(new Error(f))),this.timeout)}))]).catch((e=>{switch(e.message){case f:e.timeout=!0;break;case m:case h:case d:case l:e.requestError=!0,e.requestPrematureTermination=!0;break;case p:default:e.requestError=!0}throw e}))}maybeAppendSubmitButtonValue_(e,t){t&&t.name&&e.append(t.name,t.value)}setHttpHeaders(e){this.httpHeaders=e}setHttpMethod(e){this.httpMethod=e.toLowerCase()}setRequest(e){this.request=e}setResponse(e){this.response=e}setTimeout(e){this.timeout=e}}w.GET="get",w.POST="post";var c=w;t.default=c}}));
//# sourceMappingURL=RequestScreen.js.map
Liferay.Loader.define("frontend-js-spa-web@5.0.28/screen/HtmlScreen",["module","exports","require","frontend-js-web","../surface/Surface","../util/utils","./RequestScreen"],(function(e,t,r){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r("frontend-js-web"),s=l(r("../surface/Surface")),o=r("../util/utils"),a=l(r("./RequestScreen"));function l(e){return e&&e.__esModule?e:{default:e}}class e extends a.default{constructor(){super(),this.metaTagsSelector="meta",this.titleSelector="title"}activate(){super.activate(),this.releaseVirtualDocument(),this.pendingStyles=null}allocateVirtualDocumentForContent(e){this.virtualDocument||(this.virtualDocument=document.createElement("html")),this.copyNodeAttributesFromContent_(e,this.virtualDocument),this.virtualDocument.innerHTML=e}appendStyleIntoDocument_(t){if(t.matches(e.selectors.stylesTemporary)&&this.pendingStyles.push(t),t.id){const e=document.getElementById(t.id);if(e)return void e.parentNode.insertBefore(t,e.nextSibling)}document.head.appendChild(t)}assertSameBodyIdInVirtualDocument(){const e=this.virtualDocument.querySelector("body");document.body.id||(document.body.id="senna_surface_"+(0,o.getUid)()),e&&(e.id=document.body.id)}copyNodeAttributesFromContent_(e,t){e=(e=e.replace(/[<]\s*html/gi,"<senna")).replace(/\/html\s*>/gi,"/senna>"),t.innerHTML=e;const r=t.querySelector("senna");r&&((0,o.clearNodeAttributes)(t),(0,o.copyNodeAttributes)(r,t))}disposeInternal(){this.disposePendingStyles(),super.disposeInternal()}disposePendingStyles(){this.pendingStyles&&this.pendingStyles.forEach((e=>e.remove()))}evaluateScripts(t){return this.evaluateTrackedResources_(n.runScriptsInElement,e.selectors.scripts,e.selectors.scriptsTemporary,e.selectors.scriptsPermanent).then((()=>super.evaluateScripts(t)))}evaluateStyles(t){this.pendingStyles=[];return this.evaluateTrackedResources_(o.runStylesInElement,e.selectors.styles,e.selectors.stylesTemporary,e.selectors.stylesPermanent,this.appendStyleIntoDocument_.bind(this)).then((()=>super.evaluateStyles(t)))}evaluateFavicon_(){const t=this.virtualQuerySelectorAll_(e.selectors.favicon),r=this.querySelectorAll_(e.selectors.favicon);return new Promise((e=>{r.forEach((e=>e.remove())),this.runFaviconInElement_(t).then((()=>e()))}))}evaluateTrackedResources_(t,r,s,o,a){const l=this.virtualQuerySelectorAll_(r),c=this.querySelectorAll_(s);this.querySelectorAll_(o).forEach((t=>{const r=this.getResourceKey_(t);r&&(e.permanentResourcesInDoc[r]=!0)}));const i=(0,n.buildFragment)();return l.forEach((t=>{const r=this.getResourceKey_(t);e.permanentResourcesInDoc[r]||i.appendChild(t),r&&t.matches(o)&&(e.permanentResourcesInDoc[r]=!0)})),new Promise((e=>{t(i,(()=>{c.forEach((e=>e.remove())),e()}),a)}))}flip(e){return super.flip(e).then((()=>{(0,o.clearNodeAttributes)(document.documentElement),(0,o.copyNodeAttributes)(this.virtualDocument,document.documentElement),this.evaluateFavicon_(),this.updateMetaTags_()}))}updateMetaTags_(){const e=this.querySelectorAll_("meta"),t=this.metas;e&&(e.forEach((e=>e.remove())),t&&t.forEach((e=>document.head.appendChild(e))))}getResourceKey_(e){return e.id||e.href||e.src||""}getSurfaceContent(e){const t=this.virtualDocument.querySelector("#"+e);if(t){const r=t.querySelector("#"+e+"-"+s.default.DEFAULT);return r?r.innerHTML:t.innerHTML}}getTitleSelector(){return this.titleSelector}load(e){return super.load(e).then((e=>(this.allocateVirtualDocumentForContent(e),this.resolveTitleFromVirtualDocument(),this.resolveMetaTagsFromVirtualDocument(),this.assertSameBodyIdInVirtualDocument(),e)))}runFaviconInElement_(e){return new Promise((t=>{e.forEach((e=>{e.href=e.href+"?q="+Math.random(),document.head.appendChild(e)})),t()}))}virtualQuerySelectorAll_(e){return Array.prototype.slice.call(this.virtualDocument.querySelectorAll(e))}querySelectorAll_(e){return Array.prototype.slice.call(document.querySelectorAll(e))}releaseVirtualDocument(){this.virtualDocument=null}resolveTitleFromVirtualDocument(){const e=this.virtualDocument.querySelector(this.titleSelector);e&&this.setTitle(e.textContent.trim())}resolveMetaTagsFromVirtualDocument(){const e=this.virtualQuerySelectorAll_(this.metaTagsSelector);e&&this.setMetas(e)}setTitleSelector(e){this.titleSelector=e}}const i=':not([rel="Shortcut Icon"]):not([rel="shortcut icon"]):not([rel="icon"]):not([href$="favicon.icon"])';e.selectors={favicon:'link[rel="Shortcut Icon"],link[rel="shortcut icon"],link[rel="icon"],link[href$="favicon.icon"]',scripts:"script[data-senna-track]",scriptsPermanent:'script[data-senna-track="permanent"]',scriptsTemporary:'script[data-senna-track="temporary"]',styles:"style[data-senna-track],link[data-senna-track]".concat(i),stylesPermanent:'style[data-senna-track="permanent"],link[data-senna-track="permanent"]'.concat(i),stylesTemporary:'style[data-senna-track="temporary"],link[data-senna-track="temporary"]'.concat(i)},e.permanentResourcesInDoc={};var c=e;t.default=c}}));
//# sourceMappingURL=HtmlScreen.js.map
Liferay.Loader.define("frontend-js-spa-web@5.0.28/screen/EventScreen",["module","exports","require","./HtmlScreen"],(function(e,t,r){var s;window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=(s=r("./HtmlScreen"))&&s.__esModule?s:{default:s};class e extends a.default{constructor(){super(),this.cacheable=!1,this.timeout=Liferay.SPA.app.timeout}dispose(){super.dispose(),Liferay.fire("screenDispose",{app:Liferay.SPA.app,screen:this})}activate(){super.activate(),Liferay.fire("screenActivate",{app:Liferay.SPA.app,screen:this})}addCache(e){super.addCache(e),this.cacheLastModified=(new Date).getTime()}checkRedirectPath(e){const t=Liferay.SPA.app;Liferay.SPA.__capturedFormElement__||t.findRoute(e)||(window.location.href=e)}deactivate(){super.deactivate(),Liferay.fire("screenDeactivate",{app:Liferay.SPA.app,screen:this})}beforeScreenFlip(){Liferay.fire("beforeScreenFlip",{app:Liferay.SPA.app,screen:this})}copyBodyAttributes(){const e=this.virtualDocument.querySelector("body");document.body.className=e.className,document.body.onload=e.onload}evaluateStyles(e){const t=document.querySelector("html").lang.replace("-","_"),r=this.virtualDocument.lang.replace("-","_");return t!==r&&(this.stylesPermanentSelector_=a.default.selectors.stylesPermanent,this.stylesTemporarySelector_=a.default.selectors.stylesTemporary,this.makePermanentSelectorsTemporary_(t,r)),super.evaluateStyles(e).then(this.restoreSelectors_.bind(this))}flip(e){return this.copyBodyAttributes(),Promise.resolve(this.beforeScreenFlip()).then(super.flip(e)).then((()=>{this.runBodyOnLoad(),Liferay.fire("screenFlip",{app:Liferay.SPA.app,screen:this})}))}getCache(){let e=null;const t=Liferay.SPA.app;return t.isCacheEnabled()&&!t.isScreenCacheExpired(this)&&(e=super.getCache()),e}getCacheLastModified(){return this.cacheLastModified}isValidResponseStatusCode(e){const t=Liferay.SPA.app.getValidStatusCodes();return e>=200&&e<=500||t.indexOf(e)>-1}load(e){return super.load(e).then((t=>{const r=this.beforeUpdateHistoryPath(e);return this.checkRedirectPath(r),Liferay.fire("screenLoad",{app:Liferay.SPA.app,content:t,screen:this}),t}))}makePermanentSelectorsTemporary_(e,t){a.default.selectors.stylesTemporary=a.default.selectors.stylesTemporary.split(",").concat(a.default.selectors.stylesPermanent.split(",").map((t=>"".concat(t,'[href*="').concat(e,'"]')))).join(),a.default.selectors.stylesPermanent=a.default.selectors.stylesPermanent.split(",").map((e=>"".concat(e,'[href*="').concat(t,'"]'))).join()}restoreSelectors_(){a.default.selectors.stylesPermanent=this.stylesPermanentSelector_||a.default.selectors.stylesPermanent,a.default.selectors.stylesTemporary=this.stylesTemporarySelector_||a.default.selectors.stylesTemporary}runBodyOnLoad(){const e=document.body.onload;e&&e()}runFaviconInElement_(e){return super.runFaviconInElement_(e).then((()=>{e.forEach((e=>{e.type||-1===e.href.indexOf(".ico")||(e.type="image/x-icon")}))}))}}var o=e;t.default=o}}));
//# sourceMappingURL=EventScreen.js.map
Liferay.Loader.define("frontend-js-spa-web@5.0.28/screen/ActionURLScreen",["module","exports","require","../util/utils","./EventScreen"],(function(e,t,r){var s;window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r("../util/utils"),a=(s=r("./EventScreen"))&&s.__esModule?s:{default:s};class e extends a.default{constructor(){super(),this.httpMethod="POST"}getRequestPath(){let e=null;if(this.getRequest()){const t=new URL(super.getRequestPath(),window.location.origin);"1"===t.searchParams.get("p_p_lifecycle")&&t.searchParams.set("p_p_lifecycle","0"),e=(0,n.getUrlPath)(t.toString())}return e}}var i=e;t.default=i}}));
//# sourceMappingURL=ActionURLScreen.js.map
Liferay.Loader.define("frontend-js-spa-web@5.0.28/screen/RenderURLScreen",["module","exports","require","./EventScreen"],(function(e,r,n){var d;window;{Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var t=(d=n("./EventScreen"))&&d.__esModule?d:{default:d};class e extends t.default{constructor(){super(),this.cacheable=!0}}var a=e;r.default=a}}));
//# sourceMappingURL=RenderURLScreen.js.map
Liferay.Loader.define("frontend-js-spa-web@5.0.28/init",["module","exports","require","./app/LiferayApp","./screen/ActionURLScreen","./screen/RenderURLScreen","./util/utils"],(function(e,t,n){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(t){"loading"===document.readyState?document.addEventListener("DOMContentLoaded",(()=>{e(t)})):e(t)};var i=c(n("./app/LiferayApp")),o=c(n("./screen/ActionURLScreen")),a=c(n("./screen/RenderURLScreen")),r=n("./util/utils");function c(e){return e&&e.__esModule?e:{default:e}}const e=function(e){const t=new i.default(e);return t.addRoutes([{handler:o.default,path(n){let i=!1;const o=new URL(n,window.location.origin),a=new URL(e.loginRedirect,window.location.origin).host||window.location.host;return t.isLinkSameOrigin_(a)&&(i="1"===o.searchParams.get("p_p_lifecycle")),i}},{handler:a.default,path(t){let n=!1;if(0!==(t+"/").indexOf(themeDisplay.getPathMain()+"/")){if(!e.excludedPaths.some((e=>0===t.indexOf(e)))){const e=new URL(t,window.location.origin).searchParams.get("p_p_lifecycle");n="0"===e||!e}}return n}}]),Liferay.Util.submitForm=function(n){setTimeout((()=>{const i=Object.isPrototypeOf.call(HTMLFormElement.prototype,n)?n:n.getDOM(),o="form"+e.navigationExceptionSelectors,a=i.action;if(i.matches(o)&&t.canNavigate(a)&&"get"!==i.method&&!t.isInPortletBlacklist(i)){Liferay.Util._submitLocked=!1,Liferay.SPA.__capturedFormElement__=i;const e="button:not([type]),button[type=submit],input[type=submit]";document.activeElement.matches(e)?Liferay.SPA.__capturedFormButtonElement__=document.activeElement:Liferay.SPA.__capturedFormButtonElement__=i.querySelector(e),t.navigate((0,r.getUrlPath)(a))}else i.submit()}))},Liferay.initComponentCache(),Liferay.SPA={app:t},Liferay.fire("SPAReady"),t}}}));
//# sourceMappingURL=init.js.map
