PageSourceSearch

https://neptun.or-zse.hu/hallgato/chunk-67Z5WRDE.js

js or-zse.hu collected 2026-09-24 09:56:56 UTC 72,819 bytes, 1 lines download raw bytes

1import{a as rt,b as St,c as Rn,d as wn,e as Mn}from"./chunk-CVLKNARD.js";import{a as ye}from"./chunk-NBIVXKTU.js";import{a as ne,b as ke,c as ae,d as Tt,e as yt}from"./chunk-ZPYDR3B2.js";import{b as xt}from"./chunk-4GB2HN5T.js";import"./chunk-QF6NWIYV.js";import{a as yn}from"./chunk-BW2U3LXF.js";import{a as kt}from"./chunk-2EKSW4P2.js";import{a as bn,b as Pn,c as En}from"./chunk-C2EBXPB3.js";import{a as Sn,b as Ct,c as kn}from"./chunk-TSM2CBIN.js";import{d as ln}from"./chunk-RXUH5EFX.js";import"./chunk-QRT62Y37.js";import{a as Tn}from"./chunk-4H53HP2C.js";import{a as In}from"./chunk-KGW4SCA2.js";import"./chunk-OPZSNKHX.js";import{b as mn}from"./chunk-ZOR2MGFL.js";import{a as cn}from"./chunk-6GVXSXVR.js";import{a as tt}from"./chunk-XRI75B37.js";import"./chunk-KTZAYU63.js";import{a as qe}from"./chunk-3RANQNYM.js";import{e as gn,g as vn}from"./chunk-FBOJBCTO.js";import"./chunk-IDXDMLN2.js";import{a as vt}from"./chunk-MPXKXNFL.js";import{b as ot}from"./chunk-ATNV2VT2.js";import"./chunk-XXU4FZ4Q.js";import"./chunk-XZ77C7GC.js";import{a as nt,b as it}from"./chunk-6NEZQN5R.js";import{$ as B,$a as w,Ab as m,Ac as Yt,Aj as _n,Ba as Fe,Bb as gt,Bc as Wt,Bh as Te,Bj as fn,Cb as ct,Dh as He,E as dt,Eh as Qe,Fc as $,Fe as oe,Fj as et,G,Ge as _t,Gi as Je,Hb as Gt,Hi as ce,Ib as Ht,Ih as Ee,J as H,Jb as Qt,Jg as te,Kb as pt,Kd as Zt,Kg as Q,Ki as ue,Lh as ze,Li as ie,M as Vt,Mb as u,Nb as h,Ob as T,Oh as Ye,Qa as ve,Ra as Ue,Rf as be,Rh as We,Sd as Kt,Se,Sf as De,Sh as dn,Td as Xt,Ua as o,Uc as ut,Ud as je,Uj as hn,Vf as ft,Vg as D,Vh as Ze,Wc as Ve,Wf as Ge,Wg as rn,Xg as an,Ya as R,Yb as ee,Yg as O,Yh as Ke,Zb as ge,Zh as Xe,_b as Dt,a as K,aa as we,b as X,bh as sn,ca as v,ck as Me,de as Jt,dk as pe,ea as Ae,eb as d,ec as l,ee as en,eh as Pe,fc as g,gc as Ie,ia as q,ib as r,ie as I,ih as V,ik as Cn,jc as mt,je as lt,jh as U,k as st,ke as tn,kh as Z,kj as un,l as Re,la as P,lb as jt,le as nn,lh as Le,lk as xn,ma as de,mh as $e,mk as ht,ne as on,o as W,oh as re,p as Ne,ph as pn,pi as se,q as j,rb as s,s as Ot,sa as C,sb as p,t as J,ta as x,tb as S,ub as _,v as xe,vb as f,w as Ut,wc as zt,xb as y,yc as Be,z as Bt,zb as k,zc as N,ze as M}from"./chunk-IVN2VXRW.js";var Wn=[[["","body",""]],[["","footer",""]]],Zn=["[body]","[footer]"],A=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=w({type:t,selectors:[["neptun-task-container"]],ngContentSelectors:Zn,decls:4,vars:0,consts:[[1,"login-task"],[1,"login-task__content"]],template:function(n,i){n&1&&(gt(Wn),s(0,"div",0)(1,"div",1),ct(2),p(),ct(3,1),p())},styles:["[_nghost-%COMP%]{display:block}.login-task[_ngcontent-%COMP%]{display:flex;flex-direction:column}.login-task__content[_ngcontent-%COMP%]{overflow-y:auto;background-color:#fff;margin:0 8px;border-top-right-radius:16px;border-top-left-radius:16px}@media only screen and (max-width:767px){.login-task[_ngcontent-%COMP%]{margin:0 auto;height:100%;justify-content:space-between}.login-task__content[_ngcontent-%COMP%]{flex-grow:1;padding:24px}}@media only screen and (max-width:767px){.login-task[_ngcontent-%COMP%]{padding:24px 8px}}@media only screen and (min-width:768px){.login-task[_ngcontent-%COMP%]{max-width:820px;margin:0 auto;padding-top:80px;padding-bottom:80px}.login-task__content[_ngcontent-%COMP%]{padding:80px 105px 48px}}"]})}}return t})();var Kn=["*"];function Xn(t,a){if(t&1&&(s(0,"span",6),u(1),p()),t&2){let e,n=a.$implicit,i=m(2);o(),h((e=i.taskCountText)!==null&&e!==void 0?e:n("login.task"))}}function Jn(t,a){if(t&1&&(_(0),u(1),l(2,"async"),d(3,Xn,2,1,"span",5),f()),t&2){let e=m();o(),T(" ",g(2,1,e.taskCount$)," ")}}var F=(()=>{class t{constructor(){this.store=de(I),this.hideCounter=!1,this.taskCount$=this.store.select(ke.taskCount)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=w({type:t,selectors:[["login-task-footer"]],inputs:{hideCounter:"hideCounter",taskCountText:"taskCountText"},ngContentSelectors:Kn,decls:6,vars:1,consts:[[1,"footer"],["id","completedtasks",1,"footer__left"],[4,"ngIf"],[1,"footer__right"],[1,"button-group"],["class","text-lowercase",4,"transloco"],[1,"text-lowercase"]],template:function(n,i){n&1&&(gt(),s(0,"footer",0)(1,"div",1),d(2,Jn,4,3,"ng-container",2),p(),s(3,"div",3)(4,"div",4),ct(5),p()()()),n&2&&(o(2),r("ngIf",!i.hideCounter))},dependencies:[N,M,$],styles:[".footer[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;flex-direction:column;gap:unset;background-color:#213055;min-height:76px;color:#fff;margin:0 8px;border-bottom-left-radius:16px;border-bottom-right-radius:16px}.footer__left[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;flex-direction:row;gap:8px;width:100%}.footer__left[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-weight:800}.footer__left[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]:last-child{margin-right:5px}.footer__left[_ngcontent-%COMP%]:not(:empty){margin-bottom:24px}.footer__right[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;flex-direction:row;gap:unset;width:100%}.footer__skip[_ngcontent-%COMP%]{margin-right:16px;color:#fff}[_nghost-%COMP%]   .button-group[_ngcontent-%COMP%]{display:flex;justify-content:unset;align-items:center;flex-direction:column-reverse;gap:24px;width:100%}[_nghost-%COMP%]   .button-group[_ngcontent-%COMP%]     a{color:#fff}[_nghost-%COMP%]   .button-group[_ngcontent-%COMP%]     button{width:100%;justify-content:center}@media only screen and (max-width:767px){.footer[_ngcontent-%COMP%]{padding:24px}}@media only screen and (min-width:768px){.footer[_ngcontent-%COMP%]{padding:0 105px;flex-direction:row}.footer__left[_ngcontent-%COMP%]:not(:empty){margin-bottom:0}.footer__left[_ngcontent-%COMP%], .footer__right[_ngcontent-%COMP%], [_nghost-%COMP%]   .button-group[_ngcontent-%COMP%], [_nghost-%COMP%]   .button-group[_ngcontent-%COMP%]     button{width:auto}[_nghost-%COMP%]   .button-group[_ngcontent-%COMP%]{flex-direction:row}}"],changeDetection:0})}}return t})();function ei(t,a){if(t&1){let e=y();_(0),s(1,"neptun-task-container"),_(2,1),s(3,"h2"),u(4),p(),s(5,"div",2),S(6,"img",3),l(7,"assetUrl"),S(8,"p",4),p(),f(),s(9,"login-task-footer",5)(10,"button",6),k("click",function(){C(e);let i=m();return x(i.next())}),u(11),p()()(),f()}if(t&2){let e=a.$implicit;o(4),h(e("profileSettings.twoFactorAuthentication")),o(2),r("src",g(7,5,"assets/images/two-factor-auth.svg"),Ue),o(2),r("innerHTML",e("login.twoFactorLoginRegistrationInfo"),ve),o(),r("taskCountText",e("dialog.step")),o(2),T(" ",e("login.setup")," ")}}var Rt=(()=>{class t{constructor(e,n){this.router=e,this.store=n}ngOnInit(){this.store.dispatch(new D.SetTaskCounter(te.ONE))}next(){this.router.navigate(["login-task","two-factor-authentication-registration"])}static{this.\u0275fac=function(n){return new(n||t)(R(je),R(I))}}static{this.\u0275cmp=w({type:t,selectors:[["neptun-two-factor-login-registration-info"]],decls:1,vars:0,consts:[[4,"transloco"],["body",""],[1,"two-factor-login-registration-info__container"],["alt","Two-Factor Authentication",3,"src"],[1,"check-two-factor-login-authentication__description",3,"innerHTML"],["footer","",3,"taskCountText"],["id","setup-two-factor-button","neptun-button","","color","primary","accent","flat",3,"click"]],template:function(n,i){n&1&&d(0,ei,12,7,"ng-container",0)},dependencies:[M,A,F,O,Ge],styles:[".two-factor-login-registration-info__container[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;flex-direction:column;gap:16px;margin-top:24px}@media only screen and (min-width:768px){.two-factor-login-registration-info__container[_ngcontent-%COMP%]{display:flex;justify-content:unset;align-items:center;flex-direction:row;gap:32px}}"],changeDetection:0})}}return t})();var _e=(()=>{class t{constructor(e){this.store=e}canDeactivate(e,n,i,c){if(!this.store.selectSnapshot(an.isAuthenticated))return!0;let Y=this.store.selectSnapshot(ke.tasks),fe=Y.length>te.ZERO;if(e instanceof Rt){let he=Y.includes(ne.TwoFactorAuthenticationRegistration),Oe=c.url===`${ae.LoginTaskUrl}/${ne.TwoFactorAuthenticationRegistration}`;return he&&Oe}if(fe){let he=Y[te.ZERO];if(!(c.url===`${ae.LoginTaskUrl}/${he}`))return!1}return!0}static{this.\u0275fac=function(n){return new(n||t)(P(I))}}static{this.\u0275prov=q({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Nn=(()=>{class t{constructor(e,n,i){this.activatedRoute=e,this.router=n,this.store=i,this.destroy$=new Re,this.taskCount$=this.store.select(ke.tasks)}ngOnInit(){this.taskCount$.pipe(we(this.destroy$)).subscribe(e=>{if(e.length>te.ZERO){let n=e[te.ZERO];this.router.navigate([n],{relativeTo:this.activatedRoute})}else this.router.navigate(["/"])})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static{this.\u0275fac=function(n){return new(n||t)(R(Kt),R(je),R(I))}}static{this.\u0275cmp=w({type:t,selectors:[["neptun-login-task"]],decls:1,vars:0,template:function(n,i){n&1&&S(0,"router-outlet")},dependencies:[Xt],styles:["[_nghost-%COMP%]{display:block;background-color:#21305599;height:100%}"]})}}return t})();function ti(t,a){if(t&1&&(_(0),s(1,"neptun-basic-dialog-layout")(2,"h2",1),u(3),p(),_(4,2),s(5,"p"),u(6),p(),f(),_(7,3),s(8,"div",4)(9,"button",5),u(10),p()(),f(),p(),f()),t&2){let e=a.$implicit;o(3),h(e("global.information")),o(3),h(e("loginTask.decideLater")),o(4),T(" ",e("button.close")," ")}}var An=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=w({type:t,selectors:[["neptun-skip-evop-connect-dialog"]],decls:1,vars:0,consts:[[4,"transloco"],["title","",1,"mat-h2"],["content",""],["actions",""],["neptunBasicDialogLayoutActions",""],["matDialogClose","","neptun-button","","accent","flat"]],template:function(n,i){n&1&&d(0,ti,11,3,"ng-container",0)},dependencies:[M,fn,_n,O,Zt],encapsulation:2})}}return t})();var z;(function(t){let a=(()=>{class L{static{this.type="[PostLogin] Get EVOP user data"}constructor(){}}return L})();t.GetEvopUserData=a;let e=(()=>{class L{static{this.type="[PostLogin] Accept EVOP user data"}}return L})();t.AcceptEvopUserData=e;let n=(()=>{class L{static{this.type="[PostLogin] Reject EVOP user data"}}return L})();t.RejectEvopUserData=n;let i=(()=>{class L{static{this.type="[PostLogin] Skip EVOP user acceptance"}}return L})();t.SkipEvopUserAcceptance=i;let c=(()=>{class L{static{this.type="[PostLogin] EVOP user acceptance success"}constructor(at){this.message=at}}return L})();t.EvopUserAcceptanceSuccess=c;let b=(()=>{class L{static{this.type="[PostLogin] Get required to read messages"}}return L})();t.GetRequiredToReadMessages=b;let Y=(()=>{class L{static{this.type="[PostLogin] Get message posts"}constructor(at){this.messageId=at}}return L})();t.GetMessagePosts=Y;let fe=(()=>{class L{static{this.type="[PostLogin] Mark message post as read"}constructor(at){this.messageId=at}}return L})();t.MarkMessagePostAsRead=fe;let he=(()=>{class L{static{this.type="[PostLogin] Mark message post as read success"}}return L})();t.MarkMessagePostAsReadSuccess=he;let Oe=(()=>{class L{static{this.type="[PostLogin] Skip required to read messages"}}return L})();t.SkipRequiredToReadMessages=Oe})(z||(z={}));var le=class wt{constructor(a,e){this.evopApiService=a,this.authService=e}static evopUserData(a){return a.evopUserData}getEvopUserData(a){return this.evopApiService.evopUserData$().pipe(v(e=>a.patchState({evopUserData:e})))}acceptEvopUserData(a){return this.evopApiService.acceptEVOPUser$().pipe(H(()=>a.dispatch(new z.EvopUserAcceptanceSuccess("notification.evopAcceptSuccess"))))}rejectEvopUserData(a){return this.evopApiService.rejectEVOPUser$().pipe(H(()=>a.dispatch(new z.EvopUserAcceptanceSuccess("notification.evopDenySuccess"))))}skipEvopUserAcceptance(a){return this.evopApiService.skipEVOPUserAcceptance$().pipe(H(()=>a.dispatch(new z.EvopUserAcceptanceSuccess("notification.evopSkip"))))}static{this.\u0275fac=function(e){return new(e||wt)(P(St),P(rt))}}static{this.\u0275prov=q({token:wt,factory:wt.\u0275fac})}};Ne([lt(z.GetEvopUserData),j("design:type",Function),j("design:paramtypes",[Object]),j("design:returntype",st)],le.prototype,"getEvopUserData",null);Ne([lt(z.AcceptEvopUserData),j("design:type",Function),j("design:paramtypes",[Object]),j("design:returntype",st)],le.prototype,"acceptEvopUserData",null);Ne([lt(z.RejectEvopUserData),j("design:type",Function),j("design:paramtypes",[Object]),j("design:returntype",st)],le.prototype,"rejectEvopUserData",null);Ne([lt(z.SkipEvopUserAcceptance),j("design:type",Function),j("design:paramtypes",[Object]),j("design:returntype",st)],le.prototype,"skipEvopUserAcceptance",null);Ne([nn(),j("design:type",Function),j("design:paramtypes",[Object]),j("design:returntype",Object)],le,"evopUserData",null);le=Ne([tn({name:"postLogin",defaults:{evopUserData:null}}),j("design:paramtypes",[St,rt])],le);var oi=()=>({dateStyle:"long",timeStyle:"short"});function ri(t,a){if(t&1&&(_(0),s(1,"div",7)(2,"div",8),u(3),p(),u(4),p(),s(5,"div",9)(6,"div",10),u(7),p(),u(8),p(),s(9,"div",11)(10,"div",12),u(11),p(),u(12),l(13,"translocoDate"),p(),f()),t&2){let e,n=a.ngIf,i=m().$implicit;o(3),T("",i("global.name"),":"),o(),T(" ",n.name," "),o(3),T("",i("loginTask.email"),":"),o(),T(" ",n.email," "),o(3),T("",i("profileSettings.initiativeDate"),":"),o(),T(" ",Ie(13,6,(e=n.entityCreated)!==null&&e!==void 0?e:"",ge(9,oi))," ")}}function ai(t,a){if(t&1){let e=y();s(0,"neptun-task-container"),_(1,1),s(2,"h2"),u(3),p(),S(4,"div",2),d(5,ri,14,10,"ng-container",3),l(6,"async"),s(7,"div",4)(8,"neptun-navigation-button",5),k("runAction",function(){C(e);let i=m();return x(i.accept())}),p(),s(9,"neptun-navigation-button",5),k("runAction",function(){C(e);let i=m();return x(i.reject())}),p(),s(10,"neptun-navigation-button",5),k("runAction",function(){C(e);let i=m();return x(i.skip())}),p()(),f(),S(11,"login-task-footer",6),p()}if(t&2){let e=a.$implicit,n=m();o(3),h(e("loginTask.evopConnect")),o(),r("innerHTML",e("loginTask.confirm"),ve),o(),r("ngIf",g(6,12,n.evopUserData$)),o(3),r("text",e("loginTask.connectYes"))("subTitle",e("loginTask.connectYesCaption"))("permissionRequired",n.acceptPermission),o(),r("text",e("loginTask.connectNo"))("subTitle",e("loginTask.connectNoCaption"))("permissionRequired",n.rejectPermission),o(),r("text",e("loginTask.connectLater"))("subTitle",e("loginTask.connectLaterCaption"))("permissionRequired",n.skipPermission)}}var Fn=(()=>{class t{constructor(e,n,i,c){this.dialogService=e,this.store=n,this.getNewTokenWatcherService=i,this.actions=c,this.destroy$=new Re,this.evopUserData$=this.store.select(le.evopUserData),this.acceptPermission={actionName:"",controllerName:"",permissionGuid:_t.FrontendOnly_PostLoginEvopConnect_Accept},this.rejectPermission={actionName:"",controllerName:"",permissionGuid:_t.FrontendOnly_PostLoginEvopConnect_Refuse},this.skipPermission={actionName:"",controllerName:"",permissionGuid:_t.FrontendOnly_PostLoginEvopConnect_Skip}}ngOnInit(){this.store.dispatch(new z.GetEvopUserData),this.actions.pipe(en(z.EvopUserAcceptanceSuccess),we(this.destroy$)).subscribe(e=>{this.getNewTokenWatcherService.emit(),this.store.dispatch(new ft.AddSuccessPushNotification({title:e.message}))})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}accept(){this.store.dispatch(new z.AcceptEvopUserData)}reject(){this.store.dispatch(new z.RejectEvopUserData)}skip(){this.dialogService.openDialog(An).afterClosed().subscribe(()=>this.store.dispatch(new z.SkipEvopUserAcceptance))}static{this.\u0275fac=function(n){return new(n||t)(R(ht),R(I),R(cn),R(Jt))}}static{this.\u0275cmp=w({type:t,selectors:[["neptun-evop-connect"]],decls:1,vars:0,consts:[[4,"transloco"],["body",""],[1,"description",3,"innerHTML"],[4,"ngIf"],[1,"links"],[1,"links__item",3,"runAction","text","subTitle","permissionRequired"],["footer","",1,"login-task__footer"],[1,"name"],[1,"name__label"],[1,"email"],[1,"email__label"],[1,"date"],[1,"date__label"]],template:function(n,i){n&1&&d(0,ai,12,14,"neptun-task-container",0)},dependencies:[M,A,N,vn,se,F,$,Pe],styles:[".description[_ngcontent-%COMP%]{color:#444;margin-top:16px}.name[_ngcontent-%COMP%]{margin-top:16px;color:#444;display:flex}.name__label[_ngcontent-%COMP%]{font-weight:800;margin-right:8px}.email[_ngcontent-%COMP%]{display:flex;color:#444}.email__label[_ngcontent-%COMP%]{font-weight:800;margin-right:8px}.date[_ngcontent-%COMP%]{display:flex;color:#444}.date__label[_ngcontent-%COMP%]{font-wei
1ght:800;margin-right:8px}.links[_ngcontent-%COMP%]{margin-top:24px}.links__item[_ngcontent-%COMP%] + .links__item[_ngcontent-%COMP%]{margin-top:16px}"],changeDetection:0})}}return t})();var Lt=(()=>{class t extends pe{constructor(e){super({acceptGdprRequest:V,gdprInfoRequest:V}),this.legalNoteService=e,this.store=de(I),this.gdprInfoRequest$=this.select(n=>n.gdprInfoRequest),this.acceptGdprRequest$=this.select(n=>n.acceptGdprRequest),this.setAccept=this.updater((n,i)=>X(K({},n),{acceptGdprRequest:i})),this.submitGdprAcceptance=this.effect(n=>n.pipe(v(()=>this.setAccept(U)),B(i=>this.legalNoteService.putMyGdpr(i).pipe(H(()=>i?this.store.dispatch(new D.CompleteLoginTask(Q.GDPRAcceptance)):this.store.dispatch(new De.Logout(!0,!1))),v(()=>this.setAccept(re)),G(c=>(i||this.store.dispatch(new De.Logout(!0,!1)),this.setAccept(Z),J(()=>c),W))))))}ngrxOnStateInit(){this.patchState({gdprInfoRequest:U}),this.legalNoteService.getMyGdpr().pipe(v(e=>{e.gdprInfo===null?(this.store.dispatch(new D.SetError("loginTask.noGdprAvailableTitle","loginTask.noGdprAvailableMessage")),this.patchState({gdprInfoRequest:Z})):this.patchState({gdprInfoRequest:$e(e.gdprInfo)})}),G(e=>(this.patchState({gdprInfoRequest:Z}),J(()=>e)))).subscribe()}static{this.\u0275fac=function(n){return new(n||t)(P(Tt))}}static{this.\u0275prov=q({token:t,factory:t.\u0275fac})}}return t})();var si=()=>({dateStyle:"long",timeStyle:"short"});function ci(t,a){t&1&&(s(0,"div",7),S(1,"neptun-details-loading-placeholder"),p())}function pi(t,a){t&1&&(s(0,"div",8),S(1,"neptun-request-error-indicator",9),p()),t&2&&(o(),r("isButtonHidden",!0))}function mi(t,a){if(t&1&&(s(0,"neptun-callout-box",15),u(1),p()),t&2){let e=m(3).$implicit,n=m();r("icon",n.Icons.Info)("id","gdpr-modal-notification")("bgColor",n.calloutBoxColor),o(),T(" ",e("gdpr.gdprModalInformation"),"")}}function li(t,a){if(t&1&&(s(0,"div",10)(1,"h2"),u(2),p(),s(3,"span",11),u(4),l(5,"translocoDate"),p(),d(6,mi,2,4,"neptun-callout-box",12),s(7,"div",13),S(8,"neptun-form-kolkov-html",14),p()()),t&2){let e=m().ngIf,n=m().$implicit,i=m();o(2),h(n("gdpr.gdprDeclaration")),o(2),h(Ie(5,4,i.date,ge(7,si))),o(2),r("ngIf",e.data.gdprCanBeDenied),o(2),r("htmlText",e.data.gdprHtml)}}function di(t,a){if(t&1&&(_(0),d(1,ci,2,0,"div",4),l(2,"isLoadingRequest"),d(3,pi,2,1,"div",5),l(4,"hasError"),d(5,li,9,8,"div",6),l(6,"isResultRequest"),f()),t&2){let e=a.ngIf;o(),r("ngIf",g(2,3,e)),o(2),r("ngIf",g(4,5,e)),o(2),r("ngIf",g(6,7,e))}}function gi(t,a){if(t&1){let e=y();s(0,"button",18),l(1,"isLoadingRequest"),k("click",function(){C(e);let i=m(4);return x(i.submitGdprAcceptance(!1))}),u(2),p()}if(t&2){let e=m().ngIf,n=m(2).$implicit,i=m();r("permissionRequired",i.acceptGdprPermission)("loading",g(1,3,e)),o(2),h(n("button.reject"))}}function ui(t,a){if(t&1){let e=y();s(0,"button",19),l(1,"isLoadingRequest"),k("click",function(){C(e);let i=m(4);return x(i.submitGdprAcceptance(!0))}),u(2),l(3,"isResultRequest"),p()}if(t&2){let e=m().ngIf,n=m().ngIf,i=m().$implicit,c=m();r("permissionRequired",c.acceptGdprPermission)("loading",g(1,3,e)),o(2),T(" ",i(g(3,5,n)&&n.data.gdprCanBeDenied?"button.readAndAccept":"button.understand")," ")}}function _i(t,a){if(t&1&&(_(0),d(1,gi,3,5,"button",16),l(2,"isResultRequest"),d(3,ui,4,7,"button",17),l(4,"isResultRequest"),f()),t&2){let e=m().ngIf;o(),r("ngIf",g(2,2,e)&&e.data.gdprCanBeDenied),o(2),r("ngIf",g(4,4,e))}}function fi(t,a){if(t&1&&(_(0),d(1,_i,5,6,"ng-container",2),l(2,"async"),f()),t&2){let e=m(2);o(),r("ngIf",g(2,1,e.acceptGdprRequest$))}}function hi(t,a){if(t&1&&(_(0),s(1,"neptun-task-container"),_(2,1),d(3,di,7,9,"ng-container",2),l(4,"async"),f(),s(5,"login-task-footer",3),d(6,fi,3,3,"ng-container",2),l(7,"async"),p()(),f()),t&2){let e=m();o(3),r("ngIf",g(4,2,e.gdprInfoRequest$)),o(3),r("ngIf",g(7,4,e.gdprInfoRequest$))}}var Dn=(()=>{class t{constructor(){this.legalNoteStore=de(Lt),this.acceptGdprPermission={controllerName:"PostLogin",actionName:"PostGDPRAcceptance"},this.gdprInfoRequest$=this.legalNoteStore.gdprInfoRequest$,this.acceptGdprRequest$=this.legalNoteStore.acceptGdprRequest$,this.calloutBoxColor="warning-light",this.Icons=oe,this.date=new Date}submitGdprAcceptance(e){this.legalNoteStore.submitGdprAcceptance(e)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=w({type:t,selectors:[["neptun-legal-note"]],features:[ee([Me(Lt)]
1)],decls:1,vars:0,consts:[[4,"transloco"],["body",""],[4,"ngIf"],["footer","",1,"login-task__footer"],["test-id","gdpr-loading-template",4,"ngIf"],["test-id","gdpr-error-template",4,"ngIf"],["test-id","gdpr-data-template",4,"ngIf"],["test-id","gdpr-loading-template"],["test-id","gdpr-error-template"],[3,"isButtonHidden"],["test-id","gdpr-data-template"],[1,"date"],[3,"icon","id","bgColor",4,"ngIf"],[1,"body"],[3,"htmlText"],[3,"icon","id","bgColor"],["test-id","reject-button","id","reject-gdpr-btn","neptun-button","","accent","flat","color","error",3,"permissionRequired","loading","click",4,"ngIf"],["test-id","accept-button","id","accept-gdpr-btn","neptun-button","","accent","flat","color","primary",3,"permissionRequired","loading","click",4,"ngIf"],["test-id","reject-button","id","reject-gdpr-btn","neptun-button","","accent","flat","color","error",3,"click","permissionRequired","loading"],["test-id","accept-button","id","accept-gdpr-btn","neptun-button","","accent","flat","color","primary",3,"click","permissionRequired","loading"]],template:function(n,i){n&1&&d(0,hi,8,6,"ng-container",0)},dependencies:[M,A,N,qe,nt,et,F,O,se,$,Pe,ue,ie,it,kt],styles:[".accept-gdpr[_ngcontent-%COMP%]{background-color:#f2f3fb;padding:12px 16px 12px 12px;display:flex;border-radius:8px;margin-top:25px;margin-bottom:7px;border:2px solid #f2f3fb}.accept-gdpr--error[_ngcontent-%COMP%]{border:2px solid #f2994a;background-color:#f2994a33}.body[_ngcontent-%COMP%]{margin-top:16px}h2[_ngcontent-%COMP%]{margin-bottom:12px}.date[_ngcontent-%COMP%]{color:#213055;font-size:13px}"],changeDetection:0})}}return t})();var It=(()=>{class t{static{this.PutNickNameEndpoint="NickName"}constructor(e){this.httpClient=e}putNickName(e){return this.httpClient.post(`${Se.settings.apiServer.url}${t.PutNickNameEndpoint}`,{nickName:e})}static{this.\u0275fac=function(n){return new(n||t)(P(Ve))}}static{this.\u0275prov=q({token:t,factory:t.\u0275fac})}}return t})();var bt=(()=>{class t extends pe{constructor(e){super({setNicknameRequest:V}),this.nickNameService=e,this.store=de(I),this.setNicknameRequest$=this.select(n=>n.setNicknameRequest),this.update=this.updater((n,i)=>({setNicknameRequest:i})),this.setNickname=this.effect(n=>n.pipe(v(()=>{this.update(U)}),B(i=>this.nickNameService.putNickName(i).pipe(H(()=>this.store.dispatch(new D.CompleteLoginTask(Q.SetNickName))),v(()=>this.update(re)),G(c=>(c instanceof ut&&vt(c.error)?this.update(Le({modelStateErrors:c.error.modelStateErrors})):this.update(Z),J(()=>c),W))))))}static{this.\u0275fac=function(n){return new(n||t)(P(It))}}static{this.\u0275prov=q({token:t,factory:t.\u0275fac})}}return t})();function vi(t,a){if(t&1){let e=y();s(0,"neptun-task-container"),_(1,2),s(2,"h2"),u(3),p(),s(4,"p",3),u(5),p(),_(6),s(7,"form",4),S(8,"neptun-form-input",5),p(),f(),s(9,"ul",6)(10,"li"),u(11),p(),s(12,"li"),u(13),p(),s(14,"li"),u(15),p()(),s(16,"p",7),u(17),p(),f(),s(18,"login-task-footer",8)(19,"button",9),l(20,"isLoadingRequest"),k("click",function(){C(e);let i=m(2);return x(i.setNickname())}),u(21),p()()()}if(t&2){let e=a.$implicit,n=m().ngIf,i=m();o(3),h(e("loginTask.chooseNickname")),o(2),T(" ",e("loginTask.pleaseChooseNickname")," "),o(2),r("formGroup",i.form),o(),r("label",e("login.nickName"))("icon",i.icon)("maxLength",i.maxLength),o(3),T("- ",e("loginTask.uniqueNickname"),""),o(2),T("- ",e("loginTask.maxCharacterNickname"),""),o(2),T("- ",e("loginTask.canEditLater"),""),o(2),h(e("loginTask.nicknameNextButton")),o(2),r("permissionRequired",i.changeNickNamePermission)("loading",g(20,13,n)),o(2),T(" ",e("button.next")," ")}}function Si(t,a){t&1&&(_(0),d(1,vi,22,15,"neptun-task-container",1),f())}var $n=50,Un=(()=>{class t{constructor(e,n){this.formBuilder=e,this.store=n,this.changeNickNamePermission={controllerName:"PostLogin",actionName:"NMSNicknameSetter"},this.maxLength=$n,this.icon=oe.User,this.form=this.formBuilder.group({nickName:new Ee("",{validators:[Te.required,Te.maxLength($n),yn],nonNullable:!0})}),this.setNicknameRequest$=this.store.setNicknameRequest$.pipe(v(i=>{Je(i)&&i.modelStateErrors&&ot(this.form,i.modelStateErrors)}))}
1setNickname(){if(this.form.markAllAsTouched(),this.form.invalid)return;let{nickName:e}=this.form.getRawValue();this.store.setNickname(e)}static{this.\u0275fac=function(n){return new(n||t)(R(Ze),R(bt))}}static{this.\u0275cmp=w({type:t,selectors:[["neptun-nick-name"]],features:[ee([bt])],decls:2,vars:3,consts:[[4,"ngIf"],[4,"transloco"],["body",""],["id","addnickname",1,"message","message--nickname"],[1,"nickname-form",3,"formGroup"],["id","nick-name","formControlName","nickName","test-id","nickname-input",1,"w-100",3,"label","icon","maxLength"],[1,"restrictions"],[1,"message","message--next"],["footer","",1,"login-task__footer"],["neptun-button","","color","primary","accent","flat","id","set-nickname-btn","test-id","set-nickname-btn",3,"click","permissionRequired","loading"]],template:function(n,i){n&1&&(d(0,Si,2,0,"ng-container",0),l(1,"async")),n&2&&r("ngIf",g(1,1,i.setNicknameRequest$))},dependencies:[N,M,A,Ke,ze,He,Qe,Xe,Ye,We,un,F,O,se,$,ie],styles:[".nickname-form[_ngcontent-%COMP%]{margin-bottom:16px}.message[_ngcontent-%COMP%]{color:#444}.message--next[_ngcontent-%COMP%]{font-size:13px}.message--nickname[_ngcontent-%COMP%]{margin-top:8px;margin-bottom:24px}.restrictions[_ngcontent-%COMP%]{color:#444;font-size:13px;margin:16px 0}"],changeDetection:0})}}return t})();var ki={isLegalNoticeRequired:!1,uploadedImage:null,selectedAvatar:null,defaultsRequest:V,setUserAvatarRequest:V},$t=(()=>{class t extends pe{constructor(e,n){super(ki),this.profileImageService=e,this.store=n,this.isLegalNoticeRequired$=this.select(i=>i.isLegalNoticeRequired),this.selectedAvatar$=this.select(i=>i.selectedAvatar),this.setUserAvatarRequest$=this.select(i=>i.setUserAvatarRequest),this.defaultsRequest$=this.select(i=>i.defaultsRequest),this.uploadedImage$=this.select(i=>i.uploadedImage),this.hasUploadedImage$=this.select(i=>!!i.uploadedImage),this.updateSetUserAvatarRequest=this.updater((i,c)=>X(K({},i),{setUserAvatarRequest:c})),this.updateSelectedAvatar=this.updater((i,c)=>X(K({},i),{selectedAvatar:c,isLegalNoticeRequired:c?.avatarType===ye.Custom,uploadedImage:c?.avatarType===ye.Custom?c.base64EncodedProfilePicture:i.uploadedImage})),this.setUploadedImage=this.updater((i,c)=>X(K({},i),{uploadedImage:c,isLegalNoticeRequired:!0})),this.deleteUploadedImage=this.updater(i=>X(K({},i),{uploadedImage:null,isLegalNoticeRequired:!1,selectedAvatar:i.selectedAvatar?.avatarType===ye.Custom?null:i.selectedAvatar})),this.selectAvatar=this.effect(i=>i.pipe(v(c=>{this.updateSelectedAvatar(c)}))),this.setUserAvatar=this.effect(i=>i.pipe(v(()=>this.updateSetUserAvatarRequest(U)),Ae(this.selectedAvatar$),xe(([c,b])=>b),B(c=>this.profileImageService.postAvatar(c).pipe(H(()=>this.store.dispatch(new D.CompleteLoginTask(Q.SetProfilePicture))),v(()=>this.updateSetUserAvatarRequest(re)),G(b=>(this.updateSetUserAvatarRequest(Z),J(()=>b),W)))))),this.uploadImage=this.effect(i=>i.pipe(v(c=>this.setUploadedImage(c)))),this.deleteImage=this.effect(i=>i.pipe(v(()=>this.deleteUploadedImage())))}ngrxOnStateInit(){this.patchState({defaultsRequest:U});let e=this.store.selectSnapshot(be.userAvatar);if(e){let n={avatarType:e.avatarType,base64EncodedProfilePicture:e.image,fallbackProfilePictureColorCode:e.fallbackColorCodeInHexa};n.avatarType===ye.Custom?this.patchState({uploadedImage:n.base64EncodedProfilePicture,selectedAvatar:n,isLegalNoticeRequired:!0}):this.patchState({selectedAvatar:n})}Bt({avatars:this.profileImageService.getDefaultAvatars(),colors:this.profileImageService.getDefaultFallbackProfilePictureColorCodes()}).pipe(v(n=>this.patchState({defaultsRequest:$e(n)})),G(n=>(this.patchState({defaultsRequest:Z}),J(()=>n)))).subscribe()}static{this.\u0275fac=function(n){return new(n||t)(P(yt),P(I))}}static{this.\u0275prov=q({token:t,factory:t.\u0275fac})}}return t})();var Ti=t=>({iconClass:t}),yi=t=>({"accept-legalNotice--error":t});function Ri(t,a){if(t&1){let e=y();s(0,"button",17),k("click",function(){C(e);let i=m(4);return x(i.deletePicture())}),u(1),p()}if(t&2){let e=m(3).$implicit,n=m();r("postfixIcon",Dt(2,Ti,n.circleXIcon)),o(),h(e("profileSettings.deletePicture"))}}function wi(t,a){if(t&1&&(s(0,"div",13),S(1,"neptun-user-image",14),l(2,"async"),s(3,"div",15),d(4,Ri,2,4,"button",16),p()()),t&2){let e,n=a.ngIf,i=m(3);o(),r("printName",(e=g(2,4,i.userPrintName$))!==null&&e!==void 0?e:"")("fallbackColorCodeInHexa",n.fallbackProfilePictureColorCode)("image",n.base64EncodedProfilePicture),o(3),r("ngIf",n.avatarType===i.customAvatarType)}}function Ii(t,a){if(t&1&&(_(0),d(1,wi,5,6,"div",12),l(2,"async"),f()),t&2){let e=m(2);o(),r("ngIf",g(2,1,e.selectedAvatar$))}}function bi(t,a){if(t&1){let e=y();s(0,"neptun-form-file",18),k("addFile",function(i){C(e);let c=m(2);return x(c.addFiles(i))})("invalidFile",function(i){C(e);let c=m(2);return x(c.invalidFileNotification(i))}),p()}if(t&2){let e=m(2);r("allowedFileExtensions",e.extensions)("disableDocumentLibrary",!0)("multiple",!1)}}function Pi(t,a){if(t&1&&(s(0,"form",20)(1,"div",21),S(2,"neptun-form-checkbox",22),p()()),t&2){let e=m(2).$implicit,n=m();r("formGroup",n.imageChangeForm),o(),r("ngClass",Dt(4,yi,(n.legalNotice.errors==null?null:n.legalNotice.errors.required)&&n.legalNotice.touched)),o(),r("label",e("profileSettings.legalNoticeLabel"))("required",!0)}}function Ei(t,a){if(t&1&&(_(0),d(1,Pi,3,6,"form",19),f()),t&2){let e=a.ngIf,n=m(2);o(),r("ngIf",e.avatarType===n.customAvatarType)}}function Mi(t,a){t&1&&(s(0,"div",25),S(1,"neptun-details-loading-placeholder"),p())}function qi(t,a){if(t&1){let e=y();s(0,"neptun-default-avatar",26),l(1,"async"),l(2,"async"),k("selectImage",function(i){C(e);let c=m(3);return x(c.selectImage(i))})("selectAvatar",function(i){C(e);let c=m(3);return x(c.selectAvatar(i))})("selectColor",function(i){C(e);let c=m(3);return x(c.selectColor(i))}),p()}if(t&2){let e,n=m().ngIf,i=m(2);r("image",g(1,4,i.uploadedImage$))("avatars",n.data.avatars)("colors",n.data.colors)("printName",(e=g(2,6,i.userPrintName$))!==null&&e!==void 0?e:"")}}function Ni(t,a){if(t&1&&(_(0),d(1,Mi,2,0,"div",23),l(2,"isLoadingRequest"),d(3,qi,3,8,"neptun-default-avatar",24),l(4,"isResultRequest"),f()),t&2){let e=a.ngIf;o(),r("ngIf",g(2,2,e)),o(2),r("ngIf",g(4,4,e))}}function Ai(t,a){if(t&1){let e=y();s(0,"button",27),l(1,"async"),l(2,"isLoadingRequest"),k("click",function(){C(e);let i=m(2);return x(i.setUserAvatar())}),u(3),p()}if(t&2){let e=a.ngIf,n=m().$implicit,i=m();r("permissionRequired",i.setUserAvatarPermission)("disabled",g(1,4,i.selectedAvatar$)===null)("loading",g(2,6,e)),o(3),T(" ",n("button.next")," ")}}function Fi(t,a){if(t&1&&(s(0,"neptun-task-container"),_(1,2),s(2,"h2"),u(3),p(),S(4,"div",3),s(5,"p",4),u(6),p(),d(7,Ii,3,3,"ng-container",5),l(8,"async"),d(9,bi,1,3,"ng-template",null,0,mt),s(11,"div",6)(12,"span",7),u(13),p(),s(14,"span",8),u(15),p()(),d(16,Ei,2,1,"ng-container",9),l(17,"async"),d(18,Ni,5,6,"ng-container",9),l(19,"async"),f(),s(20,"login-task-footer",10),d(21,Ai,4,8,"button",11),l(22,"async"),p()()),t&2){let e=a.$implicit,n=pt(10),i=m();o(3),h(e("loginTask.profileImageTitle")),o(),r("innerHTML",e("profileSettings.profileImageDescription"),ve),o(2),h(e("loginTask.uploadProfileImage")),o(),r("ngIf",g(8,10,i.hasUploadedImage$)===!0)("ngIfElse",n),o(6),T("",e("fileUpload.allowedExtensions"),": "),o(2),h(i.extensions.join(", ")),o(),r("ngIf",g(17,12,i.selectedAvatar$)),o(2),r("ngIf",g(19,14,i.defaultsRequest$)),o(3),r("ngIf",g(22,16,i.setUserAvatarRequest$))}}var Bn=(()=>{class t{constructor(e,n,i){this.store=e,this.dialogService=n,this.formBuilder=i,this.profileImageStore=de($t),this.destroy$=new Re,this.setUserAvatarPermission={controllerName:"PostLogin",actionName:"SetUserAvatar"},this.defaultsRequest$=this.profileImageStore.defaultsRequest$,this.setUserAvatarRequest$=this.profileImageStore.setUserAvatarRequest$,this.selectedAvatar$=this.profileImageStore.selectedAvatar$,this.hasUploadedImage$=this.profileImageStore.hasUploadedImage$,this.uploadedImage$=this.profileImageStore.uploadedImage$,this.isLegalNoticeRequired$=this.profileImageStore.isLegalNoticeRequired$,this.userPrintName$=this.store.select(be.userPrintName),this.circleXIcon=oe.CircleX,this.customAvatarType=ye.Custom,this.extensions=["JPG","JPEG"],this.imageChangeForm=this.formBuilder.group({legalNotice:new Ee(!1)})}ngOnInit(){this.isLegalNoticeRequired$.pipe(we(this.destroy$)).subscribe(e=>{e?this.legalNotice.setValidators([Te.requiredTrue]):this.legalNotice.clearValidators(),this.legalNotice.updateValueAndValidity()})}get legalNotice(){return this.imageChangeForm.controls.legalNotice}selectImage(e){let n=e?{base64EncodedProfilePicture:e,avatarType:ye.Custom,fallbackProfilePictureColorCode:""}:null;this.profileImageStore.selectAvatar(n)}selectAvatar(e){let n=e?{base64EncodedProfilePicture:e.normalImage,fallbackProfilePictureColorCode:"",avatarType:e.avatarType}:null;this.profileImageStore.selectAvatar(n)}selectColor(e){let n=e?{base64EncodedProfilePicture:"",fallbackProfilePictureColorCode:e,avatarType:ye.FallbackColorCode}:null;this.profileImageStore.selectAvatar(n)}deletePicture(){this.profileImageStore.deleteImage(),this.legalNotice.clearValidators(),this.legalNotice.updateValueAndValidity()}setUserAvatar(){this.imageChangeForm.markAllAsTouched(),!this.imageChangeForm.invali
1d&&this.profileImageStore.setUserAvatar()}invalidFileNotification(e){this.store.dispatch(new ft.AddErrorPushNotification({title:"notification.badFileExtension",description:e}))}addFiles(e){let n={imageFile:e[te.ZERO]};this.dialogService.openDialog(wn,n).afterClosed().pipe(Vt(te.ONE),dt(Boolean),v(i=>this.getCroppedImage(i))).subscribe()}getCroppedImage(e){let i=e.split(",")[te.ONE];this.profileImageStore.uploadImage(i)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static{this.\u0275fac=function(n){return new(n||t)(R(I),R(ht),R(Ze))}}static{this.\u0275cmp=w({type:t,selectors:[["neptun-profile-image"]],features:[ee([Me($t)])],decls:1,vars:0,consts:[["upload",""],[4,"transloco"],["body",""],[1,"description",3,"innerHTML"],[1,"input-label"],[4,"ngIf","ngIfElse"],[1,"file-info"],[1,"file-info__label"],[1,"file-info__value"],[4,"ngIf"],["footer","",1,"login-task__footer"],["neptun-button","","id","set-user-avatar-btn","accent","flat","color","primary","test-id","set-user-avatar-btn",3,"permissionRequired","disabled","loading","click",4,"ngIf"],["class","displayed-image","test-id","image",4,"ngIf"],["test-id","image",1,"displayed-image"],[1,"avatar-img",3,"printName","fallbackColorCodeInHexa","image"],[1,"profile-image__button"],["neptun-button","","id","delete-picture-btn","test-id","delete-picture-btn",3,"postfixIcon","click",4,"ngIf"],["neptun-button","","id","delete-picture-btn","test-id","delete-picture-btn",3,"click","postfixIcon"],["test-id","file-upload",3,"addFile","invalidFile","allowedFileExtensions","disableDocumentLibrary","multiple"],["test-id","image-change-form",3,"formGroup",4,"ngIf"],["test-id","image-change-form",3,"formGroup"],[1,"accept-legalNotice",3,"ngClass"],["color","primary","formControlName","legalNotice","id","legalNotice",1,"cropper-checkbox",3,"label","required"],["test-id","defaults-loading",4,"ngIf"],["test-id","default-result",3,"image","avatars","colors","printName","selectImage","selectAvatar","selectColor",4,"ngIf"],["test-id","defaults-loading"],["test-id","default-result",3,"selectImage","selectAvatar","selectColor","image","avatars","colors","printName"],["neptun-button","","id","set-user-avatar-btn","accent","flat","color","primary","test-id","set-user-avatar-btn",3,"click","permissionRequired","disabled","loading"]],template:function(n,i){n&1&&d(0,Fi,23,18,"neptun-task-container",1)},dependencies:[M,A,N,gn,O,In,Ke,ze,He,Qe,dn,Xe,Ye,We,zt,xn,qe,Rn,F,se,$,ue,ie],styles:["h2[_ngcontent-%COMP%]{margin-bottom:16px}.input-label[_ngcontent-%COMP%]{font-size:16px;font-weight:800;margin-bottom:16px}.description[_ngcontent-%COMP%]{margin-bottom:32px}neptun-file-upload-image[_ngcontent-%COMP%]{display:flex;align-items:center;gap:16px}neptun-default-avatar[_ngcontent-%COMP%]{display:block;margin-top:24px}neptun-user-image[_ngcontent-%COMP%]{width:80px;min-width:80px;height:80px;margin-bottom:16px}.displayed-image[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}.accept-legalNotice[_ngcontent-%COMP%]{margin-top:16px}.file-info[_ngcontent-%COMP%]{color:#666;font-size:13px;margin-top:8px}.file-info__value[_ngcontent-%COMP%]{font-weight:800}@media only screen and (max-width:767px){neptun-file-upload-image[_ngcontent-%COMP%]{display:block}}"],changeDetection:0})}}return t})();var Pt=(()=>{class t{static{this.PutPasswordChangeEndpoint="PasswordChange"}constructor(e){this.httpClient=e}putPasswordChange(e,n,i){return this.httpClient.post(`${Se.settings.apiServer.url}${t.PutPasswordChangeEndpoint}`,{originalPlainPassword:e,newPlainPassword:n,newPlainPasswordReference:i})}static{this.\u0275fac=function(n){return new(n||t)(P(Ve))}}static{this.\u0275prov=q({token:t,factory:t.\u0275fac})}}return t})();var Et=(()=>{class t extends pe{constructor(e,n){super({passwordChangeRequest:V}),this.store=e,this.passwordChangeService=n,this.passwordChangeRequest$=this.select(i=>i.passwordChangeRequest),this.update=this.updater((i,c)=>X(K({},i),{passwordChangeRequest:c})),this.passwordChange=this.effect(i=>i.pipe(v(()=>{this.update(U)}),B(c=>this.passwordChangeService.putPasswordChange(c.originalPlainPassword,c.newPlainPassword,c.newPlainPasswordReference).pipe(H(()=>this.store.dispatch(new D.CompleteLoginTask(Q.PasswordChange))),v(()=>this.update(re)),G(b=>(b instanceof ut&&vt(b.error)?this.update(Le(b.error)):this.update(Z),J(()=>
1b),W))))))}static{this.\u0275fac=function(n){return new(n||t)(P(I),P(Pt))}}static{this.\u0275prov=q({token:t,factory:t.\u0275fac})}}return t})();function $i(t,a){if(t&1&&(s(0,"neptun-callout-box",14),u(1),p()),t&2){let e=m().$implicit,n=m(2);r("icon",n.alertIcon),o(),h(e("error.capsLockActive"))}}function Oi(t,a){if(t&1){let e=y();s(0,"neptun-task-container",2),_(1,3),s(2,"h2"),u(3),p(),s(4,"p",4),u(5),p(),d(6,$i,2,2,"neptun-callout-box",5),l(7,"async"),s(8,"form",6),S(9,"neptun-form-password",7),s(10,"p",8),u(11),p(),S(12,"neptun-form-password",9)(13,"neptun-form-password",10),p(),s(14,"p",11),u(15),p(),f(),s(16,"login-task-footer",12)(17,"button",13),l(18,"isLoadingRequest"),k("click",function(){C(e);let i=m(2);return x(i.changePassword())}),u(19),p()()()}if(t&2){let e=a.$implicit,n=m().ngIf,i=m();o(3),h(e("loginTask.passwordChange")),o(2),h(e("loginTask.pleaseEnterOldPassword")),o(),r("ngIf",g(7,15,i.isCapsLockOn$)===!0),o(2),r("formGroup",i.resetPasswordForm),o(),r("label",e("loginTask.currentPassword"))("icon",i.keyIcon),o(2),h(e("loginTask.pleaseEnterNewPassword")),o(),r("label",e("resetPassword.newPassword"))("icon",i.keyIcon),o(),r("label",e("resetPassword.newPasswordConfirm"))("icon",i.keyIcon),o(2),h(e("loginTask.changePasswordNextButton")),o(2),r("permissionRequired",i.changePasswordPermission)("loading",g(18,17,n)),o(2),T(" ",e("button.next")," ")}}function Ui(t,a){t&1&&(_(0),d(1,Oi,20,19,"neptun-task-container",1),f())}var Vn=(()=>{class t{constructor(e,n,i){this.formBuilder=e,this.resetPasswordStore=n,this.store=i,this.changePasswordPermission={controllerName:"PostLogin",actionName:"ChangePassword"},this.passwordChangeRequest$=this.resetPasswordStore.passwordChangeRequest$.pipe(v(c=>{Je(c)&&c.modelStateErrors&&ot(this.resetPasswordForm,c.modelStateErrors)})),this.isCapsLockOn$=this.store.select(be.isCapsLockOn),this.resetPasswordForm=this.formBuilder.group({originalPlainPassword:new Ee("",{validators:[Te.required],nonNullable:!0}),newPlainPassword:new Ee("",{validators:[Te.required],nonNullable:!0}),newPlainPasswordReference:new Ee("",{validators:[Te.required],nonNullable:!0})},{validators:[Pn("newPlainPassword","newPlainPasswordReference"),bn("originalPlainPassword","newPlainPassword","newPasswordSameAsOld")]}),this.keyIcon=oe.Key,this.alertIcon=oe.AlertTriangle}changePassword(){if(this.resetPasswordForm.markAllAsTouched(),this.resetPasswordForm.invalid)return;let e=this.resetPasswordForm.getRawValue();this.resetPasswordStore.passwordChange(e)}static{this.\u0275fac=function(n){return new(n||t)(R(Ze),R(Et),R(I))}}static{this.\u0275cmp=w({type:t,selectors:[["neptun-reset-password"]],features:[ee([Et])],decls:2,vars:3,consts:[[4,"ngIf"],["test-id","task-container",4,"transloco"],["test-id","task-container"],["body",""],[1,"message","message--password"],["class","callout-box","id","caps-lock-active-notification","bgColor","warning-light","test-id","caps-lock",3,"icon",4,"ngIf"],[3,"formGroup"],["id","original-password","formControlName","originalPlainPassword",3,"label","icon"],[1,"new-password-label"],["id","new-plain-password","formControlName","newPlainPassword",3,"label","icon"],["id","new-plain-password-reference","formControlName","newPlainPasswordReference",3,"label","icon"],[1,"message","message--next"],["footer","",1,"login-task__footer"],["neptun-button","","accent","flat","color","primary","id","reset-password-btn","test-id","reset-password-btn",3,"click","permissionRequired","loading"],["id","caps-lock-active-notification","bgColor","warning-light","test-id","caps-lock",1,"callout-box",3,"icon"]],template:function(n,i){n&1&&(d(0,Ui,2,0,"ng-container",0),l(1,"async")),n&2&&r("ngIf",g(1,1,i.passwordChangeRequest$))},dependencies:[N,M,A,et,Ke,ze,He,Qe,Xe,Ye,We,En,F,O,se,$,ie],styles:[".message[_ngcontent-%COMP%]{color:#444}.message--password[_ngcontent-%COMP%]{margin-top:8px;margin-bottom:16px}.message--next[_ngcontent-%COMP%]{font-size:13px}.new-password-label[_ngcontent-%COMP%]{color:#444;margin:16px 0}.callout-box[_ngcontent-%COMP%]{margin-bottom:16px}"],changeDetection:0})}}return t})();var Mt=(()=>{class t{constructor(e){this.httpClient=e}getMessages(){return this.httpClient.get(`${Se.settings.apiServer.url}Messages/Mandatories`).pipe(xe(e=>e.data))}getMessagePosts(e){return this.httpClient.get(`${Se.settings.apiServer.url}Messages/${e}/Posts`).pipe(xe(n=>n.data))}
1markAsRead(e,n){return this.httpClient.post(`${Se.settings.apiServer.url}Messages/${e}/Posts/Processed`,{postIds:n})}skipMessages(){return this.httpClient.post(`${Se.settings.apiServer.url}Message/SkipRequiredToReadMessages`,{})}static{this.\u0275fac=function(n){return new(n||t)(P(Ve))}}static{this.\u0275prov=q({token:t,factory:t.\u0275fac})}}return t})();var qt={canSkipMessages:!1,currentMessage:void 0,messages:[],messagesRequest:V,posts:[],postsRequest:V,readMode:"messages",markAsReadRequest:V,skipRequest:V,readAllRequest:V},Nt=(()=>{class t extends pe{constructor(e,n){super(qt),this.store=e,this.systemMessagesService=n,this.currentMessage$=this.select(i=>i.currentMessage),this.messageType$=this.select(i=>i.currentMessage?.messageType),this.readMode$=this.select(i=>i.readMode),this.canSkipMessages$=this.select(i=>i.canSkipMessages),this.messages$=this.select(i=>i.messages),this.messageRequest$=this.select(i=>i.messagesRequest),this.posts$=this.select(i=>i.posts),this.postsRequests$=this.select(i=>i.postsRequest),this.hasUnreadMessages$=this.select(i=>i.messages.some(c=>!c.read)),this.extendedMenuPermissionRequest$=this.store.select(pn.extendedMenuPermissionModelRequest),this.favouritesRequest$=this.store.select(mn.favouritesRequest),this.numberOfTasksByTypeRequest$=this.store.select(xt.getNumberOfTasksByType),this.threatlinesCountRequest$=this.store.select(xt.threatlinesCount),this.hasSubjectSigninNotificationRequest$=this.store.select(xt.hasSubjectSigninNotificationRequest),this.unreadMessageCountRequest$=this.store.select(ln.unreadMessageCountRequest),this.isLoading$=Ut([this.select(i=>ce(i.messagesRequest)||ce(i.postsRequest)||ce(i.markAsReadRequest)||ce(i.skipRequest)||ce(i.readAllRequest)),this.extendedMenuPermissionRequest$,this.favouritesRequest$,this.numberOfTasksByTypeRequest$,this.threatlinesCountRequest$,this.hasSubjectSigninNotificationRequest$,this.unreadMessageCountRequest$]).pipe(B(([i,c,b,Y,fe,he,Oe])=>Ot(i||ce(c)||ce(b)||ce(Y)||ce(fe)||ce(he)||ce(Oe)))),this.openMessage=this.effect(i=>i.pipe(Ae(this.messages$),v(([c,b])=>{let Y=b.find(fe=>fe.messageId===c);this.patchState({currentMessage:Y,readMode:"posts",postsRequest:U})}),B(([c])=>this.systemMessagesService.getMessagePosts(c).pipe(v(b=>this.patchState({posts:b.posts,postsRequest:re})),G(b=>(this.patchState({postsRequest:Z}),J(()=>b),W)))))),this.closeMessage=this.effect(i=>i.pipe(v(()=>this.patchState({currentMessage:void 0,readMode:"messages",posts:[]})))),this.markAsRead=this.effect(i=>i.pipe(Ae(this.currentMessage$),xe(([c,b])=>b?.messageId),dt(Boolean),v(()=>this.patchState({markAsReadRequest:U})),Ae(this.posts$),xe(([c,b])=>({messageId:c,posts:b.map(Y=>Y.postId)})),B(({messageId:c,posts:b})=>this.systemMessagesService.markAsRead(c,b).pipe(Ae(this.messages$),xe(([Y,fe])=>fe.filter(he=>he.messageId!==c)),B(Y=>Y.length?(this.patchState({messages:Y,markAsReadRequest:re,posts:[],readMode:"messages",currentMessage:void 0}),W):(this.patchState({readAllRequest:U}),this.store.dispatch(new D.CompleteLoginTask(Q.RequiredReadMessages)).pipe(v(()=>this.setState(qt))))))))),this.readRequiredMessages=this.effect(i=>i.pipe(v(()=>this.patchState({readAllRequest:U})),B(()=>this.store.dispatch(new D.CompleteLoginTask(Q.RequiredReadMessages)).pipe(v(()=>this.setState(qt)))))),this.skipMessages=this.effect(i=>i.pipe(v(()=>this.patchState({skipRequest:U})),B(()=>this.systemMessagesService.skipMessages().pipe(v(()=>this.patchState({skipRequest:re})),H(()=>this.store.dispatch(new D.CompleteLoginTask(Q.RequiredReadMessages))),v(()=>this.setState(qt)),G(c=>(this.patchState({skipRequest:Z}),J(()=>c),W))))))}ngrxOnStateInit(){let e=this.store.selectSnapshot(be.isNeptunDebugEnabled);this.patchState({canSkipMessages:e,messagesRequest:U}),this.systemMessagesService.getMessages().pipe(v(n=>this.patchState({messagesRequest:re,messages:n.map(i=>X(K({},i),{read:!1}))})),G(n=>(this.patchState({messagesRequest:Z}),J(()=>n)))).subscribe()}static{this.\u0275fac=function(n){return new(n||t)(P(I),P(Mt))}}static{this.\u0275prov=q({token:t,factory:t.\u0275fac})}}return t})();var ji=()=>({dateStyle:"long",timeStyle:"short"});function Gi(t,a){t&1&&(_(0),S(1,"neptun-details-loading-placeholder",7),f())}function Hi(t,a){t&1&&(_(0),S(1,"neptun-request-error-indicator",8),f()),t&2&&(o(),r("isButtonHidden",!0))}function Qi(t,a){if(t&1){let e=y();s(0,"neptun-card",10),k("click",function(){let i=C(e).$implicit,c=m(4);return x(c.openMessage(i.messageId))}),s(1,"div",11),S(2,"img",12),l(3,"assetUrl"),p(),s(4,"div",13)(5,"div",14),u(6),p(),s(7,"div",15),u(8),p()(),s(9,"div",16),u(10),l(11,"translocoDate"),p()()}if(t&2){let e=a.$implicit,n=a.index;r("id","message-"+n),o(2),r("src",g(3,5,"assets/images/neptun-logo-only-white.svg"),Ue),o(4),h(e.senderName),o(2),h(e.subject),o(2),T(" ",Ie(11,7,e.sendDate,ge(10,ji))," ")}}function zi(t,a){if(t&1&&(_(0),d(1,Qi,12,11,"neptun-card",9),f()),t&2){let e=m(3);o(),r("ngForOf",e.messages)("ngForTrackByProperty","messageId")}}function Yi(t,a){if(t&1&&(_(0),d(1,zi,2,2,"ng-container",3),f()),t&2){let e=m(2);o(),r("ngIf",e.messages)}}function Wi(t,a){if(t&1){let e=y();s(0,"button",17),k("click",function(){C(e);let i=m(2);return x(i.skipMessages())}),u(1),p()}if(t&2){let e,n=m().$implicit,i=m();r("loading",(e=i.isLoading)!==null&&e!==void 0?e:!1),o(),h(n("button.skipMessages"))}}function Zi(t,a){if(t&1){let e=y();s(0,"neptun-task-container"),_(1,1),s(2,"h2"),u(3),p(),s(4,"neptun-callout-box",2),u(5),p(),d(6,Gi,2,0,"ng-container",3),l(7,"isLoadingRequest"),d(8,Hi,2,1,"ng-container",3),l(9,"hasError"),d(10,Yi,2,1,"ng-container",3),l(11,"isResultRequest"),f(),s(12,"login-task-footer",4),d(13,Wi,2,2,"button",5),s(14,"button",6),k("click",function(){C(e);let i=m();return x(i.readRequiredMessage())}),u(15),p()()()}if(t&2){let e,n,i=a.$implicit,c=m();o(3),h(i("loginTask.unreadNotifications")),o(),r("icon",c.warningIcon),o(),h(i("loginTask.readBeforeContinue")),o(),r("ngIf",c.messagesRequest&&g(7,10,c.messagesRequest)),o(2),r("ngIf",c.messagesRequest&&g(9,12,c.messagesRequest)),o(2),r("ngIf",c.messagesRequest&&g(11,14,c.messagesRequest)),o(3),r("ngIf",c.canSkipMessages),o(),r("loading",(e=c.isLoading)!==null&&e!==void 0?e:!1)("disabled",(n=c.hasUnreadMessages)!==null&&n!==void 0?n:!1),o(),T(" ",i("button.continueLogin")," ")}}var jn=(()=>{class t{constructor(){this.warningIcon=oe.AlertTriangle,this.messageOpened=new Fe,this.requiredMessagesRead=new Fe,this.messagesSkipped=new Fe}openMessage(e){this.messageOpened.next(e)}readRequiredMessage(){this.requiredMessagesRead.next()}skipMessages(){this.messagesSkipped.next()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=w({type:t,selectors:[["neptun-required-messages"]],inputs:{messagesRequest:"messagesRequest",messages:"messages",hasUnreadMessages:"hasUnreadMessages",canSkipMessages:"canSkipMessages",isLoading:"isLoading"},outputs:{messageOpened:"messageOpened",requiredMessagesRead:"requiredMessagesRead",messagesSkipped:"messagesSkipped"},decls:1,vars:0,consts:[[4,"transloco"],["body",""],["id","read-before-continue-notification","bgColor","warning-light",1,"callout-box",3,"icon"],[4,"ngIf"],["footer","",1,"login-task__footer"],["neptun-button","","color","white","id","skip-messages-btn","test-id","skip-messages-btn",3,"loading","click",4,"ngIf"],["neptun-button","","id","read-messages-btn","color","primary","accent","flat","test-id","read-messages-btn",3,"click","loading","disabled"],["test-id","loading"],["test-id","error",3,"isButtonHidden"],["focusElement","","focusElementType","general","class","message","aria-role","link","test-id","message",3,"id","click",4,"ngFor","ngForOf","ngForTrackByProperty"],["focusElement","","focusElementType","general","aria-role","link","test-id","message",1,"message",3,"click","id"],[1,"message__avatar"],["aria-hidden","true","alt","logo",3,"src"],[1,"message__body"],[1,"message__body__sender"],[1,"message__body__subject"],[1,"message__date"],["neptun-button","","color","white","id","skip-messages-btn","test-id","skip-messages-btn",3,"click","loading"]],template:function(n,i){n&1&&d(0,Zi,16,16,"neptun-task-container",0)},dependencies:[M,A,et,N,qe,nt,Be,tt,Cn,sn,F,O,Pe,ue,ie,it,Ge],styles:[".callout-box[_ngcontent-%COMP%]{font-weight:800;margin-bottom:12px}.message[_ngcontent-%COMP%]{display:flex;gap:12px;cursor:pointer}
1.message__avatar[_ngcontent-%COMP%]{background-color:#0943d9;width:48px;height:48px;display:flex;align-items:center;justify-content:center;border-radius:50%;aspect-ratio:1}.message__body[_ngcontent-%COMP%]{flex-grow:1;word-break:break-word;color:#213055}.message__body__sender[_ngcontent-%COMP%]{font-weight:800}.message__date[_ngcontent-%COMP%]{color:#444;font-size:13px;display:flex;flex-direction:column;align-items:flex-end}.message[_ngcontent-%COMP%] + .message[_ngcontent-%COMP%]{margin-top:4px}"],changeDetection:0})}}return t})();var Ki=()=>({dateStyle:"long",timeStyle:"short"});function Xi(t,a){t&1&&(_(0),S(1,"neptun-details-loading-placeholder"),f())}function Ji(t,a){t&1&&(_(0),S(1,"neptun-request-error-indicator",6),f()),t&2&&(o(),r("isButtonHidden",!0))}function eo(t,a){if(t&1&&(s(0,"div",8)(1,"h4",9),u(2),l(3,"hyphen"),p(),s(4,"div",10),u(5),l(6,"translocoDate"),p(),s(7,"div",11),S(8,"neptun-form-kolkov-html",12),p()()),t&2){let e=a.$implicit,n=m(5);o(2),h(g(3,3,n.messageType)),o(3),T(" ",Ie(6,5,e.sendDate,ge(8,Ki))," "),o(3),r("htmlText",e.htmlText)}}function to(t,a){if(t&1&&(_(0),d(1,eo,9,9,"div",7),f()),t&2){let e=m(4);o(),r("ngForOf",e.posts)("ngForTrackByProperty","postId")}}function no(t,a){if(t&1&&(_(0),s(1,"h2"),u(2),l(3,"hyphen"),p(),d(4,to,2,2,"ng-container",0),f()),t&2){let e=m(3);o(2),h(g(3,2,e.messageType)),o(2),r("ngIf",e.posts)}}function io(t,a){if(t&1){let e=y();s(0,"neptun-task-container"),_(1,2),d(2,Xi,2,0,"ng-container",0),l(3,"isLoadingRequest"),d(4,Ji,2,1,"ng-container",0),l(5,"hasError"),d(6,no,5,4,"ng-container",0),l(7,"isResultRequest"),f(),s(8,"login-task-footer",3)(9,"button",4),k("click",function(){C(e);let i=m(2);return x(i.closeMessage())}),u(10),p(),s(11,"button",5),k("click",function(){C(e);let i=m(2);return x(i.markAsRead())}),u(12),p()()()}if(t&2){let e,n,i=a.$implicit,c=m(2);o(2),r("ngIf",g(3,9,c.postsRequest)),o(2),r("ngIf",g(5,11,c.postsRequest)),o(2),r("ngIf",g(7,13,c.postsRequest)),o(2),r("hideCounter",!0),o(),r("loading",(e=c.isLoading)!==null&&e!==void 0?e:!1),o(),h(i("button.back")),o(),r("permissionRequired",c.readMessagePermission)("loading",(n=c.isLoading)!==null&&n!==void 0?n:!1),o(),T(" ",i("button.readNotification")," ")}}function oo(t,a){t&1&&(_(0),d(1,io,13,15,"neptun-task-container",1),f())}var Gn=(()=>{class t{constructor(){this.readMessagePermission={controllerName:"Message",actionName:"MarkMessagePostsAsReaded"},this.markedAsRead=new Fe,this.messageClosed=new Fe}markAsRead(){this.markedAsRead.next()}closeMessage(){this.messageClosed.next()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=w({type:t,selectors:[["neptun-message-posts"]],inputs:{messageType:"messageType",posts:"posts",postsRequest:"postsRequest",isLoading:"isLoading"},outputs:{markedAsRead:"markedAsRead",messageClosed:"messageClosed"},decls:1,vars:1,consts:[[4,"ngIf"],[4,"transloco"],["body",""],["footer","",1,"login-task__footer",3,"hideCounter"],["neptun-button","","id","close-message-btn","color","white",1,"back-button",3,"click","loading"],["neptun-button","","id","read-message-posts-btn","accent","flat","color","primary",3,"click","permissionRequired","loading"],[3,"isButtonHidden"],["class","post",4,"ngFor","ngForOf","ngForTrackByProperty"],[1,"post"],[1,"post__name"],[1,"post__date"],[1,"post__text"],[3,"htmlText"]],template:function(n,i){n&1&&d(0,oo,2,0,"ng-container",0),n&2&&r("ngIf",i.postsRequest)},dependencies:[N,M,A,qe,nt,Be,tt,kt,F,O,se,Pe,hn,ue,ie,it],styles:['.post[_ngcontent-%COMP%]{margin-top:16px}.post__name[_ngcontent-%COMP%]{padding-bottom:16px;border-bottom:1px solid rgba(34,34,34,.2);margin-bottom:16px}.post__date[_ngcontent-%COMP%]{color:#666;font-size:13px;margin-bottom:8px}.post__text[_ngcontent-%COMP%]{color:#444}.back-button[_ngcontent-%COMP%]{color:#fff}.back-button[_ngcontent-%COMP%]:before{content:"";display:inline-block;padding:2px;transform:rotate(135deg);margin:2px;border-style:solid;border-color:#fff;border-width:0 1px 1px 0;width:2px;height:2px}'],changeDetection:0})}}return t})();function ro(t,a){if(t&1){let e=y();s(0,"neptun-required-messages",3),l(1,"async"),l(2,"async"),l(3,"async"),l(4,"async"),l(5,"async"),k("messageOpened",function(i){C(e);let c=m();return x(c.openMessage(i))})("requiredMessagesRead",function(){C(e);let i=m();return x(i.readRequiredMessages())})("messagesSkipped",function(){C(e);let i=m();return x(i.skipMessages())}),p()}if(t&2){let e=m();r("messages",g(1,5,e.messages$))("messagesRequest",g(2,7,e.messageRequest$))("hasUnreadMessages",g(3,9,e.hasUnreadMessages$))("canSkipMessages",g(4,11,e.canSkipMessages$))("isLoading",g(5,13,e.isLoading$))}}function ao(t,a){if(t&1){let e=y();s(0,"neptun-message-posts",4),l(1,"async"),l(2,"async"),l(3,"async"),l(4,"async"),k("markedAsRead",function(){C(e);let i=m();return x(i.markAsRead())})("messageClosed",function(){C(e);let i=m();return x(i.closeMessage())}),p()}if(t&2){let e=m();r("messageType",g(1,4,e.messageType$))("posts",g(2,6,e.posts$))("postsRequest",g(3,8,e.postsRequest$))("isLoading",g(4,10,e.isLoading$))}}var Hn=(()=>{class t{constructor(e){this.systemMessagesStore=e,this.messageType$=this.systemMessagesStore.messageType$,this.posts$=this.systemMessagesStore.posts$,this.postsRequest$=this.systemMessagesStore.postsRequests$,this.messageRequest$=this.systemMessagesStore.messageRequest$,this.messages$=this.systemMessagesStore.messages$,this.hasUnreadMessages$=this.systemMessagesStore.hasUnreadMessages$,this.canSkipMessages$=this.systemMessagesStore.canSkipMessages$,this.isLoading$=this.systemMessagesStore.isLoading$,this.readMode$=this.systemMessagesStore.readMode$}openMessage(e){this.systemMessagesStore.openMessage(e)}readRequiredMessages(){this.systemMessagesStore.readRequiredMessages()}skipMessages(){this.systemMessagesStore.skipMessages()}markAsRead(){this.systemMessagesStore.markAsRead()}closeMessage(){this.systemMessagesStore.closeMessage()}static{this.\u0275fac=function(n){return new(n||t)(R(Nt))}}static{this.\u0275cmp=w({type:t,selectors:[["neptun-system-messages"]],features:[ee([Me(Nt)])],decls:4,vars:5,consts:[[3,"ngSwitch"],["test-id","messages",3,"messages","messagesRequest","hasUnreadMessages","canSkipMessages","isLoading","messageOpened","requiredMessagesRead","messagesSkipped",4,"ngSwitchCase"],["test-id","posts",3,"messageType","posts","postsRequest","isLoading","markedAsRead","messageClosed",4,"ngSwitchCase"],["test-id","messages",3,"messageOpened","requiredMessagesRead","messagesSkipped","messages","messagesRequest","hasUnreadMessages","canSkipMessages","isLoading"],["test-id","posts",3,"markedAsRead","messageClosed","messageType","posts","postsRequest","isLoading"]],template:function(n,i){n&1&&(_(0,0),l(1,"async"),d(2,ro,6,15,"neptun-required-messages",1)(3,ao,5,12,"neptun-message-posts",2),f()),n&2&&(r("ngSwitch",g(1,3,i.readMode$)),o(2),r("ngSwitchCase","messages"),o(),r("ngSwitchCase","posts"))},dependencies:[Yt,Wt,jn,Gn,$],encapsulation:2,changeDetection:0})}}return t})();function so(t,a){if(t&1&&(s(0,"h3",10),u(1),p()),t&2){let e=a.ngIf,n=m().$implicit;o(),h(n(e))}}function co(t,a){if(t&1&&(s(0,"h3",10),u(1),p()),t&2){let e=m().$implicit;o(),h(e("loginTask.noTraining"))}}function po(t,a){if(t&1&&S(0,"div",11),t&2){let e=a.ngIf,n=m().$implicit;r("innerHTML",n(e),ve)}}function mo(t,a){if(t&1&&S(0,"div",11),t&2){let e=m().$implicit;r("innerHTML",e("loginTask.noTrainingCaption"),ve)}}function lo(t,a){if(t&1){let e=y();_(0),s(1,"neptun-task-container"),_(2,3),s(3,"div",4),S(4,"img",5),l(5,"assetUrl"),d(6,so,2,1,"h3",6),l(7,"async"),d(8,co,2,1,"ng-template",null,0,mt)(10,po,1,1,"div",7),l(11,"async"),d(12,mo,1,1,"ng-template",null,1,mt),p(),f(),s(14,"login-task-footer",8)(15,"button",9),k("click",function(){C(e);let i=m();return x(i.logout())}),u(16),p()()(),f()}if(t&2){let e=a.$implicit,n=pt(9),i=pt(13),c=m();o(4),r("src",g(5,7,"assets/images/training-missing.svg"),Ue),o(2),r("ngIf",g(7,9,c.errorTitle$))("ngIfElse",n),o(4),r("ngIf",g(11,11,c.errorMessage$))("ngIfElse",i),o(4),r("hideCounter",!0),o(2),T(" ",e("login.logout")," ")}}var Qn=(()=>{class t{constructor(e){this.store=e,this.errorTitle$=this.store.select(ke.errorTitle),this.errorMessage$=this.store.select(ke.errorMessage)}
1logout(){this.store.dispatch(new De.Logout(!0,!1))}static{this.\u0275fac=function(n){return new(n||t)(R(I))}}static{this.\u0275cmp=w({type:t,selectors:[["neptun-training-missing"]],decls:1,vars:0,consts:[["defaultErrorTitle",""],["defaultErrorMessage",""],[4,"transloco"],["body",""],[1,"no-training"],[1,"no-training__image",3,"src"],["class","no-training__text",4,"ngIf","ngIfElse"],["class","no-training__caption",3,"innerHTML",4,"ngIf","ngIfElse"],["footer","",1,"login-task__footer",3,"hideCounter"],["neptun-button","","id","training-missing-logout-btn","accent","flat","color","primary",3,"click"],[1,"no-training__text"],[1,"no-training__caption",3,"innerHTML"]],template:function(n,i){n&1&&d(0,lo,17,13,"ng-container",2)},dependencies:[M,A,N,F,O,$,Ge],styles:[".no-training[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}.no-training__image[_ngcontent-%COMP%]{margin-bottom:32px}.no-training__text[_ngcontent-%COMP%]{color:#213055;margin:8px 0}.no-training__caption[_ngcontent-%COMP%]{color:#213055;text-align:center}"],changeDetection:0})}}return t})();var At=(()=>{class t extends kn{constructor(e,n){super(e,n)}processTrainingSelection(e){return this.store.dispatch(new rn.SetCurrentTraining(e)).pipe(H(()=>this.store.dispatch(new D.CompleteLoginTask(Q.SelectTraining))))}static{this.\u0275fac=function(n){return new(n||t)(P(I),P(Ct))}}static{this.\u0275prov=q({token:t,factory:t.\u0275fac})}}return t})();function uo(t,a){if(t&1){let e=y();_(0),s(1,"neptun-training-navigation-button",7),k("clicked",function(i){C(e);let c=m(3);return x(c.selectTraining(i))}),p(),f()}if(t&2){let e=a.$implicit,n=a.index;o(),r("id","training-"+n)("training",e)}}function _o(t,a){if(t&1&&(s(0,"div",9)(1,"span",10),u(2),p()()),t&2){let e=m(3).$implicit;o(2),h(e("global.archiveTrainings"))}}function fo(t,a){if(t&1){let e=y();_(0),s(1,"neptun-training-navigation-button",11),k("clicked",function(i){C(e);let c=m(4);return x(c.selectTraining(i))}),p(),f()}if(t&2){let e=a.$implicit,n=a.index;o(),r("id","archived-"+n)("training",e)}}function ho(t,a){if(t&1&&(_(0),d(1,_o,3,1,"div",8)(2,fo,2,2,"ng-container",6),f()),t&2){let e=a.ngIf;o(),r("ngIf",e.length),o(),r("ngForOf",e)("ngForTrackByProperty","studentTrainingId")}}function Co(t,a){if(t&1&&(s(0,"div",13)(1,"span",10),u(2),p()()),t&2){let e=m(3).$implicit;o(2),h(e("global.coursesWithoutCurrentSemesters"))}}function xo(t,a){if(t&1){let e=y();_(0),s(1,"neptun-training-navigation-button",14),k("clicked",function(i){C(e);let c=m(4);return x(c.selectTraining(i))}),p(),f()}if(t&2){let e=a.$implicit,n=a.index;o(),r("id","no-actual-term-"+n)("training",e)}}function vo(t,a){if(t&1&&(_(0),d(1,Co,3,1,"div",12)(2,xo,2,2,"ng-container",6),f()),t&2){let e=a.ngIf;o(),r("ngIf",e.length),o(),r("ngForOf",e)("ngForTrackByProperty","studentTrainingId")}}function So(t,a){if(t&1&&(s(0,"div",16)(1,"span",10),u(2),p()()),t&2){let e=m(3).$implicit;o(2),h(e("global.closedTrainings"))}}function ko(t,a){if(t&1){let e=y();_(0),s(1,"neptun-training-navigation-button",17),k("clicked",function(i){C(e);let c=m(4);return x(c.selectTraining(i))}),p(),f()}if(t&2){let e=a.$implicit,n=a.index;o(),r("id","closed-"+n)("training",e)}}function To(t,a){if(t&1&&(_(0),d(1,So,3,1,"div",15)(2,ko,2,2,"ng-container",6),f()),t&2){let e=a.ngIf;o(),r("ngIf",e.length),o(),r("ngForOf",e)("ngForTrackByProperty","studentTrainingId")}}function yo(t,a){if(t&1&&(s(0,"div",19)(1,"span",10),u(2),p()()),t&2){let e=m(3).$implicit;o(2),h(e("global.trainingsWithoutTerm"))}}function Ro(t,a){if(t&1&&(_(0),S(1,"neptun-training-navigation-button",20),f()),t&2){let e=a.$implicit,n=a.index;o(),r("id","no-term-training-"+n)("training",e)}}function wo(t,a){if(t&1&&(_(0),d(1,yo,3,1,"div",18)(2,Ro,2,2,"ng-container",6),f()),t&2){let e=a.ngIf;o(),r("ngIf",e.length),o(),r("ngForOf",e)("ngForTrackByProperty","studentTrainingId")}}function Io(t,a){if(t&1&&(_(0),d(1,uo,2,2,"ng-container",6)(2,ho,3,3,"ng-container",4),l(3,"async"),d(4,vo,3,3,"ng-container",4),l(5,"async"),d(6,To,3,3,"ng-container",4),l(7,"async"),d(8,wo,3,3,"ng-container",4),l(9,"async"),f()),t&2){let e=a.ngIf,n=m(2);o(),r("ngForOf",e)("ngForTrackByProperty","studentTrainingId"),o(),r("ngIf",g(3,6,n.archivedTrainings$)),o(2),r("ngIf",g(5,8,n.noActualTermTrainings$)),o(2),r("ngIf",g(7,10,n.closedTrainings$)),o(2),r("ngIf",g(9,12,n.noTermTrainings$))}}function bo(t,a){if(t&1&&(s(0,"neptun-task-container"),_(1,1),s(2,"h2",2),u(3),p(),s(4,"div",3),d(5,Io,10,14,"ng-container",4),l(6,"async"),p(),f(),S(7,"login-task-footer",5),p()),t&2){let e=a.$implicit,n=m();o(3),h(e("loginTask.selectTraining")),o(2),r("ngIf",g(6,2,n.trainings$))}}var zn=(()=>{class t{constructor(e){this.trainingSelectStore=e,this.archivedTrainings$=this.trainingSelectStore.archivedTrainings$,this.closedTrainings$=this.trainingSelectStore.closedTrainings$,this.noActualTermTrainings$=this.trainingSelectStore.noActualTermTrainings$,this.noTermTrainings$=this.trainingSelectStore.noTermTrainings$,this.trainings$=this.trainingSelectStore.trainings$}selectTraining(e){this.trainingSelectStore.setTraining(e)}static{this.\u0275fac=function(n){return new(n||t)(R(At))}}static{this.\u0275cmp=w({type:t,selectors:[["neptun-training-select"]],hostAttrs:[1,"neptun-training-select"],features:[ee([Me(At)])],decls:1,vars:0,consts:[[4,"transloco"],["body",""],[1,"title"],[1,"links"],[4,"ngIf"],["footer","",1,"login-task__footer"],[4,"ngFor","ngForOf","ngForTrackByProperty"],["test-id","regular-training",3,"clicked","id","training"],["class","separator","test-id","archived-separator",4,"ngIf"],["test-id","archived-separator",1,"separator"],[1,"separator__label"],["test-id","archived-training",3,"clicked","id","training"],["class","separator","test-id","no-actual-term-separator",4,"ngIf"],["test-id","no-actual-term-separator",1,"separator"],["test-id","no-actual-term-training",3,"clicked","id","training"],["class","separator","test-id","closed-separator",4,"ngIf"],["test-id","closed-separator",1,"separator"],["test-id","closed-training",3,"clicked","id","training"],["class","separator","test-id","no-term-separator",4,"ngIf"],["test-id","no-term-separator",1,"separator"],["test-id","no-term-training",3,"id","training"]],template:function(n,i){n&1&&d(0,bo,8,4,"neptun-task-container",0)},dependencies:[M,A,N,Be,tt,Sn,F,$],styles:[".links[_ngcontent-%COMP%]{margin-top:16px;display:flex;flex-direction:column;gap:20px}
1.separator[_ngcontent-%COMP%]{color:#666;width:100%;border-bottom:1px solid rgba(34,34,34,.2);line-height:.1em;margin:32px 0}.separator__label[_ngcontent-%COMP%]{background:#fff;padding-right:16px}@media only screen and (max-width:767px){.title[_ngcontent-%COMP%]{font-size:28px;margin-bottom:24px}}"],changeDetection:0})}}return t})();var Po={tokenRegistrationDataRequest:V,finishTokenRegistrationRequest:V},Ft=(()=>{class t extends pe{constructor(e,n){super(Po),this.authenticationService=e,this.store=n,this.tokenRegistrationDataRequest$=this.select(i=>i.tokenRegistrationDataRequest),this.finishTokenRegistrationRequest$=this.select(i=>i.finishTokenRegistrationRequest),this.setTokenRegistrationDataRequest=this.updater((i,c)=>X(K({},i),{tokenRegistrationDataRequest:c})),this.setFinishTokenRegistrationRequest=this.updater((i,c)=>X(K({},i),{finishTokenRegistrationRequest:c})),this.finishTokenRegistration=this.effect(i=>i.pipe(v(()=>{this.setFinishTokenRegistrationRequest(U)}),B(c=>this.authenticationService.completeToken
1Registration(c).pipe(B(b=>(this.setFinishTokenRegistrationRequest($e(b)),this.store.dispatch([new De.SetIsTokenRegistered(!0),new D.CompleteLoginTask(Q.TokenRegistrationRequired)]))),G(b=>(this.setFinishTokenRegistrationRequest(Le({modelStateErrors:b.error.modelStateErrors,errorStatus:b.status})),W)))))),this.getTokenRegistrationData=this.effect(i=>i.pipe(v(()=>{this.setTokenRegistrationDataRequest(U)}),B(()=>this.authenticationService.getTokenRegistrationData().pipe(v(c=>{this.setTokenRegistrationDataRequest($e(c))}),G(c=>(this.setTokenRegistrationDataRequest(Le({errorMessage:c.error,errorStatus:c.status})),W))))))}static{this.\u0275fac=function(n){return new(n||t)(P(rt),P(I))}}static{this.\u0275prov=q({token:t,factory:t.\u0275fac})}}return t})();var Mo=["twoFactorContent"],qo=()=>[3,4];function No(t,a){if(t&1){let e=y();s(0,"neptun-two-factor-authentication-content",9,0),k("formEnter",function(){C(e);let i=m(3);return x(i.save())}),p()}if(t&2){let e=m().ngIf;r("tokenRegistrationData",e.data)}}function Ao(t,a){if(t&1&&(_(0),S(1,"neptun-universal-placeholder",10),f()),t&2){let e=m(3);o(),r("gridSize",ge(4,qo))("skeletons",e.skeletons)("gap","24px")("rowSize","30px")}}function Fo(t,a){if(t&1&&(_(0),d(1,No,2,1,"neptun-two-factor-authentication-content",8),l(2,"isResultRequest"),d(3,Ao,2,5,"ng-container",4),l(4,"isLoadingRequest"),f()),t&2){let e=a.ngIf;o(),r("ngIf",g(2,2,e)),o(2),r("ngIf",g(4,4,e))}}function Do(t,a){if(t&1){let e=y();_(0),s(1,"neptun-task-container"),_(2,2),s(3,"h2"),u(4),p(),s(5,"section",3),d(6,Fo,5,6,"ng-container",4),l(7,"async"),p(),f(),s(8,"login-task-footer",5)(9,"button",6),k("click",function(){C(e);let i=m();return x(i.back())}),S(10,"i"),u(11),p(),s(12,"button",7),l(13,"async"),l(14,"isLoadingRequest"),k("click",function(){C(e);let i=m();return x(i.save())}),u(15),p()()(),f()}if(t&2){let e=a.$implicit,n=m();o(4),h(e("profileSettings.twoFactorAuthentication")),o(2),r("ngIf",g(7,9,n.tokenRegistrationDataRequest$)),o(2),r("taskCountText",e("dialog.step")),o(2),jt(n.Icons.ChevronLeft),o(),T(" ",e("button.back")," "),o(),r("disabled",(n.twoFactorContentComponent==null||n.twoFactorContentComponent.tokenForm==null?null:n.twoFactorContentComponent.tokenForm.invalid)||(n.twoFactorContentComponent==null||n.twoFactorContentComponent.tokenForm==null||n.twoFactorContentComponent.tokenForm.controls==null||n.twoFactorContentComponent.tokenForm.controls.token==null||n.twoFactorContentComponent.tokenForm.controls.token.value==null?null:n.twoFactorContentComponent.tokenForm.controls.token.value.length)!==6)("loading",g(14,13,g(13,11,n.finishTokenRegistrationRequest$))),o(3),T(" ",e("login.setup")," ")}}var Yn=(()=>{class t{constructor(e,n,i){this.store=e,this.router=n,this.twoFactorLoginRegistrationStore=i,this.Icons=oe,this.destroy$=new Re,this.tokenRegistrationDataRequest$=this.twoFactorLoginRegistrationStore.tokenRegistrationDataRequest$,this.finishTokenRegistrationRequest$=this.twoFactorLoginRegistrationStore.finishTokenRegistrationRequest$,this.skeletons=[{type:"rectangle",position:{start:{x:1,y:1},end:{x:2,y:5}}},{type:"rectangle",position:{start:{x:2,y:2},end:{x:5,y:3}}},{type:"rectangle",position:{start:{x:2,y:3},end:{x:5,y:4}}}]}ngOnInit(){this.store.dispatch(new D.SetTaskCounter(te.TWO)),this.twoFactorLoginRegistrationStore.getTokenRegistrationData(),this.finishTokenRegistrationRequest$.pipe(we(this.destroy$),v(e=>{Je(e)&&e.modelStateErrors&&(this.twoFactorContentComponent?.tokenForm.patchValue({password:"",token:""}),this.twoFactorContentComponent?.tokenForm&&ot(this.twoFactorContentComponent.tokenForm,e.modelStateErrors))})).subscribe()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}save(){this.twoFactorContentComponent?.tokenForm.markAllAsTouched(),!this.twoFactorContentComponent?.tokenForm.invalid&&this.twoFactorContentComponent&&this.twoFactorLoginRegistrationStore.finishTokenRegistration(this.twoFactorContentComponent.tokenForm.getRawValue())}back(){this.router.navigate(["login-task","two-factor-authentication-registration-info"])}static{this.\u0275fac=function(n){return new(n||t)(R(I),R(je),R(Ft))}}static{this.\u0275cmp=w({type:t,selectors:[["neptun-two-factor-login-registration"]],viewQuery:function(n,i){if
1(n&1&&Gt(Mo,5),n&2){let c;Ht(c=Qt())&&(i.twoFactorContentComponent=c.first)}},features:[ee([Ft])],decls:1,vars:0,consts:[["twoFactorContent",""],[4,"transloco"],["body",""],[1,"neptun-two-factor-login-registration__content"],[4,"ngIf"],["footer","",3,"taskCountText"],["id","two-factor-registration-back-button","neptun-button","","color","white",1,"two-factor-registration-back-button",3,"click"],["id","two-factor-registration-setup-button","neptun-button","","color","primary","accent","flat",3,"click","disabled","loading"],[3,"tokenRegistrationData","formEnter",4,"ngIf"],[3,"formEnter","tokenRegistrationData"],[3,"gridSize","skeletons","gap","rowSize"]],template:function(n,i){n&1&&d(0,Do,16,15,"ng-container",1)},dependencies:[M,A,N,Mn,Tn,F,O,$,ue,ie],styles:[".neptun-two-factor-login-registration__content[_ngcontent-%COMP%]{margin-top:24px}.two-factor-registration-back-button[_ngcontent-%COMP%]{justify-content:center}"],changeDetection:0})}}return t})();var Lo=[{path:"",component:Nn,children:[{path:ne.TrainingAvailable,component:Qn},{path:ne.GDPR,component:Dn,canActivate:[ae],canDeactivate:[_e]},{path:ne.EVOPConnect,component:Fn,canActivate:[ae],canDeactivate:[_e]},{path:ne.PasswordChange,component:Vn,canActivate:[ae],canDeactivate:[_e]},{path:ne.Nickname,component:Un,canActivate:[ae],canDeactivate:[_e]},{path:ne.TrainingSelect,component:zn,canActivate:[ae],canDeactivate:[_e]},{path:ne.Messages,component:Hn,canActivate:[ae],canDeactivate:[_e]},{path:ne.ProfileImage,component:Bn,canActivate:[ae],canDeactivate:[_e]},{path:ne.TwoFactorAuthenticationRegistrationInfo,component:Rt,canActivate:[ae],canDeactivate:[_e]},{path:ne.TwoFactorAuthenticationRegistration,component:Yn,canActivate:[ae],canDeactivate:[_e]}]}],ml=[{path:"",providers:[on([le]),Tt,It,Pt,yt,Mt,Ct],children:Lo}];export{ml as routes};

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.