1import{a as K}from"./chunk-YIR3Z3VS.js";import{$b as g,A as x,B as y,De as j,Ee as c,G as b,Gb as O,Ia as k,If as q,Kf as A,Oe as h,Ua as f,Uf as W,Va as v,Yb as P,Zb as w,ba as p,dd as Q,ed as S,fd as H,gd as L,ha as n,hd as M,hf as d,ja as u,ka as D,m as I,pc as G,pe as N,ra as R,re as F,rh as B,sa as U,we as m,xa as a,ya as l,za as r}from"./chunk-L3R4CA6E.js";import"./chunk-27WATYC3.js";function oe(o,e){if(o&1&&(a(0,"div",5),r(1,"app-format-translation",6),a(2,"p",7),f(3),l()(),a(4,"div",5),r(5,"app-format-translation",8),a(6,"span",9),f(7),l(),r(8,"br")(9,"app-base-loader",10),l()),o&2){let C=k();p(3),v(C.lastTokenResult.QueueNumber),p(4),v(C.getStatusCheckDte())}}var E=(()=>{let e=class e{constructor(t,i,s,V,J,Y,Z){this.queuePingService=t,this.conversion=i,this.router=s,this.layoutService=V,this.loader=J,this.shopGuardHelperService=Y,this.shopguardService=Z,this.pollingObservable=null,this.pollInterval=30*1e3,this.busyPolling=!0,this.resourceUID=null,this.lastTokenResult=null}ngOnInit(){this.layoutService.updateLayout(new L("")),this.loader.close(),this.queuePingService.stop(),this.shopGuardHelperService.stopIdleCheck(),this.resourceUID=this.shopGuardHelperService.getCurrentResourceUID(),this.shopGuardHelperService.getQueueToken()===null&&this.enterShop(),this.updateScreenData(),this.startPolling(()=>this.shopguardService.refreshToken(this.resourceUID,this.shopGuardHelperService.getQueueToken()),t=>this.queueTokenReceived(t))}startPolling(t,i){this.busyPolling=!0,this.pollingObservable=I(this.pollInterval).pipe(x(0),y(()=>t())).subscribe(s=>{i(s)})}queueTokenReceived(t){this.shopGuardHelperService.stopIdleCheck(),this.lastTokenResult=t,this.shopGuardHelperService.storeToken(t);let i=t.Status;i=="WAITING_FOR_OUTFLOW"?this.shopguardService.flowOut(this.resourceUID,this.shopGuardHelperService.getQueueToken()).subscribe(s=>{this.shopGuardHelperService.storeToken(s),this.enterShop()}):i=="ENTERED_RESOURCE"?this.enterShop():this.updateScreenData()}getStatusCheckDte(){return this.lastTokenResult===null?"-":this.conversion.toTimeFromUtc(new Date(this.lastTokenResult.CheckDate))}enterShop(){this.cancelPolling(),this.queuePingService.start(),this.shopGuardHelperService.ensureIdleCheckStarted(),this.router.navigate(["/"])}ngOnDestroy(){this.cancelPolling()}cancelPolling(){this.busyPolling=!1,this.pollingObservable!==null&&this.pollingObservable.unsubscribe()}updateScreenData(){}};e.\u0275fac=function(i){return new(i||e)(n(K),n(A),n(w),n(M),n(F
1),n(c),n(j))},e.\u0275cmp=u({type:e,selectors:[["app-waiting-room"]],standalone:!1,decls:9,vars:1,consts:[["fxLayout","row","fxLayout.lt-lg","column",2,"min-height","100%"],[1,"content"],[1,"queue-page"],["translationKey","QUEUE.PLACEDINQUEUE"],["translationKey","QUEUE.MESSAGE"],[2,"text-align","center","padding-top","20px"],["translationKey","QUEUE.QUEUENR"],[2,"font-size","16px","font-weight","bold"],["translationKey","QUEUE.LATESTSTATUSCHECK"],[2,"font-size","12px","font-weight","bold"],["size","18px","borderWidth","4px"]],template:function(i,s){i&1&&(a(0,"div"),r(1,"app-title-bar"),a(2,"div",0)(3,"section",1)(4,"div",2)(5,"h2"),r(6,"app-format-translation",3),l(),r(7,"app-format-translation",4),R(8,oe,10,2),l()()()()),i&2&&(p(8),U(s.lastTokenResult!=null&&s.lastTokenResult.QueueNumber!=null?8:-1))},dependencies:[d,N,m,h],styles:[".queue-page[_ngcontent-%COMP%]{width:300px;height:500px;position:absolute;top:50%;left:50%;margin-left:-150px;margin-top:-200px;text-align:center}"]});let o=e;return o})();var T=(()=>{let e=class e{constructor(t){this.shopGuardHelperService=t}ngOnInit(){this.shopGuardHelperService.leaveQueueWhenIn(),this.shopGuardHelperService.stopIdleCheck()}updateScreenData(){}ngAfterViewInit(){}};e.\u0275fac=function(i){return new(i||e)(n(c))},e.\u0275cmp=u({type:e,selectors:[["app-left-queue"]],standalone:!1,decls:8,vars:0,consts:[["fxLayout","row","fxLayout.lt-lg","column",2,"min-height","100%"],[1,"content"],[1,"queue-page"],["translationKey","QUEUE.SESSIONEXPIRED"],["translationKey","QUEUE.SESSIONEXPIREDEXPLANATION"]],template:function(i,s){i&1&&(a(0,"div"),r(1,"app-title-bar"),a(2,"div",0)(3,"section",1)(4,"div",2)(5,"h2"),r(6,"app-format-translation",3),l(),r(7,"app-format-translation",4),l()()()())},dependencies:[d,m,h],styles:[".queue-page[_ngcontent-%COMP%]{width:300px;height:500px;position:absolute;top:50%;left:50%;margin-left:-150px;margin-top:-200px;text-align:center}"]});let o=e;return o})();var X=[{path:"waiting-room",component:E,data:{}},{path:"left",component:T,data:{}},{path:"",redirectTo:"waiting-room",pathMatch:"full"},{path:"**",redirectTo:"/system/404"}],_=[{path:"waiting-room",component:E,data:{}},{path:"left",component:T,data:{}},{path:"",redirectTo:"waiting-room",pathMatch:"full"},{path:"**",redirectTo:"/system/404"}];var we=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=D({type:e}),e.\u0275inj=b({providers:[{provide:P,useFactory:t=>t.IsBusinessShop?_:X,multi:!0,deps:[H]}],imports:[O,Q,B,S,G,q,S,g.forChild([]),W,g]});let o=e;return o})();export{we as QueueModule};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.