PageSourceSearch

https://justizonline.gv.at/jop/web/688.d712b05003e46871.js

js justizonline.gv.at collected 2026-10-02 04:58:07 UTC 82,769 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkjustiz_web=self.webpackChunkjustiz_web||[]).push([[688],{8688:(On,A,a)=>{a.r(A),a.d(A,{PROFILE_ROUTES:()=>In});var w=a(3103),f=a(1781),S=a(5106),v=a(6802),l=a(9417),c=a(501),J=a(8441),Y=a(9076),h=a(6977),z=a(4572),K=a(6354),W=a(5558),j=a(6697),Q=a(8866),u=a(2740),x=a(6403),m=a(5252),p=a(6033),N=a(8398),b=a(9079),P=a(4975),M=a(8716),e=a(1360),g=a(8018);let ce=(()=>{class n{constructor(){this.formGroup=null,this.checkVerificationCodeEmitter=(0,e.CGW)(),this.requestNewCodeEmitter=(0,e.CGW)()}ngOnInit(){this.formGroup=new l.gE({verifyCode:new l.MJ(null,[c.S6.required()])})}verify(){this.formGroup.submitAttempt=!0,this.formGroup.valid&&this.checkVerificationCodeEmitter.emit(this.getVerifyCodeControl)}requestNewCode(){this.getVerifyCodeControl.reset(),this.formGroup.submitAttempt=!1,this.requestNewCodeEmitter.emit()}get getVerifyCodeControl(){return this.formGroup.get("verifyCode")}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["jo-verification"]],outputs:{checkVerificationCodeEmitter:"checkVerificationCodeEmitter",requestNewCodeEmitter:"requestNewCodeEmitter"},decls:16,vars:16,consts:[[1,"jo-mt-16"],["type","hint",3,"isDark"],[1,"mb-3",3,"innerHTML"],[1,"container-button"],[1,"d-inline-block"],[3,"formGroup"],["formControlName","verifyCode",3,"medium","hasBorder","label"],[1,"button-verification","mb-4"],["expand","block",1,"outline",3,"click"],["tabindex","0",1,"underline",3,"click","keydown.enter"]],template:function(i,o){1&i&&(e.j41(0,"div",0)(1,"jo-alert-box",1),e.nrm(2,"p",2),e.nI1(3,"translate"),e.j41(4,"div",3)(5,"div",4)(6,"form",5),e.nrm(7,"jwc-input",6),e.nI1(8,"translate"),e.k0s()()(),e.j41(9,"div",7)(10,"jwc-button",8),e.bIt("click",function(){return o.verify()}),e.EFF(11),e.nI1(12,"translate"),e.k0s()(),e.j41(13,"a",9),e.bIt("click",function(){return o.requestNewCode()})("keydown.enter",function(){return o.requestNewCode()}),e.EFF(14),e.nI1(15,"translate"),e.k0s()()()),2&i&&(e.R7$(),e.Y8G("isDark",!0),e.R7$(),e.Y8G("innerHTML",e.bMT(3,8,"profile.email.verification.description"),e.npT),e.R7$(4),e.Y8G("formGroup",o.formGroup),e.R7$(),e.Y8G("medium",!0)("hasBorder",!0)("label",e.bMT(8,10,"profile.email.verification.label")),e.R7$(4),e.SpI(" ",e.bMT(12,12,"profile.email.verification.buttonText")," "),e.R7$(3),e.SpI(" ",e.bMT(15,14,"profile.email.verification.newCode"),""))},dependencies:[P.K,l.YN,l.qT,l.BC,l.cb,l.X1,l.j4,l.JD,c.x1,c.Sj,c.tm,c.Qp,g.D9],styles:["[_nghost-%COMP%]   .button-verification[_ngcontent-%COMP%]{max-width:16.875rem}[_nghost-%COMP%]   .container-button[_ngcontent-%COMP%]     input{max-width:9rem}[_nghost-%COMP%]     .form-group{margin-bottom:1.5rem}"]})}}return n})();var C=a(2881),q=a(123),R=a(1220),Z=a(6048);const ee=n=>({role:n}),pe=()=>({base:12,md:6});function me(n,r){1&n&&e.nrm(0,"jo-alert-box",1),2&n&&e.Y8G("isDark",!0)}function de(n,r){if(1&n&&e.nrm(0,"jo-alert-box",2),2&n){const t=e.XpG(3);e.Y8G("isDark",!0)("descriptionKey",t.verificationDescription)}}function ue(n,r){if(1&n&&(e.j41(0,"div",15)(1,"div",16),e.nrm(2,"jwc-input-checkbox",17),e.nI1(3,"translate"),e.k0s()()),2&n){const t=r.$implicit,i=e.XpG(4);e.R7$(2),e.Y8G("label",e.i5U(3,2,"profile.email.preferences."+t.id,e.eq3(5,ee,i.roleHandler.actualRole.name)))("value",t.id)}}function fe(n,r){if(1&n&&(e.j41(0,"form",5)(1,"jwc-input-checkbox-group",14),e.Z7z(2,ue,4,7,"div",15,e.fX1),e.k0s()()),2&n){const t=e.XpG(3);e.Y8G("formGroup",t.formGroup),e.R7$(),e.Y8G("formControlName","emailPreferences"),e.R7$(),e.Dyx(t.currentRole.roleData.roleEmailPreferences)}}function he(n,r){if(1&n){const t=e.RV6();e.j41(0,"div",9)(1,"jwc-button",18),e.bIt("click",function(){e.eBV(t);const o=e.XpG(3);return e.Njj(o.deleteWithWarning("email"))}),e.nrm(2,"jo-icon",19),e.j41(3,"span",20),e.EFF(4," E-Mail Adresse aus Profil l\xf6schen "),e.k0s()()()}2&n&&(e.R7$(),e.Y8G("color","link"),e.R7$(),e.Y8G("name","loeschen"))}function _e(n,r){if(1&n){const t=e.RV6();e.j41(0,"div",10)(1,"div",21)(2,"div",22)(3,"jwc-button",23),e.bIt("click",function(){e.eBV(t);const o=e.XpG(3);
1return e.Njj(o.submitForm())}),e.j41(4,"span",20),e.EFF(5,"Auswahl"),e.k0s(),e.EFF(6),e.nI1(7,"translate"),e.k0s()()()()}2&n&&(e.R7$(2),e.Y8G("joCol",e.lJ4(5,pe)),e.R7$(),e.Y8G("expand","block"),e.R7$(3),e.SpI(" ",e.bMT(7,3,"profile.email.save")," "))}function be(n,r){if(1&n){const t=e.RV6();e.j41(0,"jo-verification",24),e.bIt("checkVerificationCodeEmitter",function(o){e.eBV(t);const s=e.XpG(3);return e.Njj(s.checkEmailVerification(o))})("requestNewCodeEmitter",function(){e.eBV(t);const o=e.XpG(3);return e.Njj(o.requestNewEmailCode())}),e.k0s()}}function Ce(n,r){1&n&&(e.j41(0,"div",13),e.nrm(1,"jo-alert-box",25),e.k0s()),2&n&&(e.R7$(),e.Y8G("type","hint")("isDark",!0)("descriptionKey","profile.email.usageTypes.bookingHint"))}function ve(n,r){if(1&n&&(e.nrm(0,"p",0),e.nI1(1,"translate"),e.DNE(2,me,1,1,"jo-alert-box",1)(3,de,1,2,"jo-alert-box",2),e.j41(4,"div",3)(5,"div",4),e.DNE(6,fe,4,2,"form",5),e.k0s()(),e.j41(7,"div",6)(8,"div",7)(9,"form",5),e.nrm(10,"jwc-input-email",8),e.nI1(11,"translate"),e.nI1(12,"translate"),e.k0s()(),e.DNE(13,he,5,2,"div",9),e.nI1(14,"async"),e.k0s(),e.DNE(15,_e,8,6,"div",10)(16,be,1,0,"jo-verification"),e.j41(17,"div",11),e.nrm(18,"jo-alert-box",12),e.k0s(),e.DNE(19,Ce,2,3,"div",13)),2&n){const t=e.XpG(2);e.Y8G("innerHTML",e.i5U(1,14,"profile.email.description."+(t.isJuristicPersonVertreter(t.currentRole)?"jurP.":"natP.")+((null==t.currentRole||null==t.currentRole.roleData.roleEmailPreferences?null:t.currentRole.roleData.roleEmailPreferences.length)>1?"plural":"singular"),e.eq3(23,ee,t.roleHandler.actualRole.name)),e.npT),e.R7$(2),e.vxM(!0===t.isVerificationFailed?2:-1),e.R7$(),e.vxM(!0===t.isVerificationSuccess?3:-1),e.R7$(3),e.vxM((null==t.currentRole||null==t.currentRole.roleData.roleEmailPreferences?null:t.currentRole.roleData.roleEmailPreferences.length)>0?6:-1),e.R7$(3),e.Y8G("formGroup",t.formGroup),e.R7$(),e.Y8G("medium",!0)("hasBorder",!0)("label",e.bMT(11,17,"profile.email.label"))("description",e.bMT(12,19,t.getInputEmailDescription)),e.R7$(3),e.vxM(e.bMT(14,21,t.canEditEmail$)&&(null==t.currentRole||null==t.currentRole.roleData.email?null:t.currentRole.roleData.email.length)>1?13:-1),e.R7$(2),e.vxM(t.formGroup.enabled?15:-1),e.R7$(),e.vxM((null==t.currentRole||null==t.currentRole.roleData.email?null:t.currentRole.roleData.email.length)>0&&!t.currentRole.roleData.isEmailVerified&&(!t.isJuristicPersonVertreter(t.currentRole)||t.isAdmin(t.currentRole))?16:-1),e.R7$(2),e.Y8G("isDark",!0),e.R7$(),e.vxM(!t.isDo(t.currentRole)||t.getEmailPreferencesControl.value&&t.getEmailPreferencesControl.value.includes("BOOKING")?-1:19)}}function xe(n,r){1&n&&e.nrm(0,"jo-alert-box",26)(1,"jo-alert-box",12),2&n&&(e.Y8G("isDark",!0)("hyphens",!0),e.R7$(),e.Y8G("isDark",!0))}function ge(n,r){if(1&n&&(e.j41(0,"h2"),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.DNE(3,ve,20,25)(4,xe,2,3)),2&n){const t=e.XpG();e.R7$(),e.JRh(e.bMT(2,3,"profile.email.title")),e.R7$(2),e.vxM(t.isExpertVertreter(t.currentRole)?-1:3),e.R7$(),e.vxM(t.isExpertVertreter(t.currentRole)?4:-1)}}let Pe=(()=>{class n extends w.Y{constructor(t,i,o,s,d,E,y){super(t),this.appState=i,this.roleHandler=o,this.store=s,this.route=d,this.joModalService=E,this.location=y,this.user$=(0,b.br)((0,u.Lt)(m.Y.userData)),this.currentRole$=(0,b.br)((0,u.Lt)(m.Y.currentRole)),this.canEditEmail$=(0,b.br)((0,u.Lt)(m.Y.checkCurrentRole(p.uL))),this.canEditPreferences$=(0,b.br)((0,u.Lt)(m.Y.checkCurrentRole(p.__))),this.isExpertVertreter=p.A4,this.isJuristicPersonVertreter=p.mq,this.isDo=p.WI,this.isAdmin=p.qc,this.formGroup=new l.gE({email:new l.MJ(null,[c.S6.email(this.translateService.instant("profile.email.invalidWrong"))]),emailPreferences:new l.MJ([])}),this.isVerificationSuccess=!1,this.isVerificationFailed=!1,this.verificationDescription=this.translateService.instant("profile.email.verifyBeginSuccess")}ngOnInit(){this.currentRole$.pipe((0,h.Q)(this.destroyed$)).subscribe(t=>{this.currentRole=t,this.combinedAuthorities$=(0,z.z)([this.canEditEmail$,this.canEditPreferences$]).pipe((0,K.T)(([i,o]
1)=>({canEditEmail:i,canEditPreferences:o}))),this.setEmailAndPreferencesFromCurrentRole()}),this.checkEmailVerificationFromParam()}submitForm(){this.formGroup.submitAttempt=!0,this.formGroup.valid&&(this.getEmailControl.enabled&&this.getEmailControl.value?this.saveUserEmail():this.updateEmailPreferences())}deleteWithWarning(t){const o=this.joModalService.openCustomizeDialogButtonStack({title:"profile."+t+".deletePopUp.title",message:"profile."+t+".deletePopUp.closeMessage",confirm:"profile."+t+".deletePopUp.closeYes",abort:"profile."+t+".deletePopUp.closeNo",modalRef:null});o&&o.result.then(()=>{},s=>{this.checkDeleteReason(s)}).catch(()=>{})}checkEmailVerificationFromParam(){const t=this.route.snapshot.queryParams;t?.verification&&this.clientService.execute(new N.$I(t.verification),{handleError:()=>{this.isVerificationFailed=!0},handleBusinessError:()=>{this.isVerificationFailed=!0}}).subscribe(o=>{this.isVerificationSuccess=!0,this.currentRole.id!==o.roleId&&this.user$.pipe((0,h.Q)(this.destroyed$)).subscribe(s=>{const d=s.roles?.all.find(E=>E.id===o.roleId);this.verificationDescription=d?this.translateService.instant("profile.email.verifyBeginSuccessOtherRole").replace("{{ role }}",d.description):this.translateService.instant("profile.email.verifyBeginSuccessOtherRoleNotAvailable").replace("{{ email }}",o.email)}),(0,q.Ag)(this.location),this.updateUser()})}checkEmailVerification(t){this.isVerificationSuccess=!1,this.isVerificationFailed=!1,this.clientService.execute(new N.$I(t.value),{handleError:()=>{this.joModalService.standardErrorDialog()},handleBusinessError:i=>{this.checkBusinessEmailError(i,t)}}).subscribe(()=>{this.updateUser()})}requestNewEmailCode(){this.store.dispatch(new x.Sy({email:null})).pipe((0,W.n)(()=>this.store.dispatch(new x.Sy({email:this.getEmailControl.value})))).subscribe(()=>{this.isVerificationSuccess=!1,this.isVerificationFailed=!1,this.updateUser(),this.getEmailControl.disable()})}updateUser(){this.store.dispatch(new x.Ax)}setEmailAndPreferencesFromCurrentRole(){if(this.currentRole?.roleData.email?.length>0&&(this.getEmailControl.setValue(this.currentRole.roleData.email),this.getEmailControl.disable()),this.currentRole?.roleData.roleEmailPreferences){const t=[];for(const i of this.currentRole.roleData.roleEmailPreferences)i.active&&t.push(i.id);this.getEmailPreferencesControl.setValue(t),this.checkAuthorities()}}checkAuthorities(){this.combinedAuthorities$.pipe((0,h.Q)(this.destroyed$),(0,j.s)(1)).subscribe(t=>{t.canEditEmail||this.getEmailControl.disable(),t.canEditPreferences||this.getEmailPreferencesControl.disable()})}saveUserEmail(){this.store.dispatch(new x.Sy({email:this.getEmailControl.value,roleEmailPreferences:this.getRoleEmailPreferenceDtoArray})).subscribe(()=>{this.updateUser(),this.getEmailControl.disable()})}updateEmailPreferences(){this.store.dispatch(new x.Sy({roleEmailPreferences:this.getRoleEmailPreferenceDtoArray})).subscribe(()=>{this.updateUser()})}checkDeleteReason(t){"profile.email.deletePopUp.closeYes"===t&&this.deleteEmail()}deleteEmail(){this.isVerificationSuccess=!1,this.isVerificationFailed=!1,this.store.dispatch(new x.Sy({email:null})).subscribe(()=>{this.updateUser(),this.getEmailControl.enable(),this.getEmailControl.setValue("")})}checkBusinessEmailError(t,i){t.status===Q.V.notyInvalidCode?i.setErrors({message:this.translateService.instant("profile.email.verification.invalidCode")}):t.status===Q.V.notyInvalidCodeTimeout?i.setErrors({message:this.translateService.instant("profile.email.verification.invalidCodeTimeout")}):this.joModalService.standardErrorDialog()}get getEmailControl(){return this.formGroup.get("email")}get getEmailPreferencesControl(){return this.formGroup.get("emailPreferences")}get getInputEmailDescription(){return this.currentRole?.roleData.isEmailVerified?"profile.email.verified":(0,p.mq)(this.currentRole)?"":"profile.email.usageInfo"}get getRoleEmailPreferenceDtoArray(){return this.currentRole?.roleData.roleEmailPreferences?.map(t=>({id:t.id,active:this.getEmailPreferencesControl.value.includes(t.id)}))}static{this.\u0275fac=function(i){return new(i||n)(e.rXU(e.zZn),e.rXU(f.tq),e.rXU(Y.u),e.rXU(u.il),e.rXU(S.nX),e.rXU(J.e),e.rXU(Z.aZ))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["jo-profile-notification"]],features:[e.Vt3],decls:2,vars:3,consts:[[3,"innerHTML"],["type","error","descriptionKey","profile.email.verifyBeginError",3,"isDark"],["type","success",3,"isDark","descriptionKey"],[1,"container-control","checkbox-group"],[1,"container-width"],[3,"formGroup"],[1,"container-control","mb-5"],[1,"container-width","full"],["formControlName","email",3,"medium","hasBorder","label","description"],[1,"delete-icon"],[1,"container-width","mb-5"],[1,"container-control"],["type","hint","descriptionKey","profile.email.usageTypes.hint",3,"isDark"],[1,"alert-box"],["label","Notification options",3,"formControlName"],[1,"d-block"],[1,"d-inline-block"],[3,"label","value"],[1,"outline-icon","btn-icon",3,"click","color"],[1,"interactive",3,"name"],[1,"sr-only"],[1,"row"],[1,"mb-md-0","mb-3",3,"joCol"],[1,"outline",3,"click","expand"],[3,"checkVerificationCodeEmitter","requestNewCodeEmitter"],[3,"type","isDark","descriptionKey"],["type","hint","descriptionKey","profile.email.usageTypes.hintVertreter",3,"isDark","hyphens"]],template:function(i,o){1&i&&(e.DNE(0,ge,5,5),e.nI1(1,"async")),2&i&&e.vxM(e.bMT(1,1,o.user$)?0:-1)},dependencies:[P.K,l.YN,l.qT,l.BC,l.cb,l.X1,l.j4,l.JD,c.mP,c.Sc,c.Ri,c.x1,c.IF,c.tm,c.Qp,M.c,ce,C.Jj,g.D9,R.q],styles:["[_nghost-%COMP%]     .form-group{margin-bottom:0}[_nghost-%COMP%]   .container-width[_ngcontent-%COMP%]{max-width:600px}[_nghost-%COMP%]   .container-width.full[_ngcontent-%COMP%]{max-width:unset}[_nghost-%COMP%]   .alert-box[_ngcontent-%COMP%]{margin-bottom:2rem}[_nghost-%COMP%]   .checkbox-group[_ngcontent-%COMP%]{margin-top:2rem;margin-bottom:1rem}[_nghost-%COMP%]   .container-control[_ngcontent-%COMP%]{display:flex;width:100%}[_nghost-%COMP%]   .container-control[_ngcontent-%COMP%]   .container-width[_ngcontent-%COMP%]{flex:1}[_nghost-%COMP%]   .container-control[_ngcontent-%COMP%]   .delete-icon[_ngcontent-%COMP%]{padding-top:1.75rem;padding-left:.5rem}[_nghost-%COMP%]   .container-control[_ngcontent-%COMP%]   .delete-icon[_ngcontent-%COMP%]   jo-icon[_ngcontent-%COMP%]{font-size:1.5rem}[_nghost-%COMP%]   .container-control[_ngcontent-%COMP%]   jwc-input-c
1heckbox-group[_ngcontent-%COMP%]  .form-group{margin-bottom:0}[_nghost-%COMP%]   .container-control[_ngcontent-%COMP%]   jwc-input-checkbox-group[_ngcontent-%COMP%]  .custom-checkbox{margin-bottom:0}[_nghost-%COMP%]   .container-control[_ngcontent-%COMP%]   jwc-input-checkbox-group[_ngcontent-%COMP%]  .custom-checkbox .custom-control-label{font-family:Roboto Regular,sans-serif}"]})}}return n})();var G=a(3482),Ee=a(7566),te=a(8994),I=a(6594);const O=n=>({role:n}),ye=()=>({lg:"auto"}),ne=(n,r)=>({"jo-mb-24":n,"jo-mb-16":r}),oe=n=>({linkSuccess:n}),Se=(n,r)=>({"jo-mt-40":n,"jo-mt-22":r}),Re=n=>({name:n}),Te=(n,r)=>({"button-font-size-lg":n,"button-font-size":r}),je=(n,r)=>({"separator private-separator m-0":n,"separator m-0":r});function Me(n,r){if(1&n&&(e.j41(0,"div",4),e.nrm(1,"jo-alert-box",5),e.k0s()),2&n){const t=e.XpG(3);e.R7$(),e.Y8G("isDarkWithBorderLeft",!0)("iTitle","profile.profession.collaboration."+t.activationType+".success.title")("descriptionKey","profile.profession.collaboration."+t.activationType+".success.description")}}function Ie(n,r){if(1&n&&(e.j41(0,"div",4),e.nrm(1,"jo-alert-box",6),e.k0s()),2&n){const t=e.XpG(3);e.R7$(),e.Y8G("isDarkWithBorderLeft",!0)("iTitle","profile.profession.collaboration."+t.activationType+".error.title")("descriptionKey","profile.profession.collaboration."+t.activationType+".error.description")}}function De(n,r){if(1&n&&e.DNE(0,Me,2,3,"div",4)(1,Ie,2,3,"div",4),2&n){const t=r.linkSuccess,i=e.XpG(2);e.vxM(i.token&&null!==t&&t&&i.activationType?0:-1),e.R7$(),e.vxM(i.token&&null!==t&&!t&&i.activationType?1:-1)}}function $e(n,r){if(1&n&&(e.j41(0,"div",4),e.nrm(1,"jo-alert-box",7),e.k0s()),2&n){const t=e.XpG(3);e.R7$(),e.Y8G("isDarkWithBorderLeft",!0)("iTitle","profile.profession.collaboration.admin."+t.activationLinkJurp+".title")("descriptionKey","profile.profession.collaboration.admin."+t.activationLinkJurp+".description")("type",200===t.activationLinkJurp?"success":"error")}}function Ge(n,r){if(1&n&&e.DNE(0,$e,2,4,"div",4),2&n){const t=e.XpG(2);e.vxM(t.activationLinkJurp?0:-1)}}function Oe(n,r){if(1&n){const t=e.RV6();e.j41(0,"jwc-button",10),e.bIt("click",function(){e.eBV(t);const o=e.XpG(2).role,s=e.XpG(2);return e.Njj(s.switchRole(o))}),e.j41(1,"span",11),e.EFF(2),e.k0s(),e.EFF(3),e.nI1(4,"translate"),e.k0s()}if(2&n){const t=e.XpG(2).role;e.R7$(2),e.JRh(t.description+" - "),e.R7$(),e.SpI(" ",e.bMT(4,2,"profile.profession.role.button")," ")}}function ke(n,r){if(1&n&&(e.j41(0,"div",9),e.nrm(1,"jo-icon",12),e.j41(2,"span",11),e.EFF(3),e.k0s(),e.EFF(4),e.nI1(5,"translate"),e.k0s()),2&n){const t=e.XpG(2).role;e.R7$(3),e.JRh(t.description+" - "),e.R7$(),e.SpI(" ",e.bMT(5,2,"profile.profession.role.active")," ")}}function Fe(n,r){if(1&n&&e.DNE(0,Oe,5,4,"jwc-button",8)(1,ke,6,4,"div",9),2&n){const t=r,i=e.XpG().role;e.vxM(t.id!==i.id?0:-1),e.R7$(),e.vxM(t.id===i.id?1:-1)}}function we(n,r){if(1&n&&e.DNE(0,Fe,2,2),2&n){let t;const i=e.XpG();e.vxM((t=i.currentRole)?0:-1,t)}}function Je(n,r){1&n&&e.eu8(0)}function Ye(n,r){if(1&n&&(e.j41(0,"div",19),e.DNE(1,Je,1,0,"ng-container",20),e.k0s()),2&n){const t=e.XpG().role;e.XpG();const i=e.sdS(5);e.R7$(),e.Y8G("ngTemplateOutlet",i)("ngTemplateOutletContext",e.eq3(2,O,t))}}function Ne(n,r){1&n&&e.eu8(0)}function Le(n,r){if(1&n&&(e.j41(0,"div",14),e.DNE(1,Ne,1,0,"ng-container",20),e.k0s()),2&n){const t=e.XpG().role;e.XpG();const i=e.sdS(5);e.Y8G("joCol",e.lJ4(3,ye)),e.R7$(),e.Y8G("ngTemplateOutlet",i)("ngTemplateOutletContext",e.eq3(4,O,t))}}function Ue(n,r){if(1&n&&(e.j41(0,"div",13)(1,"div",14)(2,"div",15)(3,"div",16),e.nrm(4,"jo-icon",17),e.k0s(),e.j41(5,"div",18)(6,"div"),e.EFF(7),e.k0s(),e.DNE(8,Ye,2,4,"div",19),e.k0s()()(),e.DNE(9,Le,2,6,"div",14),e.k0s()),2&n){const t=r.role,i=e.XpG(),o=e.XpG();e.R7$(),e.Y8G("joCol",o.baseFullLg),e.R7$(2),e.Y8G("joCol","auto"),e.R7$(),e.xc7("color","#"+t.color),e.R7$(3),e.JRh(t.description),e.R7$(),e.vxM(i.isLGDesktop?-1:8),e.R7$(),e.vxM(i.isLGDesktop?9:-1)}}function Ve(n,r){1&n&&e.eu8(0)}function Xe(n,r){1&n&&e.eu8(0)}function Be(n,r){1&n&&(e.j41(0,"div",36),e.nrm(1,"jo-alert-box",37),e.k0s()),2&n&&(e.R7$(),e.Y8G("descriptionKey","profile.profession.noRole")("isDark",!0)("isMultiline",!1))}function He(n,r){if(1&n){const t=e.RV6();e.j41(0,"div",31)(1,"div",32),e.nrm(2,"span",33),e.nI1(3,"translate"),e.k0s(),e.j41(4,"div",14)(5,"jwc-button",34),e.bIt("click",function(){e.eBV(t);const o=e.XpG(5);return e.Njj(o.refreshRole())}),e.nrm(6,"jo-icon",35),e.EFF(7),e.nI1(8,"translate"),e.k0s()()(),e.DNE(9,Be,2,3,"div",36)}if(2&n){const t=e.XpG(3),i=e.XpG(),o=e.XpG();e.Y8G("ngClass",e.l_i(14,Se,i.isLGDesktop,!i.isLGDesktop)),e.R7$(),e.Y8G("joCol",o.baseFullLg8),e.R7$(),e.Y8G("innerHTML",e.i5U(3,9,"profile.profession.empty.role",e.eq3(17,Re,t.firstName+" "+t.lastName)),e.npT),e.R7$(2),e.Y8G("joCol",o.baseFullLgThird),e.R7$(),e.Y8G("ngClass",e.l_i(19,Te,i.isLGDesktop,!i.isLGDesktop))("outline",!0)("disabled",o.hasUpdated),e.R7$(2),e.SpI(" ",e.bMT(8,12,"profile.profession.empty.button")," "),e.R7$(2),e.vxM(o.hasUpdated?9:-1)}}function Ae(n,r){1&n&&e.eu8(0)}function ze(n,r){if(1&n&&e.nrm(0,"div",25),2&n){const t=e.XpG().$index;e.Y8G("ngClass",e.l_i(1,je,0===t,0!==t))}}function Ke(n,r){if(1&n&&(e.j41(0,"li"),e.DNE(1,Ae,1,0,"ng-container",20)(2,ze,1,4,"div",25),e.k0s()),2&n){const t=r.$implicit,i=r.$index,o=e.XpG(2);e.XpG(3);const s=e.sdS(7);e.R7$(),e.Y8G("ngTemplateOutlet",s)("ngTemplateOutletContext",e.eq3(3,O,t)),e.R7$(),e.vxM(i<o.length-1?2:-1)}}function We(n,r){if(1&n&&(e.j41(0,"ul",30),e.Z7z(1,Ke,3,5,"li",null,e.fX1),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.Dyx(t)}}function Qe(n,r){if(1&n&&e.DNE(0,He,10,22)(1,We,3,0,"ul",30),2&n){const t=r,i=e.XpG(3);e.vxM(0===t.length||1===t.length&&t[0].id===i.currentRole.id?0:-1),e.R7$(),e.vxM(t.length>1?1:-1)}}function qe(n,r){if(1&n&&(e.j41(0,"div",24)(1,"h2",25),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.DNE(4,Ve,1,0,"ng-container",20)(5,Xe,1,0,"ng-container",26),e.nrm(6,"p",27),e.nI1(7,"translate"),e.DNE(8,Qe,2,2),e.k0s(),e.j41(9,"div",28),e.nrm(10,"jo-alert-box",29),e.k0s()),2&n){let t;const i=e.XpG(2),o=e.sdS(1),s=e.sdS(3),d=e.XpG();e.R7$(),e.Y8G("ngClass",e.l_i(13,ne,i.isLGDesktop,!i.isLGDesktop)),e.R7$(),e.SpI(" ",e.bMT(3,9,"profile.profession.title")," "),e.R7$(2),e.Y8G("ngTemplateOutlet",o)("ngTemplateOutletContext",e.eq3(16,oe,d.activationSuccessful)),e.R7$(),e.Y8G("ngTemplateOutlet",s),e.R7$(),e.Y8G("ngClass",e.l_i(18,ne,i.isLGDesktop,!i.isLGDesktop))("innerHTML",e.bMT(7,11,"profile.profession.description"),e.npT),e.R7$(2),e.vxM((t=i.userData.roles.all)?8:-1,t),e.R7$(2),e.Y8G("descriptionKey","profile.profession.hint")}}function Ze(n,r){1&n&&e.eu8(0)}function et(n,r){1&n&&e.eu8(0)}function tt(n,r){1&n&&e.eu8(0)}function nt(n,r){if(1&n&&(e.j41(0,"div",21)(1,"h2"),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.DNE(4,Ze,1,0,"ng-container",20)(5,et,1,0,"ng-container",26),e.j41(6,"div",38),e.DNE(7,tt,1,0,"ng-container",20),e.k0s(),e.nrm(8,"jo-alert-box",39),e.k0s()),2&n){const t=e.XpG(2),i=e.sdS(1),o=e.sdS(3),s=e.sdS(7),d=e.XpG();e.R7$(2),e.JRh(e.bMT(3,9,"profile.professionJurP.title")),e.R7$(2),e.Y8G("ngTemplateOutlet",i)("ngTemplateOutletContext",e.eq3(11,oe,d.activationSuccessful)),e.R7$(),e.Y8G("ngTemplateOutlet",o),e.R7$(2),e.Y8G("ngTemplateOutlet",s)("ngTemplateOutletContext",e.eq3(13,O,t.currentRole)),e.R7$(),e.Y8G("isDark",!0)("isMultiline",d.isJuristicPersonVertreter(t.currentRole))("descriptionKey",d.isJuristicPersonVertreter(t.currentRole)?"profile.professionJurP.hint":"profile.profession.login")}}function ot(n,r){if(1&n&&(e.DNE(0,qe,11,21)(1,nt,9,15,"div",21),e.j41(2,"div",22),e.nrm(3,"jo-alert-box",23),e.k0s()),2&n){const t=e.XpG(),i=e.XpG();e.vxM(null!=t.currentRole&&t.currentRole.roleSwitchForbidden?-1:0),e.R7$(),e.vxM(null!=t.currentRole&&t.currentRole.roleSwitchForbidden?1:-1),e.R7$(2),e.Y8G("isMultiline",i.isJuristicPersonVertreter(t.currentRole))("descriptionKey",i.isJuristicPersonVertreter(t.currentRole)?"profile.professionJurP.tipp":"profile.profession.tipp")}}function it(n,r){if(1&n&&e.DNE(0,De,2,2,"ng-template",null,0,e.C5r)(2,Ge,1,1,"ng-template",null,1,e.C5r)(4,
1we,1,1,"ng-template",null,2,e.C5r)(6,Ue,10,7,"ng-template",null,3,e.C5r)(8,ot,4,4),2&n){let t;e.R7$(8),e.vxM((t=r.userData)?8:-1,t)}}let rt=(()=>{class n extends w.Y{constructor(t,i,o,s,d){super(t),this.appState=i,this.router=o,this.route=s,this.store=d,this.userData$=(0,b.br)((0,u.Lt)(m.Y.userData)),this.currentRole$=(0,b.br)((0,u.Lt)(m.Y.currentRole)),this.hasUpdated=!1,this.activationSuccessful=null,this.activationLinkJurp=null,this.isJuristicPersonVertreter=p.mq,this.baseFullLg8=I.AF,this.baseFullLgThird=I.FC,this.baseFullLg=I.I7}ngOnInit(){this.combined$=(0,z.z)([this.userData$,this.currentRole$,this.appState.isLGDesktop]).pipe((0,K.T)(([t,i,o])=>({userData:t,currentRole:i,isLGDesktop:o}))),this.checkForCollaborationLink()}checkForCollaborationLink(){const t=this.router.url.toLowerCase(),i=/qm/.test(t),o=/linkuser/.test(t),s=this.route.snapshot.queryParams;s?.token&&(this.token=s.token,i?(this.activationType="qm",this.handleLinkCollaborator()):o?(this.activationType="admin",this.handleLinkAdminUser()):(this.activationType="qm",this.handleLinkAccount()))}handleLinkAccount(){this.clientService.execute(new G.jC(this.token),{handleError:()=>{this.activationSuccessful=!1}}).subscribe(()=>{this.activationSuccessful=!0})}handleLinkCollaborator(){this.clientService.execute(new G.wp(this.token),{handleError:()=>{this.activationSuccessful=!1}}).subscribe(()=>{this.activationSuccessful=!0})}handleLinkAdminUser(){this.clientService.execute(new Ee.qs(this.token),{handleError:t=>{this.activationLinkJurp=404===t.status?404:400},handleBusinessError:t=>{this.activationLinkJurp=601<t.status&&t.status<607?t.status:400}}).subscribe(()=>{this.activationLinkJurp=200})}switchRole(t){this.store.dispatch(new x.tW(t.id,{url:te.b.PROFIL,navigationExtras:{queryParams:{index:"PROFILE_ROLES"}}}))}
1refreshRole(){this.hasUpdated||(this.store.dispatch(new x.Ax(!0)),this.hasUpdated=!0)}static{this.\u0275fac=function(i){return new(i||n)(e.rXU(e.zZn),e.rXU(f.tq),e.rXU(S.Ix),e.rXU(S.nX),e.rXU(u.il))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["jo-profile-profession-group"]],features:[e.Vt3],decls:2,vars:3,consts:[["linkUserTemplate",""],["linkJurpMessage",""],["activationArea",""],["roleItem",""],[1,"jo-mb-22"],["type","success",3,"isDarkWithBorderLeft","iTitle","descriptionKey"],["type","error",3,"isDarkWithBorderLeft","iTitle","descriptionKey"],[3,"isDarkWithBorderLeft","iTitle","descriptionKey","type"],[1,"small","button-width","outline"],[1,"active","text-left","text-lg-center","outline"],[1,"small","button-width","outline",3,"click"],[1,"sr-only"],["name","alert_success_fill_2 active-icon"],[1,"row","role-item","vertical-center","flex-nowrap"],[3,"joCol"],[1,"row","flex-nowrap"],[1,"pr-0",3,"joCol"],["name","user_rolle_fill",1,"role-icon"],[1,"pl-0","pr-lg-0","word-break","hyphens",3,"joCol"],[1,"mt-2"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"tab-body","jo-mb-32"],[1,"jo-mt-16"],["type","tipp",3,"isMultiline","descriptionKey"],[1,"tab-body"],[3,"ngClass"],[4,"ngTemplateOutlet"],[3,"ngClass","innerHTML"],[1,"jo-mt-32"],["type","hint",3,"descriptionKey"],[1,"tile"],[1,"row",3,"ngClass"],[1,"vertical-center","jo-mb-24","mb-lg-0",3,"joCol"],[3,"innerHTML"],["expand","block",1,"outline","refresh",3,"click","ngClass","outline","disabled"],["name","refresh"],[1,"jo-mt-24"],["type","hint",3,"descriptionKey","isDark","isMultiline"],[1,"jo-mb-16"],["type","hint",3,"isDark","isMultiline","descriptionKey"]],template:function(i,o){if(1&i&&(e.DNE(0,it,9,1),e.nI1(1,"async")),2&i){let s;e.vxM((s=e.bMT(1,1,o.combined$))?0:-1,s)}},dependencies:[P.K,c.tm,c.Qp,M.c,C.T3,C.YU,C.Jj,g.D9,R.q],styles:["[_nghost-%COMP%]   jwc-button.button-font-size-lg[_ngcontent-%COMP%]  button{font-size:.875rem}[_nghost-%COMP%]   jwc-button.button-font-size[_ngcontent-%COMP%]  button{font-size:1rem}[_nghost-%COMP%]   .button-width[_ngcontent-%COMP%]  button{width:10.625rem}
1[_nghost-%COMP%]   .separator[_ngcontent-%COMP%]{border-top:1px solid #d9d9d9;border-top:1px solid var(--background-gray-disabled)}[_nghost-%COMP%]   .private-separator[_ngcontent-%COMP%]{border-top:4px solid #d9d9d9;border-top:4px solid var(--background-gray-disabled)}[_nghost-%COMP%]   .role-item[_ngcontent-%COMP%]{min-height:4.5rem;padding:1.5rem 0rem}[_nghost-%COMP%]   .role-icon[_ngcontent-%COMP%]{font-size:1.25rem;position:relative;top:-.05rem;margin-right:.625rem}@media (min-width: 992px){[_nghost-%COMP%]   .role-item[_ngcontent-%COMP%]{min-height:4.5rem;padding:1rem 0rem}}[_nghost-%COMP%]   .active[_ngcontent-%COMP%]{color:#4c8055;color:var(--alert-success);width:10.625rem}[_nghost-%COMP%]   .active[_ngcontent-%COMP%]   jo-icon[_ngcontent-%COMP%]{position:relative;top:.15rem;font-size:1.5rem}[_nghost-%COMP%]   jo-alert-box[_ngcontent-%COMP%]  .alert-container{margin-bottom:0}"]})}}return n})();var _=a(4412),at=a(3993),D=a(3672),ie=a(7301),L=a(1413),k=a(5964),lt=a(1594),F=a(8146);const st=["*"];let ct=(()=>{class n{constructor(){}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["jo-theme-color-exp"]],ngContentSelectors:st,decls:2,vars:0,consts:[[1,"exp-color"]],template:function(i,o){1&i&&(e.NAR(),e.j41(0,"div",0),e.SdG(1),e.k0s())},encapsulation:2})}}return n})();var T=a(7989),$=a(1244),U=a(1990),V=a(4646),X=a(2211);const pt=n=>({"no-padding":n}),re=()=>({lg:6}),B=n=>({type:n});function mt(n,r){1&n&&(e.j41(0,"h2"),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"expertenProfile.listEntry.title")," "))}function dt(n,r){1&n&&(e.j41(0,"h2",2),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"expertenProfile.listEntry.title")," "))}function ut(n,r){1&n&&(e.nrm(0,"jo-icon",10)(1,"span",11),e.nI1(2,"translate")),2&n&&(e.R7$(),e.Y8G("innerHTML",e.bMT(2,1,"expertenProfile.listEntry.published_visible"),e.npT))}function ft(n,r){1&n&&(e.nrm(0,"jo-icon",12)(1,"span",11),e.nI1(2,"translate")),2&n&&(e.R7$(),e.Y8G("innerHTML",e.bMT(2,1,"expertenProfile.listEntry.rejected"),e.npT))}function ht(n,r){1&n&&(e.nrm(0,"jo-icon",10)(1,"span",11),e.nI1(2,"translate")),2&n&&(e.R7$(),e.Y8G("innerHTML",e.bMT(2,1,"expertenProfile.listEntry.published_not_visible"),e.npT))}function _t(n,r){if(1&n&&(e.j41(0,"jwc-input-radio-group",13),e.nI1(1,"translate"),e.nrm(2,"jwc-input-radio",14),e.nI1(3,"translate"),e.nrm(4,"jwc-input-radio",14),e.nI1(5,"translate"),e.k0s(),e.nrm(6,"jo-alert-box",15)(7,"jwc-input-datepicker",16),e.nI1(8,"translate")),2&n){const t=e.XpG();e.FS9("label",e.bMT(1,10,"expertenProfile.listEntry.enlistment.title")),e.Y8G("formControl",t.listeneintragForm.controls.publiclyVisible),e.R7$(2),e.FS9("label",e.bMT(3,12,"expertenProfile.listEntry.enlistment.yes")),e.Y8G("value",!0),e.R7$(2),e.FS9("label",e.bMT(5,14,"expertenProfile.listEntry.enlistment.no")),e.Y8G("value",!1),e.R7$(2),e.Y8G("isDark",!0),e.R7$(),e.FS9("label",e.bMT(8,16,"expertenProfile.listEntry.enlistment.enlistedUntil")),e.Y8G("hasBorder",!0)("formControl",t.listeneintragForm.controls.enlistedUntil)}}function bt(n,r){if(1&n&&(e.nrm(0,"jo-attribute-element",17),e.nI1(1,"translate"),e.nrm(2,"jo-alert-box",15)(3,"jo-attribute-element",18),e.nI1(4,"date")),2&n){const t=e.XpG();e.Y8G("value",e.bMT(1,3,"expertenProfile.listEntry.enlistment."+(null!=t.expertState.currentData.value&&t.expertState.currentData.value.publiclyVisible?"yes":"no"))),e.R7$(2),e.Y8G("isDark",!0),e.R7$(),e.Y8G("value",e.bMT(4,5,null==t.evIvRbExpert?null:t.evIvRbExpert.enlistedUntil))}}function Ct(n,r){if(1&n&&(e.j41(0,"div",22),e.nrm(1,"jwc-input-description",23),e.k0s()),2&n){const t=e.XpG(3);e.R7$(),e.Y8G("errorMessage",null==t.listeneintragForm.errors?null:t.listeneintragForm.errors.atLeastOneCheckbox)("showErrorMessage",!0)}}function vt(n,r){if(1&n&&(e.j41(0,"jwc-input-checkbox-group",20),e.nrm(1,"jwc-input-checkbox",21),e.nI1(2,"translate"),e.k0s(),e.j41(3,"jwc-input-checkbox-group",20),e.nrm(4,"jwc-input-checkbox",21),e.nI1(5,"translate"),e.k0s(),e.DNE(6,Ct,2,2,"div",22)),2&n){const t=e.XpG(2);e.Y8G("formControl",t.listeneintragForm.controls.eiv)("isSingle",!0),e.R7$(),e.FS9("label",e.bMT(2,7,"expertenProfile.listEntry.lists.eiv")),e.R7$(2),e.Y8G("formControl",t.listeneintragForm.controls.zv)("isSingle",!0),e.R7$(),e.FS9("label",e.bMT(5,9,"expertenProfile.listEntry.lists.zv")),e.R7$(2),e.vxM(null!=t.listeneintragForm.errors&&t.listeneintragForm.errors.atLeastOneCheckbox&&t.listeneintragForm.submitAttempt?6:-1)}}function xt(n,r){if(1&n&&e.nrm(0,"jo-attribute-element",19),2&n){const t=e.XpG(2);e.Y8G("value",t.displayListTypes)}}function gt(n,r){if(1&n&&(e.j41(0,"jo-experten-header",8),e.DNE(1,vt,7,11),e.nI1(2,"async"),e.DNE(3,xt,1,1,"jo-attribute-element",19),e.k0s()),2&n){const t=e.XpG();e.Y8G("expertHeaderDTO",e.eq3(10,B,t.evIvRbEditType.EXPERT_LISTS))("expertSubSection",t.lists)("allSections",t.expertState.allSections)("hasError",!t.isListsValid&&t.expertState.formListentry.submitAttempt)("shouldResetForms",!0)("formElement",t.expertState.formListentry)("profileState",t.expertState),e.R7$(),e.vxM(e.bMT(2,8,t.lists.isEditMode)?1:3)}}function Pt(n,r){if(1&n&&(e.nrm(0,"jwc-input",24),e.nI1(1,"async"),e.nI1(2,"translate"),e.nrm(3,"jwc-input",24),e.nI1(4,"async"),e.nI1(5,"translate"),e.nrm(6,"jwc-input",24),e.nI1(7,"async"),e.nI1(8,"translate")),2&n){const t=e.XpG();e.Y8G("formControl",t.listeneintragForm.controls.iban)("isHorizontal",e.bMT(1,15,t.expertState.isHorizontal$))("hasBorder",!0)("medium",!0)("label",e.bMT(2,17,"expertenProfile.listEntry.bankdata.iban")),e.R7$(3),e.Y8G("formControl",t.listeneintragForm.controls.bic)("isHorizontal",e.bMT(4,19,t.expertState.isHorizontal$))("hasBorder",!0)("medium",!0)("label",e.bMT(5,21,"expertenProfile.listEntry.bankdata.bic")),e.R7$(3),e.Y8G("formControl",t.listeneintragForm.controls.name)("isHorizontal",e.bMT(7,23,t.expertState.isHorizontal$))("hasBorder",!0)("medium",!0)("label",e.bMT(8,25,"expertenProfile.listEntry.bankdata.name"))}}function Et(n,r){if(1&n&&e.nrm(0,"jo-attribute-element",25)(1,"jo-attribute-element",26)(2,"jo-attribute-element",27),2&n){const t=e.XpG();e.Y8G("value",null==t.evIvRbExpert||null==t.evIvRbExpert.bankData?null:t.evIvRbExpert.bankData.iban),e.R7$(),e.Y8G("value",null==t.evIvRbExpert||null==t.evIvRbExpert.bankData?null:t.evIvRbExpert.bankData.bic),e.R7$(),e.Y8G("value",null==t.evIvRbExpert||null==t.evIvRbExpert.bankData?null:t.evIvRbExpert.bankData.name)}}let yt=(()=>{class n{constructor(t,i){this.translateService=t,this.expertState=i,this.destroyed$=new L.B,this.evIvRbEditType=T.KH,this.displayListTypes="";const{enlistment:o,lists:s,bankdata:d}=i.listentry;this.enlistment=o,this.lists=s,this.bankdata=d,this.listeneintragForm=i.formListentry}get evIvRbExpert(){return this.expertState.currentData.value}ngOnInit(){this.expertState.currentData.pipe((0,h.Q)(this.destroyed$)).subscribe(t=>{this.expertState.isExecutionerDto(t)&&(this.displayListTypes=[...t.listTypes.eiv?[this.translateService.instant("expertenProfile.listEntry.lists.eiv")]:[],...t.listTypes.zv?[this.translateService.instant("expertenProfile.listEntry.lists.zv")]:[]].join(", "))})}ngOnDestroy(){this.destroyed$.next(null),this.destroyed$.complete()}get isBankDataValid(){const t=this.expertState.formListentry.controls;return t.iban.valid&&t.bic.valid&&t.name.valid}get isEnlistmentVaild(){const t=this.expertState.formListentry.controls;return t.publiclyVisible.valid&&t.enlistedUntil.valid}get isListsValid(){const t=this.expertState.formListentry.controls;return t.eiv.valid&&t.zv.valid}static{this.\u0275fac=function(i){return new(i||n)(e.rXU(g.c$),e.rXU(D.s))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["jo-experten-listeneintrag"]],decls:27,vars:47,consts:[["type","hint","descriptionKey","expertenProfile.notice"],[3,"ngClass"],[1,"j
1o-mb-24"],[3,"formGroup"],[1,"d-flex","flex-wrap"],[1,"pl-0",3,"joCol"],["headerTitle","expertenProfile.listEntry.enlistment.title",3,"expertHeaderDTO","allSections","expertSubSection","hasError","shouldResetForms","formElement","profileState"],[1,"pl-0","pl-lg-3",3,"joCol"],["headerTitle","expertenProfile.listEntry.lists.title",1,"jo-mb-40","d-block",3,"expertHeaderDTO","expertSubSection","allSections","hasError","shouldResetForms","formElement","profileState"],["headerTitle","expertenProfile.listEntry.bankdata.title",3,"expertHeaderDTO","expertSubSection","allSections","hasError","shouldResetForms","formElement","profileState"],["name","check","fill","fill",1,"success","mx-2"],[3,"innerHTML"],["name","alert_fehler_ohne_kreis","fill","fill",1,"error","mx-2"],[3,"label","formControl"],[3,"label","value"],["type","hint","descriptionKey","expertenProfile.listEntry.enlistment.notice",3,"isDark"],[3,"hasBorder","label","formControl"],["label","expertenProfile.listEntry.enlistment.title",1,"d-block","mb-3",3,"value"],["label","expertenProfile.listEntry.enlistment.enlistedUntil",3,"value"],["label","expertenProfile.listEntry.lists.enlistedAs",3,"value"],[3,"formControl","isSingle"],[3,"label"],[1,"row","overflow-top","mb-4","mr-0","ml-0"],[3,"errorMessage","showErrorMessage"],[3,"formControl","isHorizontal","hasBorder","medium","label"],["label","expertenProfile.listEntry.bankdata.iban",3,"value"],["label","expertenProfile.listEntry.bankdata.bic",3,"value"],["label","expertenProfile.listEntry.bankdata.name",3,"value"]],template:function(i,o){1&i&&(e.nrm(0,"jo-alert-box",0),e.DNE(1,mt,3,3,"h2"),e.nI1(2,"async"),e.j41(3,"jo-card",1),e.nI1(4,"async"),e.DNE(5,dt,3,3,"h2",2),e.nI1(6,"async"),e.j41(7,"form",3)(8,"p")(9,"b"),e.EFF(10),e.nI1(11,"translate"),e.k0s(),e.DNE(12,ut,3,3)(13,ft,3,3)(14,ht,3,3),e.k0s(),e.j41(15,"div",4)(16,"div",5)(17,"jo-experten-header",6),e.DNE(18,_t,9,18),e.nI1(19,"async"),e.DNE(20,bt,5,7),e.k0s()(),e.j41(21,"div",7),e.DNE(22,gt,4,12,"jo-experten-header",8),e.j41(23,"jo-experten-header",9),e.DNE(24,Pt,9,27),e.nI1(25,"async"),e.DNE(26,Et,3,3),e.k0s()()()()()),2&i&&(e.R7$(),e.vxM(!1===e.bMT(2,27,o.expertState.isHeadlineIn)?1:-1),e.R7$(2),e.Y8G("ngClass",e.eq3(39,pt,e.bMT(4,29,o.expertState.hasNoPadding))),e.R7$(2),e.vxM(e.bMT(6,31,o.expertState.isHeadlineIn)?5:-1),e.R7$(2),e.Y8G("formGroup",o.listeneintragForm),e.R7$(3),e.JRh(e.bMT(11,33,"expertenProfile.listEntry.status")),e.R7$(2),e.vxM("APPROVED"===(null==o.expertState.currentData.value?null:o.expertState.currentData.value.status)&&null!=o.expertState.currentData.value&&o.expertState.currentData.value.publiclyVisible?12:-1),e.R7$(),e.vxM("LOCKED"===(null==o.expertState.currentData.value?null:o.expertState.currentData.value.status)||"DELETED"===(null==o.expertState.currentData.value?null:o.expertState.currentData.value.status)?13:-1),e.R7$(),e.vxM("APPROVED"!==(null==o.expertState.currentData.value?null:o.expertState.currentData.value.status)||null!=o.expertState.currentData.value&&o.expertState.currentData.value.publiclyVisible?-1:14),e.R7$(2),e.Y8G("joCol",e.lJ4(41,re)),e.R7$(),e.Y8G("expertHeaderDTO",e.eq3(42,B,o.evIvRbEditType.EXPERT_ENLISTMENT))("allSections",o.expertState.allSections)("expertSubSection",o.enlistment)("hasError",!o.isEnlistmentVaild&&o.expertState.formListentry.submitAttempt)("shouldResetForms",!0)("formElement",o.expertState.formListentry)("profileState",o.expertState),e.R7$(),e.vxM(e.bMT(19,35,o.enlistment.isEditMode)?18:20),e.R7$(3),e.Y8G("joCol",e.lJ4(44,re)),e.R7$(),e.vxM(o.expertState.isExecutionerDto(o.evIvRbExpert)?22:-1),e.R7$(),e.Y8G("expertHeaderDTO",e.eq3(45,B,o.evIvRbEditType.EXPERT_BANK_DATA))("expertSubSection",o.bankdata)("allSections",o.expertState.allSections)("hasError",!o.isBankDataValid&&o.expertState.formListentry.submitAttempt)("shouldResetForms",!0)("formElement",o.expertState.formListentry)("profileState",o.expertState),e.R7$(),e.vxM(e.bMT(25,37,o.bankdata.isEditMode)?24:26))},dependencies:[P.K,$.f,C.YU,l.YN,l.qT,l.BC,l.cb,l.X1,l.l_,l.j4,M.c,U.Z,c.iX,c.gv,c.tU,c.DV,c.Cg,V.L,c.mP,c.Sc,c.Ri,c.x1,c.yP,c.Sj,C.Jj,g.D9,X.K,R.q],styles:[".white-background[_ngcontent-%COMP%]{padding:1.5rem;margin-bottom:2.5rem;background-color:#fff;background-color:var(--white)}jo-card[_ngcontent-%COMP%]  .card-header{padding:1.5rem!important;margin-bottom:2.5rem}jo-card.no-padding[_ngcontent-%COMP%]  .card-header{padding:0rem!important;margin-bottom:2.5rem}jo-card.no-margin[_ngcontent-%COMP%]  .card-header{margin-bottom:0rem!important}jo-attribute-element[_ngcontent-%COMP%]  .row{margin-bottom:.25rem}@media (max-width: 767px){jo-attribute-element[_ngcontent-%COMP%]  .row{margin-bottom:1rem}}jo-attribute-element.last[_ngcontent-%COMP%]  .row{margin-bottom:0rem}*[_ngcontent-%COMP%]  .form-group{margin-bottom:.5rem}@media (max-width: 767px){*[_ngcontent-%COMP%]  .form-group{margin-bottom:1.5rem}}*[_ngcontent-%COMP%]  .horizontal>label{width:41%!important}*[_ngcontent-%COMP%]  .horizontal>div{width:59%!important}jwc-input-radio-group[_ngcontent-%COMP%]  legend{display:none}[_nghost-%COMP%]     jo-icon{font-size:11px;display:inline-block}[_nghost-%COMP%]     .success{color:#4c8055;color:var(--alert-success);--color-justiz-red: var(--alert-success)}[_nghost-%COMP%]     .error{color:#b00020;color:var(--alert-error);--color-justiz-red: var(--alert-error)}"]})}}return n})();var St=a(6794),Rt=a(364),Tt=a(4910),jt=a(7954),Mt=a(8076),It=a(4416),Dt=a(8356),$t=a(4146),Gt=a(8683),Ot=a(3924);const kt=n=>({"no-padding":n}),Ft=n=>({"jo-mb-40":n}),wt=(n,r)=>({type:n,id:r}),Jt=(n,r)=>({"mr-4":!0,interactive:n,disabled:r}),Yt=(n,r)=>({"outline d-flex align-items-end":!0,interactive:n,disabled:r}),Nt=n=>({type:n});function Lt(n,r){if(1&n&&(e.j41(0,"h2"),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.SpI(" ",e.bMT(2,1,"JURISTIC"===t.expertState.currentData.value.personType?"expertenProfile.vertretungen.company.title":"expertenProfile.vertretungen.title")," ")}}function Ut(n,r){if(1&n&&(e.j41(0,"h2",1),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.SpI(" ",e.bMT(2,1,"JURISTIC"===t.expertState.currentData.value.personType?"expertenProfile.vertretungen.company.title":"expertenProfile.vertretungen.title")," ")}}function Vt(n,r){if(1&n&&(e.nrm(0,"jo-attribute-element",8)(1,"jo-attribute-element",9),e.nI1(2,"date"),e.nrm(3,"jo-attribute-element",10),e.j41(4,"jo-attribute-element",11),e.nrm(5,"jo-small-alert",12),e.nI1(6,"translate"),e.nI1(7,"translate"),e.nI1(8,"translate"),e.k0s()),2&n){const t=e.XpG().$implicit;e.Y8G("value",t.firstName+" "+t.lastName),e.R7$(),e.Y8G("value",e.i5U(2,6,t.dateOfBirth,"yyyy")),e.R7$(2),e.Y8G("value",t.email),e.R7$(2),e.Y8G("type","PUBLISHED"===t.status||"APPROVED"===t.status?"success":"tipp")("icon","PUBLISHED"===t.status||"APPROVED"===t.status?"alert_success_fill_2":"in_process_fill")("label","PUBLISHED"===t.status?e.bMT(6,9,"expertenProfile.vertretungen.verification.approved"):"APPROVED"===t.status?e.bMT(7,11,"expertenProfile.vertretungen.verification.approved"):e.bMT(8,13,"expertenProfile.vertretungen.verification.inProgress"))}}function Xt(n,r){if(1&n&&(e.j41(0,"form",6),e.nrm(1,"jwc-input",13),e.nI1(2,"async"),e.nI1(3,"translate"),e.nrm(4,"jwc-input",14),e.nI1(5,"async"),e.nI1(6,"translate"),e.nrm(7,"jwc-input-datepicker",15),e.nI1(8,"async"),e.nI1(9,"translate"),e.nrm(10,"jwc-input-email",16),e.nI1(11,"async"),e.nI1(12,"translate"),e.nrm(13,"jo-attribute-element",17),e.k0s()),2&n){const t=e.XpG(),i=t.$
1implicit,o=t.$index,s=e.XpG();e.Y8G("formGroup",s.expertState.collaborators[o]),e.R7$(),e.Y8G("isHorizontal",e.bMT(2,19,s.expertState.isHorizontal$))("hasBorder",!0)("medium",!0)("label",e.bMT(3,21,"expertenProfile.vertretungen.firstName")),e.R7$(3),e.Y8G("isHorizontal",e.bMT(5,23,s.expertState.isHorizontal$))("hasBorder",!0)("medium",!0)("label",e.bMT(6,25,"expertenProfile.vertretungen.lastName")),e.R7$(3),e.Y8G("isHorizontal",e.bMT(8,27,s.expertState.isHorizontal$))("hasBorder",!0)("medium",!0)("minDate","1900-01-01")("label",e.bMT(9,29,"expertenProfile.vertretungen.dateOfBirth")),e.R7$(3),e.Y8G("isHorizontal",e.bMT(11,31,s.expertState.isHorizontal$))("hasBorder",!0)("medium",!0)("label",e.bMT(12,33,"expertenProfile.vertretungen.email")),e.R7$(3),e.Y8G("value","APPROVED"===i.status?"Ja":"Nein")}}function Bt(n,r){if(1&n){const t=e.RV6();e.j41(0,"div",7)(1,"span",18),e.bIt("click",function(o){e.eBV(t);const s=e.XpG().$implicit,d=e.XpG();return e.Njj(d.showDeleteCollaboratorModal(s.id,o))})("keydown.enter",function(o){e.eBV(t);const s=e.XpG().$implicit,d=e.XpG();return e.Njj(d.showDeleteCollaboratorModal(s.id,o))}),e.nrm(2,"jo-icon",19),e.EFF(3),e.nI1(4,"translate"),e.k0s()()}if(2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngClass",e.l_i(4,Jt,!t.isOneOpen(),t.isOneOpen())),e.R7$(2),e.SpI(" ",e.bMT(4,2,"expertenProfile.vertretungen.delete")," ")}}function Ht(n,r){if(1&n&&(e.j41(0,"div",2)(1,"div",4)(2,"jo-experten-header",5),e.DNE(3,Vt,9,15),e.nI1(4,"async"),e.DNE(5,Xt,14,35,"form",6),e.nI1(6,"async"),e.k0s(),e.DNE(7,Bt,5,7,"div",7),e.nI1(8,"async"),e.k0s()()),2&n){const t=r.$implicit,i=r.$index,o=e.XpG();e.R7$(),e.Y8G("joCol",o.baseFullLgHalf)("ngClass",e.eq3(15,Ft,i<o.collaborators.length-1)),e.R7$(),e.Y8G("expertHeaderDTO",e.l_i(17,wt,o.expertEditType.EXPERT_VERTRETUNG,i))("allSections",o.expertState.allSections)("expertSubSection",o.getSectionStateById(t))("profileState",o.expertState),e.R7$(),e.vxM(!1===e.bMT(4,9,o.getSectionStateById(t).isEditMode)?3:-1),e.R7$(2),e.vxM(e.bMT(6,11,o.sectionState[t.id.toString()].isEditMode)?5:-1),e.R7$(2),e.vxM(o.showDeleteButtonCollaborator(t.id)&&e.bMT(8,13,o.expertState.canEdit)&&!o.isNaturalVertreter?7:-1)}}function At(n,r){if(1&n){const t=e.RV6();e.j41(0,"div",3)(1,"div",20)(2,"div",18),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.addCollaborator())})("keydown.enter",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.addCollaborator())}),e.nrm(3,"jo-icon",21),e.j41(4,"span"),e.EFF(5),e.nI1(6,"translate"),e.k0s()()()()}if(2&n){const t=e.XpG();e.R7$(),e.Y8G("joCol","auto"),e.R7$(),e.Y8G("ngClass",e.l_i(5,Yt,!t.isOneOpen(),t.isOneOpen())),e.R7$(3),e.JRh(e.bMT(6,3,"expertenProfile.vertretungen.add"))}}function zt(n,r){if(1&n&&(e.j41(0,"div",2)(1,"div",22)(2,"jo-experten-header",23),e.qex(3),e.j41(4,"form",6),e.nrm(5,"jwc-input",13),e.nI1(6,"async"),e.nI1(7,"translate"),e.nrm(8,"jwc-input",14),e.nI1(9,"async"),e.nI1(10,"translate"),e.nrm(11,"jwc-input-datepicker",15),e.nI1(12,"async"),e.nI1(13,"translate"),e.nrm(14,"jwc-input-email",16),e.nI1(15,"async"),e.nI1(16,"translate"),e.k0s(),e.bVm(),e.k0s()()()),2&n){const t=e.XpG();e.R7$(),e.Y8G("joCol",t.baseFullLgHalf),e.R7$(),e.Y8G("expertHeaderDTO",e.eq3(39,Nt,t.expertEditType.EXPERT_VERTRETUNG))("allSections",t.expertState.allSections)("expertSubSection",t.sectionState.add)("profileState",t.expertState),e.R7$(2),e.Y8G("formGroup",t.expertState.formNewCollaborator),e.R7$(),e.Y8G("isHorizontal",e.bMT(6,23,t.expertState.isHorizontal$))("hasBorder",!0)("medium",!0)("label",e.bMT(7,25,"expertenProfile.vertretungen.firstName")),e.R7$(3),e.Y8G("isHorizontal",e.bMT(9,27,t.expertState.isHorizontal$))("hasBorder",!0)("medium",!0)("label",e.bMT(10,29,"expertenProfile.vertretungen.lastName")),e.R7$(3),e.Y8G("isHorizontal",e.bMT(12,31,t.expertState.isHorizontal$))("hasBorder",!0)("medium",!0)("minDate","1920-01-01")("label",e.bMT(13,33,"expertenProfile.vertretungen.dateOfBirth")),e.R7$(3),e.Y8G("isHorizontal",e.bMT(15,35,t.expertState.isHorizontal$))("hasBorder",!0)("medium",!0)("label",e.bMT(16,37,"expertenProfile.vertretungen.email"))}}let Kt=(()=>{class n{constructor(t,i,o,s,d,E){this.expertState=t,this.injector=i,this.store=o,this.joModalService=s,this.expertService=d,this.clientService=E,this.expertEditType=T.wM,this.addActive=new _.t(!1),this.isNaturalVertreter=!1,this.minDate={year:1900,month:1,day:1},this.baseFullLgHalf=I.Vq;const y=new Date;this.maxDate={year:y.getFullYear(),month:y.getMonth(),day:y.getDate()}}ngOnInit(){this.subscription=this.expertState.currentData.subscribe(t=>
1{if(this.sectionState=this.expertState.vertretungen,"collaborators"in t&&(this.collaborators=t.collaborators),this.collaborators)for(const i of this.collaborators)this.sectionState[i.id.toString()]={canEdit:!1,isEditMode:new _.t(!1)};this.isNaturalVertreter=this.store.selectSnapshot(m.Y.checkCurrentRole(p.IN))})}ngOnDestroy(){this.subscription.unsubscribe(),this.saveSubscription&&this.saveSubscription.unsubscribe()}addCollaborator(){this.isOneOpen()||(this.addActive.next(!0),this.sectionState.add.isEditMode=this.addActive,this.saveSubscription=this.expertState.saveSucccess.subscribe(()=>{"collaborators"in this.expertState.currentData.value&&(this.collaborators=this.expertState.currentData.value.collaborators)}))}showDeleteCollaboratorModal(t,i){if(!this.isOneOpen()){(0,$t.a)(i);const s=this.joModalService.openCustomizeDialog({title:"expertenProfile.vertretungen.popUp.deleteTitle",message:"expertenProfile.vertretungen.popUp.deleteMessage",confirm:"expertenProfile.vertretungen.popUp.deleteYes",abort:"expertenProfile.vertretungen.popUp.deleteNo",modalRef:null});s&&s.result.then(()=>{},d=>{"expertenProfile.vertretungen.popUp.deleteYes"===d&&this.deleteCollaborator(t)})}}deleteCollaborator(t){this.clientService.execute(new G.fw(t),{handleError:()=>{this.joModalService.standardErrorDialog()}}).subscribe(()=>{const i=this.expertState.currentData.value;"collaborators"in i&&(i.collaborators=i.collaborators.filter(o=>o.id!==t)),this.expertState.currentData.next(i),this.expertService.setFormCollaborators()})}getSectionStateById(t){return this.sectionState[t.id.toString()]}showDeleteButtonCollaborator(t){return"SV"===this.expertState.currentData.value.type||"DO"===this.expertState.currentData.value.type||"NATURAL"===this.expertState.currentData.value.personType||!(null==this.collaborators||this.collaborators.length<=1)&&(this.collaborators.filter(i=>"PUBLISHED"===i.status).length>1||"PUBLISHED"!==this.collaborators.find(i=>i.id===t).status)}isOneOpen(){return(0,D.J)(this.expertState.allSections)}static{this.\u0275fac=function(i){return new(i||n)(e.rXU(D.s),e.rXU(e.zZn),e.rXU(u.il),e.rXU(J.e),e.rXU(ie.Y),e.rXU(Ot.X))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["jo-experten-vertretungen"]],decls:11,vars:15,consts:[[3,"ngClass"],[1,"j
1o-mb-24"],[1,"row"],[1,"row","mt-4"],[3,"joCol","ngClass"],["headerTitle","expertenProfile.vertretungen.headerTitle",3,"expertHeaderDTO","allSections","expertSubSection","profileState"],[3,"formGroup"],[1,"mt-3"],["label","expertenProfile.vertretungen.name",3,"value"],["label","expertenProfile.vertretungen.yearOfBirth",3,"value"],["label","expertenProfile.vertretungen.email",3,"value"],["label","expertenProfile.vertretungen.approved"],[3,"type","icon","label"],["formControlName","firstName",3,"isHorizontal","hasBorder","medium","label"],["formControlName","lastName",3,"isHorizontal","hasBorder","medium","label"],["formControlName","dateOfBirth",3,"isHorizontal","hasBorder","medium","minDate","label"],["formControlName","email",3,"isHorizontal","hasBorder","medium","label"],["label","expertenProfile.vertretungen.approved",3,"value"],["role","button","tabindex","0",3,"click","keydown.enter","ngClass"],["name","loeschen"],[3,"joCol"],["name","hinzufuegen_fill",1,"icon-big"],[1,"mt-4",3,"joCol"],["headerTitle","expertenProfile.vertretungen.addTitle",3,"expertHeaderDTO","allSections","expertSubSection","profileState"]],template:function(i,o){1&i&&(e.DNE(0,Lt,3,3,"h2"),e.nI1(1,"async"),e.j41(2,"jo-card",0),e.nI1(3,"async"),e.DNE(4,Ut,3,3,"h2",1),e.nI1(5,"async"),e.Z7z(6,Ht,9,20,"div",2,e.fX1),e.DNE(8,At,7,8,"div",3),e.nI1(9,"async"),e.DNE(10,zt,17,41,"div",2),e.k0s()),2&i&&(e.vxM(!1===e.bMT(1,5,o.expertState.isHeadlineIn)?0:-1),e.R7$(2),e.Y8G("ngClass",e.eq3(13,kt,e.bMT(3,7,o.expertState.hasNoPadding))),e.R7$(2),e.vxM(e.bMT(5,9,o.expertState.isHeadlineIn)?4:-1),e.R7$(2),e.Dyx(o.collaborators),e.R7$(2),e.vxM(e.bMT(9,11,o.expertState.canEdit)&&!o.isNaturalVertreter?8:-1),e.R7$(2),e.vxM(!0===o.addActive.value?10:-1))},dependencies:[$.f,C.YU,U.Z,V.L,Gt.C,l.YN,l.qT,l.BC,l.cb,l.X1,l.j4,l.JD,c.x1,c.Sj,c.IF,c.DV,c.Cg,M.c,C.Jj,g.D9,X.K,R.q],styles:[".white-background[_ngcontent-%COMP%]{padding:1.5rem;margin-bottom:2.5rem;background-color:#fff;background-color:var(--white)}jo-card[_ngcontent-%COMP%]  .card-header{padding:1.5rem!important;margin-bottom:2.5rem}jo-card.no-padding[_ngcontent-%COMP%]  .card-header{padding:0rem!important;margin-bottom:2.5rem}jo-card.no-margin[_ngcontent-%COMP%]  .card-header{margin-bottom:0rem!important}jo-attribute-element[_ngcontent-%COMP%]  .row{margin-bottom:.25rem}@media (max-width: 767px){jo-attribute-element[_ngcontent-%COMP%]  .row{margin-bottom:1rem}}jo-attribute-element.last[_ngcontent-%COMP%]  .row{margin-bottom:0rem}*[_ngcontent-%COMP%]  .form-group{margin-bottom:.5rem}@media (max-width: 767px){*[_ngcontent-%COMP%]  .form-group{margin-bottom:1.5rem}}*[_ngcontent-%COMP%]  .horizontal>label{width:41%!important}*[_ngcontent-%COMP%]  .horizontal>div{width:59%!important}jwc-input-radio-group[_ngcontent-%COMP%]  legend{display:none}.icon-big[_ngcontent-%COMP%]{font-size:24pt}.disabled[_ngcontent-%COMP%]{color:var(--gray-menu)}"]})}}return n})();var Wt=a(6244);function Qt(n,r){1&n&&e.nrm(0,"jo-experten-listeneintrag")}function qt(n,r){1&n&&(e.j41(0,"div",2)(1,"jo-card",4),e.nrm(2,"jo-alert-box",5),e.k0s()()),2&n&&(e.R7$(2),e.Y8G("isDark",!0))}function Zt(n,r){if(1&n&&(e.DNE(0,Qt,1,0,"jo-experten-listeneintrag"),e.nI1(1,"async"),e.nrm(2,"jo-experten-info-and-contact",3),e.DNE(3,qt,3,1,"div",2)),2&n){const t=e.XpG(2);e.vxM(e.bMT(1,3,t.isEvIvRb$)?0:-1),e.R7$(2),e.Y8G("showPersonInformation",!0),e.R7$(),e.vxM("SV"===t.expertState.currentData.value.type||"DO"===t.expertState.currentData.value.type?3:-1)}}function en(n,r){1&n&&(e.j41(0,"div",2),e.nrm(1,"jo-alert-box",6),e.k0s()),2&n&&(e.R7$(),e.Y8G("isDark",!0))}function tn(n,r){1&n&&e.nrm(0,"jo-experten-fachgebiete")}function nn(n,r){if(1&n&&e.DNE(0,tn,1,0,"jo-experten-fachgebiete"),2&n){const t=e.XpG(2);e.vxM(t.expertState.currentData.value.fieldAssignments?0:-1)}}function on(n,r){1&n&&e.nrm(0,"jo-experten-sprachen")}function rn(n,r){if(1&n&&e.DNE(0,on,1,0,"jo-experten-sprachen"),2&n){const t=e.XpG(2);e.vxM(t.expertState.currentData.value.languageAssignments?0:-1)}}function an(n,r){1&n&&e.nrm(0,"jo-experten-ausbildung")(1,"jo-experten-infrastruktur")}function ln(n,r){1&n&&e.nrm(0,"jo-experten-scopes-of-activities-and-languages")(1,"jo-experten-enlistment-me")}function sn(n,r){1&n&&e.nrm(0,"jo-experten-vertretungen")}function cn(n,r){1&n&&e.nrm(0,"jo-experten-zusatz")}function pn(n,r){if(1&n&&(e.DNE(0,Zt,4,5)(1,en,2,1,"div",2)(2,nn,1,1)(3,rn,1,1)(4,an,2,0),e.nI1(5,"async"),e.DNE(6,ln,2,0),e.nI1(7,"async"),e.DNE(8,sn,1,0,"jo-experten-vertretungen"),e.nI1(9,"async"),e.DNE(10,cn,1,0,"jo-experten-zusatz")),2&n){const t=e.XpG();e.vxM("JURISTIC"!==t.expertState.currentData.value.personType&&t.expertState.currentData.value.firstName||"JURISTIC"===t.expertState.currentData.value.personType&&t.expertState.currentData.value.company?0:-1),e.R7$(),e.vxM("JURISTIC"!==t.expertState.currentData.value.personType&&!t.expertState.currentData.value.firstName||"JURISTIC"===t.expertState.currentData.value.personType&&!t.expertState.currentData.value.company?1:-1),e.R7$(),e.vxM("SV"===t.expertState.currentData.value.type?2:-1),e.R7$(),e.vxM("DO"===t.expertState.currentData.value.type?3:-1),e.R7$(),e.vxM(e.bMT(5,8,t.isEvIvRb$)?4:-1),e.R7$(2),e.vxM(e.bMT(7,10,t.isMe$)?6:-1),e.R7$(2),e.vxM(!1===e.bMT(9,12,t.isMe$)?8:-1),e.R7$(2),e.vxM(t.isPublicDoOrSv(t.expertState.currentData.value)&&t.expertState.currentData.value.additionalInformationAvailable?10:-1)}}function mn(n,r){1&n&&e.nrm(0,"jo-alert-box",0),2&n&&e.Y8G("isDark",!0)}function dn(n,r){1&n&&e.nrm(0,"jo-alert-box",1)}let H=(()=>{class n{constructor(t,i,o,s){this.appState=t,this.roleHandler=i,this.expertState=o,this.expertenService=s,this.isPublicDoOrSv=F.z1,this.userData$=(0,b.br)((0,u.Lt)(m.Y.userData)),this.canEdit$=(0,b.br)((0,u.Lt)(m.Y.checkCurrentRole(p.kq))),this.isEvIvRb$=(0,b.br)((0,u.Lt)(m.Y.checkCurrentRole(p.b1))),this.isMe$=(0,b.br)((0,u.Lt)(m.Y.checkCurrentRole(p.ne))),this.destroy$=new L.B}ngOnInit(){this.handleEdit(),this.handleExpert(),this.subscribeData()}ngOnDestroy(){this.expertenService.resetState(),this.destroy$.next(!0),this.destroy$.complete()}handleEdit(){this.canEdit$.pipe((0,h.Q)(this.destroy$),(0,k.p)(Bo
1olean),(0,j.s)(1)).subscribe(()=>{this.expertState.canEdit.next(!0)})}handleExpert(){this.expertState.isHeadlineIn.next(!0),this.expertenService.getData(new G.xd(this.roleHandler.actualRole.specifier)),this.expertenService.saveData(this.roleHandler.actualRole.specifier)}subscribeData(){this.expertState.currentData.pipe((0,h.Q)(this.destroy$)).subscribe(t=>{this.expertenService.handleTitle(t)}),this.expertState.getError$.pipe((0,h.Q)(this.destroy$)).subscribe(()=>{this.userData$.pipe((0,lt.$)()).subscribe(t=>{this.expertenService.handleTitle({firstName:t.firstName,lastName:t.lastName})})})}isEvIvRbDto(){return this.expertState.isEvIvRbDto(this.expertState.currentData.value)}static{this.\u0275fac=function(i){return new(i||n)(e.rXU(f.tq),e.rXU(Y.u),e.rXU(D.s),e.rXU(ie.Y))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["jo-experten-profile"]],decls:10,vars:15,consts:[["type","error","descriptionKey","profile.expert.expertError",1,"box-margin",3,"isDark"],["type","hint","descriptionKey","profile.expert.expertNotFoundError",1,"box-margin"],[1,"container-alert"],[3,"showPersonInformation"],[1,"card-person"],["type","hint","descriptionKey","profile.expert.hintBox",3,"isDark"],["type","error","descriptionKey","profile.expert.expertError",3,"isDark"]],template:function(i,o){1&i&&(e.j41(0,"jo-theme-color-exp"),e.DNE(1,pn,11,14),e.nI1(2,"async"),e.nI1(3,"async"),e.DNE(4,mn,1,1,"jo-alert-box",0),e.nI1(5,"async"),e.nI1(6,"async"),e.DNE(7,dn,1,0,"jo-alert-box",1),e.nI1(8,"async"),e.nI1(9,"async"),e.k0s()),2&i&&(e.R7$(),e.vxM(e.bMT(2,3,o.expertState.currentData)&&null===e.bMT(3,5,o.expertState.getError$)?1:-1),e.R7$(3),e.vxM(e.bMT(5,7,o.expertState.getError$)&&404!==e.bMT(6,9,o.expertState.getError$).status?4:-1),e.R7$(3),e.vxM(e.bMT(8,11,o.expertState.getError$)&&404===e.bMT(9,13,o.expertState.getError$).status?7:-1))},dependencies:[ct,yt,St.B,$.f,P.K,Rt.j,Tt.W,jt.U,Mt.i,It.J,Dt.b,Kt,Wt.f,C.Jj],styles:["[_nghost-%COMP%]   .container-alert[_ngcontent-%COMP%]{margin-top:-2rem}
1[_nghost-%COMP%]   .separator[_ngcontent-%COMP%]{border-top-width:2px}[_nghost-%COMP%]   .box-margin[_ngcontent-%COMP%]  div{margin-bottom:.5rem}[_nghost-%COMP%]   *[_ngcontent-%COMP%]  jo-card .card-header{margin-bottom:2rem!important}[_nghost-%COMP%]   jo-card.card-person[_ngcontent-%COMP%]  .card-header{margin-bottom:2rem!important}[_nghost-%COMP%]   jo-card.card-person[_ngcontent-%COMP%]  .card-header jo-alert-box  .alert-container{margin-bottom:1rem}"]})}}return n})();var un=a(9927);let fn=(()=>{class n{constructor(){this.iwgToken$=(0,b.br)((0,u.Lt)(m.Y.currentRoleIwgToken)),this.dummyForm=new l.gE({token:new l.MJ("")})}ngOnInit(){this.dummyForm.disable(),this.iwgToken$.pipe((0,k.p)(Boolean),(0,j.s)(1)).subscribe(t=>this.dummyForm.setValue({token:t}))}copyToClipboard(){navigator.clipboard.writeText(this.dummyForm.getRawValue().token).then()}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["web-jo-profile-iwg-token"]],decls:21,vars:18,consts:[[1,"mb-4","d-block"],[3,"formGroup"],["for","tokenInput","id","tokenLabel",1,"d-block"],[1,"d-flex","position-relative"],["id","tokenInput",1,"w-100",3,"formControl"],["role","button",1,"button-overflow",3,"click","tabIndex"],[1,"sr-only"],["name","dokumentgruppe"],[3,"innerHTML"]],template:function(i,o){1&i&&(e.j41(0,"h2"),e.EFF(1),e.nI1(2,"translate"),e.k0s(),e.j41(3,"jo-card",0)(4,"form",1)(5,"label",2)(6,"b"),e.EFF(7),e.nI1(8,"translate"),e.k0s()(),e.j41(9,"div",3),e.nrm(10,"jwc-input",4),e.j41(11,"a",5),e.bIt("click",function(){return o.copyToClipboard()}),e.j41(12,"span",6),e.EFF(13),e.nI1(14,"translate"),e.k0s(),e.nrm(15,"jo-icon",7),e.k0s()()()(),e.j41(16,"h2"),e.EFF(17),e.nI1(18,"translate"),e.k0s(),e.nrm(19,"p",8),e.nI1(20,"translate")),2&i&&(e.R7$(),e.JRh(e.bMT(2,8,"profile.iwg.token")),e.R7$(3),e.Y8G("formGroup",o.dummyForm),e.R7$(3),e.JRh(e.bMT(8,10,"profile.iwg.token")),e.R7$(3),e.Y8G("formControl",o.dummyForm.controls.token),e.R7$(),e.Y8G("tabIndex",1),e.R7$(2),e.JRh(e.bMT(14,12,"profile.iwg.ariaCopyToClipboard")),e.R7$(4),e.JRh(e.bMT(18,14,"profile.iwg.subtitle")),e.R7$(2),e.Y8G("innerHTML",e.bMT(20,16,"profile.iwg.howToChanges"),e.npT))},dependencies:[$.f,l.YN,l.qT,l.BC,l.cb,l.X1,l.l_,l.j4,c.x1,c.Sj,M.c,g.D9],styles:["[_nghost-%COMP%]   a.button-overflow[_ngcontent-%COMP%]{font-size:34px;position:absolute;width:48px;right:-3px;top:6px;color:gray;cursor:pointer}"]})}}return n})();var hn=a(325);let _n=(()=>{class n{constructor(t){this.store=t,this.formDefaultValues={paymentForm:{iban:null,bic:null,accountWording:null},addressInfoForm:{street:null,postCode:null,city:null,country:null,tel:null,email:null}},this.canEdit=new _.t(!1),this.hasNoPadding=new _.t(!1),this.isHeadlineIn=new _.t(!1),this.save=new e.bkB,this.saveSucccess=new e.bkB,this.abort=new e.bkB,this.section={sectionPayment:{canEdit:!0,isEditMode:new _.t(!1)},sectionAddressInfo:{canEdit:!0,isEditMode:new _.t(!1)}},this.getError$=new _.t(null),this.isHorizontal$=new _.t(!0),this.collaborators=[],this.formPayment=this.getPaymentFormGroup(),this.formAddressInfo=this.getAddressInfoGroup(),this.allSections={section:this.section}}addCompanyDataSection(){this.section.sectionCompanyData={canEdit:!1,isEditMode:new _.t(!1)}}addUserDataSection(){this.section.sectionUserData={canEdit:!1,isEditMode:new _.t(!1)}}getPaymentFormGroup(){return new l.gE({iban:new l.MJ(this.formDefaultValues.paymentForm.iban,[c.S6.isIBANValid()]),bic:new l.MJ(this.formDefaultValues.paymentForm.bic,[c.S6.isBICValid()]),accountWording:new l.MJ(this.formDefaultValues.paymentForm.accountWording)},[i=>(i.controls.iban.value?.trim()?i.controls.accountWording.setErrors(c.S6.required()(i.controls.accountWording)):i.controls.accountWording.setErrors(null),null)])}getAddressInfoGroup(){return new l.gE({street:new l.MJ(this.formDefaultValues.addressInfoForm.street),postCode:new l.MJ(this.formDefaultValues.addressInfoForm.postCode),city:new l.MJ(this.formDefaultValues.addressInfoForm.city),country:new l.MJ(this.formDefaultValues.addressInfoForm.country),tel:new l.MJ(this.formDefaultValues.addressInfoForm.tel),email:new l.MJ(this.formDefaultValues.addressInfoForm.email,[c.S6.email()])})}saveDataHandle(){this.saveSubscribe||(this.saveSubscribe=this.save.subscribe(t=>{t.type in T.fr&&(t.type===T.fr.PAYMENT?(this.formPayment.submitAttempt=!0,this.formPayment.valid&&this.updateRoleAndRefresh({paymentInfo:{iban:this.stringOrUndefined(this.formPayment.value.iban),bic:this.stringOrUndefined(this.formPayment.value.bic),accountWording:this.stringOrUndefined(this.formPayment.value.accountWording)}}
1)):t.type===T.fr.ADRESSE_INFO&&(this.formAddressInfo.submitAttempt=!0,this.formAddressInfo.valid&&this.updateRoleAndRefresh({addressInfo:{country:this.stringOrUndefined(this.formAddressInfo.value.country),email:this.stringOrUndefined(this.formAddressInfo.value.email),postCode:this.stringOrUndefined(this.formAddressInfo.value.postCode),street:this.stringOrUndefined(this.formAddressInfo.value.street),tel:this.stringOrUndefined(this.formAddressInfo.value.tel),city:this.stringOrUndefined(this.formAddressInfo.value.city)}})))}))}stringOrUndefined(t){return t?.trim()?t:void 0}updateRoleAndRefresh(t){this.store.dispatch(new x.Sy(t)).subscribe(()=>this.saveSucccess.next(!0))}static{this.\u0275fac=function(i){return new(i||n)(e.KVO(u.il))}}static{this.\u0275prov=e.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();const ae=()=>({lg:6}),le=n=>({type:n});function bn(n,r){if(1&n&&(e.nrm(0,"jo-attribute-element",10)(1,"jo-attribute-element",11)(2,"jo-attribute-element",12),e.nI1(3,"date")),2&n){const t=r;e.Y8G("value",t.lastName),e.R7$(),e.Y8G("value",t.firstName),e.R7$(),e.Y8G("value",e.bMT(3,3,t.dayOfBirth))}}function Cn(n,r){if(1&n&&(e.j41(0,"jo-experten-header",3),e.DNE(1,bn,4,5),e.k0s()),2&n){let t;const i=e.XpG(2);e.Y8G("allSections",i.privateProfileState.allSections)("expertSubSection",r)("profileState",i.privateProfileState),e.R7$(),e.vxM((t=i.userData())?1:-1,t)}}function vn(n,r){if(1&n&&e.nrm(0,"jo-attribute-element",13)(1,"jo-attribute-element",14),2&n){const t=r;e.Y8G("value",t.cname),e.R7$(),e.Y8G("value",t.ob)}}function xn(n,r){if(1&n&&(e.j41(0,"jo-experten-header",4),e.DNE(1,vn,2,2),e.k0s()),2&n){let t;const i=e.XpG(2);e.Y8G("allSections",i.privateProfileState.allSections)("expertSubSection",r)("profileState",i.privateProfileState),e.R7$(),e.vxM((t=i.castJuristicProxyUserDto(i.currentRole.proxyUser))?1:-1,t)}}function gn(n,r){if(1&n&&(e.nrm(0,"jwc-input",15),e.nI1(1,"translate"),e.nI1(2,"async"),e.nrm(3,"jwc-input",15),e.nI1(4,"translate"),e.nI1(5,"async"),e.nrm(6,"jwc-input",15),e.nI1(7,"translate"),e.nI1(8,"async")),2&n){const t=e.XpG(2);e.FS9("label",e.bMT(1,15,"myProfile.section.payment.iban")),e.Y8G("isHorizontal",e.bMT(2,17,t.privateProfileState.isHorizontal$))("hasBorder",!0)("medium",!0)("formControl",t.privateProfileState.formPayment.controls.iban),e.R7$(3),e.FS9("label",e.bMT(4,19,"myProfile.section.payment.bic")),e.Y8G("isHorizontal",e.bMT(5,21,t.privateProfileState.isHorizontal$))("hasBorder",!0)("medium",!0)("formControl",t.privateProfileState.formPayment.controls.bic),e.R7$(3),e.FS9("label",e.bMT(7,23,"myProfile.section.payment.accountWording")),e.Y8G("isHorizontal",e.bMT(8,25,t.privateProfileState.isHorizontal$))("hasBorder",!0)("medium",!0)("formControl",t.privateProfileState.formPayment.controls.accountWording)}}function Pn(n,r){if(1&n&&e.nrm(0,"jo-attribute-element",16)(1,"jo-attribute-element",17)(2,"jo-attribute-element",18),2&n){const t=e.XpG(2);e.Y8G("value",null==t.currentRole.roleData.paymentInfo?null:t.currentRole.roleData.paymentInfo.iban),e.R7$(),e.Y8G("value",null==t.currentRole.roleData.paymentInfo?null:t.currentRole.roleData.paymentInfo.bic),e.R7$(),e.Y8G("value",null==t.currentRole.roleData.paymentInfo?null:t.currentRole.roleData.paymentInfo.accountWording)}}function En(n,r){if(1&n&&(e.nrm(0,"jwc-input",15),e.nI1(1,"translate"),e.nI1(2,"async"),e.nrm(3,"jwc-input",15),e.nI1(4,"translate"),e.nI1(5,"async"),e.nrm(6,"jwc-input",15),e.nI1(7,"translate"),e.nI1(8,"async"),e.nrm(9,"jwc-input-select",19),e.nI1(10,"translate"),e.nI1(11,"async"),e.nrm(12,"jwc-input",15),e.nI1(13,"translate"),e.nI1(14,"async"),e.nrm(15,"jwc-input",15),e.nI1(16,"translate"),e.nI1(17,"async")),2&n){const t=e.XpG(2);e.FS9("label",e.bMT(1,31,"myProfile.section.addressInfo.street")),e.Y8G("isHorizontal",e.bMT(2,33,t.privateProfileState.isHorizontal$))("hasBorder",!0)("medium",!0)("formControl",t.privateProfileState.formAddressInfo.controls.street),e.R7$(3),e.FS9("label",e.bMT(4,35,"myProfile.section.addressInfo.postCode")),e.Y8G("isHorizontal",e.bMT(5,37,t.privateProfileState.isHorizontal$))("hasBorder",!0)("medium",!0)("formControl",t.privateProfileState.formAddressInfo.controls.postCode),e.R7$(3),e.FS9("label",e.bMT(7,39,"myProfile.section.addressInfo.city")),e.Y8G("isHorizontal",e.bMT(8,41,t.privateProfileState.isHorizontal$))("hasBorder",!0)("medium",!0)("formControl",t.privateProfileState.formAddressInfo.controls.city),e.R7$(3),e.FS9("label",e.bMT(10,43,"myProfile.section.addressInfo.country")),e.Y8G("items",t.countryListToShow())("isHorizontal",e.bMT(11,45,t.privateProfileState.isHorizontal$))("hasBorder",!0)("medium",!0)("formControl",t.privateProfileState.formAddressInfo.controls.country),e.R7$(3),e.FS9("label",e.bMT(13,47,"myProfile.section.addressInfo.tel")),e.Y8G("isHorizontal",e.bMT(14,49,t.privateProfileState.isHorizontal$))("hasBorder",!0)("medium",!0)("formControl",t.privateProfileState.formAddressInfo.controls.tel),e.R7$(3),e.FS9("label",e.bMT(16,51,"myProfile.section.addressInfo.email")),e.Y8G("isHorizontal",e.bMT(17,53,t.privateProfileState.isHorizontal$))("hasBorder",!0)("medium",!0)("formControl",t.privateProfileState.formAddressInfo.controls.email)}}function yn(n,r){if(1&n&&e.nrm(0,"jo-attribute-element",20)(1,"jo-attribute-element",21)(2,"jo-attribute-element",22)(3,"jo-attribute-element",23)(4,"jo-attribute-element",24)(5,"jo-attribute-element",25),2&n){const t=e.XpG(2);e.Y8G("value",null==t.currentRole.roleData.addressInfo?null:t.currentRole.roleData.addressInfo.street),e.R7$(),e.Y8G("value",null==t.currentRole.roleData.addressInfo?null:t.currentRole.roleData.addressInfo.postCode),e.R7$(),e.Y8G("value",null==t.currentRole.roleData.addressInfo?null:t.currentRole.roleData.addressInfo.city),e.R7$(),e.Y8G("value",null==t.currentRole.roleData.addressInfo?null:t.currentRole.roleData.addressInfo.country),e.R7$(),e.Y8G("value",null==t.currentRole.roleData.addressInfo?null:t.currentRole.roleData.addressInfo.tel),e.R7$(),e.Y8G("value",null==t.currentRole.roleData.addressInfo?null:t.currentRole.roleData.addressInfo.email)}}function Sn(n,r){if(1&n&&(e.j41(0,"div",0)(1,"div",1)(2,"div",2),e.DNE(3,Cn,2,4,"jo-experten-header",3)(4,xn,2,4,"jo-experten-header",4),e.k0s(),e.j41(5,"div",5)(6,"jo-experten-header",6),e.DNE(7,gn,9,27),e.nI1(8,"async"),e.DNE(9,Pn,3,3),e.k0s()()(),e.j41(10,"div",7)(11,"div",2)(12,"jo-experten-header",8),e.DNE(13,En,18,55),e.nI1(14,"async"),e.DNE(15,yn,6,6),e.k0s()(),e.nrm(16,"jo-alert-box",9),e.k0s()()),2&n){let t,i;const o=e.XpG();e.R7$(),e.Y8G("joCol",e.lJ4(25,ae)),e.R7$(2),e.vxM((t=o.privateProfileState.section.sectionUserData)?3:-1,t),e.R7$(),e.vxM((i=o.privateProfileState.section.sectionCompanyData)?4:-1,i),e.R7$(2),e.Y8G("allSections",o.privateProfileState.allSections)("expertSubSection",o.privateProfileState.section.sectionPayment)("hasError",!o.privateProfileState.formPayment.valid&&o.privateProfileState.formPayment.submitAttempt)("shouldResetForms",!0)("formElement",o.privateProfileState.formPayment)("profileState",o.privateProfileState)("expertHeaderDTO",e.eq3(26,le,o.JoPrivateEditType.PAYMENT)),e.R7$(),e.vxM(e.bMT(8,21,o.privateProfileState.section.sectionPayment.isEditMode)?7:9),e.R7$(3),e.Y8G("joCol",e.lJ4(28,ae)),e.R7$(2),e.Y8G("allSections",o.privateProfileState.allSections)("expertSubSection",o.privateProfileState.section.sectionAddressInfo)("hasError",!o.privateProfileState.formAddressInfo.valid&&o.privateProfileState.formAddressInfo.submitAttempt)("shouldResetForms",!0)("formElement",o.privateProfileState.formAddressInfo)("profileState",o.privateProfileState)("expertHeaderDTO",e.eq3(29,le,o.JoPrivateEditType.ADRESSE_INFO)),e.R7$(),e.vxM(e.bMT(14,23,o.privateProfileState.section.sectionAddressInfo.isEditMode)?13:15),e.R7$(3),e.Y8G("isDark",!0)}}let Rn=(()=>{class n{constructor(t,i,o){this.appState=t,this.privateProfileState=i,this.store=o,this.userData=(0,u.Lt)(m.Y.userData),this.countries=(0,u.Lt)(hn.o.countries),this.countryListToShow=(0,e.EWP)(()=>this.countries().map(s=>({value:s.label,label:s.label}))),this.canEdit=(0,u.Lt)(m.Y.checkCurrentRole(p.U8)),this.destroy$=new L.B,this.JoPrivateEditType=T.fr,this.castJuristicProxyUserDto=p.ZC,this.privateProfileState.isHorizontal$=this.appState.isDesktop}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}ngOnInit(){this.setUpProfileSections()}setUpProfileSections(){this.store.select(m.Y.currentRole).pipe((0,h.Q)(this.destroy$)).subscribe(t=>{setTimeout(()=>{const i=(0,p.Gw)(t),o=(0,p.mq)(t);t.roleData.paymentInfo&&this.privateProfileState.formPayment.reset(t.roleData.paymentInfo),t.roleData.addressInfo&&this.privateProfileState.formAddressInfo.reset(t.roleData.addressInfo),i?this.privateProfileState.addUserDataSection():o&&this.privateProfileState.addCompanyDataSection(),this.privateProfileState.canEdit.next(this.canEdit()),this.privateProfileState.saveDataHandle(),this.currentRole=t})})}static{this.\u0275fac=function(i){return new(i||n)(e.rXU(f.tq),e.rXU(_n),e.rXU(u.il))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["jo-profile"]],decls:8,vars:7,consts:[[1,"d-flex","flex-wrap"],[1,"pl-0","d-flex","flex-column","justify-content-between",3,"joCol"],[1,"mb-3"],["headerTitle","myProfile.section.userData.title",3,"allSections","expertSubSection","profileState"],["headerTitle","myProfile.section.companyData.title",3,"allSections","expertSubSection","profileState"],[1,"mb-3","mb-lg-5"],["headerTitle","myProfile.section.payment.title",3,"allSections","expertSubSection","hasError","shouldResetForms","formElement","profileState","expertHeaderDTO"],[1,"pl-0","pl-lg-3","d-flex","flex-column","justify-content-between",3,"joCol"],["headerTitle","myProfile.section.addressInfo.title",3,"allSections","expertSubSection","hasError","shouldResetForms","formElement","profileState","expertHeaderDTO"],["type","hint","descriptionKey","myProfile.section.addressInfo.mailHint",3,"isDark"],["label","myProfile.section.userData.lastName",3,"value"],["label","myProfile.section.userData.firstName",3,"value"],["label","myProfile.section.userData.dayOfBirth",3,"value"],["label","myProfile.section.companyData.cname",3,"value"],["label","myProfile.section.companyData.ob",3,"value"],[3,"isHorizontal","hasBorder","medium","formControl","label"],["label","myProfile.section.payment.iban",3,"value"],["label","myProfile.section.payment.bic",3,"value"],["label","myProfile.section.payment.accountWording",3,"value"],[3,"items","isHorizontal","hasBorder","medium","formControl","label"],["label","myProfile.section.addressInfo.street",3,"value"],["label","myProfile.section.addressInfo.postCode",3,"value"],["label","myProfile.section.addressInfo.city",3,"value"],["label","myProfile.section.addressInfo.country",3,"value"],["label","myProfile.section.addressInfo.tel",3,"value"],["label","myProfile.section.addressInfo.email",3,"value"]],template:function(i,o){1&i&&(e.j41(0,"jo-card")(1,"h2"),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"p"),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.DNE(7,Sn,17,31,"div",0),e.k0s()),2&i&&(e.R7$(2),e.JRh(e.bMT(3,3,"myProfile.title")),e.R7$(3),e.JRh(e.bMT(6,5,"myProfile.description")),e.R7$(2),e.vxM(o.currentRole?7:-1))},dependencies:[$.f,U.Z,V.L,c.x1,l.BC,l.l_,c.Sj,l.YN,l.X1,c.zY,c.KL,P.K,C.Jj,g.D9,X.K,R.q],styles:[".white-background[_ngcontent-%COMP%]{padding:1.5rem;margin-bottom:2.5rem;background-color:#fff;background-color:var(--white)}jo-card[_ngcontent-%COMP%]  .card-header{padding:1.5rem!important;margin-bottom:2.5rem}jo-card.no-padding[_ngcontent-%COMP%]  .card-header{padding:0rem!important;margin-bottom:2.5rem}jo-card.no-margin[_ngcontent-%COMP%]  .card-header{margin-bottom:0rem!important}jo-attribute-element[_ngcontent-%COMP%]  .row{margin-bottom:.25rem}@media (max-width: 767px){jo-attribute-element[_ngcontent-%COMP%]  .row{margin-bottom:1rem}}jo-attribute-element.last[_ngcontent-%COMP%]  .row{margin-bottom:0rem}*[_ngcontent-%COMP%]  .form-group{margin-bottom:.5rem}@media (max-width: 767px){*[_ngcontent-%COMP%]  .form-group{margin-bottom:1.5rem}}*[_ngcontent-%COMP%]  .horizontal>label{width:41%!important}*[_ngcontent-%COMP%]  .horizontal>div{width:59%!important}jwc-input-radio-group[_ngcontent-%COMP%]  legend{display:none}[_nghost-%COMP%]   .container-alert[_ngcontent-%COMP%]{margin-top:-2rem}
1[_nghost-%COMP%]   .separator[_ngcontent-%COMP%]{border-top-width:2px}[_nghost-%COMP%]   .box-margin[_ngcontent-%COMP%]  div{margin-bottom:.5rem}[_nghost-%COMP%]   *[_ngcontent-%COMP%]  jo-card .card-header{margin-bottom:2rem!important}[_nghost-%COMP%]   jo-card.card-person[_ngcontent-%COMP%]  .card-header{margin-bottom:2rem!important}[_nghost-%COMP%]   jo-card.card-person[_ngcontent-%COMP%]  .card-header jo-alert-box  .alert-container{margin-bottom:1rem}"]})}}return n})();var Tn=a(876);function jn(n,r){if(1&n){const t=e.RV6();e.j41(0,"div",2)(1,"jo-tabs",4),e.bIt("tabChangedEmitter",function(o){e.eBV(t);const s=e.XpG();return e.Njj(s.updateCurrentTab(o))}),e.k0s()()}if(2&n){const t=e.XpG();e.R7$(),e.Y8G("tabs",t.tabs)("hideForSingleTab",!0)("startActive",t.startIndex)("changeTab$",t.currentTab$)}}function Mn(n,r){1&n&&e.nrm(0,"jo-alert-box",3)}let se=(()=>{class n extends w.Y{constructor(t,i,o,s,d,E,y,Dn,$n,Gn){super(t),this.appState=i,this.route=o,this.router=s,this.roleHandler=d,this.breadcrumbService=E,this.expertState=y,this.store=Dn,this.joModalService=$n,this.location=Gn,this.startIndex=0,this.isUserError=!1,this.currentTab$=new _.t(this.startIndex),this.hasShownAdditionalInfo=!1,this.baseFullXl9=I.IT,this.appState.setTitle="JustizOnline - Profil"}get breadcrumbTitle(){const t=this.store.selectSnapshot(m.Y.userData),i=this.store.selectSnapshot(m.Y.currentRole);return t?(0,p.A4)(i)||(0,p.mq)(i)?"Profil "+t.firstName+" "+t.lastName+" ("+this.roleHandler.actualRole.name+")":(0,p.IN)(i)?"Profil "+t.firstName+" "+t.lastName+" (i.V. "+(0,p.pb)(this.roleHandler.actualRole.proxyUser)?.proxyFirstName+" "+(0,p.pb)(this.roleHandler.actualRole.proxyUser)?.proxyLastName+")":"Profil "+t.firstName+" "+t.lastName:"Profil"}ngOnInit(){this.checkConsent()}ngOnDestroy(){super.ngOnDestroy(),this.appState.setDefaultTitle(),this.appState.themeColor=f.IL.DEFAULT}updateCurrentTab(t){t!==this.currentTab$.value&&(this.currentTab$.next(t),"PROFILE_EXPERT_PROFILE"===this.getIdentifierFromTabIndex(t)&&this.expertState.canEdit.value&&(0,F.z1)(this.expertState.currentData.value)&&this.expertState.currentData.value.additionalInformation?.old&&this.openOldAdditionalInfoModal())}setUpProfile(){this.store.select(m.Y.hasUserData).pipe((0,h.Q)(this.destroyed$)).subscribe(t=>{t?(this.setUpTabs(),this.setBreadcrumb()):this.isUserError=!0})}setUpTabs(){this.store.select(m.Y.hasCurrentRole).pipe((0,h.Q)(this.destroyed$),(0,j.s)(1)).subscribe(()=>{this.setThemeColor(),this.setUpProfileAndExpertTabs()})}setUpProfileAndExpertTabs(){this.tabs={ariaLabel:"profile.tabs.ariaTitle",tabs:[]},this.setUpProfileTab(),this.setUpNotificationTab(),this.setUpRolesTab(),this.setUpExpertTab(),this.setupIwgTokenTab(),this.setStartIndex()}setUpNotificationTab(){this.store.selectSnapshot(m.Y.checkCurrentRole(p.YY))&&this.tabs.tabs.push({identifier:v.E.PROFILE_NOTIFICATIONS,title:"profile.tabs.benachrichtigung",icon:"postbox",component:Pe,withBodyStyle:!0,borderBottom:!0,themeColor:this.appState.themeColor})}setUpExpertTab(){if(this.store.selectSnapshot(m.Y.checkCurrentRole(p.TV))){const t=this.store.selectSnapshot(m.Y.currentRole);(0,p.kV)(t)?this.tabs.tabs.push({identifier:v.E.PROFILE_EXPERT_PROFILE,title:"profile.tabs.sachverstaendiger",icon:"user",component:H,withBodyStyle:!1,themeColor:f.IL.EXPERTENSUCHE,borderBottom:!0}):(0,p.WI)(t)?this.tabs.tabs.push({identifier:v.E.PROFILE_EXPERT_PROFILE,title:"profile.tabs.dolmetscher",icon:"user",component:H,withBodyStyle:!1,themeColor:f.IL.EXPERTENSUCHE,borderBottom:!0}):((0,p.b1)(t)||(0,p.ne)(t))&&this.tabs.tabs.push({identifier:v.E.PROFILE_EXPERT_PROFILE,title:"profile.tabs.evIvRb",icon:"user",component:H,withBodyStyle:!1,themeColor:f.IL.EXPERTENSUCHE,borderBottom:!0})}}checkConsent(){this.clientService.execute(new N.qt("common"),{handleError:()=>{this.isUserError=!0}}).subscribe(()=>{this.setUpProfile()})}setThemeColor(){const t=this.store.selectSnapshot(m.Y.currentRole);this.appState.themeColor=(0,p.gW)(t)||(0,p.A4)(t)?f.IL.EXPERTENSUCHE:(0,p.NV)(t)?f.IL.JURISTISCHE_PERSON:f.IL.DEFAULT}setUpProfileTab(){this.store.selectSnapshot(m.Y.checkCurrentRole(p.p8))&&this.tabs.tabs.push({identifier:v.E.PROFILE_MY_PROFILE,title:"profile.tabs.profil",icon:"user",component:Rn,withBodyStyle:!1,themeColor:this.appState.themeColor,borderBottom:!0})}setUpRolesTab(){const t=this.store.selectSnapshot(m.Y.currentRole);this.tabs.tabs.push({identifier:v.E.PROFILE_ROLES,title:(0,p.mq)(t)?"profile.tabs.roleJurP":"profile.tabs.role",icon:(0,p.mq)(t)?"user":"berufsgruppen",component:rt,withBodyStyle:!1,borderBottom:!0,themeColor:this.appState.themeColor})}setupIwgTokenTab(){this.store.selectSnapshot(m.Y.currentRoleIwgToken)&&this.tabs.tabs.push({identifier:v.E.PROFILE_IWG,title:"profile.tabs.iwg",icon:"code",component:fn,withBodyStyle:!1,borderBottom:!0,themeColor:this.appState.themeColor})}
1setStartIndex(){const t=this.route.snapshot.queryParams;this.roleHandler.getRoleIfFinished().then(()=>{if(t?.code)return this.handleCodeParam(t?.code),void this.removeCodeQueryParam();t?.token&&(this.startIndex=this.getTabIndexFromIdentifier(v.E.PROFILE_ROLES),this.removeTokenQueryParam()),t.index&&(this.startIndex=Math.min(this.handleIndexParam(t.index),this.tabs.tabs.length-1),this.expertState.currentData.pipe((0,h.Q)(this.destroyed$),(0,k.p)(Boolean),(0,j.s)(1)).subscribe(()=>{"PROFILE_EXPERT_PROFILE"===t.index&&this.expertState.canEdit.value&&(0,F.z1)(this.expertState.currentData.value)&&this.expertState.currentData.value.additionalInformation?.old&&this.openOldAdditionalInfoModal()}),this.removeIndexQueryParam()),this.subscribeToRouterEvents()})}subscribeToRouterEvents(){this.router.events.pipe((0,h.Q)(this.destroyed$),(0,k.p)(t=>t instanceof S.wF),(0,W.n)(()=>this.expertState.canEdit.pipe((0,at.E)(this.expertState.currentData)))).subscribe(([t,i])=>{const o=this.route.snapshot.queryParams;this.roleHandler.getRoleIfFinished().then(()=>{if(o?.code)return this.handleCodeParam(o?.code),void this.removeCodeQueryParam();o?.token&&(this.currentTab$.next(this.getTabIndexFromIdentifier(v.E.PROFILE_ROLES)),this.removeTokenQueryParam()),o.index&&(this.currentTab$.next(Math.min(this.handleIndexParam(o.index),this.tabs.tabs.length-1)),"PROFILE_EXPERT_PROFILE"===o.index&&t&&(0,F.z1)(i)&&i?.additionalInformation?.old&&this.openOldAdditionalInfoModal(),this.removeIndexQueryParam())})})}openOldAdditionalInfoModal(){!1===this.hasShownAdditionalInfo&&(this.hasShownAdditionalInfo=!0,this.joModalService.openCustomizeDialog({title:null,message:"profile.modal.oldAdditionalInformationPresent.message",confirm:null,abort:"profile.modal.oldAdditionalInformationPresent.closeButton",modalRef:null}))}removeCodeQueryParam(){this.router.navigate([],{queryParams:{code:null},queryParamsHandling:"merge"}).then(),this.setBreadcrumb()}removeTokenQueryParam(){(0,q.Ag)(this.location),this.setBreadcrumb()}removeIndexQueryParam(){this.router.navigate([],{queryParams:{index:null},queryParamsHandling:"merge"}).then(),this.setBreadcrumb()}handleCodeParam(t){this.roleHandler.getRoleIfFinished().then(i=>{const o=t.toUpperCase();if(o!==i.specifier){const s=this.store.selectSnapshot(m.Y.userData).roles.all.find(d=>d.specifier===o);s&&this.roleHandler.changeRole(s)}})}setBreadcrumb(){this.roleHandler.getRoleIfFinished().then(()=>{this.breadcrumbService.setBreadcrumbs([{label:this.breadcrumbTitle,path:te.b.PROFIL}])})}getIdentifierFromTabIndex(t){return this.tabs.tabs[t].identifier}getTabIndexFromIdentifier(t){let i;for(let o=0;o<this.tabs.tabs.length;o++)if(i=this.tabs.tabs[o],i.identifier===t)return o;return 0}handleIndexParam(t){return Number.isNaN(+t)?this.getTabIndexFromIdentifier(t):+t}static{this.\u0275fac=function(i){return new(i||n)(e.rXU(e.zZn),e.rXU(f.tq),e.rXU(S.nX),e.rXU(S.Ix),e.rXU(Y.u),e.rXU(un.b),e.rXU(D.s),e.rXU(u.il),e.rXU(J.e),e.rXU(Z.aZ))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["web-profile"]],features:[e.Vt3],decls:6,vars:4,consts:[[1,"row"],[3,"joCol"],[1,"container-tabs"],["type","error","descriptionKey","profile.email.getUserError"],[3,"tabChangedEmitter","tabs","hideForSingleTab","startActive","changeTab$"]],template:function(i,o){1&i&&(e.j41(0,"div",0)(1,"div",1)(2,"h1"),e.EFF(3),e.k0s(),e.DNE(4,jn,2,4,"div",2)(5,Mn,1,0,"jo-alert-box",3),e.k0s()()),2&i&&(e.R7$(),e.Y8G("joCol",o.baseFullXl9),e.R7$(2),e.JRh(o.breadcrumbTitle),e.R7$(),e.vxM(o.tabs?4:-1),e.R7$(),e.vxM(o.isUserError?5:-1))},dependencies:[Tn.f,P.K,R.q],styles:["[_nghost-%COMP%]     .form-group{margin-bottom:1.5rem}[_nghost-%COMP%]   .container-width[_ngcontent-%COMP%]{max-width:600px}[_nghost-%COMP%]   .container-control[_ngcontent-%COMP%]{display:flex;width:100%;max-width:800px}[_nghost-%COMP%]   .container-control[_ngcontent-%COMP%]   .container-width[_ngcontent-%COMP%]{flex:1}[_nghost-%COMP%]   .container-control[_ngcontent-%COMP%]   .delete-icon[_ngcontent-%COMP%]{padding-top:1.75rem;padding-left:.5rem}[_nghost-%COMP%]   .container-control[_ngcontent-%COMP%]   .delete-icon[_ngcontent-%COMP%]   jo-icon[_ngcontent-%COMP%]{font-size:1.5rem}[_nghost-%COMP%]     .icon-JO_berufsgruppen{position:relative;top:-.15rem}"]})}}return n})();const In=[{path:"",component:se},{path:":code",component:se}]}}]);

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.