PageSourceSearch

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

js or-zse.hu collected 2026-09-24 09:57:08 UTC 83,060 bytes, 1 lines download raw bytes

1import{a as Oe}from"./chunk-CO6PQXTF.js";import{a as Vn}from"./chunk-XMMRLYZE.js";import{a as Nn}from"./chunk-IUUW2YBO.js";import{a as _n,b as hn,c as Cn,d as xn,e as wn}from"./chunk-CVLKNARD.js";import{a as De}from"./chunk-NBIVXKTU.js";import{a as yn,b as Dn}from"./chunk-2SDH2OJ4.js";import"./chunk-IHIDYCCT.js";import{a as Pn}from"./chunk-GF5CUI6K.js";import{a as Sn,b as bn,c as In}from"./chunk-C2EBXPB3.js";import{a as st}from"./chunk-2CPNN5OE.js";import{a as lt,b as An}from"./chunk-EVHUHRQK.js";import{d as ct}from"./chunk-2LU5KCEW.js";import{a as an,c as sn,e as cn,f as ln,g as pn,l as fn}from"./chunk-ARGE2QLS.js";import{a as it}from"./chunk-ZORQQVZX.js";import"./chunk-RXUH5EFX.js";import"./chunk-QRT62Y37.js";import{a as nt}from"./chunk-4H53HP2C.js";import{a as Fn}from"./chunk-UBMSNTNI.js";import{a as Ve}from"./chunk-6BQ7O2GO.js";import{b as Ne}from"./chunk-II4S2DSJ.js";import{a as Tn}from"./chunk-TE22THZE.js";import{a as Mn}from"./chunk-HAJVNCKC.js";import{c as St,f as En,g as kn,h as Gn}from"./chunk-RM5FKR3W.js";import{g as mn,i as dn,k as un}from"./chunk-IHBRULXZ.js";import{a as rt}from"./chunk-ETRVFD3K.js";import{a as gn}from"./chunk-OXVJUPH2.js";import"./chunk-WRHLYV72.js";import{e as ot}from"./chunk-WYHT5LVI.js";import{a as vn}from"./chunk-KGW4SCA2.js";import"./chunk-OPZSNKHX.js";import"./chunk-XRI75B37.js";import{c as qt,e as Qt}from"./chunk-FBOJBCTO.js";import"./chunk-AXD322OJ.js";import{b as tn,c as nn,e as on,f as rn}from"./chunk-7TMAO3B2.js";import{a as at}from"./chunk-737SADXK.js";import"./chunk-YVHUP7FX.js";import"./chunk-FGOVRAJM.js";import{a as Pe}from"./chunk-ATNV2VT2.js";import"./chunk-XXU4FZ4Q.js";import"./chunk-XZ77C7GC.js";import{$ as Q,$a as y,Ab as r,Aj as Ie,B as je,Ba as J,Bh as L,Bi as be,Bj as Z,Cj as et,Dh as ge,Di as ae,E as ie,Eh as _e,Ej as Ae,Fc as F,Fd as X,Fe as q,Fh as Me,Fj as Xt,G as le,Ga as Dt,Gd as re,Ge as H,Hb as He,Hi as Jt,Ib as Qe,Ih as me,Jb as Ke,Jg as Xe,Jh as vt,Kb as k,Lh as he,M as U,Mb as u,Mg as Ot,Mj as Yt,Nb as v,Ob as P,Oh as Ce,Ra as xt,Rf as We,Rh as xe,Se as ne,Sf as Vt,Sh as zt,Ua as o,Ue as Mt,Uf as j,Vf as M,Wc as fe,Wf as Ge,Xg as Fe,Xh as Ht,Y as Pt,Ya as m,Yb as ke,Yg as E,Yh as ve,Zb as W,Zh as Se,a as se,aa as K,b as ye,bf as At,ca as T,db as Tt,dk as Zt,eb as d,ec as x,eh as Ut,fc as S,gc as Gt,gf as Nt,hb as Ee,ia as oe,ib as s,ie as V,ih as $t,ik as we,jc as G,jh as Rt,kb as Et,kc as ue,kh as jt,kj as Ze,kk as tt,l as $,la as pe,lb as kt,lk as en,m as ze,ma as yt,mk as ee,oh as Lt,pi as B,rb as c,s as Ct,sa as f,sb as a,t as ce,ta as g,tb as C,th as Ye,ti as Kt,ub as I,uh as Bt,v as R,vb as w,vj as Wt,w as de,wc as Ft,xb as b,xe as Y,yc as Je,zb as _,zc as N,ze as D}from"./chunk-IVN2VXRW.js";var pt=(()=>{class n{static{this.PutPasswordChangeEndpoint="PasswordChange"}constructor(e){this.httpClient=e}putPasswordChange(e,t,i){return this.httpClient.post(`${ne.settings.apiServer.url}${n.PutPasswordChangeEndpoint}`,{originalPlainPassword:e,newPlainPassword:t,newPlainPasswordReference:i})}static{this.\u0275fac=function(t){return new(t||n)(pe(fe))}}static{this.\u0275prov=oe({token:n,factory:n.\u0275fac})}}return n})();var mt=(()=>{class n extends Zt{constructor(){super({changePassword:$t}),this.changePassword$=this.select(e=>e.changePassword),this.updateChangePassword=this.updater((e,t)=>ye(se({},e),{changePassword:t}))}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275prov=oe({token:n,factory:n.\u0275fac})}}return n})();var ai=["twoFactorContent"],si=()=>[3,4];function ci(n,p){if(n&1&&(I(0),u(1),w()),n&2){let e=r().$implicit;o(),P(" ",e("profileSettings.switchOffTwoFactor")," ")}}function li(n,p){if(n&1&&u(0),n&2){let e=r().$implicit;P(" ",e("profileSettings.twoFactorAuthentication")," ")}}function pi(n,p){if(n&1){let e=b();I(0),c(1,"neptun-two-factor-authentication-content",13,4),_("formEnter",function(){f(e);let i=r(2);return g(i.save())}),a(),w()}n&2&&(o(),s("isForLogin",!1)("isSwitchOnPresent",!1))}function mi(n,p){if(n&1){let e=b();c(0,"neptun-two-factor-authentication-content",15,4),_("formEnter",function(){f(e);let i=r(3);return g(i.save())}),a()}if(n&2){let e=p.ngIf;s("isForLogin",!1)("isSwitchOnPresent",!0)("tokenRegistrationData",e)}}function di(n,p){if(n&1&&(d(0,mi,2,3,"neptun-two-factor-authentication-content",14),x(1,"async")),n&2){r();let e=k(11),t=r();s("ngIf",S(1,2,t.tokenRegistrationData$))("ngIfElse",e)}}function ui(n,p){if(n&1&&C(0,"neptun-universal-placeholder",16),n&2){let e=r(2);s("gridSize",W(4,si))("skeletons",e.skeletons)("gap","24px")("rowSize","30px")}}function fi(n,p){if(n&1){let e=b();c(0,"button",17),x(1,"async"),_("click",function(){f(e);let i=r(2);return g(i.save())}),u(2),a()}if(n&2){let e=r().$implicit,t=r();s("loading",!!S(1,3,t.isTwoFactorSwitchOffLoading$))("disabled",(t.twoFactorContentComponent==null||t.twoFactorContentComponent.tokenForm==null?null:t.twoFactorContentComponent.tokenForm.invali
1d)||(t.twoFactorContentComponent==null||t.twoFactorContentComponent.tokenForm==null||t.twoFactorContentComponent.tokenForm.controls==null||t.twoFactorContentComponent.tokenForm.controls.token==null||t.twoFactorContentComponent.tokenForm.controls.token.value==null?null:t.twoFactorContentComponent.tokenForm.controls.token.value.length)!==t.validTokenCharacterLength),o(2),v(e("profileSettings.switchOff"))}}function gi(n,p){if(n&1){let e=b();c(0,"button",18),x(1,"async"),_("click",function(){f(e);let i=r(2);return g(i.save())}),u(2),a()}if(n&2){let e=r().$implicit,t=r();s("loading",!!S(1,3,t.isCompletingTokenRegistration$))("disabled",(t.twoFactorContentComponent==null||t.twoFactorContentComponent.tokenForm==null?null:t.twoFactorContentComponent.tokenForm.invalid)||(t.twoFactorContentComponent==null||t.twoFactorContentComponent.tokenForm==null||t.twoFactorContentComponent.tokenForm.controls==null||t.twoFactorContentComponent.tokenForm.controls.token==null||t.twoFactorContentComponent.tokenForm.controls.token.value==null?null:t.twoFactorContentComponent.tokenForm.controls.token.value.length)!==t.validTokenCharacterLength),o(2),v(e("login.setup"))}}function _i(n,p){if(n&1){let e=b();I(0),c(1,"neptun-basic-dialog-layout")(2,"h3",6),d(3,ci,2,1,"ng-container",7)(4,li,1,1,"ng-template",null,0,G),a(),c(6,"section",8),d(7,pi,3,2,"ng-container",7)(8,di,2,4,"ng-template",null,1,G)(10,ui,1,5,"ng-template",null,2,G),a(),I(12,9),c(13,"div",10)(14,"button",11),_("click",function(){f(e);let i=r();return g(i.cancel())}),u(15),a(),d(16,fi,3,5,"button",12)(17,gi,3,5,"ng-template",null,3,G),a(),w(),a(),w()}if(n&2){let e=p.$implicit,t=k(5),i=k(9),l=k(18),h=r();o(3),s("ngIf",h.isTwoFactorAuthenticationSet)("ngIfElse",t),o(4),s("ngIf",h.isTwoFactorAuthenticationSet)("ngIfElse",i),o(8),v(e("button.cancel")),o(),s("ngIf",h.isTwoFactorAuthenticationSet)("ngIfElse",l)}}var It=(()=>{class n{constructor(e,t,i,l,h=!1){this.dialogRef=e,this.authenticationService=t,this.store=i,this.loadingService=l,this.isTwoFactorAuthenticationSet=h,this.tokenRegistrationData$=this.authenticationService.getTokenRegistrationData().pipe(le(O=>(this.dialogRef.close(),ce(O)))),this.skeletons=[{type:"rectangle",position:{start:{x:1,y:1},end:{x:2,y:2}},multiplier:{axis:"y",value:3}}],this.validTokenCharacterLength=6,this.isTwoFactorSwitchOffLoading$=this.loadingService.isLoadingByUrl("Authentication/DeleteTOTPKey"),this.isCompletingTokenRegistration$=this.loadingService.isLoadingByUrl("Authentication/CompleteTokenRegistration")}cancel(){this.dialogRef.close()}save(){if(this.twoFactorContentComponent?.tokenForm.markAllAsTouched(),this.twoFactorContentComponent?.changeDetectionRef.detectChanges(),this.twoFactorContentComponent?.tokenForm.invalid)return;let e=this.twoFactorContentComponent.tokenForm.getRawValue();je(()=>this.isTwoFactorAuthenticationSet,this.authenticationService.switchOffTwoFactorAuthentication(e),this.authenticationService.completeTokenRegistration(e)).pipe(U(1),Q(()=>this.store.dispatch([new Vt.SetIsTokenRegistered(!this.isTwoFactorAuthenticationSet),new M.AddSuccessPushNotification({title:"notification.saveSuccess"})])),T(()=>this.dialogRef.close()),le(t=>(Pe(t,this.twoFactorContentComponent.tokenForm),this.twoFactorContentComponent.changeDetectionRef.detectChanges(),ce(t)))).subscribe()}static{this.\u0275fac=function(t){return new(t||n)(m(X),m(_n),m(V),m(et),m(re))}}static{this.\u0275cmp=y({type:n,selectors:[["neptun-two-factor-authentication-dialog"]],viewQuery:function(t,i){if(t&1&&He(ai,5),t&2){let l;Qe(l=Ke())&&(i.twoFactorContentComponent=l.first)}},decls:1,vars:0,consts:[["switchOffTwoFactorTitle",""],["TwoFactorAuthenticationNotSet",""],["loading",""],["switchOnButton",""],["twoFactorContent",""],[4,"transloco"],["title","",1,"mat-h3"],[4,"ngIf","ngIfElse"],["content","",1,"content"],["actions",""],["neptunBasicDialogLayoutActions",""],["id","78cda896-9d5c-4d0d-89d1-a34357317580","neptun-button","","accent","link","color","white","mat-dialog-close","",3,"click"],["id","d9d85355-d6d6-4d10-8a62-9ee18ea57a06","neptun-button","","accent","flat","color","error",3,"loading","disabled","click",4,"ngIf","ngIfElse"],[3,"formEnter","isForLogin","isSwitchOnPresent"],[3,"isForLogin","isSwitchOnPresent","tokenRegistrationData","formEnter",4,"ngIf","ngIfElse"],[3,"formEnter","isForLogin","isSwitchOnPresent","tokenRegistrationData"],[1,"skeleton",3,"gridSize","skeletons","gap","rowSize"],["id","d9d85355-d6d6-4d10-8a62-9ee18ea57a06","neptun-button","","accent","flat","color","error",3,"click","loading","disabled"],["id","6b0da5b3-968c-4763-87d4-e2cb7a5f5f1
1a","neptun-button","","accent","flat",3,"click","loading","disabled"]],template:function(t,i){t&1&&d(0,_i,19,7,"ng-container",5)},dependencies:[D,Z,N,wn,nt,Ie,E,F],encapsulation:2,changeDetection:0})}}return n})();function hi(n,p){if(n&1){let e=b();c(0,"button",16),_("click",function(){f(e);let i=r(2);return g(i.setTwoFactorAuthentication())}),u(1),a()}if(n&2){let e=r().$implicit;o(),P(" ",e("login.setup")," ")}}function Ci(n,p){if(n&1){let e=b();c(0,"div",17)(1,"button",18),_("click",function(){f(e);let i=r(2);return g(i.switchOffTwoFactorAuthentication())}),u(2),a(),c(3,"div",19),C(4,"img",20),x(5,"assetUrl"),c(6,"span"),u(7),a()()()}if(n&2){let e=r().$implicit;o(2),P(" ",e("profileSettings.switchOff")," "),o(2),s("src",S(5,3,"assets/images/shield-ok.svg"),xt),o(3),v(e("profileSettings.switchedOn"))}}function xi(n,p){if(n&1&&(c(0,"neptun-callout-box",21),u(1),a()),n&2){let e=r().$implicit,t=r();s("id","caps-lock-active-notification")("icon",t.alertIcon),o(),P(" ",e("error.capsLockActive")," ")}}function vi(n,p){if(n&1){let e=b();c(0,"button",22),_("click",function(){let i=f(e).ngIf,l=r(2);return g(!i.value&&l.savePassword())}),u(1),a()}if(n&2){let e=p.ngIf,t=r().$implicit,i=r();s("permissionRequired",i.changePasswordPermission)("loading",e.value),o(),P(" ",t("button.modify")," ")}}function Si(n,p){if(n&1&&(I(0),c(1,"form",2)(2,"div",3)(3,"neptun-card",4),C(4,"neptun-secondary-title",5),c(5,"div",6),C(6,"img",7),x(7,"assetUrl"),c(8,"p",8),u(9),a()(),d(10,hi,2,1,"button",9),x(11,"async"),d(12,Ci,8,5,"ng-template",null,0,G),a(),c(14,"neptun-card"),C(15,"neptun-secondary-title",10),d(16,xi,2,3,"neptun-callout-box",11),x(17,"async"),C(18,"neptun-form-password",12)(19,"neptun-form-password",13)(20,"neptun-form-password",14),d(21,vi,2,3,"button",15),x(22,"async"),a()()(),w()),n&2){let e=p.$implicit,t=k(13),i=r();o(),s("formGroup",i.resetPasswordForm),o(2),s("permissionRequired",i.twoFactorPermission),o(),s("title",e("profileSettings.twoFactorAuthentication"))("hasVerticalMargin",!1)("hasHorizontalPadding",!1),o(2),s("src",S(7,21,"assets/images/two-factor-auth.svg"),xt),o(3),v(e("profileSettings.setTwoFactorAuth")),o(),s("ngIf",S(11,23,i.isTokenRegistered$)===!1)("ngIfElse",t),o(5),s("title",e("profileSettings.changePassword"))("description",e("profileSettings.changePasswordDescription"))("hasHorizontalPadding",!1),o(),s("ngIf",S(17,25,i.isCapsLockOn$)===!0),o(2),s("id","old-password")("title",e("loginTask.currentPassword")),o(),s("id","new-password")("title",e("resetPassword.newPassword"))("description",e("profileSettings.newPasswordInformation")),o(),s("id","new-password-confirm")("title",e("resetPassword.newPasswordConfirm")),o(),s("ngIf",S(22,27,i.isChangingPassword$))}}var Un=(()=>{class n{constructor(e,t,i,l,h){this.store=e,this.cdr=t,this.facadeService=i,this.authSettingsService=l,this.authSettingsStore=h,this.changePasswordPermission={controllerName:"PostLogin",actionName:"ChangePassword"},this.resetPasswordForm=new Me({originalPlainPassword:new me(null,{validators:[L.required]}),newPlainPassword:new me(null,{validators:[L.required]}),newPlainPasswordReference:new me(null,{validators:[L.required]})},{validators:[bn("newPlainPassword","newPlainPasswordReference"),Sn("originalPlainPassword","newPlainPassword","newPasswordSameAsOld")]}),this.alertIcon=q.AlertTriangle,this.isTokenRegistered$=this.store.select(Fe.isTokenRegistered),this.isCapsLockOn$=this.store.select(We.isCapsLockOn),this.isChangingPassword$=this.authSettingsStore.changePassword$.pipe(R(O=>({value:Jt(O)}))),this.twoFactorPermission={actionName:"",controllerName:"",permissionGuid:H.UserProfile_TwoFactor}}savePassword(){this.resetPasswordForm.markAllAsTouched(),!this.resetPasswordForm.invalid&&(this.authSettingsStore.updateChangePassword(Rt),this.authSettingsService.putPasswordChange(this.resetPasswordForm.controls.originalPlainPassword.value??"",this.resetPasswordForm.controls.newPlainPassword.value??"",this.resetPasswordForm.controls.newPlainPasswordReference.value??"").pipe(T(()=>{this.authSettingsStore.updateChangePassword(Lt),this.store.dispatch(new M.AddSuccessPushNotification({title:"notification.saveSuccess"})),this.resetPasswordForm.controls.originalPlainPassword.clearValidators(),this.resetPasswordForm.controls.newPlainPassword.clearValidators(),this.resetPasswordForm.controls.newPlainPasswordReference.clearValidators(),this.resetPasswordForm.updateValueAndValidity(),this.resetPasswordForm.reset()}),le(e=>(this.authSettingsStore.updateChangePassword(jt),Pe(e,this.resetPasswordForm),this.cdr.markForCheck(),ce(()=>e))),U(1)).subscribe())}setTwoFactorAuthentication(){this.facadeService.openDialog(It).subscribe()}switchOffTwoFactorAuthentication(){this.facadeService.openDialog(It,{isTwoFactorAuthenticationSet:!0}).subscribe()}static{this.\u0275fac=function(t){return new(t||n)(m(V),m(ue),m(Ae),m(pt),m(mt))}}static{this.\u0275cmp=y({type:n,selectors:[["neptun-auth-settings"]],features:[
1ke([mt])],decls:1,vars:0,consts:[["switchTwoFactorOff",""],[4,"transloco"],[3,"formGroup"],[1,"neptun-wrapper"],[1,"authentication-card",3,"permissionRequired"],[3,"title","hasVerticalMargin","hasHorizontalPadding"],[1,"two-factor-image-container"],["alt","Two-Factor Authentication",3,"src"],[1,"two-factor-description"],["neptun-button","","id","4c710b5e-f819-475c-bb2e-0cc07e034c6f","class","responsive","accent","flat","test-id","token-not-registered-button",3,"click",4,"ngIf","ngIfElse"],[3,"title","description","hasHorizontalPadding"],["test-id","capslock-on-callout-box","class","callout-box","bgColor","warning-light",3,"id","icon",4,"ngIf"],["formControlName","originalPlainPassword",3,"id","title"],["formControlName","newPlainPassword",3,"id","title","description"],["formControlName","newPlainPasswordReference",3,"id","title"],["neptun-button","","test-id","save-password-button","id","1e9b7a99-ff4d-44c6-bb01-732ca3359c2f","class","responsive","accent","flat",3,"permissionRequired","loading","click",4,"ngIf"],["neptun-button","","id","4c710b5e-f819-475c-bb2e-0cc07e034c6f","accent","flat","test-id","token-not-registered-button",1,"responsive",3,"click"],["test-id","token-registered-button",1,"two-factor-button-container"],["neptun-button","","id","c8347d3b-45d9-4af5-92bd-a1f695da589b","accent","flat","color","error",3,"click"],[1,"two-factor-button-container__info"],["alt","",3,"src"],["test-id","capslock-on-callout-box","bgColor","warning-light",1,"callout-box",3,"id","icon"],["neptun-button","","test-id","save-password-button","id","1e9b7a99-ff4d-44c6-bb01-732ca3359c2f","accent","flat",1,"responsive",3,"click","permissionRequired","loading"]],template:function(t,i){t&1&&d(0,Si,23,29,"ng-container",1)},dependencies:[D,ve,he,ge,_e,Se,Ce,xe,we,B,Ve,N,E,Xt,In,F,Ge],styles:["neptun-card[_ngcontent-%COMP%]{max-width:610px;margin:32px 0}neptun-callout-box[_ngcontent-%COMP%]{margin-bottom:32px}.two-factor-image-container[_ngcontent-%COMP%]{display:flex;align-items:center;gap:32px}.authentication-card[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:32px}.two-factor-description[_ngcontent-%COMP%]{word-break:break-word}@media only screen and (max-width:575px){.two-factor-image-container[_ngcontent-%COMP%]{flex-direction:column}}.two-factor-button-container[_ngcontent-%COMP%]{display:flex;flex-direction:column-reverse;align-items:center;justify-content:space-between;gap:16px}.two-factor-button-container__info[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;gap:8px;font-weight:900}@media only screen and (min-width:768px){.two-factor-button-container[_ngcontent-%COMP%]{flex-direction:row}}"],changeDetection:0})}}return n})();function bi(n,p){if(n&1){let e=b();c(0,"div",1)(1,"neptun-card")(2,"h4",2),u(3),a(),c(4,"p"),u(5),a(),c(6,"p"),u(7),a(),c(8,"button",3),_("click",function(){f(e);let i=r();return g(i.resetDefaultSettings())}),u(9),a()()()}if(n&2){let e=p.$implicit,t=r();o(3),v(e("profileSettings.defaultSettings")),o(2),P(" ",e("profileSettings.resetSettingsDesc")," "),o(2),P(" ",e("profileSettings.resetSettingsDescSecond")," "),o(),s("permissionRequired",t.resetDefaultSettingsPermission),o(),v(e("button.resetDefaultSettings"))}}var $n=(()=>{class n{constructor(e,t,i,l){this.transloco=e,this.dialogService=t,this.contextUserSettings=i,this.store=l,this.resetDefaultSettingsPermission={controllerName:"ContextUserProfile",actionName:"ResetContextUserProfile"},this.destroy$=new $}get dialogData(){return{title:this.transloco.translate("profileSettings.resetSettingsQuestion"),component:Tn,componentData:{text:this.transloco.translate("profileSettings.resetSettingsSubtitle")},actions:[new ae({color:j.Primary,text:this.transloco.translate("button.cancel")}),new be({color:j.Primary,text:this.transloco.translate("button.reset"),returnValue:!0})],filters:null}}resetDefaultSettings(){this.dialogService.openGeneralDialog(this.dialogData).afterClosed().pipe(ie(e=>e),Q(()=>this.resetContextUserProfile()),K(this.destroy$)).subscribe()}resetContextUserProfile(){return this.contextUserSettings.resetContextUserProfile().pipe(T(()=>{this.store.dispatch(At),this.store.dispatch(Nt.ClearFavorites),this.store.dispatch(new M.AddSuccessPushNotification({title:"notification.resetSuccess"}))}))}static{this.\u0275fac=function(t){return new(t||n)(m(Y),m(ee),m(Bt),m(V))}}static{this.\u0275cmp=y({type:n,selectors:[["neptun-default-settings"]],decls:1,vars:0,consts:[["class","neptun-wrapper",4,"transloco"],[1,"neptun-wrapper"],[1,"block-title"],["neptun-button","","id","6c717cc3-8f5d-4fd6-b995-b92db1229921","accent","flat",3,"click","permissionRequired"]],template:function(t,i){t&1&&d(0,bi,10,5,"div",0)},dependencies:[D,we,E,B],styles:["neptun-card[_ngcontent-%COMP%]{max-width:610px;margin:32px 0}
1neptun-card[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%], neptun-card[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin-bottom:8px}neptun-card[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-top:32px}"],changeDetection:0})}}return n})();var Ue=(function(n){return n[n.Folyamatban=510006]="Folyamatban",n[n.Elutasitva=510007]="Elutasitva",n[n.Aktiv=510008]="Aktiv",n})(Ue||{});var $e=(function(n){return n.Info="info",n.Warning="warning",n.Error="error",n})($e||{});function Ii(n,p){if(n&1&&(c(0,"p")(1,"span"),u(2),a(),u(3),a()),n&2){let e=p.$implicit;o(2),P("",e.label,": "),o(),P("",e.value," ")}}function wi(n,p){if(n&1&&(c(0,"div",7),d(1,Ii,4,2,"p",8),a()),n&2){let e=r();o(),s("ngForOf",e.dataList)}}var Rn=(()=>{class n{constructor(){this.title="",this.text=""}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=y({type:n,selectors:[["neptun-info-card"]],inputs:{title:"title",text:"text",dataList:"dataList",icon:"icon",borderColor:"borderColor"},decls:10,vars:5,consts:[[1,"info-box",3,"ngClass"],[1,"info-box__icon"],[3,"ngClass"],[1,"info-box__text"],[1,"info-box__text__title"],[1,"info-box__text__text"],["class","info-box__text__datas",4,"ngIf"],[1,"info-box__text__datas"],[4,"ngFor","ngForOf"]],template:function(t,i){t&1&&(c(0,"div",0)(1,"div",1),C(2,"i",2),a(),c(3,"div",3)(4,"div",4),u(5),a(),c(6,"div",5)(7,"p"),u(8),a()(),d(9,wi,2,1,"div",6),a()()),t&2&&(s("ngClass",i.borderColor),o(2),s("ngClass",i.icon),o(3),P(" ",i.title," "),o(3),v(i.text),o(),s("ngIf",i.dataList))},dependencies:[Ft,N,Je],styles:[".info-box[_ngcontent-%COMP%]{border-width:2px;display:flex;padding:10px;border-radius:16px}.info-box[_ngcontent-%COMP%]   .info-box__icon[_ngcontent-%COMP%]{margin-right:10px}.info-box[_ngcontent-%COMP%]   .info-box__icon[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-width:60px}.info-box[_ngcontent-%COMP%]   .info-box__text[_ngcontent-%COMP%]{color:#222}.info-box[_ngcontent-%COMP%]   .info-box__text[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin-bottom:16px}.info-box[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{font-size:60px;-webkit-text-fill-color:white;-webkit-text-stroke-width:2px}.info-box.secondary-border[_ngcontent-%COMP%]{border-color:#00dea4;border-style:solid}.info-box.secondary-border[_ngcontent-%COMP%]   .info-box__icon[_ngcontent-%COMP%]{color:#00dea4}.info-box.warning-border[_ngcontent-%COMP%]{border-color:#f2994a;border-style:dashed}.info-box.warning-border[_ngcontent-%COMP%]   .info-box__icon[_ngcontent-%COMP%]{color:#f2994a}.info-box.error-border[_ngcontent-%COMP%]{border-color:#a62c2c;border-style:solid}.info-box.error-border[_ngcontent-%COMP%]   .info-box__icon[_ngcontent-%COMP%]{color:#a62c2c}.info-box__text__title[_ngcontent-%COMP%]{font-weight:800;margin-bottom:4px}.info-box__text__datas[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-size:16px}.info-box__text__datas[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-weight:800}"],changeDetection:0})}}return n})();function Pi(n,p){if(n&1){let e=b();c(0,"div",8)(1,"button",9),_("click",function(){f(e);let i=r(3);return g(i.cancel())}),u(2),a()()}if(n&2){let e=r(2).$implicit;o(2),P(" ",e("profileSettings.disconnectAccount")," ")}}function yi(n,p){if(n&1){let e=b();c(0,"div",8)(1,"button",10),_("click",function(){f(e);let i=r(3);return g(i.accept())}),u(2),a(),c(3,"button",11),_("click",function(){f(e);let i=r(3);return g(i.reject())}),u(4),a()()}if(n&2){let e=r(2).$implicit,t=r();o(),s("permissionRequired",t.acceptEvopUserPermission),o(),P(" ",e("profileSettings.confirmation")," "),o(),s("permissionRequired",t.rejectEvopUserPermission),o(),P(" ",e("profileSettings.rejection")," ")}}function Di(n,p){if(n&1){let e=b();c(0,"div",12)(1,"div",13),u(2),a(),c(3,"div",14)(4,"p"),u(5),a()(),c(6,"ul",15)(7,"li",16),u(8),a(),c(9,"li",16),u(10),a(),c(11,"li",16)(12,"span"),u(13),a(),c(14,"span"),u(15),a(),c(16,"span")(17,"a",17),_("click",function(){f(e);let i=r().ngIf,l=r(2);return g(l.copy(i.user.neptunCode))}),C(18,"i",18),a()(),c(19,"span"),u(20),a()(),c(21,"li",16),u(22),a()()()}if(n&2){let e=r().ngIf,t=r().$implicit;o(2),v(t("profileSettings.evopAccountSettingsQuestion")),o(3),P(" ",t("profileSettings.evopAccountSettingsSteps")," "),o(3),P(" ",t("profileSettings.evopStep1")," "),o(2),P(" ",t("profileSettings.evopStep2")," "),o(3),v(t("profileSettings.evopStep31")),o(2),v(e.user.neptunCode),o(5),v(t("profileSettings.evopStep32")),o(2),P(" ",t("profileSettings.evopStep4")," ")}}function Ti(n,p){if(n&1&&(c(0,"div",3)(1,"neptun-card"),C(2,"neptun-secondary-title",4)(3,"neptun-info-card",5),d(4,Pi,3,1,"div",6)(5,yi,5,4,"div",6)(6,Di,23,8,"div",7),a()()),n&2){let e=p.ngIf,t=r().$implicit;o(2),s("title",t("profileSettings.evopAccountSettings"))("description",t("profileSettings.evopAccountSettingsDescription"))("hasHorizontalPadding",!1),o(),s("title",e.infoCard.title)("text",e.infoCard.text)("dataList",e.infoCard.dataList)("icon",e.infoCard.icon)("borderColor",e.infoCard.borderColor),o(),s("ngIf",e.infoCard.type==="info"),o(),s("ngIf",e.infoCard.type==="warning"),o(),s("ngIf",e.infoCard.type!=="info")}}function Ei(n,p){n&1&&(c(0,"div",3),C(1,"neptun-tab-details-placeholder"),a())}function ki(n,p){if(n&1&&(I(0),d(1,Ti,7,11,"div",2),x(2,"async"),d(3,Ei,2,0,"ng-template",null,0,G),w()),n&2){let e=k(4),t=r();o(),s("ngIf",S(2,2,t.vm$))("ngIfElse",e)}}var Ln=(()=>{class n{getDatas(e){let t=[{label:this.transloco.translate("global.name"),value:e.name},{label:this.transloco.translate("personal.email"),value:e.email}];return e.entityCreated&&e.status===Ue.Folyamatban&&t.push({label:this.transloco.translate("profileSettings.initiativeDate"),value:this.dateLocalizationService.localizeDate(e.entityCreated,void 0,{dateStyle:"long",timeStyle:"short"})}),t}constructor(e,t,i,l,h,O){this.clipboardService=e,this.transloco=t,this.dateLocalizationService=i,this.dialogService=l,this.evopApiService=h,this.profileSettingsService=O,this.store=yt(V),this.acceptEvopUserPermission={controllerName:"Evop",actionName:"AcceptEVOPUser"},this.rejectEvopUserPermission={controllerName:"Evop",actionName:"RefuseEVOPUser"}
1,this.destroy$=new $,this.refreshEvopUserSubject=new ze(!1),this.refreshEvopUser$=this.refreshEvopUserSubject.asObservable(),this.evopUserData$=this.refreshEvopUser$.pipe(Q(()=>this.evopApiService.evopUserData$())),this.user$=this.store.select(Fe.currentUser),this.Icons=q,this.infoCard$=this.evopUserData$.pipe(R(z=>{if(z)switch(z.status){case Ue.Aktiv:return{title:this.transloco.translate("profileSettings.accountActive"),text:this.transloco.translate("profileSettings.accountActiveDescription"),dataList:this.getDatas(z),type:$e.Info,icon:q.CheckMark,borderColor:j.SecondaryBorder};case Ue.Folyamatban:return{title:this.transloco.translate("profileSettings.comfirmationRequired"),text:this.transloco.translate("profileSettings.comfirmationRequiredDescription"),dataList:this.getDatas(z),type:$e.Warning,icon:q.AlertTriangle,borderColor:j.WarningBorder};case Ue.Elutasitva:return{title:this.transloco.translate("profileSettings.noEvopUser"),text:this.transloco.translate("profileSettings.noEvopUserDescription"),type:$e.Error,icon:q.CircleX,borderColor:j.ErrorBorder}}else return{title:this.transloco.translate("profileSettings.noEvopUser"),text:this.transloco.translate("profileSettings.noEvopUserDescription"),type:$e.Error,icon:q.CircleX,borderColor:j.ErrorBorder}})),this.vm$=de([this.infoCard$,this.user$]).pipe(R(([z,te])=>({infoCard:z,user:te})))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}refresh(){this.refreshEvopUserSubject.next(!0)}copy(e){this.clipboardService.copy(e)}cancel(){this.dialogService.openConfirmActionDialog({title:this.transloco.translate("profileSettings.confirmEvopDetach"),body:this.transloco.translate("notification.cannotUndo"),actions:[new ae({text:this.transloco.translate("button.cancel")}),new be({color:"error",text:this.transloco.translate("button.detach"),returnValue:!1,webRequestCallback:()=>this.evopApiService.cancelEVOPUser$().pipe(T(()=>this.refresh()))})]}).afterClosed().subscribe()}accept(){this.evopApiService.acceptEVOPUser$().pipe(T(()=>this.refresh()),K(this.destroy$)).subscribe()}reject(){this.evopApiService.rejectEVOPUser$().pipe(T(()=>this.refresh()),K(this.destroy$)).subscribe()}static{this.\u0275fac=function(t){return new(t||n)(m(gn),m(Y),m(Yt),m(ee),m(hn),m(Oe))}}static{this.\u0275cmp=y({type:n,selectors:[["neptun-evop-settings"]],decls:1,vars:0,consts:[["loadingPlaceholder",""],[4,"transloco"],["class","neptun-wrapper",4,"ngIf","ngIfElse"],[1,"neptun-wrapper"],[3,"title","description","hasHorizontalPadding"],[3,"title","text","dataList","icon","borderColor"],["class","button-group",4,"ngIf"],["class","guide",4,"ngIf"],[1,"button-group"],["neptun-button","","accent","stroked","color","error",3,"click"],["neptun-button","","accent","stroked",3,"click","permissionRequired"],["neptun-button","","accent","stroked","color","error",3,"click","permissionRequired"],[1,"guide"],[1,"guide__title"],[1,"guide__text"],[1,"guide__list"],[1,"guide__list__item"],[3,"click"],[1,"icon-copy"]],template:function(t,i){t&1&&d(0,ki,5,4,"ng-container",1)},dependencies:[D,N,we,Ve,Rn,E,B,st,F],styles:["neptun-card[_ngcontent-%COMP%]{max-width:610px;margin:32px 0}neptun-info-card[_ngcontent-%COMP%]{display:block;margin:32px 0}h4[_ngcontent-%COMP%]{margin-bottom:8px}.button-group[_ngcontent-%COMP%]{display:flex;gap:20px}.guide[_ngcontent-%COMP%]{margin-top:32px}.guide[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin-bottom:20px}.guide__title[_ngcontent-%COMP%]{font-weight:800;font-size:16px;margin-bottom:4px}.guide__list[_ngcontent-%COMP%]{counter-reset:number;list-style-type:none}.guide__list__item[_ngcontent-%COMP%]{margin-bottom:20px;display:flex;align-items:center}.guide__list__item[_ngcontent-%COMP%]:before{counter-increment:number;content:counter(number);background:#f2f3fb;border-radius:50%;min-width:32px;height:32px;display:inline-block;line-height:32px;text-align:center;font-weight:800;margin-right:12px}"],changeDetection:0})}}return n})();var Fi=["createGroupDialogContent"];function Mi(n,p){if(n&1){let e=b();I(0),c(1,"neptun-basic-dialog-layout")(2,"h1",2),u(3),a(),c(4,"section",3)(5,"neptun-create-group-dialog-content",4,0),_("createGroupAction",function(i){f(e);let l=r();return g(l.createGroup(i))}),a()(),I(7,5),c(8,"div",6)(9,"a",7),_("click",function(){f(e);let i=r();return g(i.cancel())}),u(10),a(),c(11,"button",8),x(12,"async"),x(13,"async"),_("click",function(){f(e);let i=r();return g(i.triggerCreateGroup())}),u(14),a()(),w(),a(),w()}if(n&2){let e=p.$implicit,t=r();o(3),v(e("profileSettings.createGroup")),o(7),v(e("button.cancel")),o(),Et("spinner",S(12,7,t.loading$)===!0),s("disabled",S(13,9,t.loading$)===!0)("permissionRequired",t.createGroupPermission),o(3),P(" ",e("profileSettings.create")," ")}}var Bn=(()=>{class n{constructor(e,t){this.personGroupService=e,this.dialogRef=t,this.createGroupPermission={controllerName:"PersonGroup",actionName:"CreatePersonGroup"},this.onSave=new J,this.loading$=this.personGroupService.loading$}triggerCreateGroup(){this.createGroupDialogContent.createGroup()}createGroup(e){this.personGroupService.createPersonGroup(e).pipe(T(()=>{this.onSave.emit(e),this.dialogRef.close(!0)}),U(1)).subscribe()}cancel(){this.dialogRef.close()}static{this.\u0275fac=function(t){return new(t||n)(m(lt),m(X))}}static{this.\u0275cmp=y({type:n,selectors:[["neptun-create-group-modal"]],viewQuery:function(t,i){if(t&1&&He(Fi,5),t&2){let l;Qe(l=Ke())&&(i.createGroupDialogContent=l.first)}},outputs:{onSave:"onSave"},decls:1,vars:0,consts:[["createGroupDialogContent",""],[4,"transloco"],["title","",1,"title"],["content","",1,"content"],[3,"createGroupAction"],["actions",""],["neptunBasicDialogLayoutActions",""],["mat-dialog-close","",3,"click"],["neptun-button","","accent","flat",3,"click","disabled","permissionRequired"]],template:function(t,i){t&1&&d(0,Mi,15,11,"ng-container",1)},dependencies:[D,Z,An,Ie,E,B,F],encapsulation:2,changeDetection:0})}}return n})();var Re=(()=>{class n extends qt{constructor(e,t){super(),this.httpClient=e,this.userSearchApiService=t,this.listItemCount=6,this.columns=[{text:"userSearch.user",key:"printName",disableSort:!0},{text:"publication.comment",key:"noteInGroup",disableSort:!0}]}getItemsFromServer(e,t,i,l){let h={printName:"asc"};return this.userSearchApiService.getUsersByGroup$(e,l,h,i)}addPersonGroupMembers(e){return this.httpClient.post(`${ne.settings.apiServer.url}PersonGroup/AddPersonGroupMembers`,e)}
1savePersonGroupMemberNote(e){return this.httpClient.post(`${ne.settings.apiServer.url}PersonGroup/SavePersonGroupMemberNote`,e)}deletePersonGroup(e){return this.httpClient.post(`${ne.settings.apiServer.url}PersonGroup/DeletePersonGroup`,e)}selectItems(e){super.filterActions([],e)}static{this.\u0275fac=function(t){return new(t||n)(pe(fe),pe(sn))}}static{this.\u0275prov=oe({token:n,factory:n.\u0275fac})}}return n})();var dt=(()=>{class n{constructor(e){this.httpClient=e,this.actionSubject=new $}getOwnPersonGroups(){return this.httpClient.get(`${ne.settings.apiServer.url}PersonGroup/GetOwnPersonGroups`).pipe(R(e=>e.data))}removePersonGroupMember(e){return this.httpClient.post(`${ne.settings.apiServer.url}PersonGroup/RemovePersonGroupMember`,e)}static{this.\u0275fac=function(t){return new(t||n)(pe(fe))}}static{this.\u0275prov=oe({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();function Ni(n,p){if(n&1){let e=b();I(0),c(1,"neptun-basic-dialog-layout")(2,"h1",1),u(3),a(),c(4,"section",2)(5,"div",3)(6,"span",4),u(7),a(),C(8,"span",5),c(9,"p",6),u(10),a()(),c(11,"div",3)(12,"span",4),u(13),a(),C(14,"span",5),c(15,"p",6),u(16),a()(),c(17,"div",3)(18,"span",4),u(19),a(),C(20,"span",5),c(21,"p",6),u(22),a()()(),I(23,7),c(24,"button",8),_("click",function(){f(e);let i=r();return g(i.close())}),u(25),a(),w(),a(),w()}if(n&2){let e=p.$implicit,t=r();o(3),v(e("profileSettings.groupDetails")),o(4),v(e("profileSettings.groupName")),o(3),v(t.data.groupName),o(3),v(e("profileSettings.numberOfMembers")),o(3),v(t.data.memberCount),o(3),v(e("personal.note")),o(3),v(t.data.groupDescription),o(2),s("id","8a4351ea-9b97-4b30-ae40-a69f59341f91")("accent","flat"),o(),P(" ",e("button.ok")," ")}}var zn=(()=>{class n{constructor(e,t){this.data=e,this.dialogRef=t}close(){this.dialogRef.close()}static{this.\u0275fac=function(t){return new(t||n)(m(re),m(X))}}static{this.\u0275cmp=y({type:n,selectors:[["neptun-details-group-modal"]],decls:1,vars:0,consts:[[4,"transloco"],["title","",1,"title"],["content","",1,"content"],[1,"detail-row"],[1,"label"],[1,"space"],[1,"text"],["actions",""],["neptun-button","",3,"click","id","accent"]],template:function(t,i){t&1&&d(0,Ni,26,10,"ng-container",0)},dependencies:[D,Z,E],styles:[".content[_ngcontent-%COMP%]   .detail-row[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:baseline;margin:20px 0}.content[_ngcontent-%COMP%]   .detail-row[_ngcontent-%COMP%]   .space[_ngcontent-%COMP%]{flex:1}.content[_ngcontent-%COMP%]   .detail-row[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%]{font-size:13px;flex:3;word-break:break-word}.content[_ngcontent-%COMP%]   .detail-row[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{flex:4}"],changeDetection:0})}}return n})();function Vi(n,p){if(n&1){let e=b();I(0),c(1,"neptun-basic-dialog-layout")(2,"section",1),C(3,"neptun-user-details-dialog-content",2),a(),I(4,3),c(5,"button",4),_("click",function(){f(e);let i=r();return g(i.close())}),u(6),a(),w(),a(),w()}if(n&2){let e=p.$implicit,t=r();o(3),s("user",t.data),o(2),s("id","cd06d6bb-9e1f-4864-85b0-1553e0f02706")("accent","flat"),o(),P(" ",e("button.close")," ")}}var Hn=(()=>{class n{constructor(e,t){this.data=e,this.dialogRef=t}close(){this.dialogRef.close()}static{this.\u0275fac=function(t){return new(t||n)(m(re),m(X))}}static{this.\u0275cmp=y({type:n,selectors:[["neptun-details-user-modal"]],decls:1,vars:0,consts:[[4,"transloco"],["content","",1,"content"],[3,"user"],["actions",""],["neptun-button","",3,"click","id","accent"]],template:function(t,i){t&1&&d(0,Vi,7,4,"ng-container",0)},dependencies:[D,Z,pn,E],encapsulation:2,changeDetection:0})}}return n})();function Ui(n,p){if(n&1){let e=b();I(0),c(1,"form",1),_("ngSubmit",function(){f(e);let i=r();return g(i.onSubmit())}),c(2,"neptun-basic-dialog-layout")(3,"h1",2),u(4),a(),c(5,"section",3),C(6,"neptun-form-input",4)(7,"neptun-form-textarea",5),a(),I(8,6),c(9,"div",7)(10,"button",8),_("click",function(){f(e);let i=r();return g(i.cancel())}),u(11),a(),c(12,"button",9),x(13,"async"),x(14,"async"),u(15),a()(),w(),a()(),w()}if(n&2){let e,t,i=p.$implicit,l=r();o(),s("formGroup",l.formGroup)("neptunFocusInvalidInput",l.formGroup),o(3),v(i("profileSettings.groupEdit")),o(2),s("title",i("profileSettings.groupName"))("maxLength",205)("required",!0),o(),s("placeholder",i("global.writeHere"))("title",i("personal.note"))("maxLength",205),o(3),s("id","4e000e4b-1308-4c9f-8fec-b6b6b2bb02ab")("color","white"),o(),P(" ",i("button.cancel")," "),o(),s("permissionRequired",l.updatePermission)("id","63c47d4d-a370-4048-bda2-647e09df3321")("accent","flat")("type","submit")("loading",(e=S(13,19,l.isLoadingSubject))!==null&&e!==void 0?e:!1)("disabled",(t=S(14,21,l.isLoadingSubject))!==null&&t!==void 0?t:!1),o(3),P(" ",i("button.save")," ")}}var Qn=(()=>{class n{constructor(e,t,i,l,h,O){this.data=e,this.personGroupService=t,this.dialogRef=i,this.store=l,this.facadeService=h,this.permissionService=O,this.onSave=new J,this.onDelete=new J,this.isLoadingSubject=ne
1w $,this.formGroup=new Me({groupName:new me("",{nonNullable:!0,validators:[L.maxLength(205),L.required]}),groupDescription:new me("",{nonNullable:!0,validators:[L.maxLength(205)]})}),this.updatePermission={controllerName:"PersonGroup",actionName:"UpdatePersonGroup"}}ngOnInit(){this.formGroup.patchValue(this.data)}onSubmit(){if(this.formGroup.markAllAsTouched(),this.formGroup.invalid)return;this.isLoadingSubject.next(!0);let e=se({groupId:this.data.groupId},this.formGroup.getRawValue());this.personGroupService.updatePersonGroup(e).pipe(U(1)).subscribe({next:()=>{this.onSave.emit(e),this.store.dispatch(new M.AddSuccessPushNotification({title:"notification.saveSuccess"})),this.dialogRef.close(e)},error:()=>{this.isLoadingSubject.next(!1)},complete:()=>{this.isLoadingSubject.next(!1)}})}cancel(){this.dialogRef.close()}static{this.\u0275fac=function(t){return new(t||n)(m(re),m(lt),m(X),m(V),m(Ae),m(Ye))}}static{this.\u0275cmp=y({type:n,selectors:[["neptun-update-group-modal"]],outputs:{onSave:"onSave",onDelete:"onDelete"},decls:1,vars:0,consts:[[4,"transloco"],[1,"form",3,"ngSubmit","formGroup","neptunFocusInvalidInput"],["title","",1,"title"],["content","",1,"content"],["formControlName","groupName","id","staircase",1,"input",3,"title","maxLength","required"],["formControlName","groupDescription","id","staircase",1,"input","description",3,"placeholder","title","maxLength"],["actions",""],["neptunBasicDialogLayoutActions",""],["neptun-button","",3,"click","id","color"],["neptun-button","",3,"permissionRequired","id","accent","type","loading","disabled"]],template:function(t,i){t&1&&d(0,Ui,16,23,"ng-container",0)},dependencies:[D,ve,he,ge,_e,zt,Se,Ce,xe,Ne,Z,Ze,rt,Ie,E,B,F],encapsulation:2,changeDetection:0})}}return n})();var Kn=(()=>{class n{constructor(e){this.httpClient=e}savePersonGroupMemberNote(e){return this.httpClient.post(`${ne.settings.apiServer.url}PersonGroup/SavePersonGroupMemberNote`,e)}static{this.\u0275fac=function(t){return new(t||n)(pe(fe))}}static{this.\u0275prov=oe({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();function Ri(n,p){if(n&1){let e=b();I(0),c(1,"form",1),_("ngSubmit",function(){f(e);let i=r();return g(i.onSubmit())}),c(2,"neptun-basic-dialog-layout")(3,"h1",2),u(4),a(),c(5,"section",3)(6,"div",4)(7,"span"),u(8),a(),c(9,"span",5),u(10),a()(),C(11,"neptun-form-textarea",6),a(),I(12,7),c(13,"div",8)(14,"button",9),_("click",function(){f(e);let i=r();return g(i.cancel())}),u(15),a(),c(16,"button",10),x(17,"async"),x(18,"async"),u(19),a()(),w(),a()(),w()}if(n&2){let e,t,i=p.$implicit,l=r();o(),s("formGroup",l.formGroup)("neptunFocusInvalidInput",l.formGroup),o(3),v(i("appointmentBooking.editComment")),o(4),v(i("profileSettings.toThisUser")+" "),o(2),v(l.data.name),o(),s("placeholder",i("publication.comment"))("title",i("publication.comment"))("maxLength",l.noteMaxLength),o(3),s("id","8a954a87-42fd-4d64-affb-89e8720bf7ea")("color","white"),o(),P(" ",i("button.cancel")," "),o(),s("id","c163644d-9dc1-40fd-9472-4c97c0db1784")("accent","flat")("type","submit")("loading",(e=S(17,17,l.isLoadingSubject))!==null&&e!==void 0?e:!1)("disabled",(t=S(18,19,l.isLoadingSubject))!==null&&t!==void 0?t:!1),o(3),P(" ",i("button.save")," ")}}var Jn=500,Wn=(()=>{class n{constructor(e,t,i){this.data=e,this.personUpdateService=t,this.dialogRef=i,this.noteMaxLength=Jn,this.isLoadingSubject=new $,this.formGroup=new Me({note:new me("",{nonNullable:!1,validators:[L.maxLength(Jn)]})})}ngOnInit(){this.formGroup.patchValue({note:this.data.note})}onSubmit(){if(this.formGroup.markAllAsTouched(),this.formGroup.invalid)return;this.isLoadingSubject.next(!0);let e={groupId:this.data.groupId,userId:this.data.userId,note:this.formGroup.getRawValue().note};this.personUpdateService.savePersonGroupMemberNote(e).pipe(U(1),le(t=>(Pe(t,this.formGroup),ce(()=>t)))).subscribe({next:()=>{this.dialogRef.close(!0)},error:()=>{this.isLoadingSubject.next(!1)},complete:()=>{this.isLoadingSubject.next(!1)}})}cancel(){this.dialogRef.close()}static{this.\u0275fac=function(t){return new(t||n)(m(re),m(Kn),m(X))}}static{this.\u0275cmp=y({type:n,selectors:[["neptun-update-person-modal"]],decls:1,vars:0,consts:[[4,"transloco"],[1,"form",3,"ngSubmit","formGroup","neptunFocusInvalidInput"],["t
1itle","",1,"title"],["content",""],[1,"name-container"],[1,"name"],["formControlName","note","id","staircase",1,"input","note",3,"placeholder","title","maxLength"],["actions",""],["neptunBasicDialogLayoutActions",""],["neptun-button","",3,"click","id","color"],["neptun-button","",3,"id","accent","type","loading","disabled"]],template:function(t,i){t&1&&d(0,Ri,20,21,"ng-container",0)},dependencies:[D,ve,he,ge,_e,Se,Ce,xe,Ne,Z,rt,Ie,E,F],styles:[".name-container[_ngcontent-%COMP%]{padding-bottom:16px;padding-left:2px}.name[_ngcontent-%COMP%]{font-weight:800;padding-bottom:20px}"],changeDetection:0})}}return n})();var Li=()=>({iconClass:"icon-plus",fontSize:"21px",color:"tertiary"}),Bi=()=>({iconClass:"icon-trash",fontSize:"21px",color:"tertiary"}),qi=()=>({iconClass:"icon-pencil-edit",fontSize:"21px",color:"tertiary"}),zi=()=>({iconClass:"icon-comment",fontSize:"21px",color:"tertiary"}),Hi=()=>({iconClass:"icon-info",fontSize:"21px",color:"tertiary"});function Qi(n,p){if(n&1){let e=b();c(0,"button",8),_("click",function(i){return f(e),r(3).openDeleteGroupConfirmDialog(),g(i.stopPropagation())}),a()}if(n&2){let e=r(2).$implicit,t=r();s("permissionRequired",t.deleteGroupPermission)("id","delete-icon_"+t.basicGroupInfo.groupId)("prefixIcon",W(4,Bi)),Ee("aria-label",e("fileUpload.deleteGroup"))}}function Ki(n,p){if(n&1){let e=b();I(0),c(1,"button",8),_("click",function(i){return f(e),r(3).openUpdateGroupModal(),g(i.stopPropagation())}),a(),c(2,"button",13),_("click",function(i){return f(e),r(3).openNewMessageDialog(),g(i.stopPropagation())}),a(),c(3,"button",13),_("click",function(i){return f(e),r(3).openGroupDetailsModal(),g(i.stopPropagation())}),a(),w()}if(n&2){let e=r(2).$implicit,t=r();o(),s("permissionRequired",t.editGroupPermission)("id","edit-group-icon_"+t.basicGroupInfo.groupId)("prefixIcon",W(10,qi)),Ee("aria-label",e("profileSettings.groupEdit")),o(),s("id","new_message-icon_"+t.basicGroupInfo.groupId)("prefixIcon",W(11,zi)),Ee("aria-label",e("profileSettings.writeMessage")),o(),s("id","group-info-icon_"+t.basicGroupInfo.groupId)("prefixIcon",W(12,Hi)),Ee("aria-label",e("profileSettings.groupDetails"))}}function Ji(n,p){n&1&&C(0,"i",14)}function Wi(n,p){n&1&&C(0,"i",15)}function Xi(n,p){n&1&&C(0,"i",15)}function Yi(n,p){if(n&1){let e=b();c(0,"neptun-data-table",16),x(1,"async"),x(2,"async"),x(3,"async"),x(4,"async"),x(5,"async"),_("toggleFilter",function(){f(e);let i=r(3);return g(i.toggleFilter())})("getNext",function(i){f(e);let l=r(3);return g(l.getNextItems(i))})("selected",function(i){f(e);let l=r(3);return g(l.selectUser(i))})("actionClick",function(i){f(e);let l=r().ngIf,h=r(2);return g(h.actionClick(i,l.selectedItems))}),a()}if(n&2){let e=r().ngIf,t=r(2);s("dataSource",e.result)("columns",S(1,14,t.displayedColumns$))("loadingPlaceholder",S(2,16,t.loadingPlaceholder$))("filterCount",S(3,18,t.filterCount$))("isFilterOpen",S(4,20,t.isFilterOpen$))("isNextVisible",e.isNextVisible)("isOnlyOneRowInUIDisplayState",!0)("selectable",!0)("backToTopEnabled",!1)("tableIsInAccordion",!0)("hasUserSelectListItem",!0)("selectedCount",e.selectedItems==null?null:e.selectedItems.length)("actions",S(5,22,t.actionArray$))("isTableActionsBarHidden",!0)}}function Zi(n,p){if(n&1){let e=b();c(0,"mat-accordion")(1,"mat-expansion-panel",4),_("opened",function(){f(e);let i=r(2);return g(i.accordionOpened=!0)})("closed",function(){f(e);let i=r(2);return g(i.accordionOpened=!1)}),c(2,"mat-expansion-panel-header",5)(3,"mat-panel-title")(4,"h4"),u(5),a()(),c(6,"div",6),d(7,Qi,1,5,"button",7),c(8,"button",8),_("click",function(i){let l=f(e).ngIf;return r(2).openAddUserModal(l.result),g(i.stopPropagation())}),a(),d(9,Ki,4,13,"ng-container",3),c(10,"div",9),d(11,Ji,1,0,"i",10)(12,Wi,1,0,"ng-template",null,1,G),a(),d(14,Xi,1,0,"ng-template",null,1,G),a()(),c(16,"div",11),d(17,Yi,6,24,"neptun-data-table",12),x(18,"async"),a()()()}if(n&2){let e=p.ngIf,t=k(13),i=r().$implicit,l=k(4),h=r();o(),s("expanded",!0),o(4),v(h.basicGroupInfo.groupName),o(2),s("ngIf",h.basicGroupInfo.groupId),o(),s("permissionRequired",h.addPersonToGroupPermission)("id","add-person-icon_"+h.basicGroupInfo.groupId)("prefixIcon",W(14,Li)),Ee("aria-label",i("profileSettings.addUser")),o(),s("ngIf",h.basicGroupInfo.groupId),o(2),s("ngIf",h.accordionOpened)("ngIfElse",t),o(6),s("ngIf",e.result.length||S(18,12,h.loadingPlaceholder$)===!0)("ngIfElse",l)}}function eo(n,p){if(n&1&&(c(0,"div",11),C(1,"neptun-data-missing-placeholder",17),x(2,"assetUrl"),a()),n&2){let e=r().$implicit;o(),s("title",e("profileSettings.noUsersInGroup"))("imageUrl",S(2,2,"assets/images/no-data/no-displayable-queries.svg"))}}function to(n,p){if(n&1&&(I(0),d(1,Zi,19,15,"mat-accordion",3),x(2,"async"),d(3,eo,3,4,"ng-template",null,0,G),w()),n&2){let e=r();o(),s("ngIf",S(2,1,e.dataSource$))}}var Xn=(()=>{class n extends Gn{constructor(e,t,i,l,h,O,z,te,ut,ft,gt,_t){super(t,e),this.facadeService=e,this.personGroupService=t,this.translocoService=i,this.store=l,this.dialogService=h,this.changeDetectorRef=O,this.userSelectDialogService=z,this.userListService=te,this.userListByGroupService=ut,this.userProfileService=ft,this.listItemConverter=gt,this.personGroupsService=_t,this.deleteGroupPermission={controllerName:"PersonGroup",actionName:"DeletePersonGroup"},this.addPersonToGroupPermission={controllerName:"PersonGroup",actionName:"AddPersonGroupMembers"},this.editGroupPermission={controllerName:"PersonGroup",actionName:"UpdatePersonGroup"},this.interfaceIdentity=at.PersonGroup,this.selectedUsers=new J,this.groupDeleted=new J,this.selectedItems$=this.personGroupService.selectedItems$,this.actionArray$=this.personGroupService.actionsArray$,this.accordionOpened=!0,this.filterModel={requestId:""},this.listContainerKey=at.UserSelectUserList,this.listByGroupContainerKey=at.UserSelectUserListByGroup}ngOnInit(){super.ngOnInit(),this.defaultFilterModel={requestId:this.basicGroupInfo.groupId},this.personGroupService.setFilterModel({requestId:this.basicGroupInfo.groupId}),this.dataSource$=de([this.dataSourceWithPaging$,this.personGroupService.deselectAll$,this.personGroupService.selectedItems$]).pipe(Q(([e,t,i])=>je(()=>!!e.result.length,this.userProfileService.getUsersAvatar(e.result.map(l=>l.userId),it.Thumbnail).pipe(R(l=>({result:e.result.map(h=>ye(se({},h),{userAvatar:l.find(O=>O.userId.toString()===h.userId)})),isNextVisible:e.isNextVisible,deselect:t,selectedItems:i}))),Ct({result:[],isNextVisible:!1,deselect:!1,selectedItems:[]}))),R(e=>({result:e.result.map(t=>this.convertToTableRow(t,e.deselect,e.selectedItems.some(i=>
1i.userId===t.userId))),selectedItems:e.selectedItems,isNextVisible:e.isNextVisible}))),this.handleActionsBetweenParent()}handleActionsBetweenParent(){this.personGroupsService.actionSubject.asObservable().pipe(U(1),T(()=>{this.personGroupService.filterActions([],[])})).subscribe()}openAddUserModal(e){je(()=>e.length>0,this.listItemConverter.getUserSelectItem("userId","printName",e.map(t=>t.data)),Ct([])).pipe(Q(t=>this.userSelectDialogService.openUserSelectDialog(!1,this.userListService,this.userListByGroupService,this.listContainerKey,this.listByGroupContainerKey,t,!0).pipe(ie(i=>!!i),Q(i=>this.personGroupService.addPersonGroupMembers({groupId:this.basicGroupInfo.groupId,userIds:i.selectedUsers?.map(l=>l.data.userId)??[]}).pipe(T(()=>{this.store.dispatch(new M.AddSuccessPushNotification({title:"notification.saveSuccess"}));let l=i.selectedUsers?.length||0;this.basicGroupInfo.memberCount+=l,this.reloadTable()})))))).subscribe()}openUpdateGroupModal(){this.dialogService.openDialog(Qn,this.basicGroupInfo).afterClosed().subscribe(e=>{e&&(e.groupId?(this.basicGroupInfo.groupName=e.groupName,this.basicGroupInfo.groupDescription=e.groupDescription,this.changeDetectorRef.detectChanges()):this.groupDeleted.emit())})}openGroupDetailsModal(){this.dialogService.openDialog(zn,this.basicGroupInfo)}selectUser(e){this.personGroupService.selectItems(e);let t=e.map(i=>({groupId:this.basicGroupInfo.groupId,userId:i.userId,userName:i.printName}));t.length||t.push({groupId:this.basicGroupInfo.groupId,userId:void 0}),this.selectedUsers.emit(t)}convertToTableRow(e,t,i){let l=ye(se({},e),{userSelectListItem:this.getUserSelectListItem(e)}),h=this.createDetailsCallback(l);return{data:l,selected:t?!1:i,detailsCallback:h,actions:{details:{color:j.Primary,icon:q.Info,text:"button.details",callback:h},apply:{text:"button.edit",hasArrow:!0,color:j.Primary,callback:this.createEditCallback(l),permission:{controllerName:"PersonGroup",actionName:"SavePersonGroupMemberNote"}}}}}createDetailsCallback(e){return()=>{this.dialogService.openDialog(Hn,e)}}createEditCallback(e){return()=>{this.dialogService.openDialog(Wn,{groupId:this.basicGroupInfo.groupId,userId:e.userId,note:e.noteInGroup,name:e.printName}).afterClosed().subscribe(t=>{t&&(this.reloadTable(),this.store.dispatch(new M.AddSuccessPushNotification({title:"notification.saveSuccess"})))})}}openDeleteGroupConfirmDialog(){this.dialogService.openConfirmActionDialog({title:this.translocoService.translate("profileSettings.confirmDeleteGroup"),body:[this.translocoService.translate("exams.operationCanNotBeCanceled")],actions:[new ae({text:this.translocoService.translate("button.cancel")}),new be({color:"error",text:this.translocoService.translate("button.delete"),returnValue:!0,webRequestCallback:()=>this.deletePersonGroup()})]}).afterClosed().subscribe()}deletePersonGroup(){return this.personGroupService.deletePersonGroup({groupId:this.basicGroupInfo.groupId}).pipe(T(()=>{this.store.dispatch(new M.AddSuccessPushNotification({title:"notification.deleteSuccess"})),this.groupDeleted.emit()}))}reloadTable(){this.selectUser([]),this.personGroupService.filterItems(this.filterModel)}getUserSelectListItem(e){return{userId:e.userId,primary:e.printName,userAvatar:e.userAvatar,tertiary:this.isStudent(e)?[{text:this.translocoService.translate("global.student"),color:j.SkinTone},{text:e.additionalStudentData.trainingNames}]:void 0,quarterly:this.isEmployee(e)?[{text:this.translocoService.translate("questionnaire.lecturers"),color:j.SeaBlue},{text:e.additionalEmployeeData.organizationNames}]:void 0}}isEmployee(e){return!!e.additionalEmployeeData.organizationNames.length}isStudent(e){return!!e.additionalStudentData.trainingNames.length}openNewMessageDialog(){this.dataSourceAllItem$.pipe(U(Xe.ONE),Q(e=>{let t=e.map(i=>({userName:i.printName,userId:i.userId}));return this.dialogService.openDialog(ct,{targetUsers:t,endpoint:"profilesetting/groups/send"}).afterClosed()})).subscribe()}static{this.\u0275fac=function(t){return new(t||n)(m(Ae),m(Re),m(Y),m(V),m(ee),m(ue),m(fn),m(ln),m(cn),m(ot),m(an),m(dt))}}static{this.\u0275cmp=y({type:n,selectors:[["neptun-person-group"]],inputs:{basicGroupInfo:"basicGroupInfo"},outputs:{selectedUsers:"selectedUsers",groupDeleted:"groupDeleted"}
1,features:[ke([Re]),Tt],decls:1,vars:0,consts:[["noData",""],["panelClosed",""],[4,"transloco"],[4,"ngIf"],["hideToggle","",3,"opened","closed","expanded"],[1,"accordion-header"],[1,"icon-wrapper"],["class","icon-container","neptun-button","","accent","icon","role","img",3,"permissionRequired","id","prefixIcon","click",4,"ngIf"],["neptun-button","","accent","icon","role","img",1,"icon-container",3,"click","permissionRequired","id","prefixIcon"],[1,"icon-container"],["class","icon-chevron-top",4,"ngIf","ngIfElse"],[1,"neptun-wrapper"],["class","data-table",3,"dataSource","columns","loadingPlaceholder","filterCount","isFilterOpen","isNextVisible","isOnlyOneRowInUIDisplayState","selectable","backToTopEnabled","tableIsInAccordion","hasUserSelectListItem","selectedCount","actions","isTableActionsBarHidden","toggleFilter","getNext","selected","actionClick",4,"ngIf","ngIfElse"],["neptun-button","","accent","icon","role","img",1,"icon-container",3,"click","id","prefixIcon"],[1,"icon-chevron-top"],[1,"icon-chevron-bottom"],[1,"data-table",3,"toggleFilter","getNext","selected","actionClick","dataSource","columns","loadingPlaceholder","filterCount","isFilterOpen","isNextVisible","isOnlyOneRowInUIDisplayState","selectable","backToTopEnabled","tableIsInAccordion","hasUserSelectListItem","selectedCount","actions","isTableActionsBarHidden"],[3,"title","imageUrl"]],template:function(t,i){t&1&&d(0,to,5,3,"ng-container",2)},dependencies:[D,N,rn,tn,nn,on,E,B,kn,tt,F,Ge],styles:[".accordion-header[_ngcontent-%COMP%], .accordion-header[_ngcontent-%COMP%]:hover{background-color:#e8e9f6}.neptun-wrapper[_ngcontent-%COMP%]{padding:0;overflow:hidden}.icon-container[_ngcontent-%COMP%]{height:44px;width:48px;display:flex;justify-content:center;align-items:center}.icon-container[_ngcontent-%COMP%]:hover{background-color:#d6e2ff;border-radius:8px}.icon-container[_ngcontent-%COMP%] > i[_ngcontent-%COMP%]{font-size:21px}.icon-wrapper[_ngcontent-%COMP%]{display:flex}.data-table[_ngcontent-%COMP%]{margin-top:0}  .mat-expansion-panel-header.accordion-header,   .mat-expansion-panel-header.accordion-header:focus,   .mat-expansion-panel-header.accordion-header:hover{height:60px;padding-right:12px;border-radius:0;border-bottom:1px solid rgba(34,34,34,.2);background:#f2f3fb4d 30%}  .mat-expansion-panel-header.accordion-header.mat-expanded,   .mat-expansion-panel-header.accordion-header:focus.mat-expanded,   .mat-expansion-panel-header.accordion-header:hover.mat-expanded{background:#e8e9f6}  .mat-accordion .mat-expansion-panel.mat-expansion-panel-spacing.ng-star-inserted{border-radius:0}  .mat-accordion .mat-expansion-panel .mat-expansion-panel-content,   .mat-accordion .mat-expansion-panel .mat-expansion-panel-body{overflow:hidden}  .mat-accordion .mat-expansion-panel .mat-expansion-panel-body{padding:0 0 16px}@media only screen and (max-width:574px){  .mat-expansion-panel-header.accordion-header{height:80px!important}  .mat-expansion-panel-header.accordion-header .mat-content{display:flex;flex-direction:column}}"],changeDetection:0})}}return n})();var no=()=>[1,10];function io(n,p){if(n&1){let e=b();c(0,"neptun-person-group",10),_("selectedUsers",function(i){f(e);let l=r(4);return g(l.selectUsers(i))})("groupDeleted",function(){f(e);let i=r(4);return g(i.reloadGroups())}),a()}if(n&2){let e=p.$implicit;s("basicGroupInfo",e)}}function oo(n,p){if(n&1&&(I(0),d(1,io,1,1,"neptun-person-group",9),w()),n&2){let e=r().ngIf;o(),s("ngForOf",e)}}function ro(n,p){if(n&1&&(I(0),d(1,oo,2,1,"ng-container",7),w()),n&2){let e=p.ngIf;r();let t=k(11);o(),s("ngIf",e.length)("ngIfElse",t)}}function ao(n,p){if(n&1){let e=b();c(0,"div",11)(1,"neptun-table-actions-bar",12),_("actionClicked",function(i){f(e);let l=r(2);return g(l.usersActionClickHandler(i))}),a()()}if(n&2){let e=r(2);o(),s("actions",e.actions)("selectedItemCount",e.selectedRows.length)}}function so(n,p){n&1&&(C(0,"neptun-data-missing-placeholder",13),x(1,"assetUrl")),n&2&&s("imageUrl",S(1,1,"assets/images/no-data/no-previous-judgement.svg"))}function co(n,p){if(n&1&&C(0,"neptun-universal-placeholder",14),n&2){let e=r(2);s("gridSize",W(3,no))("skeletons",e.skeletons)("gap","12px")}}function lo(n,p){if(n&1&&(c(0,"div")(1,"div",3)(2,"h3",4),u(3),a(),c(4,"p",5),u(5),a()(),c(6,"div",6),d(7,ro,2,2,"ng-container",7),x(8,"async"),d(9,ao,2,2,"div",8)(10,so,2,3,"ng-template",null,0,G)(12,co,1,4,"ng-template",null,1,G),a()()),n&2){let e=p.$implicit,t=k(13),i=r();o(3),v(e("userSearch.myGroups")),o(2),v(e("profileSettings.groupsHint")),o(2),s("ngIf",S(8,5,i.groups$))("ngIfElse",t),o(2),s("ngIf",i.selectedRows.length)}}var Yn=(()=>{class n{get cancelAction(){return ye(se({},this.tableActions.Cancel),{callback:()=>{this.selectedRows=[],this.personGroupsService.actionSubject.next({type:"cancel"})}})}constructor(e,t,i,l,h,O){this.personGroupsService=e,this.store=t,this.ref=i,this.dialogService=l,this.translocoService=h,this.tableActions=O,this.destroy$=new $,this.groups$=this.personGroupsService.getOwnPersonGroups(),this.selectedRows=[],this.skeletons=[{type:"rectangle",position:{start:{x:1,y:1},end:{x:10,y:2}},multiplier:{value:6,axis:"y"}}],this.actions=[{text:this.translocoService.translate("button.delete"),icon:q.Trash,type:St.Delete,callback:()=>this.deleteUsersActionClickHandler()},{text:this.translocoService.translate("button.sendMessage"),icon:q.Comment,type:St.SendMessage,callback:()=>this.openNewMessageDialog()},this.cancelAction]}ngOnInit(){this.openCreateGroupModalEvent.pipe(K(this.destroy$)).subscribe(()=>this.openCreateGroupModal())}selectUsers(e){this.selectedRows=this.selectedRows.filter(t=>t.groupId!==e[0].groupId),e[0].userId&&(this.selectedRows=this.selectedRows.concat(e))}removePersonGroupMembers(){let e={removePersonGroupMemberList:this.selectedRows.map(t=>({userId:t.userId,groupId:t.groupId}))};this.personGroupsService.removePersonGroupMember(e).pipe(U(1)).subscribe(()=>{this.reloadGroups(),this.store.dispatch(new M.AddSuccessPushNotification({title:"notification.deleteSuccess"}))})}openRemoveConfirmDialog(){this.dialogService.openConfirmActionDialog({title:this.translocoService.translate(this.selectedRows.length>1?"profileSettings.confirmDeleteUsersFromFroup":"profileSettings.confirmDeleteUserFromFroup"),body:this.translocoService.translate("notification.cannotUndo"),actions:[new ae({text:this.translocoService.translate("button.cancel")}),new be({color:"error",text:this.translocoService.translate("button.delete"),returnValue:!0,callback:()=>this.removePersonGroupMembers()})]}).afterClosed().subscribe()}openCreateGroupModal(){this.dialogService.openDialog(Bn).afterClosed().pipe(ie(e=>e),T(()=>{this.reloadGroups(),this.store.dispatch(new M.AddSuccessPushNotification({title:"notification.saveSuccess"}))})).subscribe()}reloadGroups(){this.selectedRows=[],this.groups$=this.personGroupsService.getOwnPersonGroups(),this.ref.detectChanges()}usersActionClickHandler(e){e.callback&&e.callback(this.selectedRows)}deleteUsersActionClickHandler(){this.openRemoveConfirmDialog()}
1openNewMessageDialog(){let e=this.selectedRows.map(t=>({userName:t.userName,userId:t.userId}));this.dialogService.openDialog(ct,{targetUsers:e,endpoint:"profilesetting/groups/send"})}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}static{this.\u0275fac=function(t){return new(t||n)(m(dt),m(V),m(ue),m(ee),m(Y),m(Vn))}}static{this.\u0275cmp=y({type:n,selectors:[["neptun-person-groups"]],inputs:{openCreateGroupModalEvent:"openCreateGroupModalEvent"},features:[ke([Re])],decls:1,vars:0,consts:[["noData",""],["loadingPlaceholder",""],[4,"transloco"],[1,"neptun-wrapper-padding"],[1,"groups__title"],[1,"groups__hint"],[1,"neptun-wrapper"],[4,"ngIf","ngIfElse"],["class","table__action__bar",4,"ngIf"],[3,"basicGroupInfo","selectedUsers","groupDeleted",4,"ngFor","ngForOf"],[3,"selectedUsers","groupDeleted","basicGroupInfo"],[1,"table__action__bar"],[3,"actionClicked","actions","selectedItemCount"],[3,"imageUrl"],[1,"skeleton",3,"gridSize","skeletons","gap"]],template:function(t,i){t&1&&d(0,lo,14,7,"div",2)},dependencies:[D,N,Je,Xn,En,tt,nt,F,Ge],styles:[".groups__title[_ngcontent-%COMP%]{margin-top:40px}.groups__hint[_ngcontent-%COMP%]{margin-top:4px;margin-bottom:24px}.table__action__bar[_ngcontent-%COMP%]{position:sticky;bottom:0;display:flex;justify-content:center;pointer-events:none}"],changeDetection:0})}}return n})();function po(n,p){if(n&1){let e=b();c(0,"a",3),_("click",function(){f(e);let i=r(2);return g(i.openExtensionInfoDialog())}),u(1),a()}if(n&2){let e=p.$implicit;o(),v(e("fileUpload.extensionAndSizeInfo"))}}function mo(n,p){n&1&&(I(0),d(1,po,2,1,"a",2),w())}var Zn=(()=>{class n{constructor(e,t,i){this.dialog=e,this.transloco=t,this.store=i,this.destroy$=new $,this.hideExtensionLink=!1,this.getCroppedImage=new J,this.fileExtensions=["JPEG","JPG"]}addFiles(e){let t={imageFile:e[0]};this.dialog.openDialog(xn,t).afterClosed().pipe(ie(i=>i),T(i=>this.getCroppedImage.emit(i)),K(this.destroy$)).subscribe()}get extensionInfoDialogData(){return{title:this.transloco.translate("fileUpload.extensionAndSizeInfo"),actions:[new ae({text:this.transloco.translate("button.close")})],componentData:this.fileInfo,component:Mn}}openExtensionInfoDialog(){this.dialog.openConfirmActionDialog(this.extensionInfoDialogData)}invalidFileNotification(e){this.store.dispatch(new M.AddErrorPushNotification({title:"notification.badFileExtension",description:e}))}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}static{this.\u0275fac=function(t){return new(t||n)(m(ee),m(Y),m(V))}}static{this.\u0275cmp=y({type:n,selectors:[["neptun-file-upload-image"]],inputs:{oldFiles:"oldFiles",fileInfo:"fileInfo",hideExtensionLink:"hideExtensionLink"},outputs:{getCroppedImage:"getCroppedImage"},decls:2,vars:4,consts:[[3,"addFile","invalidFile","multiple","allowedFileExtensions","disableDocumentLibrary"],[4,"ngIf"],["class","info","color","primary",3,"click",4,"transloco"],["color","primary",1,"info",3,"click"]],template:function(t,i){t&1&&(c(0,"neptun-form-file",0),_("addFile",function(h){return i.addFiles(h)})("invalidFile",function(h){return i.invalidFileNotification(h)}),a(),d(1,mo,2,0,"ng-container",1)),t&2&&(s("multiple",!1)("allowedFileExtensions",i.fileExtensions)("disableDocumentLibrary",!0),o(),s("ngIf",!i.hideExtensionLink))},dependencies:[vn,N,D],styles:[".source-image{display:inline-block}.preview[_ngcontent-%COMP%]{border-radius:50%;width:50px;height:50px}.info[_ngcontent-%COMP%]{margin-top:16px;display:block}"],changeDetection:0})}}return n})();var fo=()=>({dateStyle:"short",timeStyle:"short"});function go(n,p){if(n&1){let e=b();c(0,"neptun-form-captcha",25),_("refreshCaptcha",function(){f(e);let i=r(6);return g(i.refreshCaptcha(i.audioElement))})("readCaptcha",function(){let i=f(e).ngIf,l=r(6);return g(l.readCaptcha(i,l.audioElement))}),a()}if(n&2){let e=r().ngIf;s("image",e.content)}}function _o(n,p){if(n&1&&(I(0),d(1,go,1,1,"neptun-form-captcha",24),x(2,"async"),w()),n&2){r(4);let e=k(4),t=r();o(),s("ngIf",S(2,2,t.captchaAudio$))("ngIfElse",e)}}function ho(n,p){if(n&1&&(I(0),d(1,_o,3,4,"ng-container",13),x(2,"async"),w()),n&2){let e=r(4);o(),s("ngIf",S(2,1,e.captchaData$))}}function Co(n,p){if(n&1&&(c(0,"neptun-card",22),C(1,"neptun-secondary-title",8)(2,"neptun-form-input",23),d(3,ho,3,3,"ng-container",13),x(4,"async"),a()),n&2){let e=r(2).$implicit,t=r();s("permissionRequired",t.loginNamePanelPermission),o(),s("title",e("profileSettings.loginName"))("description",e("profileSettings.loginNameDescription"))("hasHorizontalPadding",!1),o(),s("maxLength",255)("id","profile-login-name-input")("hint",t.nameInfoText)("patternValidationText",e("profileSettings.loginNamePatternValidation")),o(),s("ngIf",S(4,9,t.showCaptcha$))}}function xo(n,p){if(n&1&&(c(0,"div",7),C(1,"neptun-secondary-title",8)(2,"neptun-form-input",26),a()),n&2){let e=r(2).$implicit,t=r();o(),s("title",e("login.nickName"))("description",e("profileSettings.nicknameDescription"))("hasHorizontalPadding",!1),o(),s("maxLength",50)("id","profile-nickname-input")("hint",t.nameInfoText)}}function vo(n,p){if(n&1&&(c(0,"div",27)(1,"span"),u(2),a(),c(3,"p"),u(4),x(5,"translocoDate"),a()()),n&2){let e=r().ngIf,t=r().$implicit;o(2),P("",t("profileSettings.lastModified"),":"),o(2),P(" ",Gt(5,2,e.profileSettings.settings.photoLastChangedAt,W(5,fo))," ")}}function So(n,p){if(n&1){let e=b();c(0,"div",28)(1,"a",29),_("click",function(){f(e);let i=r(3);return g(i.deletePicture())}),u(2),C(3,"i"),a()()}if(n&2){let e=r(2).$implicit,t=r();o(2),P("",e("profileSettings.deletePicture")," "),o(),kt(t.Icons.CircleX)}}function bo(n,p){if(n&1&&(c(0,"div")(1,"div",30),C(2,"neptun-form-checkbox",31),a()()),n&2){let e=r(2).$implicit;o(2),s("label",e("profileSettings.legalNoticeLabel"))}}function Io(n,p){if(n&1){let e=b();I(0),c(1,"form",3),_("ngSubmit",function(){let i=f(e).ngIf,l=r(2);
1return g(l.save(i.profileSettings.profileImage))}),c(2,"div",4),d(3,Co,5,11,"neptun-card",5),c(4,"neptun-card"),d(5,xo,3,6,"div",6),c(6,"div",7),C(7,"neptun-secondary-title",8),c(8,"div",9),C(9,"neptun-user-image",10),d(10,vo,6,6,"div",11)(11,So,4,3,"div",12),a(),d(12,bo,3,1,"div",13),c(13,"div",7)(14,"div",14)(15,"p",15),u(16),a(),c(17,"neptun-file-upload-image",16),_("getCroppedImage",function(i){f(e);let l=r(2);return g(l.getCroppedImage(i))}),a(),c(18,"div",17)(19,"div")(20,"span",18),u(21),a(),c(22,"span",19),u(23),a()()()()(),c(24,"div",14)(25,"neptun-default-avatar",20),_("selectImage",function(i){f(e);let l=r(2);return g(l.selectImage(i))})("selectAvatar",function(i){f(e);let l=r(2);return g(l.selectAvatar(i))})("selectColor",function(i){f(e);let l=r(2);return g(l.selectColor(i))}),a()()()()(),C(26,"neptun-context-bar",21),x(27,"async"),a(),w()}if(n&2){let e,t,i=p.ngIf,l=r().$implicit,h=r();o(),s("neptunFocusInvalidInput",h.profileForm)("formGroup",h.profileForm),o(2),s("ngIf",i.profileSettings.settings.isLoginNameVisible),o(2),s("ngIf",i.profileSettings.settings.isNicknameVisible),o(2),s("title",l("profileSettings.profileImage"))("description",l("profileSettings.profileImageDescription"))("hasHorizontalPadding",!1),o(2),s("printName",i.profileSettings.profileImage==null?null:i.profileSettings.profileImage.printName)("image",i.profileSettings.profileImage==null?null:i.profileSettings.profileImage.image)("fallbackColorCodeInHexa",i.profileSettings.profileImage==null?null:i.profileSettings.profileImage.fallbackColorCodeInHexa),o(),s("ngIf",i.profileSettings.settings.photoLastChangedAt),o(),s("ngIf",(i.profileSettings.profileImage==null?null:i.profileSettings.profileImage.avatarType)===0),o(),s("ngIf",(i.profileSettings.profileImage==null?null:i.profileSettings.profileImage.avatarType)===0),o(4),v(l("profileSettings.uploadNewProfileImage")),o(),s("hideExtensionLink",!0)("fileInfo",h.fileInfo),o(4),P("",l("fileUpload.allowedExtensions"),": "),o(2),v(h.fileExtensions.join(", ")),o(2),s("avatars",i.defaultAvatar)("colors",i.defaultColors)("printName",i.profileSettings.profileImage==null?null:i.profileSettings.profileImage.printName)("image",(e=i.customImage)!==null&&e!==void 0?e:""),o(),s("permission",h.saveProfileSettingsPermission)("text",l("profileSettings.saveButtonCaption"))("buttonText",l("profileSettings.saveProfile"))("loading",(t=S(27,26,h.loading$))!==null&&t!==void 0?t:!1)}}function wo(n,p){n&1&&(c(0,"div",4),C(1,"neptun-tab-details-placeholder"),a())}function Po(n,p){if(n&1&&(I(0),d(1,Io,28,28,"ng-container",2),x(2,"async"),d(3,wo,2,0,"ng-template",null,0,G),w()),n&2){let e=k(4),t=r();o(),s("ngIf",S(2,2,t.vm$))("ngIfElse",e)}}var ei=(()=>{class n{constructor(e,t,i,l,h,O,z,te,ut,ft,gt,_t){this.fb=e,this.profileSettingsService=t,this.transloco=i,this.dialogService=l,this.store=h,this.userProfileService=O,this.cdr=z,this.el=te,this.loadingService=ut,this.loginService=ft,this.accountApiService=gt,this.captchaService=_t,this.saveProfileSettingsPermission={controllerName:"UserProfile",actionName:"SaveUserProfileSettings"},this.loginNamePanelPermission={controllerName:"",actionName:"",permissionGuid:H.UserProfile_LoginNamePanel},this.destroy$=new $,this.userAvatar$=this.userProfileService.getCurrentUserAvatar(it.Normal),this.user$=this.store.select(Fe.currentUser),this.currentLanguage$=this.store.select(We.currentLanguage),this.audioElement=new Audio,this.Icons=q,this.captchaIdentifier="",this.loginName="",this.printName="",this.fileInfo=[{documentationSizeLimit:0,extension:"JPG"}],this.fileExtensions=["JPG"],this.defaultAvatars$=this.profileSettingsService.getDefaultAvatars(),this.defaultColors$=this.profileSettingsService.getDefaultColors(),this.loading$=this.loadingService.isLoadingByUrl("UserProfile/SaveUserProfileSettings"),this.nameInfoText=this.transloco.translate("profileSettings.loginNameInformation"),this.image$=this.profileSettingsService.newProfileImage$,this.customImageSubject=new ze(""),this.customImage$=this.customImageSubject.asObservable(),this.regexForNonAlphaNum=new RegExp(/[\p{L}\p{N}{.,-/_@}]+/u),this.customPatterns={0:{pattern:this.regexForNonAlphaNum}},this.profileForm=this.fb.group({loginName:new vt(null,[L.required,L.pattern(/^[\p{L}\p{N}{.,-/_@}]+$/u)]),captcha:[""],nickname:new vt(null,[L.required]),legalNotice:[!1]}),this.captchaData$=this.loginService.getCaptchaImage("profilesetting/captchaimage",!0).pipe(T(ht=>this.captchaIdentifier=ht.identifier),Pt(Xe.ONE)),this.captchaAudio$=de([this.captchaData$,this.currentLanguage$]).pipe(Q(([ht,ni])=>this.accountApiService.getCaptchaAudio(ht.identifier,ni?.lcid??1038)))}save(e){if(this.audioElement.pause(),this.profileForm.markAllAsTouched(),this.profileForm.invali
1d)return;let t={loginName:this.profileForm.get("loginName")?.value,nickname:this.profileForm.get("nickname")?.value,avatarType:e.avatarType,base64EncodedProfilePicture:e.avatarType!=De.Custom?"":e.image,fallbackProfilePictureColorCode:e.fallbackColorCodeInHexa,captcha:this.profileForm.get("captcha")?.value,captchaIdentifier:this.captchaIdentifier};this.profileSettingsService.saveUserProfileSettings(t).pipe(T(()=>{this.store.dispatch(new M.AddSuccessPushNotification({title:"notification.saveSuccess"})),this.profileSettingsService.refresh(),this.refreshCaptcha(this.audioElement),this.customImageSubject.next(e.image)}),T(()=>this.store.dispatch(new Mt(e))),le(i=>(this.refreshCaptcha(this.audioElement),Pe(i,this.profileForm),this.cdr.markForCheck(),Kt(this.profileForm,this.el),ce(()=>i))),K(this.destroy$)).subscribe()}get dialogData(){return{title:this.transloco.translate("profileSettings.deleteImageQuestion"),body:[this.transloco.translate("notification.cannotUndo")],actions:[{color:j.Primary,type:"link",text:this.transloco.translate("button.cancel"),returnValue:!1},{color:j.Error,type:"flat",text:this.transloco.translate("profileSettings.yesDelete"),returnValue:!0}]}}deletePicture(){let e={loginName:this.profileForm.get("loginName")?.value,nickname:this.profileForm.get("nickname")?.value,fallbackProfilePictureColorCode:"00DEA4",avatarType:De.FallbackColorCode,base64EncodedProfilePicture:"",captcha:this.profileForm.get("captcha")?.value,captchaIdentifier:this.captchaIdentifier};this.dialogService.openConfirmActionDialog(this.dialogData).afterClosed().pipe(ie(t=>t),T(()=>{this.profileForm.get("legalNotice")?.patchValue(!1),this.profileForm.get("legalNotice")?.clearValidators(),this.profileForm.get("legalNotice")?.updateValueAndValidity(),this.profileSettingsService.setNewProfileImage({image:"",printName:this.printName,fallbackColorCodeInHexa:e.fallbackProfilePictureColorCode,avatarType:De.FallbackColorCode}),this.refreshCaptcha(this.audioElement)}),K(this.destroy$)).subscribe()}isBase64(e){try{return btoa(atob(e))==e}catch{return!1}}selectAvatar(e){let t=e?{image:e.normalImage,printName:this.printName,fallbackColorCodeInHexa:"",avatarType:e.avatarType}:null;this.setUserAvatar(t)}selectColor(e){let t=e?{image:"",printName:this.printName,fallbackColorCodeInHexa:e,avatarType:De.FallbackColorCode}:null;this.setUserAvatar(t)}selectImage(e){let t=e?{image:e,printName:this.printName,fallbackColorCodeInHexa:"",avatarType:De.Custom}:null;this.setUserAvatar(t)}getCroppedImage(e){let i=e.split(",")[1];this.profileSettingsService.setNewProfileImage({image:i,printName:this.printName,fallbackColorCodeInHexa:"",avatarType:De.Custom}),this.customImageSubject.next(i),this.profileForm.get("legalNotice")?.patchValue(!1),this.profileForm.get("legalNotice")?.setValidators([L.requiredTrue]),this.profileForm.get("legalNotice")?.updateValueAndValidity()}readCaptcha(e,t){this.captchaService.readCaptcha(e,t)}refreshCaptcha(e){this.captchaService.refreshCaptcha(e),this.profileForm.get("captcha")?.setValue("")}ngOnInit(){this.profileSettings$=de([this.profileSettingsService.getUserProfileSettings(),this.userAvatar$,this.image$,this.user$,this.profileSettingsService.refreshSettings$]).pipe(T(([e])=>{this.loginName=e.loginName,this.profileForm.patchValue(e),e.isLoginNameVisible||(this.profileForm.get("loginName")?.clearValidators(),this.profileForm.get("loginName")?.updateValueAndValidity()),e.isNicknameVisible||(this.profileForm.get("nickname")?.clearValidators(),this.profileForm.get("nickname")?.updateValueAndValidity())}),R(([e,t,i,l])=>(this.printName=t?.printName?t.printName:l.name,t.avatarType==0&&(this.profileForm.get("legalNotice")?.patchValue(!0),i||this.customImageSubject.next(t.image)),{settings:e,profileImage:i||t}))),this.showCaptcha$=this.profileForm.get("loginName")?.valueChanges.pipe(T(e=>{this.loginName!==e?(this.profileForm.get("captcha")?.setValidators([L.required]),this.profileForm.get("captcha")?.updateValueAndValidity()):(this.profileForm.get("captcha")?.setValidators([]),this.profileForm.get("captcha")?.updateValueAndValidity())}),R(e=>this.loginName!==e)),this.vm$=de([this.profileSettings$,this.defaultAvatars$,this.defaultColors$,this.customImage$]).pipe(R(([e,t,i,l])=>({profileSettings:e,defaultAvatar:t,defaultColors:i,customImage:l})))}ngOnDestroy(){this.audioElement.pause(),this.destroy$.next(),this.destroy$.complete()}setUserAvatar(e){e?this.profileSettingsService.setNewProfileImage(e):this.userAvatar$.pipe(U(1)).subscribe(t=>{this.profileSettingsService.setNewProfileImage(t)})}static{this.\u0275fac=function(t){return new(t||n)(m(Ht),m(Oe),m(Y),m(ee),m(V),m(ot),m(ue),m(Dt),m(et),m(Pn),m(Ot),m(Dn))}}static{this.\u0275cmp=y({type:n,selectors:[["neptun-profile-information"]],decls:1,vars:0,consts:[["loadingPlaceholder",""],[4,"transloco"],[4,"ngIf","ngIfElse"],[3,"ngSubmit","neptunFocusInvalidInput","formGroup"],[1,"neptun-wrapper"],[3,"permissionRequired",4,"ngIf"],["class","block",4,"ngIf"],[1,"block"],[3,"title","description","hasHorizontalPadding"],[1,"profile-image-block"],[1,"avatar-img",3,"printName","
1image","fallbackColorCodeInHexa"],["class","last-modified input-info",4,"ngIf"],["class","profile-image__button",4,"ngIf"],[4,"ngIf"],[1,"block__input"],[1,"input-label"],[3,"getCroppedImage","hideExtensionLink","fileInfo"],[1,"file-info"],[1,"file-info__label"],[1,"file-info__value"],[3,"selectImage","selectAvatar","selectColor","avatars","colors","printName","image"],["buttonColor","primary",3,"permission","text","buttonText","loading"],[3,"permissionRequired"],["formControlName","loginName",3,"maxLength","id","hint","patternValidationText"],["formControlName","captcha",3,"image","refreshCaptcha","readCaptcha",4,"ngIf","ngIfElse"],["formControlName","captcha",3,"refreshCaptcha","readCaptcha","image"],["formControlName","nickname",3,"maxLength","id","hint"],[1,"last-modified","input-info"],[1,"profile-image__button"],[3,"click"],[1,"accept-legalNotice"],["color","primary","formControlName","legalNotice","id","legalNotice",1,"cropper-checkbox",3,"label"]],template:function(t,i){t&1&&d(0,Po,5,4,"ng-container",1)},dependencies:[D,N,ve,he,ge,_e,Ne,Se,Ce,xe,we,B,Ve,Ze,yn,Qt,en,Zn,Cn,Fn,st,F,Ut],styles:["neptun-card[_ngcontent-%COMP%]{max-width:610px;margin:32px 0}.avatar-img[_ngcontent-%COMP%]{width:80px;min-width:80px;height:80px;border-radius:50%;margin-right:24px}[_nghost-%COMP%]  .monogram-bg{opacity:.4}neptun-context-bar[_ngcontent-%COMP%]{margin-top:32px}.block[_ngcontent-%COMP%]{margin-bottom:32px}p[_ngcontent-%COMP%]{margin-bottom:16px}.input-info[_ngcontent-%COMP%]{font-size:13px;color:#666}.input-label[_ngcontent-%COMP%]{font-weight:800}neptun-file-upload-image[_ngcontent-%COMP%]{margin-top:16px;display:block}.profile-image-block[_ngcontent-%COMP%]{display:flex;vertical-align:middle;margin-top:16px;margin-bottom:24px}.last-modified[_ngcontent-%COMP%]{align-self:center;margin-right:24px;min-width:fit-content}.profile-image__button[_ngcontent-%COMP%]{display:flex;align-self:center;width:-webkit-fill-available;justify-content:flex-end}.file-info[_ngcontent-%COMP%]{color:#666;font-size:13px;margin-top:8px}.file-info__value[_ngcontent-%COMP%]{font-weight:800}.accept-legalNotice[_ngcontent-%COMP%]{margin-bottom:32px}.accept-legalNotice--error[_ngcontent-%COMP%]{border:2px solid #f2994a;background-color:#f2994a33}mat-checkbox.cropper-checkbox[_ngcontent-%COMP%]{margin-right:10px}mat-checkbox.cropper-checkbox[_ngcontent-%COMP%]   .text-wrap[_ngcontent-%COMP%]{white-space:normal}@media only screen and (max-width:574px){.profile-image-block[_ngcontent-%COMP%]{flex-wrap:wrap}.profile-image__button[_ngcontent-%COMP%]{justify-content:flex-start;margin-top:8px}}"]})}}return n})();function yo(n,p){n&1&&C(0,"neptun-profile-information")}function Do(n,p){if(n&1&&(c(0,"neptun-tab",9),d(1,yo,1,0,"ng-template",10),a()),n&2){let e=r(2).$implicit,t=r();s("permission",t.baseTabPermission)("label",e("profileSettings.profileData"))}}function To(n,p){n&1&&C(0,"neptun-auth-settings")}function Eo(n,p){if(n&1&&(c(0,"neptun-tab",9),d(1,To,1,0,"ng-template",10),a()),n&2){let e=r(2).$implicit,t=r();s("permission",t.passwordTabPermission)("label",e("profileSettings.passwordSettings"))}}function ko(n,p){n&1&&C(0,"neptun-evop-settings")}function Go(n,p){if(n&1&&(c(0,"neptun-tab",9),d(1,ko,1,0,"ng-template",10),a()),n&2){let e=r(2).$implicit,t=r();s("permission",t.evopTabPermission)("label",e("profileSettings.evopSettings"))}}function Fo(n,p){n&1&&C(0,"neptun-default-settings")}function Mo(n,p){if(n&1&&(c(0,"neptun-tab",9),d(1,Fo,1,0,"ng-template",10),a()),n&2){let e=r(2).$implicit,t=r();s("permission",t.defaultSettingsTabPermission)("label",e("profileSettings.defaultSettings"))}}function Ao(n,p){if(n&1&&C(0,"neptun-person-groups",12),n&2){let e=r(4);s("openCreateGroupModalEvent",e.openCreateGroupModal)}}function No(n,p){if(n&1&&(c(0,"neptun-tab",11),d(1,Ao,1,1,"ng-template",10),a()),n&2){let e=r(2).$implicit,t=r();s("permission",t.manageGroupsTabPermission)("isRerenderEnabled",!0)("label",e("profileSettings.handleGroups"))}}function Vo(n,p){if(n&1){let e=b();I(0,13),c(1,"button",14),_("click",function(){f(e);let i=r(3);return g(i.createGroupButtonClicked())}),u(2),a(),w()}if(n&2){let e=r(2).$implicit,t=r();o(),s("permissionRequired",t.createGroupPermission),o(),v(e("profileSettings.createNewGroup"))}}function Oo(n,p){if(n&1&&(I(0),c(1,"neptun-tab-group",5,1),d(3,Do,2,2,"neptun-tab",6),x(4,"async"),d(5,Eo,2,2,"neptun-tab",6),x(6,"async"),d(7,Go,2,2,"neptun-tab",6),x(8,"async"),d(9,Mo,2,2,"neptun-tab",6),x(10,"async"),d(11,No,2,3,"neptun-tab",7),x(12,"async"),d(13,Vo,3,2,"ng-container",8),a(),w()),n&2){let e,t,i,l,h,O=p.ngIf,z=k(2),te=r(2);o(),s("tabGroupName","tab-profile-settings"),o(2),s("ngIf",((e=S(4,7,te.manageBaseTabAccessMode$))==null?null:e.accessMode)!=="hidden"),o(2),s("ngIf",((t=S(6,9,te.managePasswordTabAccessMode$))==null?null:t.accessMode)!=="hidden"&&O.value===!0),o(2),s("ngIf",((i=S(8,11,te.manageEvopTabAccessMode$))==null?null:i.accessMode)==="enabled"),o(2),s("ngIf",((l=S(10,13,te.manageDefaultSettingsTabAccessMode$))==null?null:l.accessMode)!=="hidden"),o(2),s("ngIf",((h=S(12,15,te.manageGroupsTabAccessMode$))==null?null:h.accessMode)!=="hidden"),o(2),s("ngIf",z.selectedTab===(z.tabs==null?null:z.tabs.get(3)))}}function Uo(n,p){n&1&&(c(0,"div",15),C(1,"neptun-tab-placeholder"),a())}function $o(n,p){if(n&1&&(I(0),C(1,"neptun-primary-title",3),d(2,Oo,14,17,"ng-container",4),x(3,"async"),d(4,Uo,2,0,"ng-template",null,0,G),w()),n&2){let e=p.$implicit,t=k(5),i=r();o(),s("title",e("menu.profileSettings"))("description",e("profileSettings.profileSettingsSubtitle")),o(),s("ngIf",S(3,4,i.isPasswordModificationAllowed$))("ngIfElse",t)}}var ti=(()=>{class n{constructor(e,t){this.profileSettingsService=e,this.permissionService=t,this.baseTabPermission={controllerName:"",actionName:"",permissionGuid:H.UserProfile_BaseSettingsTab},this.passwordTabPermission={controllerName:"",actionName:"",permissionGuid:H.UserProfile_PasswordSettingsTab},this.evopTabPermission={controllerName:"Evop",actionName:"GetEVOPUserData"},this.defaultSettingsTabPermission={controllerName:"",actionName:"",permissionGuid:H.UserProfile_DefaultSettingsTab},this.manageGroupsTabPermission={controllerName:"",actionName:"",permissionGuid:H.UserProfile_ManageGroupsTab},this.createGroupPermission={controllerName:"",actionName:"",permissionGuid:H.UserProfile_CreateNewGroupButtonVisibility},this.manageBaseTabAccessMode$=this.permissionService.getAccessMode
1UsingGuid(H.UserProfile_BaseSettingsTab),this.managePasswordTabAccessMode$=this.permissionService.getAccessModeUsingGuid(H.UserProfile_PasswordSettingsTab),this.manageEvopTabAccessMode$=this.permissionService.getAccessMode(this.evopTabPermission.controllerName,this.evopTabPermission.actionName),this.manageDefaultSettingsTabAccessMode$=this.permissionService.getAccessModeUsingGuid(H.UserProfile_DefaultSettingsTab),this.manageGroupsTabAccessMode$=this.permissionService.getAccessModeUsingGuid(H.UserProfile_ManageGroupsTab),this.isPasswordModificationAllowed$=this.profileSettingsService.isPasswordModificationAllowed$.pipe(R(i=>({value:i}))),this.openCreateGroupModal=new J}createGroupButtonClicked(){this.openCreateGroupModal.emit()}ngOnDestroy(){this.profileSettingsService.setNewProfileImage(null)}static{this.\u0275fac=function(t){return new(t||n)(m(Oe),m(Ye))}}static{this.\u0275cmp=y({type:n,selectors:[["neptun-profile-settings"]],decls:1,vars:0,consts:[["loadingPlaceholder",""],["tabGroup",""],[4,"transloco"],[3,"title","description"],[4,"ngIf","ngIfElse"],[3,"tabGroupName"],[3,"permission","label",4,"ngIf"],[3,"permission","isRerenderEnabled","label",4,"ngIf"],["right-content","",4,"ngIf"],[3,"permission","label"],["neptunTabContent",""],[3,"permission","isRerenderEnabled","label"],[3,"openCreateGroupModalEvent"],["right-content",""],["id","7f539937-4fea-4da7-ac9e-b0c939474a20","neptun-button","","accent","flat",1,"new-group-button",3,"click","permissionRequired"],[1,"neptun-wrapper-padding"]],template:function(t,i){t&1&&d(0,$o,6,6,"ng-container",2)},dependencies:[D,Wt,N,un,dn,mn,ei,Un,Ln,$n,Yn,E,B,Nn,F],styles:[".new-group-button[_ngcontent-%COMP%]{margin-left:16px}@media only screen and (max-width:767px){.new-group-button[_ngcontent-%COMP%]{width:100%;margin-left:0}}@media only screen and (max-width:574px){neptun-tab-group[_ngcontent-%COMP%]  .tab-group-wrapper{display:flex;flex-direction:column}neptun-tab-group[_ngcontent-%COMP%]  .tab-group-wrapper .right-content__container{margin-top:16px}}"],changeDetection:0})}}return n})();var Ro=[{path:"",data:{breadcrumb:n=>n.tab},children:[{path:"",component:ti,data:{breadcrumb:""}}]}],Dm=[{path:"",data:{breadcrumb:""},providers:[pt],children:Ro}];export{Dm 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.