1import{a as De,b as oe}from"./chunk-2SDH2OJ4.js";import"./chunk-IHIDYCCT.js";import{b as gn,d as qn}from"./chunk-P6H4EUCF.js";import{a as qt}from"./chunk-GF5CUI6K.js";import{a as ce}from"./chunk-BW2U3LXF.js";import{a as $n}from"./chunk-2EKSW4P2.js";import{a as Bn,b as Vn,c as Ie}from"./chunk-C2EBXPB3.js";import"./chunk-GFK7UREF.js";import{a as ut}from"./chunk-4H53HP2C.js";import{a as Pe}from"./chunk-M7E5MMOE.js";import{b as ye}from"./chunk-AXD322OJ.js";import{b as Tn,c as Rn,e as Mn,f as Fn}from"./chunk-7TMAO3B2.js";import{a as ie}from"./chunk-737SADXK.js";import{a as At,b as $t,c as kn,d as En,e as Ln}from"./chunk-YVHUP7FX.js";import"./chunk-FGOVRAJM.js";import"./chunk-IDXDMLN2.js";import{a as An}from"./chunk-MPXKXNFL.js";import{a as be,b as On}from"./chunk-ATNV2VT2.js";import{a as Nn}from"./chunk-XXU4FZ4Q.js";import"./chunk-XZ77C7GC.js";import{a as Bt,b as Vt}from"./chunk-6NEZQN5R.js";import{$ as X,$a as I,$h as Cn,Ab as a,Aj as yn,Ba as Qe,Bh as z,Bi as In,Bj as Nt,Cj as te,Dh as tt,E as xt,Ec as tn,Eh as et,Fc as A,Fd as Lt,Fe as ht,Fh as wt,Fj as Dn,G as Q,Gd as Tt,Gi as Dt,Gj as Pn,Hb as Ye,Hi as Zt,Ib as Ze,Ih as W,J as Ue,Jb as Je,Jg as yt,Ji as vt,Kb as lt,Kd as Z,Ki as St,Lg as un,Lh as nt,Li as bt,M as Pt,Mb as m,Mg as Rt,Nb as S,Ne as ln,Ob as C,Oh as it,Pd as nn,Pf as mn,Qa as Xe,Qd as on,Ra as Ct,Rf as M,Rh as ot,Sd as fe,Se as Ce,Sf as Xt,Sh as hn,Td as he,Ua as i,Uc as en,Ud as Wt,Vd as xe,Vf as Oe,Vh as ve,Wc as ge,Wd as rn,Wf as Kt,Xf as dn,Y as Ge,Ya as u,Yb as mt,Yg as R,Yh as rt,Zb as T,Zh as at,_ as kt,_b as Ht,_c as _e,_h as xn,a as V,aa as K,b as G,bh as we,bi as wn,ca as P,db as H,de as an,di as vn,dk as Se,ea as ze,eb as l,ec as d,eh as Mt,fc as f,fe as sn,fk as ee,gc as Et,gk as ne,hb as me,he as cn,hh as J,ia as Y,ib as r,ie as F,ih as $,jc as j,jh as Ft,kc as de,kh as se,ki as Sn,kj as Jt,l as ft,la as q,lb as Ke,lh as Ne,ma as He,mh as Yt,mk as It,ni as bn,o as zt,oh as _n,pe as pn,r as qe,rb as s,s as pe,sa as w,sb as c,t as ct,ta as v,tb as _,ua as le,ub as h,v as B,va as We,vb as x,w as je,wc as ue,xb as E,xe as Qt,yc as dt,yi as Ot,zb as k,zc as N,ze as L,zh as fn}from"./chunk-IVN2VXRW.js";function xi(e,p){if(e&1&&(h(0),s(1,"h2",9),m(2),c(),s(3,"div"),m(4),c(),x()),e&2){let t=a().$implicit;i(2),S(t("loginTask.passwordChange")),i(2),S(t("loginTask.changePassword"))}}function Ci(e,p){if(e&1&&(h(0),s(1,"form",10),_(2,"neptun-form-password",11)(3,"neptun-form-password",12),s(4,"p",13),m(5),c()(),x()),e&2){let t=a().$implicit,n=a();i(),r("formGroup",n.formGroup),i(),r("id","new-plain-password")("label",t("resetPassword.newPassword"))("icon",n.keyIcon),i(),r("id","new-plain-password-reference")("label",t("resetPassword.newPasswordConfirm"))("icon",n.keyIcon),i(2),C(" ",t("resetPassword.clickOnSaveButtonNewPasswordWillBeSaved")," ")}}function wi(e,p){if(e&1&&(s(0,"div",14),_(1,"img",15),d(2,"assetUrl"),s(3,"h2",9),m(4),c(),s(5,"div"),m(6),c()()),e&2){let t=a().$implicit;i(),r("src",f(2,3,"assets/images/success-balloons.svg"),Ct),i(3),S(t("loginTask.passwordChangeSuccess")),i(2),S(t("loginTask.loginWithNewPassword"))}}function vi(e,p){if(e&1){let t=E();h(0),s(1,"button",16),m(2),c(),s(3,"button",17),k("click",function(){w(t);let o=a(2);return v(o.save())}),m(4),c(),x()}if(e&2){let t=a().$implicit,n=a();i(2),C(" ",t("button.cancel")," "),i(),r("endPoint",n.url)("disabled",n.formGroup.invalid),i(),S(t("button.save"))}}function Si(e,p){if(e&1&&(s(0,"button",18),m(1),c()),e&2){let t=a().$implicit;i(),C(" ",t("button.close")," ")}}function bi(e,p){if(e&1&&(h(0),s(1,"neptun-basic-dialog-layout",3),h(2,4),l(3,xi,5,2,"ng-container",5),x(),h(4,6),l(5,Ci,6,8,"ng-container",7)(6,wi,7,5,"ng-template",null,0,j),x(),h(8,8),l(9,vi,5,4,"ng-container",7)(10,Si,2,1,"ng-template",null,1,j),x(),c(),x()),e&2){let t=lt(7),n=lt(11),o=a();i(3),r("ngIf",!o.showSuccess),i(2),r("ngIf",!o.showSuccess)("ngIfElse",t),i(4),r("ngIf",!o.showSuccess)("ngIfElse",n)}}var jn=(()=>{class e{constructor(t,n,o,g){this.data=t,this.formBuilder=n,this.loginService=o,this.changeDetectorRef=g,this.destroy$=new ft,this.successSubject=ne
1w ft,this.url=un,this.success$=this.successSubject.asObservable().pipe(kt(!1)),this.showSuccess=!1,this.keyIcon=ht.Key,this.formGroup=this.formBuilder.group({newPlainPassword:new W("",{nonNullable:!0,validators:[z.required]}),newPlainPasswordReference:new W("",{nonNullable:!0,validators:[z.required]})},{validators:[Vn("newPlainPassword","newPlainPasswordReference"),Bn("originalPlainPassword","newPlainPassword","newPasswordSameAsOld")]})}ngOnInit(){this.success$.pipe(K(this.destroy$),P(t=>{this.showSuccess=t,this.changeDetectorRef.detectChanges()})).subscribe()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}save(){this.formGroup.valid&&this.loginService.changeForgottenPassword(V({pwReset:this.data.forgottenPasswordLinkId},this.formGroup.getRawValue())).pipe(Pt(1),Q(t=>(be(t,this.formGroup),this.changeDetectorRef.detectChanges(),ct(()=>t))),P(()=>this.successSubject.next(!0))).subscribe()}static{this.\u0275fac=function(n){return new(n||e)(u(Tt),u(ve),u(qt),u(de))}}static{this.\u0275cmp=I({type:e,selectors:[["neptun-change-password-dialog"]],decls:1,vars:0,consts:[["successContent",""],["successActions",""],[4,"transloco"],["id","change-password-dialog"],["title",""],[4,"ngIf"],["content",""],[4,"ngIf","ngIfElse"],["actions",""],[1,"mat-h2"],[1,"change-password-form",3,"formGroup"],["formControlName","newPlainPassword",3,"id","label","icon"],["formControlName","newPlainPasswordReference",3,"id","label","icon"],[1,"change-password-description"],[1,"success-container"],["alt","",3,"src"],["id","change-password-dialog-cancel-button","neptun-button","","matDialogClose","","color","white"],["id","change-password-dialog-next-button","neptun-button","","color","primary","accent","flat",3,"click","isLoadingButton","endPoint","disabled"],["id","change-password-dialog-ok-button","neptun-button","","color","primary","accent","flat","matDialogClose",""]],template:function(n,o){n&1&&l(0,bi,12,5,"ng-container",2)},dependencies:[L,Nt,N,rt,nt,tt,et,at,it,ot,Ie,R,Z,Pn,Kt],styles:[".success-container[_ngcontent-%COMP%]{display:flex;flex-flow:column;align-items:center}[_nghost-%COMP%] neptun-form-password mat-form-field mat-label{line-height:1.3em}[_nghost-%COMP%] .change-password-form[_ngcontent-%COMP%]{display:flex;justify-content:unset;align-items:unset;flex-direction:column;gap:8px}[_nghost-%COMP%] .change-password-form[_ngcontent-%COMP%] .mat-mdc-form-field .mat-mdc-form-field-subscript-wrapper:not(.mat-mdc-form-field-subscript-dynamic-size){min-height:unset}[_nghost-%COMP%] .change-password-description[_ngcontent-%COMP%]{color:#444;font-size:13px}"],changeDetection:0})}}return e})();var Ii=e=>({"background-path-bottom--other-informations":e}),Un=(()=>{class e{constructor(t,n,o,g,y){this.loginService=t,this.dialogService=n,this.router=o,this.store=g,this.activatedRoute=y,this.isSessionExpired$=this.store.select(M.isSessionExpired),this.isLoginPage=!0,this.loginUrl="/login",this.destroy$=new ft,this.setIsLoginPage()}ngAfterViewInit(){this.checkResetPasswordLink()}setIsLoginPage(){this.isLoginPage=this.router.routerState.snapshot.url===this.loginUrl,this.router.events.pipe(K(this.destroy$)).subscribe(t=>{t instanceof nn&&(this.isLoginPage=t.url===this.loginUrl)})}checkResetPasswordLink(){let t=this.activatedRoute.snapshot.queryParams.pwreset;t&&this.loginService.checkResetPasswordLink(t).pipe(P(n=>{n||this.store.dispatch(new mn.AddNotification(ln("resetPasswordLinkExpirationNotification")))}),xt(Boolean),X(()=>this.dialogService.openDialog(jn,{forgottenPasswordLinkId:t}).afterClosed().pipe(P(()=>this.router.navigate(["login"])))),K(this.destroy$)).subscribe()}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}static{this.\u0275fac=function(n){return new(n||e)(u(qt),u(It),u(Wt),u(F),u(fe))}}static{this.\u0275cmp=I({type:e,selectors:[["app-login"]],decls:7,vars:6,consts:[[1,"login"],[1,"login__header"],["alt","Neptun",3,"src"],["xmlns","http://www.w3.org/2000/svg","width","1046","height","1002","viewBox","0 0 1046 1002","fill","none",1,"background-path-bottom",3,"ngClass"],["d","M996.759 15.7579C1423.38 -80.1413 1794.72 283.555 1858.8 568.622C1922.88 853.688 1468.8 876.925 1042.19 972.824C615.569 1068.72 70.7574 945.669 1.55125 240.754C-29.7424 -44.8307 570.142 111.657 996.759 15.7579Z","fill","#F2F3FB"]],template:function(n,o){n&1&&(s(0,"div",0)(1,"div",1),_(2,"img",2),d(3,"assetUrl"),c(),_(4,"router-outlet"),c(),le(),s(5,"svg",3),_(6,"path",4),c()),n&2&&(i(2),r("src",f(3,2,"assets/images/neptun-logo.svg"),Ct),i(3),r("ngClass",Ht(4,Ii,!o.isLoginPage)))},dependencies:[he,ue,Kt],styles:["[_nghost-%COMP%]{overflow:hidden;width:100%;display:block;position:relative;padding-bottom:80px;flex:1;height:100%}.login[_ngcontent-%COMP%]{max-width:1280px;padding:0 20px;margin:0 auto;position:relative}.login__header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;margin-top:40px}.background-path-bottom[_ngcontent-%COMP%]{display:none}.background-path-bottom--other-informations[_ngcontent-%COMP%]{right:-750px;top:850px}@media screen and (max-width:575px){.login__header[_ngcontent-%COMP%]{margin-top:12px;padding-top:12px}.login__header[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:25px}neptun-language-dropdown[_ngcontent-%COMP%]{height:46px}}@media screen and (max-width:1280px){.background-path-bottom--other-informations[_ngcontent-%COMP%]{display:none}}@media screen and (min-width:768px){.background-path-bottom[_ngcontent-%COMP%]{display:block;right:0;position:absolute;top:1250px;z-index:-10}}"],changeDetection:0})}}return e})();var ae=[{type:"rectangle",position:{start:{x:1,y:1},end:{x:1,y:1}}},{type:"rectangle",position:{start:{x:1,y:2},end:{x:1,y:2}}},{type:"rectangle",position:{start:{x:1,y:3},end:{x:1,y:3}}}];var jt=(()=>{class e extends ee{constructor(t,n){super({interfaceIdentity:ie.LoginDocuments,entities:$,selectedEntities:[],contracts:{firstRow:0,lastRow:5,filterModel:{lcid:""}},columns:$,displayedColumns:$,defaultColumns:[],previousFilters:$,tableFunctionTypes:[],isFilterOpen:!1,keepFilterOpen:!1,isMoreFilterOpen:!1,isNextVisible:!1,isMultiMobileActionSupported:!1,canReduceSortableColumns:!1,isDocumentDownloading:$,isPanelOpened:!1}),this.httpClient=t,this.fileService=n,this.endPoint="Login/GetDocuments",this.defaultPagingNumber=5,this.defaultOuterListPagingNumber=2,this.isDocumentDownloading$=this.select(o=>o.isDocumentDownloading).pipe(B(o=>Zt(o))),this.isPanelOpened$=this.select(o=>o.isPanelOpened),this.updateIsDocumentDownloading=this.updater((o,g)=>G(V({},o),{isDocumentDownloading:g})),this.updateIsPanelOpened=this.updater((o,g)=>G(V({},o),{isPanelOpened:g})),this.downloadDocument=this.effect(o=>o.pipe(P(()=>this.updateIsDocumentDownloading(Ft)),X(g=>this.httpClient.get(`${Ce.settings.apiServer.url}Login/Download`,{params:dn(g),observe:"response",responseType:"blob"}).pipe(P(y=>{this.updateIsDocumentDownloading(_n),this.fileService.downloadFile(y)}),Q(y=>(this.updateIsDocumentDownloading(se),this.fileService.readErrorFromBlob(y)))))))}static{this.\u0275fac=function(n){return new(n||e)(q(ge),q(Nn))}}static{this.\u0275prov=Y({token:e,factory:e.\u0275fac})}}return e})();var Di=()=>[1,3],Pi=()=>({dateStyle:"long",timeStyle:"short"});function ki(e,p){e&1&&_(0,"neptun-request-error-indicator",5)}function Ei(e,p){if(e&1&&(s(0,"div",6),_(1,"neptun-rectangle-placeholder",7)(2,"neptun-universal-placeholder",8),c()),e&2){let t=a(3);i(2),r("gridSize",T(4,Di))("skeletons",t.skeletons)("gap","16px")("rowSize","50px")}}function Li(e,p){if(e&1){let t=E();s(0,"neptun-file-upload-item",12),d(1,"async"),d(2,"translocoDate"),k("downloadFile",function(){let o=w(t).$implicit,g=a(4);return v(g.downloadFile(o))}),c()}if(e&2){let t=p.$implicit,n=p.index,o=a(4);r("loading",f(1,7,o.isDocumentDownloading$)===!0)("fileName",t.fileName)("extension",t.docTypeName)("comment",t.description)("download",!0)("date",Et(2,9,t.startDate,T(12,Pi)))("htmlId",n.toString())}}function Ti(e,p){if(e&1){let t=E();s(0,"button",13),k("click",function(){w(t);
1let o=a(2).ngIf,g=a(2);return v(g.getNextItems(o.data.length))}),m(1),c()}if(e&2){let t=a(3).$implicit;r("accent","stroked"),i(),C(" ",t("button.loadMore")," ")}}function Ri(e,p){if(e&1&&(s(0,"div",9)(1,"h3"),m(2),c(),l(3,Li,3,13,"neptun-file-upload-item",10)(4,Ti,2,2,"button",11),d(5,"async"),c()),e&2){let t=a().ngIf,n=a().$implicit,o=a();i(2),S(n("menu.downloadDocuments")),i(),r("ngForOf",t.data),i(),r("ngIf",f(5,3,o.isNextVisible$)===!0)}}function Mi(e,p){if(e&1&&(h(0),l(1,ki,1,0,"neptun-request-error-indicator",2),d(2,"hasError"),l(3,Ei,3,5,"div",3),d(4,"isLoadingRequest"),l(5,Ri,6,5,"div",4),d(6,"isResultRequest"),x()),e&2){let t=p.ngIf;i(),r("ngIf",f(2,3,t)),i(2),r("ngIf",f(4,5,t)),i(2),r("ngIf",f(6,7,t))}}function Fi(e,p){if(e&1&&(h(0),l(1,Mi,7,9,"ng-container",1),d(2,"async"),x()),e&2){let t=a();i(),r("ngIf",f(2,1,t.entities$))}}var zn=(()=>{class e extends ne{constructor(t,n){super(t),this.loginDocumentsStore=t,this.store=n,this.isDocumentDownloading$=this.loginDocumentsStore.isDocumentDownloading$,this.skeletons=ae}ngOnInit(){let t=this.store.selectSnapshot(M.currentLanguage)?.lcid.toString()??1038 .toString();this.loginDocumentsStore.fetchItemsFromServer({filterModel:{lcid:t},firstRow:0,lastRow:this.loginDocumentsStore.defaultPagingNumber})}downloadFile(t){let n=this.store.selectSnapshot(M.currentLanguage)?.lcid??1038;this.loginDocumentsStore.downloadDocument({documentationId:t.loginDocumentationId,LCID:n})}static{this.\u0275fac=function(n){return new(n||e)(u(jt),u(F))}}static{this.\u0275cmp=I({type:e,selectors:[["neptun-documents"]],features:[mt([jt]),H],decls:1,vars:0,consts:[[4,"transloco"],[4,"ngIf"],["test-id","documents-error",4,"ngIf"],["test-id","documents-loading",4,"ngIf"],["test-id","documents-list",4,"ngIf"],["test-id","documents-error"],["test-id","documents-loading"],[1,"documents__title-skeleton"],[3,"gridSize","skeletons","gap","rowSize"],["test-id","documents-list"],["class","documents__file",3,"loading","fileName","extension","comment","download","date","htmlId","downloadFile",4,"ngFor","ngForTrackByIndex","ngForOf"],["neptun-button","","class","documents__more-button","test-id","documents-list-next-visible-button",3,"accent","click",4,"ngIf"],[1,"documents__file",3,"downloadFile","loading","fileName","extension","comment","download","date","htmlId"],["neptun-button","","test-id","documents-list-next-visible-button",1,"documents__more-button",3,"click","accent"]],template:function(n,o){n&1&&l(0,Fi,3,3,"ng-container",0)},dependencies:[L,N,Bt,vt,ut,dt,Ot,ye,R,A,Mt,St,Vt,bt],styles:["[_nghost-%COMP%]{display:block;max-width:610px}.documents__title-skeleton[_ngcontent-%COMP%]{width:50%;height:32px;margin-bottom:16px}.documents__file[_ngcontent-%COMP%], .documents__more-button[_ngcontent-%COMP%]{margin-top:16px}"],changeDetection:0})}}return e})();var Ut=(()=>{class e extends ee{constructor(){super({interfaceIdentity:ie.LoginLinks,entities:$,selectedEntities:[],contracts:{firstRow:0,lastRow:10,filterModel:{lcid:""}},columns:$,displayedColumns:$,defaultColumns:[],previousFilters:$,tableFunctionTypes:[],isFilterOpen:!1,keepFilterOpen:!1,isMoreFilterOpen:!1,isNextVisible:!1,isMultiMobileActionSupported:!1,canReduceSortableColumns:!1,isPanelOpened:!1}),this.endPoint="Login/GetLinks",this.defaultPagingNumber=10,this.defaultOuterListPagingNumber=4,this.isPanelOpened$=this.select(t=>t.isPanelOpened),this.updateIsPanelOpened=this.updater((t,n)=>G(V({},t),{isPanelOpened:n}))}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Y({token:e,factory:e.\u0275fac})}}return e})();var Gt=(()=>{class e extends ee{constructor(){super({interfaceIdentity:ie.LoginNews,entities:$,selectedEntities:[],contracts:{firstRow:0,lastRow:5,filterModel:{lcid:""}},columns:$,displayedColumns:$,defaultColumns:[],previousFilters:$,tableFunctionTypes:[],isFilterOpen:!1,keepFilterOpen:!1,isMoreFilterOpen:!1,isNextVisible:!1,isMultiMobileActionSupported:!1,canReduceSortableColumns:!1,isPanelOpened:!1}),this.endPoint="Login/GetNews",this.defaultPagingNumber=5,this.defaultOuterListPagingNumber=2,this.isPanelOpened$=this.select(t=>t.isPanelOpened),this.updateIsPanelOpened=this.updater((t,n)=>G(V({},t),{isPanelOpened:n}))}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Y({token:e,factory:e.\u0275fac})}}return e})();var Oi=()=>({dateStyle:"long",timeStyle:"short"});function Ni(e,p){if(e&1&&(h(0),s(1,"neptun-basic-dialog-layout",1),h(2,2),s(3,"h2",3),m(4),c(),s(5,"div",4),m(6),d(7,"translocoDate"),c(),x(),h(8,5),s(9,"div",6),_(10,"neptun-form-kolkov-html",7),c(),x(),h(11,8),s(12,"div",9)(13,"button",10),m(14),c()(),x(),c(),x()),e&2){let t=p.$implicit,n=a();i(),r("isOverflowOverriden",!0),i(3),S(n.data.title),i(2),C(" ",Et(7,5,n.data.startDate,T(8,Oi))," "),i(4),r("htmlText",n.data.longData||n.data.shortData),i(4),C(" ",t("button.close")," ")}}var Ee=(()=>{class e{constructor(t){this.data=t}static{this.\u0275fac=function(n){return new(n||e)(u(Tt))}}static{this.\u0275cmp=I({type:e,selectors:[["neptun-news-dialog"]],decls:1,vars:0,consts:[[4,"transloco"],[3,"isOverflowOverriden"],["title",""],[1,"mat-h2"],[1,"subtitle"],["content",""],[1,"news-content"],[3,"htmlText"],["actions",""],["neptunBasicDialogLayoutActions",""],["neptun-button","","mat-dialog-close","","id","close-button","color","white"]],template:function(n,o){n&1&&l(0,Ni,
115,9,"ng-container",0)},dependencies:[L,Nt,yn,R,Z,Mt,$n],styles:[".subtitle[_ngcontent-%COMP%]{color:#444}.news-content[_ngcontent-%COMP%]{height:100%;overflow:auto}"],changeDetection:0})}}return e})();var Ai=()=>({dateStyle:"long",timeStyle:"short"}),$i=()=>({iconClass:"icon-chevron-right",fontSize:"16px",marginLeft:"0",fontWeight:"800"});function Bi(e,p){if(e&1){let t=E();s(0,"li",3)(1,"div",4)(2,"h4",5),m(3),c(),s(4,"div",6),m(5),d(6,"translocoDate"),c(),_(7,"div",7),c(),s(8,"button",8),k("click",function(){let o=w(t).$implicit,g=a(2);return v(g.emitOpenNewsDialog(o))}),m(9),c()()}if(e&2){let t=p.$implicit,n=a().$implicit;i(3),S(t.title),i(2),C(" ",Et(6,6,t.startDate,T(9,Ai))," "),i(2),r("innerHTML",t.shortData,Xe),i(),r("postfixIcon",T(10,$i))("hasLeftOffset",!0),i(),C(" ",n("button.more")," ")}}function Vi(e,p){if(e&1&&(h(0),s(1,"ul",1),l(2,Bi,10,11,"li",2),c(),x()),e&2){let t=a();i(2),r("ngForOf",t.news)}}var Le=(()=>{class e{constructor(){this.news=[],this.openNewsDialog=new Qe}emitOpenNewsDialog(t){this.openNewsDialog.emit(t)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=I({type:e,selectors:[["neptun-news-list"]],inputs:{news:"news"},outputs:{openNewsDialog:"openNewsDialog"},decls:1,vars:0,consts:[[4,"transloco"],[1,"news"],["class","news__item",4,"ngFor","ngForTrackByIndex","ngForOf"],[1,"news__item"],[1,"news__data"],["test-id","title",1,"news__title"],["test-id","start-
1date",1,"news__date"],["test-id","short-data",1,"news__text",3,"innerHTML"],["neptun-button","","id","emit-open-news-dialog","test-id","emit-open-news-dialog",1,"news__open-button",3,"click","postfixIcon","hasLeftOffset"]],template:function(n,o){n&1&&l(0,Vi,3,1,"ng-container",0)},dependencies:[L,dt,Ot,R,Mt],styles:[".news[_ngcontent-%COMP%]{max-width:610px}.news__item[_ngcontent-%COMP%]{padding:0 16px 24px 0}.news__title[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}.news__date[_ngcontent-%COMP%]{color:#666;font-size:13px;margin-top:8px}.news__text[_ngcontent-%COMP%]{color:#444;margin-top:8px}.news__data[_ngcontent-%COMP%]{overflow:hidden;display:-webkit-box;-webkit-line-clamp:4;line-clamp:4;-webkit-box-orient:vertical}.news__open-button[_ngcontent-%COMP%]{margin-top:12px}"],changeDetection:0})}}return e})();var qi=e=>[e];function ji(e,p){if(e&1&&(s(0,"div",6),m(1),c()),e&2){let t=a().$implicit;i(),C(" ",t.description," ")}}function Ui(e,p){if(e&1&&(s(0,"li",2)(1,"div",3)(2,"a",4),m(3),c(),l(4,ji,2,1,"div",5),c()()),e&2){let t=p.$implicit,n=p.index;i(2),r("href",Ht(4,qi,t.link),Ct),me("id","useful-link-"+n),i(),C(" ",t.linkName," "),i(),r("ngIf",t.description)}}var Te=(()=>{class e{constructor(){this.links=[]}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=I({type:e,selectors:[["neptun-useful-links"]],inputs:{links:"links"},decls:2,vars:1,consts:[["test-id","list",1,"useful-links"],["class","useful-links__item","test-id","list-item",4,"ngFor","ngForTrackByIndex","ngForOf"],["test-id","list-item",1,"useful-links__item"],[1,"useful-links__wrapper"],["focusElement","","target","_blank","test-id","link",1,"useful-links__link",3,"href"],["class","useful-links__description","test-id","link-description",4,"ngIf"],["test-id","link-description",1,"useful-links__description"]],template:function(n,o){n&1&&(s(0,"ul",0),l(1,Ui,5,6,"li",1),c()),n&2&&(i(),r("ngForOf",o.links))},dependencies:[dt,Ot,we,N],styles:[".useful-links[_ngcontent-%COMP%]{max-width:610px}.useful-links__link[_ngcontent-%COMP%]{text-wrap:auto}.useful-links__item[_ngcontent-%COMP%]{white-space:nowrap}.useful-links__wrapper[_ngcontent-%COMP%]{display:inline-block;border-radius:4px;padding:4px 0;width:100%}.useful-links__wrapper[_ngcontent-%COMP%]:hover{margin-left:-12px;padding-left:12px;border-radius:8px;background-color:#f2f3fb}.useful-links__description[_ngcontent-%COMP%]{font-size:13px;color:#666;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}"],changeDetection:0})}}return e})();var zi=()=>["info","news"],Hi=()=>["info","downloads"],Wi=()=>({dateStyle:"long",timeStyle:"short"}),Qi=()=>["info","links"],Xi=()=>[1,3];function Ki(e,p){e&1&&_(0,"i",8)}function Yi(e,p){e&1&&_(0,"neptun-request-error-indicator",11)}function Zi(e,p){if(e&1&&_(0,"div",12),e&2){a(4);let t=lt(10);r("ngTemplateOutlet",t)}}function Ji(e,p){if(e&1){let t=E();h(0),s(1,"div",13)(2,"neptun-news-list",14),k("openNewsDialog",function(o){w(t);let g=a(5);return v(g.openNewsDialog(o))}),c()(),s(3,"div",15)(4,"button",16),m(5),c()(),x()}if(e&2){let t=a(2).ngIf,n=a(2).$implicit;i(2),r("news",t.data),i(2),r("routerLink",T(3,zi)),i(),C(" ",n("button.moreNews")," ")}}function to(e,p){if(e&1&&(h(0),l(1,Yi,1,0,"neptun-request-error-indicator",9),d(2,"hasError"),l(3,Zi,1,1,"div",10),d(4,"isLoadingRequest"),l(5,Ji,6,4,"ng-container",3),d(6,"isResultRequest"),x()),e&2){let t=a().ngIf;i(),r("ngIf",f(2,3,t)),i(2),r("ngIf",f(4,5,t)),i(2),r("ngIf",f(6,7,t))}}function eo(e,p){if(e&1&&(h(0),l(1,to,7,9,"ng-container",3),x()),e&2){let t=a().ngIf;i(),r("ngIf",t.value)}}function no(e,p){if(e&1){let t=E();s(0,"mat-accordion")(1,"mat-expansion-panel",4),k("afterExpand",function(){w(t);let o=a(2);return v(o.getNews())})("closed",function(){w(t);let o=a(2);return v(o.closeNewsPanel())}),s(2,"mat-expansion-panel-header",5)(3,"mat-panel-title")(4,"h3",6),m(5),c()(),l(6,Ki,1,0,"i",7),c(),l(7,eo,2,1,"ng-container",3),d(8,"async"),c()()}if(e&2){let t=p.ngIf,n=a().$implicit,o=lt(8),g=a();i(),r("expanded",t.value),i(),r("collapsedHeight","68px")("expandedHeight","68px"),i(3),S(n("menu.news")),i(),r("ngIf",t.value)("ngIfElse",o),i(),r("ngIf",f(8,7,g.news$))}}function io(e,p){e&1&&_(0,"i",8)}function oo(e,p){e&1&&_(0,"neptun-request-error-indicator",19)}function ro(e,p){if(e&1&&_(0,"div",20),e&2){a(4);let t=lt(10);r("ngTemplateOutlet",t)}}function ao(e,p){if(e&1){let t=E();s(0,"neptun-file-upload-item",24),d(1,"async"),d(2,"translocoDate"),k("downloadFile",function(){let o=w(t).$implicit,g=a(6);return v(g.downloadFile(o))}),c()}if(e&2){let t=p.$implicit,n=p.index,o=a(6);r("loading",f(1,7,o.isDocumentDownloading$)===!0)("fileName",t.fileName)("extension",t.docTypeName)("comment",t.description)("download",!0)("date",Et(2,9,t.startDate,T(12,Wi)))("htmlId",n.toString())}}function so(e,p){if(e&1&&(h(0),s(1,"div",21),l(2,ao,3,13,"neptun-file-upload-item",22),c(),s(3,"div",15)(4,"button",23),m(5),c()(),x()),e&2){let t=a(2).ngIf,n=a(2).$implicit;i(2),r("ngForOf",t.data),i(2),r("routerLink",T(3,Hi)),i(),C(" ",n("button.moreFiles")," ")}}function co(e,p){if(e&1&&(h(0),l(1,oo,1,0,"neptun-request-error-indicator",17),d(2,"hasError"),l(3,ro,1,1,"div",18),d(4,"isLoadingRequest"),l(5,so,6,4,"ng-container",3),d(6,"isResultRequest"),x()),e&2){let t=a().ngIf;i(),r("ngIf",f(2,3,t)),i(2),r("ngIf",f(4,5,t)),i(2),r("ngIf",f(6,7,t))}}function po(e,p){if(e&1&&(h(0),l(1,co,7,9,"ng-container",3),x()),e&2){let t=a().ngIf;i(),r("ngIf",t.value)}}function lo(e,p){if(e&1){let t=E();s(0,"mat-accordion")(1,"mat-expansion-panel",4),k("afterExpand",function(){w(t);let o=a(2);return v(o.getDocuments())})("closed",function(){w(t);let o=a(2);return v(o.closeDocumentsPanel())}),s(2,"mat-expansion-panel-header",5)(3,"mat-panel-title")(4,"h4"),m(5),c()(),l(6,io,1,0,"i",7),c(),l(7,po,2,1,"ng-container",3),d(8,"async"),c()()}if(e&2){let t=p.ngIf,n=a().$implicit,o=lt(8),g=a();i(),r("expanded",t.value),i(),r("collapsedHeight","68px")("expandedHeight","68px"),i(3),S(n("menu.downloadDocuments")),i(),r("ngIf",t.value)("ngIfElse",o),i(),r("ngIf",f(8,7,g.documents$))}}function mo(e,p){e&1&&_(0,"i",8)}function uo(e,p){e&1&&_(0,"neptun-request-error-indicator",27)}function go(e,p){if(e&1&&_(0,"div",28),e&2){a(4);let t=lt(10);r("ngTemplateOutlet",t)}}function _o(e,p){if(e&1&&(h(0),s(1,"div",29),_(2,"neptun-useful-links",30),c(),s(3,"div",15)(4,"button",31),m(5),c()(),x()),e&2){let t=a(2).ngIf,n=a(2).$implicit;i(2),r("links",t.data),i(2),r("routerLink",T(3,Qi)),i(),C(" ",n("button.moreLinks")," ")}}function fo(e,p){if(e&1&&(h(0),l(1,uo,1,0,"neptun-request-error-indicator",25),d(2,"hasError"),l(3,go,1,1,"div",26),d(4,"isLoadingRequest"),l(5,_o,6,4,"ng-container",3),d(6,"isResultRequest"),x()),e&2){let t=a().ngIf;i(),r("ngIf",f(2,3,t)),i(2),r("ngIf",f(4,5,t)),i(2),r("ngIf",f(6,7,t))}}function ho(e,p){if(e&1&&(h(0),l(1,fo,7,9,"ng-container",3),x()),e&2){let t=a().ngIf;i(),r("ngIf",t.value)}}function xo(e,p){if(e&1){let t=E();s(0,"mat-accordion")(1,"mat-expansion-panel",4),k("afterExpand",function(){w(t);let o=a(2);return v(o.getLinks())})("closed",function(){w(t);let o=a(2);return v(o.closeLinksPanel())}),s(2,"mat-expansion-panel-header",5)(3,"mat-panel-title")(4,"h4"),m(5),c()(),l(6,mo,
11,0,"i",7),c(),l(7,ho,2,1,"ng-container",3),d(8,"async"),c()()}if(e&2){let t=p.ngIf,n=a().$implicit,o=lt(8),g=a();i(),r("expanded",t.value),i(),r("collapsedHeight","68px")("expandedHeight","68px"),i(3),S(n("menu.usefulLinks")),i(),r("ngIf",t.value)("ngIfElse",o),i(),r("ngIf",f(8,7,g.links$))}}function Co(e,p){e&1&&_(0,"i",32)}function wo(e,p){if(e&1&&(s(0,"div",33),_(1,"neptun-universal-placeholder",34),c()),e&2){let t=a(2);i(),r("gridSize",T(4,Xi))("skeletons",t.skeletons)("gap","12px")("rowSize","50px")}}function vo(e,p){if(e&1&&(h(0),l(1,no,9,9,"mat-accordion",3),d(2,"async"),l(3,lo,9,9,"mat-accordion",3),d(4,"async"),l(5,xo,9,9,"mat-accordion",3),d(6,"async"),l(7,Co,1,0,"ng-template",null,0,j)(9,wo,2,5,"ng-template",null,1,j),x()),e&2){let t=a();i(),r("ngIf",f(2,3,t.isNewsPanelOpened$)),i(2),r("ngIf",f(4,5,t.isDocumentsPanelOpened$)),i(2),r("ngIf",f(6,7,t.isLinksPanelOpened$))}}var Xn=(()=>{class e{constructor(t,n,o,g,y,b){this.store=t,this.loginNewsStore=n,this.loginDocumentsStore=o,this.loginLinksStore=g,this.sanitizer=y,this.dialogService=b,this.news$=this.loginNewsStore.entities$.pipe(B(D=>J(D)?Yt(D.data,D.isPagingLoading??!1):D)),this.isNewsPanelOpened$=this.loginNewsStore.isPanelOpened$.pipe(B(D=>({value:D}))),this.documents$=this.loginDocumentsStore.entities$,this.isDocumentDownloading$=this.loginDocumentsStore.isDocumentDownloading$,this.isDocumentsPanelOpened$=this.loginDocumentsStore.isPanelOpened$.pipe(B(D=>({value:D}))),this.links$=this.loginLinksStore.entities$,this.isLinksPanelOpened$=this.loginLinksStore.isPanelOpened$.pipe(B(D=>({value:D}))),this.skeletons=ae}getNews(){this.loginNewsStore.updateIsPanelOpened(!0);let t=this.store.selectSnapshot(M.currentLanguage)?.lcid.toString()??1038 .toString();this.loginNewsStore.fetchItemsFromServer({filterModel:{lcid:t},firstRow:0,lastRow:this.loginNewsStore.defaultOuterListPagingNumber})}getDocuments(){this.loginDocumentsStore.updateIsPanelOpened(!0);let t=this.store.selectSnapshot(M.currentLanguage)?.lcid.toString()??1038 .toString();this.loginDocumentsStore.fetchItemsFromServer({filterModel:{lcid:t},firstRow:0,lastRow:this.loginDocumentsStore.defaultOuterListPagingNumber})}getLinks(){this.loginLinksStore.updateIsPanelOpened(!0);let t=this.store.selectSnapshot(M.currentLanguage)?.lcid.toString()??1038 .toString();this.loginLinksStore.fetchItemsFromServer({filterModel:{lcid:t},firstRow:0,lastRow:this.loginLinksStore.defaultOuterListPagingNumber})}downloadFile(t){let n=this.store.selectSnapshot(M.currentLanguage)?.lcid??1038;this.loginDocumentsStore.downloadDocument({documentationId:t.loginDocumentationId,LCID:n})}openNewsDialog(t){this.dialogService.openDialog(Ee,t)}closeNewsPanel(){this.loginNewsStore.updateIsPanelOpened(!1)}closeDocumentsPanel(){this.loginDocumentsStore.updateIsPanelOpened(!1)}closeLinksPanel(){this.loginLinksStore.updateIsPanelOpened(!1)}static{this.\u0275fac=function(n){return new(n||e)(u(F),u(Gt),u(jt),u(Ut),u(_e),u(It))}}static{this.\u0275cmp=I({type:e,selectors:[["neptun-accordions"]],features:[mt([Gt,jt,Ut])],decls:1,vars:0,consts:[["panelClosedIcon",""],["loading",""],[4,"transloco"],[4,"ngIf"],["hideToggle","",3,"afterExpand","closed","expanded"],[3,"collapsedHeight","expandedHeight"],[1,"news-title"],["class","icon-chevron-top",4,"ngIf","ngIfElse"],[1,"icon-chevron-top"],["test-id","news-error",4,"ngIf"],["test-id","news-loading",3,"ngTemplateOutlet",4,"ngIf"],["test-id","news-error"],["test-id","news-loading",3,"ngTemplateOutlet"],["test-id","news-list",1,"list-wrapper"],[3,"openNewsDialog","news"],[1,"more-button"],["neptun-button","","id","more-news-link","test-id","news-more-button","accent","stroked",3,"routerLink"],["test-id","documents-error",4,"ngIf"],["test-id","documents-loading",3,"ngTemplateOutlet",4,"ngIf"],["test-id","documents-error"],["test-id","documents-loading",3,"ngTemplateOutlet"],["test-id","documents-list",1,"list-wrapper"],[3,"loading","fileName","extension","comment","download","date","htmlId","downloadFile",4,"ngFor","ngForTrackByIndex","ngForOf"],["neptun-button","","id","more-files-link","test-id","documents-more-button","accent","stroked",3,"routerLink"],[3,"downloadFile","loading","fileName","extension","comment","download","date","htmlId"],["test-id","links-error",4,"ngIf"],["test-id","links-loading",3,"ngTemplateOutlet",4,"ngIf"],["test-id","links-error"],["test-id","links-loading",3,"ngTemplateOutlet"],["test-id","links-list",1,"list-wrapper"],[3,"links"],["neptun-button","","id","more-links-link","test-id","links-more-button","accent","stroked",3,"routerLink"],[1,"icon-chevron-bottom"],[1,"neptun-wrapper","accordions__placeholder"],[3,"gridSize","skeletons","gap","rowSize"]],template:function(n,o){n&1&&l(0,vo,11,9,"ng-container",2)},dependencies:[L,N,Fn,Tn,Rn,Mn,Bt,tn,Le,R,xe,dt,Ot,ye,Te,ut,A,Mt,St,Vt,bt],styles:[".mat-accordion[_ngcontent-%COMP%]{display:block;margin-bottom:24px}.news-title[_ngcontent-%COMP%]{font-size:28px}.more-button[_ngcontent-%COMP%]{margin:16px}.list-wrapper[_ngcontent-%COMP%]{padding:0 16px;display:flex;flex-direction:column;gap:16px}.accordions__placeholder[_ngcontent-%COMP%]{margin-bottom:16px}"],changeDetection:0})}}return e})();var So=e=>({"institute-image--not-default":e});function bo(e,p){if(e&1&&(s(0,"div",2),_(1,"img",3),c()),e&2){let t=p.ngIf,n=a().$implicit,o=a();r("ngClass",Ht(3,So,t!==o.defaultInstituteImage)),i(),r("src",t,Ct),me("alt",n("login.caption"))}}function Io(e,p){if(e&1&&(h(0),l(1,bo,2,5,"div",1),d(2,"async"),x()),e&2){let t=a();i(),r("ngIf",f(2,1,t.instituteImage$))}}var Kn=(()=>{class e{constructor(t){this.store=t,this.defaultInstituteImage="assets/images/institute.jpg",this.instituteImage$=this.store.select(qn.instituteImage).pipe(B(n=>J(n)?n.data??this.defaultInstituteImage:this.defaultInstituteImage))}static{this.\u0275fac=function(n){return new(n||e)(u(F))}}static{this.\u0275cmp=I({type:e,selectors:[["neptun-institute-img-wrapper"]],decls:1,vars:0,consts:[[4,"transloco"],["class","institute-image",3,"ngClass",4,"ngIf"],[1,"institute-image",3,"ngClass"],[3,"src"]],template:function(n,o){n&1&&l(0,Io,3,3,"ng-container",0)},dependencies:[L,N,ue,A],styles:["[_nghost-%COMP%]{position:absolute;overflow:hidden;z-index:100;
1top:-18px;left:200px;max-width:1140px}.institute-image[_ngcontent-%COMP%]{background-position:-40px;background-size:contain;background-repeat:no-repeat;clip-path:polygon(38.709% -245.043%,38.709% -245.043%,40.363% -253.556%,42.855% -261.064%,46.064% -267.477%,49.866% -272.704%,54.139% -276.655%,58.76% -279.24%,63.607% -280.369%,68.556% -279.952%,73.486% -277.898%,78.273% -274.118%,118.47% -233.931%,118.47% -233.931%,120.791% -231.325%,122.918% -228.357%,124.838% -225.059%,126.543% -221.462%,128.019% -217.6%,129.258% -213.503%,130.247% -209.203%,130.976% -204.733%,131.435% -200.124%,131.611% -195.408%,133.406% 72.796%,133.406% 72.796%,133.198% 77.481%,132.54% 81.897%,131.473% 85.982%,130.039% 89.668%,128.278% 92.893%,126.233% 95.59%,123.945% 97.696%,121.456% 99.145%,118.807% 99.874%,116.041% 99.816%,17.861% 83.334%,17.861% 83.334%,14.432% 82.241%,11.268% 80.22%,8.41% 77.37%,5.9% 73.79%,3.781% 69.581%,2.095% 64.84%,.884% 59.668%,.191% 54.165%,.057% 48.429%,.526% 42.56%,38.709% -245.043%);width:100%;max-width:1140px}.institute-image--not-default[_ngcontent-%COMP%]{background-position:0 0;background-size:cover}.institute-image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:auto;min-height:235px;max-height:850px;object-fit:cover}@media screen and (min-width:375px){[_nghost-%COMP%]{top:-12px;left:190px}}@media screen and (min-width:575px){[_nghost-%COMP%]{top:-40px;left:263px}.institute-image[_ngcontent-%COMP%]{background-position:0px -45px;background-size:cover}}@media screen and (min-width:768px){[_nghost-%COMP%]{top:-104px;left:34%}.institute-image[_ngcontent-%COMP%]{background-position:0 0;clip-path:polygon(31.596% -118.197%,31.596% -118.197%,32.368% -121.364%,33.533% -124.157%,35.032% -126.543%,36.808% -128.488%,38.805% -129.957%,40.964% -130.919%,43.228% -131.339%,45.541% -131.184%,47.844% -130.42%,50.08% -129.014%,92.421% -95.308%,92.421% -95.308%,93.506% -94.338%,94.499% -93.234%,95.396% -92.007%,96.193% -90.669%,96.883% -89.232%,97.461% -87.708%,97.924% -86.108%,98.264% -84.445%,98.478% -82.73%,98.56% -80.976%,99.937% 82.852%,99.937% 82.852%,99.774% 85.793%,99.255% 88.566%,98.414% 91.13%,97.283% 93.445%,95.894% 95.469%,94.282% 97.163%,92.478% 98.485%,90.516% 99.395%,88.428% 99.852%,86.246% 99.816%,11.265% 89.793%,11.265% 89.793%,9.103% 89.244%,7.107% 88.229%,5.304% 86.797%,3.721% 84.999%,2.385% 82.885%,1.321% 80.504%,.558% 77.907%,.12% 75.143%,.036% 72.262%,.332% 69.314%,31.596% -118.197%);width:100%}}@media screen and (min-width:993px){.institute-image[_ngcontent-%COMP%]{background-position:0 45px;background-size:contain}}@media screen and (min-width:1440px){[_nghost-%COMP%]{width:100%}}"]})}}return e})();var Yn=e=>!!(Dt(e)&&e.errorMessage!==void 0);var Zn={captchaImageRequest:$,captchaAudioRequest:$,audio:new Audio,loginRequest:$},Re=(()=>{class e extends Se{constructor(t,n,o,g){super(Zn),this.loginService=t,this.captchaService=n,this.store=o,this.accountApiService=g,this.latestCaptchaImageUsedForAudio=void 0,this.currentLanguage$=this.store.select(M.currentLanguage).pipe(xt(Boolean)),this.captchaImageRequest$=this.select(y=>y.captchaImageRequest),this.captchaAudioRequest$=this.select(y=>y.captchaAudioRequest),this.loginRequest$=this.select(y=>y.loginRequest),this.setCaptchaImage=this.updater((y,b)=>G(V({},y),{captchaImageRequest:b})),this.setCaptchaAudio=this.updater((y,b)=>G(V({},y),{captchaAudioRequest:b})),this.setAudio=this.updater((y,b)=>G(V({},y),{audio:b})),this.setLoginRequest=this.updater((y,b)=>G(V({},y),{loginRequest:b})),this.setInitialState=this.updater(()=>Zn),this.getCaptchaImage=this.effect(y=>y.pipe(P(()=>{this.setCaptchaImage(Ft)}),X(()=>this.loginService.getCaptchaImage("captcha/image")),P(b=>{this.setCaptchaImage({data:b})}),Q(b=>(this.setCaptchaImage(se),ct(()=>b))))),this.login=this.effect(y=>y.pipe(P(()=>this.setLoginRequest(Ft)),X(b=>this.accountApiService.login(b).pipe(P(D=>this.setLoginRequest(Yt(G(V({},D),{captcha:b.captcha,captchaIdentifier:b.captchaIdentifier})))),Q(D=>(An(D.error)?(this.setLoginRequest(Ne({errorStatus:D.status,modelStateErrors:D.error.modelStateErrors})),this.refreshCaptcha()):this.setLoginRequest(Ne({errorMessage:D.error,errorStatus:D.status})),zt))))))}readCaptchaAudio(){return this.captchaImageRequest$.pipe(Pt(1),ze(this.captchaAudioRequest$,this.currentLanguage$),xt(([t,n,o])=>J(t)&&!Zt(n)),X(([t,n,o])=>{let g=t;return!J(n)||this.latestCaptchaImageUsedForAudio!==g.data?(this.setCaptchaAudio(Ft),this.accountApiService.getCaptchaAudio(g.data.identifier,o.lcid)):(this.latestCaptchaImageUsedForAudio=g.data,pe(n.data))}),P(t=>{this.pauseAudio();let n=new Audio;this.setAudio(n),this.setCaptchaAudio({data:t}),this.captchaService.readCaptcha(t,n)}),Q(t=>(this.setCaptchaAudio(se),ct(()=>t))))}pauseAudio(){this.get(t=>t.audio).pause()}refreshCaptcha(){this.captchaService.refreshCaptcha(this.get(t=>t.audio))}static{this.\u0275fac=function(n){return new(n||e)(q(qt),q(oe),q(F),q(Rt))}}static{this.\u0275prov=Y({token:e,factory:e.\u0275fac})}}return e})();var Do=()=>[5,4];function Po(e,p){if(e&1){let t=E();s(0,"form",3),k("ngSubmit",function(){w(t);let o=a().ngIf,g=a(2);return v(g.login(o.data.identifier))})("keyup.enter",function(){w(t);let o=a().ngIf,g=a(2);return v(g.login(o.data.identifier))}),s(1,"neptun-basic-dialog-layout"),h(2,4),s(3,"h2",5),m(4),c(),x(),h(5,6),s(6,"neptun-form-captcha",7),k("readCaptcha",function(){w(t);let o=a(3);return v(o.readCaptcha())})("refreshCaptcha",function(){w(t);let o=a(3);return v(o.refreshCaptcha())}),c(),x(),h(7,8),s(8,"div",9)(9,"button",10),m(10),c(),s(11,"button",11),d(12,"async"),m(13),c()(),x(),c()()}if(e&2){let t=a().ngIf,n=a().$implicit,o=a();r("formGroup",o.form),i(4),S(n("login.enterCaptcha")),i(2),r("image",t.data.content)("isRequired",!0)("hasAutoFocus",!0),i(4),C(" ",n("button.close")," "),i(),r("loading",f(12,9,o.isLoading$)===!0)("disabled",o.captchaValue.length<6),i(2),C(" ",n("login.loginButtonText")," ")}}function ko(e,p){if(e&1&&(h(0),s(1,"div",12),_(2,"neptun-rectangle-placeholder"),s(3,"div",13),_(4,"neptun-button-placeholder",14)(5,"neptun-button-placeholder",14),c()(),_(6,"neptun-universal-placeholder",15),x()),e&2){let t=a(3);i(6),r("gridSize",T(4,Do))("skeletons",t.captchaService.skeletons)("gap","8px")("rowSize","20px")}}function Eo(e,p){if(e&1&&(h(0),l(1,Po,14,11,"form",2),d(2,"isResultRequest"),l(3,ko,7,5,"ng-container",1),d(4,"isLoadingRequest"),x()),e&2){let t=p.ngIf;i(),r("ngIf",f(2,2,t)),i(2),r("ngIf",f(4,4,t))}}function Lo(e,p){if(e&1&&(h(0),l(1,Eo,5,6,"ng-container",1),d(2,"async"),x()),e&2){let t=a();i(),r("ngIf",f(2,1,t.captchaImageRequest$))}}var ti=(()=>{class e{constructor(t,n,o,g,y){this.data=t,this.dialogRef=n,this.captchaService=o,this.captchaDialogContentStore=g,this.store=y,this.form=new wt({captcha:new W("",{validators:[z.required,z.maxLength(yt.SIX)],nonNullable:!0})}),this.destroy$=new ft,this.captchaImageRequest$=this.captchaDialogContentStore.captchaImageRequest$.pipe(P(b=>{Dt(b)&&(this.store.dispatch(new Oe.AddErrorPushNotification({title:"error.errorDuringDataLoading"})),this.dialogRef.close())})),this.captchaAudioRequest$=this.captchaDialogContentStore.captchaAudioRequest$.pipe(P(b=>{Dt(b)&&this.store.dispatch(new Oe.AddErrorPushNotification({title:"error.errorDuringDataLoading"}))})),this.loginRequest$=this.captchaDialogContentStore.loginRequest$.pipe(P(b=>{J(b)?this.dialogRef.close(b):Dt(b)&&b.modelStateErrors?(this.form.reset(),On(this.form,b.modelStateErrors)):Dt(b)&&b.errorMessage&&this.dialogRef.close(b)}),Q(b=>(this.dialogRef.close(b),ct(()=>b)))),this.isLoading$=this.captchaDialogContentStore.loginRequest$.pipe(B(b=>Zt(b)))}ngOnInit(){this.captchaDialogContentStore.getCaptchaImage(),this.captchaDialogContentStore.captchaAudioRequest$.pipe(K(this.destroy$)).subscribe(),this.loginRequest$.pipe(K(this.destroy$)).subscribe()}ngOnDestroy(){this.captchaDialogContentStore.pauseAudio(),this.destroy$.next(),this.destroy$.complete()}get captchaValue(){return this.form.controls.captcha.value}refreshCaptcha(){this.captchaDialogContentStore.refreshCaptcha()}login(t){this.captchaDialogContentStore.captchaImageRequest$.pipe(Pt(1),xt(n=>J(n)),P(()=>{this.form.markAllAsTouched(),this.form.valid&&this.captchaDialogContentStore.login({userName:this.data.userName,password:this.data.password,captcha:this.captchaValue,captchaIdentifier:t,token:"",subt
1ituteGUID:""})})).subscribe()}readCaptcha(){this.captchaDialogContentStore.readCaptchaAudio().subscribe()}static{this.\u0275fac=function(n){return new(n||e)(u(Tt),u(Lt),u(oe),u(Re),u(F))}}static{this.\u0275cmp=I({type:e,selectors:[["neptun-captcha-dialog-content"]],features:[mt([Re])],decls:1,vars:0,consts:[[4,"transloco"],[4,"ngIf"],[3,"formGroup","ngSubmit","keyup.enter",4,"ngIf"],[3,"ngSubmit","keyup.enter","formGroup"],["title",""],[1,"mat-h2","title"],["content",""],["formControlName","captcha","id","captcha","test-id","captcha-input","label","Captcha",3,"readCaptcha","refreshCaptcha","image","isRequired","hasAutoFocus"],["actions",""],[1,"captcha-dialog-content__actions"],["id","d1a9b0cc-8443-44db-bf0e-60d5a6c7e59f","test-id","close-button","matDialogClose","","neptun-button","","color","white"],["id","99c0db76-f5c3-4e4d-815f-38a5347e13ab","test-id","login-button","neptun-button","","accent","flat","type","submit",1,"captcha-dialog-content__login-button",3,"loading","disabled"],["test-id","loading-placeholder",1,"captcha-placeholder__image"],[1,"captcha-placeholder__buttons"],[1,"captcha-placeholder__button"],[3,"gridSize","skeletons","gap","rowSize"]],template:function(n,o){n&1&&l(0,Lo,3,3,"ng-container",0)},dependencies:[L,N,rt,nt,tt,et,at,it,ot,Nt,De,R,Z,vt,Pe,ut,A,St,bt],styles:[".captcha-placeholder__image[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;flex-direction:column;gap:unset;margin:64px 0 40px}.captcha-placeholder__image[_ngcontent-%COMP%] neptun-rectangle-placeholder[_ngcontent-%COMP%]{width:136px;height:51px;display:block}.captcha-placeholder__buttons[_ngcontent-%COMP%]{display:flex;justify-content:unset;align-items:unset;flex-direction:row;gap:8px;margin-top:12px}.captcha-placeholder__button[_ngcontent-%COMP%] .button-placeholder{width:48px;height:44px}.captcha-dialog-content__login-button[_ngcontent-%COMP%]{width:100%}.captcha-dialog-content__actions[_ngcontent-%COMP%]{display:flex;justify-content:unset;align-items:center;flex-direction:column-reverse;gap:24px;padding:12px 0;width:100%}@media only screen and (min-width:575px){.captcha-placeholder__image[_ngcontent-%COMP%]{flex-direction:row}.captcha-placeholder__image[_ngcontent-%COMP%] neptun-rectangle-placeholder[_ngcontent-%COMP%]{margin:0 32px 0 0}.captcha-placeholder__buttons[_ngcontent-%COMP%]{margin-top:0}.captcha-dialog-content__login-button[_ngcontent-%COMP%]{width:auto}.captcha-dialog-content__actions[_ngcontent-%COMP%]{flex-direction:row;padding:0;width:auto}}"],changeDetection:0})}}return e})();var ei=(()=>{class e{constructor(t){this.http=t}resetPassword(t){return this.http.post(`${Ce.settings.apiServer.url}Account/ResetPassword`,t)}static{this.\u0275fac=function(n){return new(n||e)(q(ge))}}static{this.\u0275prov=Y({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Ro=()=>[5,4];function Mo(e,p){if(e&1){let t=E();s(0,"neptun-form-captcha",8),k("refreshCaptcha",function(){w(t);let o=a(5);return v(o.captchaService.refreshCaptcha(o.audioElement))})("readCaptcha",function(){let o=w(t).ngIf,g=a(5);return v(g.captchaService.readCaptcha(o,g.audioElement))}),c()}if(e&2){let t=a().ngIf;r("image",t.content)("isRequired",!0)}}function Fo(e,p){if(e&1&&(h(0),l(1,Mo,1,2,"neptun-form-captcha",7),d(2,"async"),x()),e&2){let t=a(4),n=lt(2);i(),r("ngIf",f(2,2,t.captchaAudio$))("ngIfElse",n)}}function Oo(e,p){if(e&1&&(l(0,Fo,3,4,"ng-container",4),d(1,"async")),e&2){let t=a(3);r("ngIf",f(1,1,t.captchaData$))}}function No(e,p){if(e&1&&(s(0,"button",9),m(1),c(),s(2,"button",10),m(3),c()),e&2){let t=a().ngIf,n=a().$implicit;i(),C(" ",n("button.cancel")," "),i(),r("loading",t.value),i(),C(" ",n("button.next")," ")}}function Ao(e,p){if(e&1){let t=E();h(0),s(1,"form",5),k("ngSubmit",function(){let o=w(t).ngIf,g=a(2);return v(!o.value&&g.onNext(o.value))}),s(2,"neptun-multi-step-dialog-step-general-view",6),l(3,Oo,2,3,"ng-template",null,1,j)(5,No,4,3,"ng-template",null,2,j),c()(),x()}if(e&2){let t=a().$implicit,n=a();i(),r("formGroup",n.form),i(),r("title",t("login.enterCaptcha"))("isStepCounterEnabled",!0)("stepCounterText",t("dialog.task"))("currentStepIndex",1)("maxStepIndex",1)("isCloseButtonEnabled",!0)}}function $o(e,p){if(e&1&&(h(0),l(1,Ao,7,7,"ng-container",4),d(2,"async"),x()),e&2){let t=a();i(),r("ngIf",f(2,1,t.isLoading$))}}function Bo(e,p){if(e&1&&(s(0,"div",11),_(1,"neptun-rectangle-placeholder",12),s(2,"div",13),_(3,"neptun-button-placeholder",14)(4,"neptun-button-placeholder",14),c()(),_(5,"neptun-universal-placeholder",15)),e&2){let t=a();i(5),r("gridSize",T(4,Ro))("skeletons",t.captchaService.skeletons)("gap","8px")("rowSize","20px")}}var ii=(()=>{class e extends At{constructor(t,n,o,g,y,b){super(),this.loginService=t,this.resetPasswordService=n,this.accountApiService=o,this.captchaService=g,this.loadingService=y,this.store=b,this.currentLanguage$=this.store.select(M.currentLanguage),this.form=new wt({captcha:new W("",{validators:[z.required,z.maxLength(yt.SIX)],nonNullable:!0})}),this.captchaData$=this.loginService.getCaptchaImage("captcha/image",!0).pipe(P(D=>this.result.captchaIdentifier=D.identifier),Ge(yt.ONE)),this.captchaAudio$=je([this.captchaData$,this.currentLanguage$]).pipe(X(([D,U])=>this.accountApiService.getCaptchaAudio(D.identifier,U?.lcid??1038))),this.audioElement=new Audio,this.isLoading$=this.loadingService.isLoadingByUrl("Account/ResetPassword").pipe(kt(!1),B(D=>({value:D})))}ngOnInit(){this.form.controls.captcha.patchValue(this.result.captcha)}ngOnDestroy(){this.audioElement.pause()}get captchaValue(){return this.form.controls.captcha.value}onNext(t){if(!t&&(this.audioElement.pause(),this.captchaValue)){let n=this.store.selectSnapshot(M.currentLanguage)?.lcid??1038;this.result.captcha=this.captchaValue;let o={username:this.result.username,captcha:this.result.captcha,captchaIdentifier:this.result.captchaIdentifier,lcid:n};this.resetPasswordService.resetPassword(o).pipe(Pt(1),P(()=>this.next.emit()),Q(g=>(this.captchaService.refreshCaptcha(this.audioElement),g.error.modelStateErrors&&be(g,this.form),ct(()=>g)))).subscribe()}}static{this.\u0275fac=function(n){return new(n||e)(u(qt),u(ei),u(Rt),u(oe),u(te),u(F))}}static{this.\u0275cmp=I({type:e,selectors:[["neptun-reset-password-captcha-dialog"]],features:[H],decls:3,vars:0,consts:[["loadingPlaceholder",""],["content",""],["actions",""],[4,"transloco"],[4,"ngIf"],[3,"ngSubmit","formGroup"],["id","reset-password-captcha-dialog",3,"title","isStepCounterEnabled","stepCounterText","currentStepIndex","maxStepIndex","isCloseButtonEnabled"],["formControlName","captcha","id","resetCaptcha","label","Captcha",3,"image","isRequired","refreshCaptcha","readCaptcha",4,"ngIf","ngIfElse"],["formControlName","captcha","id","resetCaptcha","label","Captcha",3,"refreshCaptcha","readCaptcha","image","isRequired"],["id","captcha-reset-cancel-button","neptun-button","","matDialogClose","","color","white"],["id","captcha-reset-next-button","neptun-button","","color","primary","accent","flat","type","submit",3,"loading"],[1,"captcha-placeholder__image-section"],[1,"captcha-placeholder__image"],[1,"captcha-placeholder__buttons"],[1,"captcha-placeholder__button"],[3,"gridSize","skeletons","gap","rowSize"]],template:function(n,o){n&1&&l(0,$o,3,3,"ng-container",3)(1,Bo,6,5,"ng-template",null,0,j)},dependencies:[L,N,rt,nt,tt,et,at,it,ot,$t,De,R,Z,vt,Pe,ut,A],styles:["neptun-multi-step-dialog-step-general-view .tasks__counter{font-weight:800}.captcha-placeholder__image-section[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;flex-direction:column;gap:unset;margin:64px 0 40px}.captcha-placeholder__image[_ngcontent-%COMP%]{width:136px;height:51px;display:block}
1.captcha-placeholder__buttons[_ngcontent-%COMP%]{display:flex;justify-content:unset;align-items:unset;flex-direction:row;gap:8px;margin-top:12px}.captcha-placeholder__button[_ngcontent-%COMP%] .button-placeholder{width:48px;height:44px}@media only screen and (min-width:575px){.captcha-placeholder__image-section[_ngcontent-%COMP%]{flex-direction:row}.captcha-placeholder__image[_ngcontent-%COMP%]{margin:0 32px 0 0}.captcha-placeholder__buttons[_ngcontent-%COMP%]{margin-top:0}}"],changeDetection:0})}}return e})();function Vo(e,p){}var oi=(()=>{class e extends En{constructor(t,n){super(t,n),this.dialogData=n}loadNextStep(){let t;if(this.currentStepIndex===-1)t=this.dialogData.dialogSteps[0].componentType;else if(this.currentStepIndex===0)t=this.dialogData.result.hasTwoFactorAuthentication?this.dialogData.dialogSteps[1].componentType:this.dialogData.dialogSteps[2].componentType;else if(this.currentStepIndex===1||this.currentStepIndex===2)t=this.dialogData.dialogSteps[3].componentType;else{this.close(this.dialogData.result);return}this.loadStep(t,!0)}static{this.\u0275fac=function(n){return new(n||e)(u(Lt),u(Tt))}}static{this.\u0275cmp=I({type:e,selectors:[["ng-component"]],features:[H],decls:1,vars:0,consts:[["multiStepDialogHost",""]],template:function(n,o){n&1&&l(0,Vo,0,0,"ng-template",0)},dependencies:[kn],encapsulation:2})}}return e})();function qo(e,p){if(e&1&&(s(0,"div",4),_(1,"img",5),d(2,"assetUrl"),s(3,"h3"),m(4),c(),s(5,"div")(6,"p"),m(7),c(),s(8,"p"),m(9),c()()()),e&2){let t=a().$implicit;i(),r("src",f(2,4,"assets/images/icon-mail-sent.svg"),Ct),i(3),S(t("login.checkMail")),i(3),S(t("login.passwordResetHasBeenSent")),i(2),S(t("login.cannotAccessEmail"))}}function jo(e,p){if(e&1&&(s(0,"button",6),m(1),c()),e&2){let t=a().$implicit;i(),C(" ",t("button.close")," ")}}function Uo(e,p){e&1&&(h(0),s(1,"neptun-multi-step-dialog-step-general-view",3),l(2,qo,10,6,"ng-template",null,0,j)(4,jo,2,1,"ng-template",null,1,j),c(),x()),e&2&&(i(),r("isCloseButtonEnabled",!0))}var ri=(()=>{class e extends At{constructor(){super()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=I({type:e,selectors:[["neptun-reset-password-information-dialog"]],features:[H],decls:1,vars:0,consts:[["content",""],["actions",""],[4,"transloco"],["id","reset-password-information-dialog",3,"isCloseButtonEnabled"],[1,"content"],["alt","",3,"src"],["id","password-reset-close-button","matDialogClose","","neptun-button","","color","primary","accent","flat"]],template:function(n,o){n&1&&l(0,Uo,6,1,"ng-container",2)},dependencies:[L,$t,R,Z,Kt],styles:[".content[_ngcontent-%COMP%]{display:flex;flex-flow:column;align-items:center;gap:16px;text-align:center}"],changeDetection:0})}}return e})();var Me=(()=>{class e{constructor(t,n){this.dialogService=t,this.translocoService=n}recovery(){return this.dialogService.openConfirmActionDialog({title:this.translocoService.translate("login.recovery"),body:this.translocoService.translate("login.recoveryDescription"),actions:[new In({text:this.translocoService.translate("button.ok")})]})}static{this.\u0275fac=function(n){return new(n||e)(q(It),q(Qt))}}static{this.\u0275prov=Y({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function Go(e,p){if(e&1){let t=E();_(0,"neptun-form-input",6),s(1,"button",7),k("click",function(){w(t);let o=a(3);return v(o.recovery())}),m(2),_(3,"i"),c()}if(e&2){let t=a(2).$implicit,n=a();r("maxLength",6)("title",t("profileSettings.enterCode"))("placeholder",t("login.codePlaceholder"))("icon",n.Icons.Lock),i(),r("hasLeftOffset",!0),i(),C(" ",t("login.problemWithCode")," "),i(),Ke(n.Icons.ChevronRight)}}function zo(e,p){if(e&1&&(s(0,"button",8),m(1),c(),s(2,"button",9),m(3),c()),e&2){let t=a().ngIf,n=a().$implicit,o=a();i(),C(" ",n("button.cancel")," "),i(),r("disabled",o.tokenFormControlValue.length<6)("loading",t.value),i(),C(" ",n("button.next")," ")}}function Ho(e,p){if(e&1){let t=E();h(0),s(1,"form",4),k("ngSubmit",function(){let o=w(t).ngIf,g=a(2);return v(!o.value&&g.submitForm(o.value))}),s(2,"neptun-multi-step-dialog-step-general-view",5),l(3,Go,4,8,"ng-template",null,0,j)(5,zo,4,4,"ng-template",null,1,j),c()(),x()}if(e&2){let t=a().$implicit,n=a();i(),r("formGroup",n.form),i(),r("title",t("profileSettings.twoFactorAuthentication"))("subtitle",t("profileSettings.enterAuthCode"))("isStepCounterEnabled",!0)("stepCounterText",t("dialog.step"))("currentStepIndex",1)("maxStepIndex",1)("isCloseButtonEnabled",!0)}}function Wo(e,p){if(e&1&&(h(0),l(1,Ho,7,8,"ng-container",3),d(2,"async"),x()),e&2){let t=a();i(),r("ngIf",f(2,1,t.isLoading$))}}var ci=(()=>{class e extends At{constructor(t,n,o,g,y,b,D){super(),this.translocoService=t,this.actions$=n,this.cdr=o,this.twoFactorAuthenticationService=g,this.store=y,this.loadingService=b,this.dialogRef=D,this.Icons=ht,this.destroy$=new ft,this.form=new wt({token:new W("",{validators:[z.required,z.maxLength(yt.SIX)],nonNullable:!0})}),this.isLoading$=this.loadingService.isLoadingByUrl("Account/ValidateTokenForForgottenPassword").pipe(kt(!1),B(U=>({value:U})))}ngOnInit(){this.actions$.pipe(sn(Xt.CheckTwoFactorAuthentication),K(this.destroy$)).subscribe(()=>this.onNextClick()),this.actions$.pipe(cn(Xt.CheckTwoFactorAuthentication),K(this.destroy$)).subscribe(()=>{this.form.controls.token.setErrors({serverError:this.translocoService.translate("login.tokenIsNoLongerValidOrIncorrect")}),this.cdr.detectChanges()})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}get tokenFormControlValue(){return this.form.controls.token.value}submitForm(t){t||this.store.dispatch(new Xt.CheckTwoFactorAuthentication(this.tokenFormControlValue,this.result.username))}recovery(){this.twoFactorAuthenticationService.recovery().afterClosed().pipe(K(this.destroy$),P(()=>this.dialogRef.close())).subscribe()}static{this.\u0275fac=function(n){return new(n||e)(u(Qt),u(an),u(de),u(Me),u(F),u(te),u(Lt))}}static{this.\u0275cmp=I({type:e,selectors:[["neptun-reset-password-two-factor-authentication-dialog"]],features:[H],decls:1,vars:0,consts:[["content",""],["actions",""],[4,"transloco"],[4,"ngIf"],[3,"ngSubmit","formGroup"],["id","reset-password-two-factor-authentication-dialog",3,"title","subtitle","isStepCounterEnabled","stepCounterText","currentStepIndex","maxStepIndex","isCloseButtonEnabled"],["id","reset-password-token","formControlName","token","mask","000000",1,"reset-password-two-factor-authentication-dialog__input",3,"maxLength","title","placeholder","icon"],["id","two-factor-registration-back-button","neptun-button","","color","primary",3,"click","hasLeftOffset"],["id","two-factor-auth-cancel","neptun-button","","matDialogClose","","color","white"],["id","two-factor-auth-next-button","neptun-button","","color","primary","accent","flat","type","submit",3,"disabled","loading"]],template:function(n,o){n&1&&l(0,Wo,3,3,"ng-container",2)},dependencies:[L,N,rt,nt,tt,et,at,it,ot,$t,Jt,R,Z,A],styles:[".reset-password-two-factor-authentication-dialog__input[_ngcontent-%COMP%] .mdc-text-field__input::placeholder{opacity:1}"],changeDetection:0})}}return e})();function Qo(e,p){if(e&1&&(_(0,"neptun-form-input",6),s(1,"div"),m(2),c()),e&2){let t=a(2).$implicit,n=a();
1r("icon",n.icon)("label",t("login.loginName"))("maxLength",n.MAX_USERNAME_LENGTH),i(2),S(t("login.resetPasswordDialogInfo"))}}function Xo(e,p){if(e&1&&(s(0,"button",7),m(1),c(),s(2,"button",8),m(3),c()),e&2){let t=a().ngIf,n=a().$implicit;i(),C(" ",n("button.cancel")," "),i(),r("loading",t.value),i(),C(" ",n("button.next")," ")}}function Ko(e,p){if(e&1){let t=E();h(0),s(1,"form",4),k("ngSubmit",function(){let o=w(t).ngIf,g=a(2);return v(!o.value&&g.onNext(o.value))}),s(2,"neptun-multi-step-dialog-step-general-view",5),l(3,Qo,3,4,"ng-template",null,0,j)(5,Xo,4,3,"ng-template",null,1,j),c()(),x()}if(e&2){let t=a().$implicit,n=a();i(),r("formGroup",n.formGroup),i(),r("title",t("login.forgottenPassword"))("subtitle",t("login.pleaseEnterUsername"))("isStepCounterEnabled",!0)("stepCounterText",t("dialog.step"))("currentStepIndex",0)("maxStepIndex",1)("isCloseButtonEnabled",!0)}}function Yo(e,p){if(e&1&&(h(0),l(1,Ko,7,8,"ng-container",3),d(2,"async"),x()),e&2){let t=a();i(),r("ngIf",f(2,1,t.isLoading$))}}var pi=(()=>{class e extends At{constructor(t,n,o){super(),this.formBuilder=t,this.accountApiService=n,this.loadingService=o,this.isLoading$=this.loadingService.isLoadingByUrl("Account/HasUserTokenRegistration").pipe(kt(!1),B(g=>({value:g})))}ngOnInit(){this.formGroup=this.formBuilder.group({username:new W(this.result.username,{nonNullable:!0,validators:[z.maxLength(this.MAX_USERNAME_LENGTH),ce]})})}get MAX_USERNAME_LENGTH(){return 255}get icon(){return ht.User}onNext(t){t||this.formGroup.valid&&(this.result.username=this.formGroup.controls.username.value,this.accountApiService.hasUserTokenRegistration({userLoginName:this.formGroup.controls.username.value}).pipe(P(n=>{this.result.hasTwoFactorAuthentication=n,this.next.emit()})).subscribe())}static{this.\u0275fac=function(n){return new(n||e)(u(ve),u(Rt),u(te))}}static{this.\u0275cmp=I({type:e,selectors:[["neptun-reset-password-username-dialog"]],features:[H],decls:1,vars:0,consts:[["content",""],["actions",""],[4,"transloco"],[4,"ngIf"],[3,"ngSubmit","formGroup"],["id","reset-password-username-dialog",3,"title","subtitle","isStepCounterEnabled","stepCounterText","currentStepIndex","maxStepIndex","isCloseButtonEnabled"],["id","captcha-reset-username-input","formControlName","username",1,"input",3,"icon","label","maxLength"],["id","password-reset-cancel-button","neptun-button","","matDialogClose","","color","white"],["id","password-reset-next-button","neptun-button","","color","primary","accent","flat","type","submit",3,"loading"]],template:function(n,o){n&1&&l(0,Yo,3,3,"ng-container",2)},dependencies:[L,N,rt,nt,tt,et,at,it,ot,$t,Jt,R,Z,A],styles:["neptun-multi-step-dialog-step-general-view .tasks__counter{font-weight:800}"],changeDetection:0})}}return e})();var Zo=()=>({iconClass:"icon-chevron-right",fontSize:"16px"});function Jo(e,p){if(e&1){let t=E();h(0),s(1,"form",1),k("ngSubmit",function(){w(t);let o=a();return v(o.login())}),s(2,"neptun-basic-dialog-layout",2),h(3,3),s(4,"h2",4),m(5),c(),x(),h(6,5),s(7,"p",6),m(8),c(),_(9,"neptun-form-input",7),s(10,"button",8),k("click",function(){w(t);let o=a();return v(o.recovery())}),m(11),c(),x(),h(12,9),s(13,"button",10),k("click",function(){w(t);let o=a();return v(o.closeDialog())}),m(14),c(),s(15,"button",11),m(16),c(),x(),c()(),x()}if(e&2){let t=p.$implicit,n=a();i(),r("formGroup",n.form),i(4),S(t("profileSettings.twoFactorAuthentication")),i(3),S(t("profileSettings.enterAuthCode")),i(),r("maxLength",6)("title",t("profileSettings.enterCode"))("placeholder",t("login.codePlaceholder"))("icon",n.Icons.Lock)("autofocus",!0),i(),r("hasLeftOffset",!0)("postfixIcon",T(14,Zo)),i(),C(" ",t("login.problemWithCode")," "),i(3),S(t("button.close")),i(),r("disabled",n.tokenFormControlValue.length<6),i(),C(" ",t("login.login")," ")}}var li=(()=>{class e{constructor(t,n){this.dialogRef=t,this.twoFactorAuthenticationService=n,this.Icons=ht,this.form=new wt({token:new W("",{validators:[z.required,z.maxLength(yt.SIX)],nonNullable:!0})})}get tokenFormControlValue(){return this.form.controls.token.value}closeDialog(){this.dialogRef.close()}
1login(){this.form.invalid||this.dialogRef.close(this.tokenFormControlValue)}recovery(){this.twoFactorAuthenticationService.recovery().afterClosed().pipe(P(()=>{this.dialogRef.close()})).subscribe()}static{this.\u0275fac=function(n){return new(n||e)(u(Lt),u(Me))}}static{this.\u0275cmp=I({type:e,selectors:[["neptun-two-factor-dialog-content"]],decls:1,vars:0,consts:[[4,"transloco"],[3,"ngSubmit","formGroup"],["test-id","basic-layout"],["title",""],[1,"mat-h2"],["content",""],[1,"two-factor-dialog-content__description"],["id","two-factor-qr-code-input","test-id","two-factor-qr-code-input","formControlName","token","mask","000000",1,"two-factor-dialog-content__input",3,"maxLength","title","placeholder","icon","autofocus"],["id","two-factor-recovery-button","test-id","two-factor-recovery-button","neptun-button","",3,"click","hasLeftOffset","postfixIcon"],["actions",""],["id","close-2fa-button","test-id","close-2fa-button","color","white","neptun-button","",3,"click"],["id","login-button","test-id","login-button","neptun-button","","color","primary","accent","flat","type","submit",3,"disabled"]],template:function(n,o){n&1&&l(0,Jo,17,15,"ng-container",0)},dependencies:[L,rt,nt,tt,et,at,it,ot,Nt,Jt,R],styles:[".two-factor-dialog-content__description[_ngcontent-%COMP%]{margin:16px 0 24px}"],changeDetection:0})}}return e})();var mi={isLoginButtonDisabled:!1,loginRequest:$},Fe=(()=>{class e extends Se{constructor(t,n,o,g,y,b){super(mi),this.store=t,this.router=n,this.dialogService=o,this.accountApiService=g,this.multiStepDialogService=y,this.transloconService=b,this.loginRequest$=this.select(D=>D.loginRequest),this.isLoginButtonDisabled$=this.select(D=>D.isLoginButtonDisabled),this.errorMessages$=this.select(D=>{let U=D.loginRequest;return Yn(U)&&U.errorMessage?[U.errorMessage]:[]}),this.setloginRequest=this.updater((D,U)=>G(V({},D),{loginRequest:U})),this.setLoginButtonDisabled=this.updater((D,U)=>G(V({},D),{isLoginButtonDisabled:U})),this.setInitialState=this.updater(()=>mi),this.login=this.effect(D=>D.pipe(P(()=>{this.setloginRequest(Ft),this.setLoginButtonDisabled(!0)}),X(U=>this.accountApiService.login(U).pipe(X(pt=>pt.isCaptchaRequired?this.openCaptchaDialog(U.userName,U.password).pipe(X(_t=>Dt(_t)?ct(()=>new en({error:_t.errorMessage,status:_t.errorStatus})):J(_t)?_t.data.isTwoFactorRequired?this.openTwoFactorDialog().pipe(xt(Boolean),P(hi=>this.login(G(V({},U),{token:hi,captcha:_t.data.captcha,captchaIdentifier:_t.data.captchaIdentifier})))):this.handleSuccessfulLogin(_t.data.accessToken,_t.data.sessionTimeoutInMinutes):zt)):pt.isTwoFactorRequired&&!U.token?this.openTwoFactorDialog().pipe(xt(Boolean),P(_t=>this.login(G(V({},U),{token:_t})))):this.handleSuccessfulLogin(pt.accessToken,pt.sessionTimeoutInMinutes)),P(pt=>{this.setloginRequest({data:pt})}),Q(pt=>(this.setLoginButtonDisabled(!1),pt.error?.messages?(this.setloginRequest({errorMessage:this.transloconService.translate("error.genericOperationFailed"),errorStatus:pt.status,hasError:!0}),ct(()=>pt)):(this.setloginRequest({hasError:!0,errorStatus:pt.status,errorMessage:pt.error}),zt)))))))}handleSuccessfulLogin(t,n){return this.store.dispatch(new Xt.InitializeWithToken(t,n,pn.Web)).pipe(P(()=>this.setInitialState()),Ue(()=>qe(this.router.navigate(["/"]))),Q(o=>(this.setInitialState(),ct(()=>o),zt)))}openCaptchaDialog(t,n){return this.dialogService.openDialog(ti,{userName:t,password:n}).afterClosed().pipe(X(o=>o?pe(o):(this.setLoginButtonDisabled(!1),zt)))}openTwoFactorDialog(){return this.dialogService.openDialog(li).afterClosed().pipe(P(t=>{t||this.setInitialState()}))}resetPassword(){let t=this.getDialogData();this.multiStepDialogService.openDialog(oi,t).subscribe()}getDialogData(){return{disableClose:!0,width:"820px",data:{dialogSteps:[{componentType:pi,data:{}},{componentType:ci,data:{}},{componentType:ii,data:{}},{componentType:ri,data:{}}],stepCounterText:"",result:{username:"",captcha:"",captchaIdentifier:""}}}}static{this.\u0275fac=function(n){return new(n||e)(q(F),q(Wt),q(It),q(Rt),q(Ln),q(Qt))}}static{this.\u0275prov=Y({token:e,factory:e.\u0275fac})}}return e})();var er=["userNameInput"];function nr(e,p){if(e&1&&(s(0,"mat-error",17),h(1),m(2),x(),c()),e&2){let t=a().$implicit;i(2),S(t("error.requiredField"))}}function ir(e,p){if(e&1&&(s(0,"neptun-callout-box",18),m(1),c()),e&2){let t=a().$implicit,n=a();r("id","caps-loc-active-notification")("icon",n.alertIcon),i(),C(" ",t("error.capsLockActive")," ")}}function or(e,p){if(e&1&&(s(0,"div",19),_(1,"i",20),s(2,"div",21),m(3),c()()),e&2){let t=p.$implicit;i(3),C(" ",t," ")}}function rr(e,p){if(e&1){let t=E();s(0,"button",22),k("click",function(){w(t);let o=a(2);return v(o.resetPassword())}),m(1),c()}if(e&2){let t=a().$implicit;i(),C(" ",t("login.forgottenPassword")," ")}}function ar(e,p){if(e&1){let t=E();s(0,"form",5),k("ngSubmit",function(){w(t);let o=a();return v(o.login())}),s(1,"h4",6),m(2),c(),s(3,"mat-form-field",7)(4,"mat-label"),m(5),c(),_(6,"i",8),s(7,"input",9,0),k("focus",function(){w(t);let o=a();return v(o.makeUsernameInputEditable())}),c(),l(9,nr,3,1,"mat-error",10),c(),s(10,"neptun-form-password",11),k("inputFocus",function(){w(t);let o=a();return v(o.makeUsernameInputEditable())}),c(),l(11,ir,2,3,"neptun-callout-box",12),d(12,"async"),l(13,or,4,1,"div",13),d(14,"async"),s(15,"div",14)(16,"button",15),d(17,"async"),m(18),c(),l(19,rr,2,1,"button",16),c()()}if(e&2){let t=p.$implicit,n=a();r("formGroup",n.loginForm),i(2),S(t("login.caption")),i(3),S(t("login.loginName")),i(2),r("required",!0)("readonly",!0),i(2),r("ngIf",(n.loginForm.controls.userName==null?null:n.loginForm.controls.userName.invali
1d)&&(n.loginForm.controls.userName==null||n.loginForm.controls.userName.errors==null?null:n.loginForm.controls.userName.errors.required)),i(),r("icon",n.keyIcon)("required",!0)("label",t("login.password")),i(),r("ngIf",f(12,16,n.isCapsLockOn$)===!0),i(2),r("ngForOf",f(14,18,n.errorMessages$)),i(3),r("accent","flat")("hasSmallPadding",!0)("loading",f(17,20,n.isLoginButtonDisabled$)===!0),i(2),C(" ",t("login.loginButtonText")," "),i(),r("ngIf",n.isResetPasswordLinkVisible)}}var di=(()=>{class e{set userNameInputSetter(t){this._userNameInput=t}get userNameInput(){return this._userNameInput}constructor(t,n,o){this.store=t,this.loginStore=n,this.router=o,this.substituteGUID="",this.isResetPasswordLinkVisible=!1,this.alertIcon=ht.AlertTriangle,this.keyIcon=ht.Key,this.loginForm=new wt({userName:new W("",{nonNullable:!0,validators:ce}),password:new W("",{nonNullable:!0,validators:[ce]})}),this.languages$=this.store.select(M.supportedLanguages),this.currentLanguage$=this.store.select(M.currentLanguage),this.isLoginButtonDisabled$=this.loginStore.isLoginButtonDisabled$,this.errorMessages$=this.loginStore.errorMessages$,this.isCapsLockOn$=this.store.select(M.isCapsLockOn),this.destroy$=new ft}ngOnInit(){this.router.events.pipe(K(this.destroy$),P(t=>{t instanceof on&&this.loginStore.setLoginButtonDisabled(!1)})).subscribe()}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}login(){if(this.loginForm.markAllAsTouched(),this.loginForm.invalid)return;let t={userName:this.loginForm.controls.userName.value,password:this.loginForm.controls.password.value,subtituteGUID:this.substituteGUID,captcha:"",captchaIdentifier:"",token:""};this.loginStore.login(t)}resetPassword(){this.loginStore.resetPassword()}makeUsernameInputEditable(){this.userNameInput?.nativeElement&&this.userNameInput.nativeElement.removeAttribute("readonly")}static{this.\u0275fac=function(n){return new(n||e)(u(F),u(Fe),u(Wt))}}static{this.\u0275cmp=I({type:e,selectors:[["neptun-login-form"]],viewQuery:function(n,o){if(n&1&&Ye(er,5),n&2){let g;Ze(g=Je())&&(o.userNameInputSetter=g.first)}},inputs:{substituteGUID:"substituteGUID",isResetPasswordLinkVisible:"isResetPasswordLinkVisible"},features:[mt([Fe])],decls:6,vars:7,consts:[["userNameInput",""],[1,"login-left"],[1,"login-right"],[3,"languages","currentLanguage","hasGlobeIcon"],[3,"formGroup","ngSubmit",4,"transloco"],[3,"ngSubmit","formGroup"],[1,"login-right__caption"],["floatLabel","auto",1,"login-right__user-name"],["matPrefix","",1,"icon-user"],["matInput","","formControlName","userName","placeholder","ABC123","type","text","name","userName","id","userName",1,"with-label",3,"focus","required","readonly"],["test-id","login-form-username-error",4,"ngIf"],["formControlName","password","name","password","id","password",3,"inputFocus","icon","required","label"],["test-id","caps-lock-callout-box","class","callout-box","bgColor","warning-light",3,"id","icon",4,"ngIf"],["test-id","login-form-error-box","class","error-box",4,"ngFor","ngForOf"],[1,"actions"],["neptun-button","","id","login-button","test-id","login-button","type","submit","color","primary",1,"login-right__submit",3,"accent","hasSmallPadding","loading"],["neptun-button","","test-id","forgotten-password-button","id","forgotten-password-button","color","primary",3,"click",4,"ngIf"],["test-id","login-form-username-error"],["test-id","caps-lock-callout-box","bgColor","warning-light",1,"callout-box",3,"id","icon"],["test-id","login-form-error-box",1,"error-box"],[1,"error-box__icon","icon-alert-triangle"],["role","alert",1,"error-box__text"],["neptun-button","","test-id","forgotten-password-button","id","forgotten-password-button","color","primary",3,"click"]],template:function(n,o){n&1&&(_(0,"div",1),s(1,"div",2),_(2,"neptun-language-dropdown",3),d(3,"async"),d(4,"async"),l(5,ar,20,22,"form",4),c()),n&2&&(i(2),r("languages",f(3,3,o.languages$))("currentLanguage",f(4,5,o.currentLanguage$))("hasGlobeIcon",!0))},dependencies:[gn,L,rt,nt,fn,tt,et,hn,at,it,ot,vn,xn,wn,Sn,N,Cn,Ie,Dn,dt,R,A],styles:['@charset "UTF-8";[_nghost-%COMP%]{display:flex;margin-top:40px;margin-bottom:80px;position:relative}[_nghost-%COMP%] input[_ngcontent-%COMP%]:-webkit-autofill, [_nghost-%COMP%] input[_ngcontent-%COMP%]:-webkit-autofill:hover, [_nghost-%COMP%] input[_ngcontent-%COMP%]:-webkit-autofill:focus, [_nghost-%COMP%] input[_ngcontent-%COMP%]:-webkit-autofill:active{-webkit-box-shadow:0 0 0 3
10px #f2f3fb inset;-webkit-text-fill-color:inherit}.login-left[_ngcontent-%COMP%]{width:24px;margin-right:16px;background-color:#00dea4;border-radius:0 8px}.login-right[_ngcontent-%COMP%]{margin:8px 0 0;width:100%}.login-right[_ngcontent-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}.callout-box[_ngcontent-%COMP%]{max-width:360px;margin-bottom:24px}.login-right__caption[_ngcontent-%COMP%]{margin:16px 0}.spinner[_ngcontent-%COMP%]{height:165px}.login-right__submit[_ngcontent-%COMP%]{width:100%}.error-box[_ngcontent-%COMP%]{background-color:#f2994a;padding:16px;display:flex;align-items:center;max-width:360px;border-radius:8px;margin-bottom:12px}.error-box__icon[_ngcontent-%COMP%]{font-size:22px;margin-right:12px}.actions[_ngcontent-%COMP%]{display:flex;justify-content:unset;align-items:center;flex-direction:column;gap:20px}@media screen and (min-width:768px){.login-right[_ngcontent-%COMP%]{max-width:360px}}@media screen and (max-width:575px){[_nghost-%COMP%]{margin-bottom:32px}.login-left[_ngcontent-%COMP%]{width:12px;position:absolute;left:-20px;top:0;height:100%;border-radius:0 8px 8px 0;margin-right:24px}.login-right[_ngcontent-%COMP%]{margin:8px 0 0 12px;max-width:unset;width:100%}.login-right__user-name[_ngcontent-%COMP%]{width:100%;margin-bottom:0}.login-right__caption[_ngcontent-%COMP%]{font-size:16px}}'],changeDetection:0})}}return e})();var ui=(()=>{class e{constructor(t){this.route=t,this.store=He(F),this.substituteGUID$=this.route.queryParams.pipe(B(n=>n.GUID)),this.languages$=this.store.select(M.supportedLanguages),this.instituteName$=this.store.select(M.instituteName),this.isResetPasswordLinkVisible$=this.store.select(M.isResetPasswordLinkVisible)}static{this.\u0275fac=function(n){return new(n||e)(u(fe))}}static{this.\u0275cmp=I({type:e,selectors:[["neptun-home"]],decls:12,vars:9,consts:[["id","background-path","width","962","height","608","viewBox","0 0 962 608","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M491.307 9.41763C700.896 -48.1784 907.335 173.016 954.892 346.073C1002.45 519.131 775.137 532.599 565.547 590.195C355.958 647.791 75.1217 572.37 2.4473 144.556C-28.6344 -28.7706 281.717 67.0136 491.307 9.41763Z","fill","#F2F3FB"],[1,"main-content"],[1,"institute-name-container"],[1,"institute-name"],[3,"substituteGUID","isResetPasswordLinkVisible"]],template:function(n,o){n&1&&(_(0,"neptun-institute-img-wrapper"),le(),s(1,"svg",0),_(2,"path",1),c(),We(),s(3,"div",2)(4,"div",3)(5,"h2",4),m(6),d(7,"async"),c()(),_(8,"neptun-login-form",5),d(9,"async"),d(10,"async"),_(11,"neptun-accordions"),c()),n&2&&(i(6),C(" ",f(7,3,o.instituteName$)," "),i(2),r("substituteGUID",f(9,5,o.substituteGUID$))("isResetPasswordLinkVisible",f(10,7,o.isResetPasswordLinkVisible$)===!0))},dependencies:[Kn,di,Xn,A],styles:[".main-content[_ngcontent-%COMP%]{position:relative;z-index:100;padding-top:90px}.institute-name-container[_ngcontent-%COMP%]{max-width:540px}.institute-name[_ngcontent-%COMP%]{display:inline;background:#fff;color:#213055;width:fit-content}#background-path[_ngcontent-%COMP%]{position:absolute;left:-500px;top:650px}@media screen and (max-width:575px){.main-content[_ngcontent-%COMP%]{padding-top:40px}.institute-name[_ngcontent-%COMP%]{padding-right:12px;font-size:28px}#background-path[_ngcontent-%COMP%]{left:-50px}}@media screen and (min-width:768px){.main-content[_ngcontent-%COMP%]{max-width:610px}}"],changeDetection:0})}}return e})();var sr=()=>["/login"],cr=()=>["/login","info","news"],pr=()=>["/login","info","downloads"],lr=()=>["/login","info","links"];function mr(e,p){if(e&1&&(h(0),s(1,"h2",1),m(2),d(3,"async"),c(),s(4,"button",2),m(5),c(),s(6,"div",3)(7,"nav",4)(8,"a",5),_(9,"i",6),s(10,"span",7),m(11),c(),s(12,"span",8),m(13),c()(),s(14,"a",9),_(15,"i",10),s(16,"span",7),m(17),c(),s(18,"span",8),m(19),c()(),s(20,"a",11),_(21,"i",12),s(22,"span",7),m(23),c(),s(24,"span",8),m(25),c()()(),s(26,"div",13),_(27,"router-outlet"),c()(),x()),e&2){let t=p.$implicit,n=a();i(2),S(f(3,12,n.instituteName$)),i(2),r("routerLink",T(14,sr)),i(),C(" ",t("login.backToLoginButton")," "),i(3),r("routerLink",T(15,cr)),i(3),S(t("menu.news")),i(2),S(t("menu.news")),i(),r("routerLink",T(16,pr)),i(3),S(t("global.downloadable")),i(2),S(t("menu.downloadDocuments")),i(),r("routerLink",T(17,lr)),i(3),S(t("global.links")),i(2),S(t("menu.usefulLinks"))}}var gi=(()=>{class e{constructor(t){this.store=t,this.instituteName$=this.store.select(M.instituteName)}static{this.\u0275fac=function(n){return new(n||e)(u(F))}}static{this.\u0275cmp=I({type:e,selectors:[["neptun-info"]],decls:1,vars:0,consts:[[4,"transloco"],["test-id","institute-name",1,"info__institute-name"],["neptun-button","","role","link","accent","flat","test-id","back-to-login-button",1,"info__back-button",3,"routerLink"],[1,"info__main"],[1,"info__tabs"],["focusElement","","id","news-info-link","test-id","news-info-link","routerLinkActive","
1info__tab-item--active",1,"info__tab-item",3,"routerLink"],[1,"info__tab-icon","icon-newspaper"],[1,"info__text-mobile"],[1,"info__text"],["focusElement","","id","downloadable-documents-link","test-id","documents-info-link","routerLinkActive","info__tab-item--active",1,"info__tab-item",3,"routerLink"],[1,"info__tab-icon","icon-download-bold"],["focusElement","","id","useful-links-link","test-id","links-info-link","routerLinkActive","info__tab-item--active",1,"info__tab-item",3,"routerLink"],[1,"info__tab-icon","icon-bookmark"],[1,"info__content"]],template:function(n,o){n&1&&l(0,mr,28,18,"ng-container",0)},dependencies:[L,R,xe,we,rn,he,A],styles:[".info__institute-name[_ngcontent-%COMP%]{color:#213055;max-width:610px;margin-bottom:16px;margin-top:48px}.info__back-button[_ngcontent-%COMP%]{margin-bottom:32px}.info__main[_ngcontent-%COMP%]{display:flex;margin-bottom:32px}.info__tab-item[_ngcontent-%COMP%]{font-weight:800;color:#213055;display:flex;padding:16px 0 16px 16px}.info__tab-item--active[_ngcontent-%COMP%] .info__tab-icon[_ngcontent-%COMP%]{color:#00dea4}.info__tab-icon[_ngcontent-%COMP%]{font-size:22px}.info__content[_ngcontent-%COMP%]{flex-grow:1}@media only screen and (max-width:767px){.info__main[_ngcontent-%COMP%]{flex-direction:column}.info__tabs[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin-bottom:48px}.info__text-mobile[_ngcontent-%COMP%]{font-size:13px;display:block}.info__text[_ngcontent-%COMP%]{display:none}.info__tab-icon[_ngcontent-%COMP%]{margin-bottom:8px}.info__tab-item[_ngcontent-%COMP%]{white-space:nowrap;border-bottom:4px solid #f2f3fb;padding:8px;flex-direction:column;align-items:center;flex:1}.info__tab-item--active[_ngcontent-%COMP%]{border-bottom-color:#00dea4}}@media only screen and (min-width:768px){.info__text[_ngcontent-%COMP%]{display:block}.info__text-mobile[_ngcontent-%COMP%]{display:none}.info__tabs[_ngcontent-%COMP%]{min-width:250px;margin-right:65px}.info__tab-item[_ngcontent-%COMP%]{border-left:4px solid #f2f3fb;cursor:pointer}.info__tab-item--active[_ngcontent-%COMP%]{border-left-color:#00dea4}.info__tab-item[_ngcontent-%COMP%]:hover{background-color:#f2f3fb}.info__tab-icon[_ngcontent-%COMP%]{margin-right:16px}}"],changeDetection:0})}}return e})();var dr=()=>[1,3];function ur(e,p){e&1&&_(0,"neptun-request-error-indicator",5)}function gr(e,p){if(e&1&&(s(0,"div",6),_(1,"neptun-rectangle-placeholder",7)(2,"neptun-universal-placeholder",8),c()),e&2){let t=a(3);i(2),r("gridSize",T(4,dr))("skeletons",t.skeletons)("gap","16px")("rowSize","50px")}}function _r(e,p){if(e&1){let t=E();s(0,"button",13),k("click",function(){w(t);let o=a(2).ngIf,g=a(2);return v(g.getNextItems(o.data.length))}),m(1),c()}if(e&2){let t=a(3).$implicit;r("accent","stroked"),i(),C(" ",t("button.loadMore")," ")}}function fr(e,p){if(e&1&&(s(0,"div",9)(1,"h3",10),m(2),c(),_(3,"neptun-useful-links",11),l(4,_r,2,2,"button",12),d(5,"async"),c()),e&2){let t=a().ngIf,n=a().$implicit,o=a();i(2),S(n("menu.usefulLinks")),i(),r("links",t.data),i(),r("ngIf",f(5,3,o.isNextVisible$)===!0)}}function hr(e,p){if(e&1&&(h(0),l(1,ur,1,0,"neptun-request-error-indicator",2),d(2,"hasError"),l(3,gr,3,5,"div",3),d(4,"isLoadingRequest"),l(5,fr,6,5,"div",4),d(6,"isResultRequest"),x()),e&2){let t=p.ngIf;i(),r("ngIf",f(2,3,t)),i(2),r("ngIf",f(4,5,t)),i(2),r("ngIf",f(6,7,t))}}function xr(e,p){if(e&1&&(h(0),l(1,hr,7,9,"ng-container",1),d(2,"async"),x()),e&2){let t=a();i(),r("ngIf",f(2,1,t.entities$))}}var _i=(()=>{class e extends ne{constructor(t,n){super(t),this.loginLinksStore=t,this.store=n,this.skeletons=ae}ngOnInit(){let t=this.store.selectSnapshot(M.currentLanguage)?.lcid.toString()??1038 .toString();this.loginLinksStore.fetchItemsFromServer({filterModel:{lcid:t},firstRow:0,lastRow:this.loginLinksStore.defaultPagingNumber})}static{this.\u0275fac=function(n){return new(n||e)(u(Ut),u(F))}}static{this.\u0275cmp=I({type:e,selectors:[["neptun-links"]],features:[mt([Ut]),H],decls:1,vars:0,consts:[[4,"transloco"],[4,"ngIf"],["test-id","links-error",4,"ngIf"],["test-id","links-loading",4,"ngIf"],["test-id","links-list",4,"ngIf"],["test-id","links-error"],["test-id","links-loading"],[1,"links__title-skeleton"],[3,"gridSize","skeletons","gap","rowSize"],["test-id","links-list"],[1,"links__title"],[3,"links"],["neptun-button","","class","links__more-button","test-id","links-list-next-visible-button",3,"accent","click",4,"ngIf"],["neptun-button","","test-id","links-list-next-visible-button",1,"links__more-button",3,"click","accent"]],template:function(n,o){n&1&&l(0,xr,3,3,"ng-container",0)},dependencies:[L,N,Bt,vt,ut,Te,R,A,St,Vt,bt],styles:["[_nghost-%COMP%]{display:block;max-width:610px}.links__title[_ngcontent-%COMP%]{margin-bottom:12px}.links__title-skeleton[_ngcontent-%COMP%]{width:64px;
1height:32px;margin-bottom:16px}.links__more-button[_ngcontent-%COMP%]{margin-top:24px}"],changeDetection:0})}}return e})();var Cr=()=>[],wr=()=>[5,5];function vr(e,p){e&1&&_(0,"neptun-request-error-indicator",5)}function Sr(e,p){if(e&1&&_(0,"neptun-universal-placeholder",9),e&2){let t=a(4);r("gridSize",T(4,wr))("skeletons",t.skeletons)("gap","12px")("rowSize","22px")}}function br(e,p){e&1&&(s(0,"div",6),_(1,"neptun-rectangle-placeholder",7),l(2,Sr,1,5,"neptun-universal-placeholder",8),c()),e&2&&(i(2),r("ngForOf",T(1,Cr).constructor(3)))}function Ir(e,p){if(e&1){let t=E();s(0,"button",14),k("click",function(){w(t);let o=a(2).ngIf,g=a(2);return v(g.getNextItems(o.data.length))}),m(1),c()}if(e&2){let t=a(3).$implicit;r("accent","stroked"),i(),C(" ",t("button.loadMore")," ")}}function yr(e,p){if(e&1){let t=E();s(0,"div",10)(1,"h3",11),m(2),c(),s(3,"neptun-news-list",12),k("openNewsDialog",function(o){w(t);let g=a(3);return v(g.openNewsDialog(o))}),c(),l(4,Ir,2,2,"button",13),d(5,"async"),c()}if(e&2){let t=a().ngIf,n=a().$implicit,o=a();i(2),S(n("menu.news")),i(),r("news",t.data),i(),r("ngIf",f(5,3,o.isNextVisible$)===!0)}}function Dr(e,p){if(e&1&&(h(0),l(1,vr,1,0,"neptun-request-error-indicator",2),d(2,"hasError"),l(3,br,3,2,"div",3),d(4,"isLoadingRequest"),l(5,yr,6,5,"div",4),d(6,"isResultRequest"),x()),e&2){let t=p.ngIf;i(),r("ngIf",f(2,3,t)),i(2),r("ngIf",f(4,5,t)),i(2),r("ngIf",f(6,7,t))}}function Pr(e,p){if(e&1&&(h(0),l(1,Dr,7,9,"ng-container",1),d(2,"async"),x()),e&2){let t=a();i(),r("ngIf",f(2,1,t.news$))}}var fi=(()=>{class e extends ne{constructor(t,n,o,g){super(t),this.loginNewsStore=t,this.store=n,this.sanitizer=o,this.dialogService=g,this.news$=this.entities$.pipe(B(y=>J(y)?Yt(y.data,y.isPagingLoading??!1):y)),this.skeletons=[{type:"rectangle",position:{start:{x:1,y:1},end:{x:4,y:1}}},{type:"rectangle",position:{start:{x:1,y:2},end:{x:2,y:2}}},{type:"rectangle",position:{start:{x:1,y:3},end:{x:6,y:5}}},{type:"rectangle",position:{start:{x:1,y:5},end:{x:1,y:5}}}]}ngOnInit(){let t=this.store.selectSnapshot(M.currentLanguage)?.lcid.toString()??1038 .toString();this.loginNewsStore.fetchItemsFromServer({filterModel:{lcid:t},firstRow:0,lastRow:this.loginNewsStore.defaultPagingNumber})}openNewsDialog(t){this.dialogService.openDialog(Ee,t)}static{this.\u0275fac=function(n){return new(n||e)(u(Gt),u(F),u(_e),u(It))}}static{this.\u0275cmp=I({type:e,selectors:[["neptun-news"]],features:[mt([Gt]),H],decls:1,vars:0,consts:[[4,"transloco"],[4,"ngIf"],["test-id","news-error",4,"ngIf"],["test-id","news-loading",4,"ngIf"],["test-id","news-list",4,"ngIf"],["test-id","news-error"],["test-id","news-loading"],[1,"news__title-skeleton"],["class","news__list-skeleton",3,"gridSize","skeletons","gap","rowSize",4,"ngFor","ngForOf"],[1,"news__list-skeleton",3,"gridSize","skeletons","gap","rowSize"],["test-id","news-list"],[1,"news__title"],[3,"openNewsDialog","news"],["neptun-button","","test-id","news-list-next-visible-button",3,"accent","click",4,"ngIf"],["neptun-button","","test-id","news-list-next-visible-button",3,"click","accent"]],template:function(n,o){n&1&&l(0,Pr,3,3,"ng-container",0)},dependencies:[L,N,Bt,vt,dt,ut,Le,R,A,St,Vt,bt],styles:[".news__title[_ngcontent-%COMP%]{margin-bottom:12px}.news__title-skeleton[_ngcontent-%COMP%]{width:64px;height:32px;margin-bottom:16px}.news__list-skeleton[_ngcontent-%COMP%]{display:block;max-width:610px;margin-bottom:24px}"],changeDetection:0})}}return e})();var kr=[{path:"",component:Un,children:[{path:"",component:ui},{path:"info",component:gi,children:[{path:"news",component:fi},{path:"downloads",component:zn},{path:"links",component:_i}]}]}],Id=[{path:"",providers:[bn],children:kr}];export{Id 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.