1import{J as U,Jg as h,Kg as a,Se as k,Tf as D,Ud as M,Ug as W,Vg as c,Wc as b,a as j,ca as I,ef as $,ia as m,ie as v,je as T,k as O,ke as N,la as d,le as C,ma as G,o as w,p,q as r,v as y}from"./chunk-IVN2VXRW.js";var o=(function(e){return e.TwoFactorAuthenticationRegistrationInfo="two-factor-authentication-registration-info",e.TwoFactorAuthenticationRegistration="two-factor-authentication-registration",e.TrainingAvailable="training-missing",e.GDPR="gdpr",e.EVOPConnect="evop-connect",e.PasswordChange="password-reset",e.Nickname="nickname",e.ProfileImage="profile-image",e.TrainingSelect="select-training",e.Messages="system-messages",e})(o||{});function x(e,s){return e^s}function l(e,s){return(e&s)!==0}var P={userStatus:a.None,tasks:[],currentStep:0,totalTasks:0},u=class A{constructor(){this.tokenService=G(D),this.store=G(v)}static taskCount(s){return`${s.currentStep}/${s.totalTasks}`}static tasks(s){return s.tasks}static errorTitle(s){return s.errorTitle}static errorMessage(s){return s.errorMessage}initialize(s,t){let i,g,f=this.getWebSessionType(),n=[];l(t.userStatus,a.TokenRegistrationRequired)&&(n.push(o.TwoFactorAuthenticationRegistrationInfo),n.push(o.TwoFactorAuthenticationRegistration));let S=l(t.userStatus,a.HasNoTraining),R=l(t.userStatus,a.HasNoTermOnAnyTraining);(S||R)&&(S?(g="loginTask.noTraining",i="loginTask.noTrainingCaption"):(g="loginTask.termUnavailable",i="loginTask.termUnavailableCaption"),n.push(o.TrainingAvailable));let F=f!=="Webreugrott_alkalmazott";F&&(l(t.userStatus,a.GDPRAcceptance)&&n.push(o.GDPR),l(t.userStatus,a.PasswordChange)&&n.push(o.PasswordChange),l(t.userStatus,a.SetNickName)&&n.push(o.Nickname),l(t.userStatus,a.SetProfilePicture)&&n.push(o.ProfileImage)),t.hasSelectedTraining||n.push(o.TrainingSelect),F&&l(t.userStatus,a.RequiredReadMessages)&&n.push(o.Messages),s.patchState({userStatus:t.userStatus,tasks:n,totalTasks:n.length,currentStep:n.length?h.ONE:h.ZERO,errorTitle:g,errorMessage:i})}completeLoginTask(s,t){let i=s.getState();if((i.userStatus&t.userStatus)!==a.None){let g=x(i.userStatus,t.userStatus);if(g===a.None)return this.store.dispatch(new W.GetExtendedMenuPermissions).pipe(U(()=>this.store.dispatch(new $)),I(()=>{s.setState(j({},P))}));{let f=[...i.tasks];l(t.userStatus,a.TokenRegistrationRequired)&&f.shift(),f.length>h.ZERO&&f.shift(),s.patchState({userStatus:g,currentStep:i.currentStep<i.totalTasks?i.currentStep+h.ONE:i.currentStep,tasks:f})}}return w}reset(s){s.setState(j({},P))}setTaskCounter(s,t){s.patchState({currentStep:t.newValue})}setError(s,t){s.patchState({tasks:[o.TrainingAvailable],errorTitle:t.title,errorMessage:t.message,currentStep:0,totalTasks:0,userStatus:a.None})}getWebSessionType(){let s=this.tokenService.getAccessToken();return this.tokenService.decode(s).WebSessionType}static{this.\u0275fac=function(t){return new(t||A)}}static{this.\u0275prov=m({token:A,factory:A.\u0275fac})}};p([T(c.Initialize),r("design:type",Function),r("design:paramtypes",[Object,c.Initialize]),r("design:returntype",void 0)],u.prototype,"initialize",null);p([T(c.CompleteLoginTask),r("design:type",Function),r("design:paramtypes",[Object,c.CompleteLoginTask]),r("design:returntype",O)],u.prototype,"completeLoginTask",null);p([T(c.Reset),r("design:type",Function),r("design:paramtypes",[Object]),r("design:returntype",void 0)],u.prototype,"reset",null);p([T(c.SetTaskCounter),r("design:type",Function),r("design:paramtypes",[Object,c.SetTaskCounter]),r("design:returntype",void 0)],u.prototype,"setTaskCounter",null);p([T(c.SetError),r("design:type",Function),r("design:paramtypes",[Object,c.SetError]),r("design:returntype",void 0)],u.prototype,"setError",null);p([C(),r("design:type",Function),r("design:paramtypes",[Object]),r("design:returntype",String)],u,"taskCount",null);p([C(),r("design:type",Function),r("design:paramtypes",[Object]),r("design:returntype",Array)],u,"tasks",null);p([C(),r("design:type",Function),r("design:paramtypes",[Object]),r("design:returntype",Object)],u,"errorTitle",null);p([C(),r("design:type",Function),r("design:paramtypes",[Object]),r("design:returntype",Object)],u,"errorMessage",null);u=p([N({name:"loginTask",defaults:P})],u);var gt=(()=>{class e{static{this.LoginTaskUrl="/login-task"}constructor(t,i){this.router=t,this.store=i}canActivate(t,i){let g=this.store.selectSnapshot(u.tasks),f=g.length>h.ZERO,n=i.url.toLowerCase().startsWith(e.LoginTaskUrl);if(f){let S=g[h.ZERO],R=S===t.routeConfig?.path||S===o.TwoFactorAuthenticationRegistrationInfo&&t.routeConfig?.path===o.TwoFactorAuthenticationRegistration;return n&&R?!0:this.router.createUrlTree([e.LoginTaskUrl,S])}else return n?this.router.createUrlTree(["/"]):!0}static{this.\u0275fac=function(i){return new(i||e)(d(M),d(v))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var dt=(()=>{class e{static{this.GetMyGdprEndpoint="MyGdpr"}static{this.PutMyGdprEndpoint="MyGdpr"}constructor(t){this.httpClient=t}get resourceUrl(){return`${k.settings.apiServer.url}`}getMyGdpr(){return this.httpClient.get(`${this.resourceUrl}${e.GetMyGdprEndpoint}`).pipe(y(t=>t.data))}putMyGdpr(t){return this.httpClient.post(`${this.resourceUrl}${e.PutMyGdprEndpoint}`,{accepted:t,read:!0})}static{this.\u0275fac=function(i){return new(i||e)(d(b))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac})}}return e})();var yt=(()=>{class e{constructor(t){this.httpClient=t}static{this.GetGeneralDefaultAvatarsEndpoint="General/DefaultAvatars"}static{this.GetGeneralDefaultFallbackProfilePictureColorCodesEndpoint="General/DefaultFallbackProfilePictureColorCodes"}static{this.PostUserInfoAvatarEndpoint="UserInfo/Avatar"}postAvatar(t){return this.httpClient.post(`${this.resourceUrl}${e.PostUserInfoAvatarEndpoint}`,t)}getDefaultAvatars(){return this.httpClient.get(`${k.settings.apiServer.url}${e.GetGeneralDefaultAvatarsEndpoint}`).pipe(y(t=>t.data))}getDefaultFallbackProfilePictureColorCodes(){return this.httpClient.get(`${k.settings.apiServer.url}${e.GetGeneralDefaultFallbackProfilePictureColorCodesEndpoint}`).pipe(y(t=>t.data))}get resourceUrl(){return`${k.settings.apiServer.url}`}static{this.\u0275fac=function(i){return new(i||e)(d(b))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac})}}return e})();export{o as a,u as b,gt as c,dt as d,yt as e};
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.