import {m,O}from'./chunk-BzDnvqpH.js';import {J,c as tS,a5 as fh,cI as p,cL as S,G as vl,cN as g,by as it,L as w,cR as n$1,a9 as zt,bE as ff,ah as ot,aq as Sr,w as wo,M as ie,f as QT,bu as dy}from'./main-WUGO6e7n.js';var W,M=J(()=>{tS();fh();p();S();tS();vl();m();W=(()=>{class i extends g{constructor(t,e){super(),this.activatedRoute=t,this.navigationService=e,this.sizeChange=new it,this.webSessionIcon="",this.jetUrl="",this.webClientSessionService=w(n$1);}ngAfterViewInit(){this.subscribeToRoute();}subscribeToRoute(){this.activatedRoute.paramMap.pipe(zt(1)).subscribe(t=>{this.sessionId=t.get("sessionId"),this.sessionId||this.initializePlaceholderSession(this.sessionId);});}initializePlaceholderSession(t){this.webClientSessionService.getAllWebSessions().pipe(ff(this.destroyed$),ot(e=>e.filter(o=>o.sessionId===t)),Sr(e=>e.length===0)).subscribe(()=>{this.navigationService.navigateToRoot();});}getComponentTitle(){return "lblWebApplication"}static{this.\u0275fac=function(e){return new(e||i)(wo(ie),wo(O))};}static{this.\u0275cmp=QT({type:i,selectors:[["ng-component"]],outputs:{sizeChange:"sizeChange"},features:[dy],decls:0,vars:0,template:function(e,o){},styles:['[_nghost-%COMP%]{background:var(--connection-view-default-background-color) url("./media/session_background-PMMLASQV.png");display:flex;height:100%;width:100%;flex-direction:column}.session-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%}'],changeDetection:1});}}return i})();});M();export{W as WebClientPlaceholderComponent};