1"use strict";(self.webpackChunkbadgr_pro_ui=self.webpackChunkbadgr_pro_ui||[]).push([[3135],{83135(Et,se,a){a.d(se,{UserAccountModule:()=>Dt});var g=a(72200),u=a(89417),ae=a(62814),ce=a(81148),le=a(98792),O=a(38132),F=a(81468),d=a(74523),B=(a(2011),a(54249),a(5211)),ue=a(16765),e=a(73664);let b=(()=>{class r extends ue.v{constructor(){super(...arguments),this.routes=this.currentUser.routes.account}static{this.\u0275fac=(()=>{let t;return function(i){return(t||(t=e.xGo(r)))(i||r)}})()}static{this.\u0275dir=e.FsC({type:r,features:[e.Vt3]})}}return r})();var s=a(2615),L=a(345),de=a(58950),k=a(68776),ge=a(52607),Y=a(81007),U=a(18432),A=a(89300),p=a(36185);const pe=r=>({organizationName:r}),D=r=>({brandName:r}),me=(r,o)=>({brandName:r,organizationName:o});let fe=(()=>{class r extends b{constructor(t,n,i,c){super(t),this.authService=n,this.domSanitizer=i,this.activatedRoute=c,this.selectedIdentifier=null,this.pageRoute=this.currentUser.routes.account.organization.profile,this.themeService.setTitle(this.pageRoute.pageTitle)}ngOnInit(){var t=this;return(0,d.A)(function*(){const n=t.queryParam("authError");n&&(t.clearQueryParams(),t.messageService.reportError(n,null))})()}unlinkAccount(t){var n=this;return(0,d.A)(function*(){if(n.currentUser.linkedSocialAccounts.length<2&&!n.currentUser.hasPasswordSet)return n.messageService.reportError(n.translateService.instant("userAccount.userAccount.userAccountSettings.setPasswordBeforeUnlink.error"),null),!1;(yield n.dialogService.confirmDialog.openTrueFalseDialog({dialogTitle:n.translateService.instant("userAccount.userAccount.orgUserProfile.unlinkAccount.confirmTitle.text",{providerName:t.providerInfo.name}),dialogBody:n.translateService.instant("userAccount.userAccount.orgUserProfile.unlinkAccount.confirmBody.text",{providerName:t.providerInfo.name,accountLabel:t.fullLabel,serviceName:n.theme.serviceName}),resolveButtonLabel:n.translateService.instant("userAccount.userAccount.orgUserProfile.unlinkAccount.confirmButton.label",{providerName:t.providerInfo.name}),rejectButtonLabel:n.translateService.instant("common.common.cancel")}))&&(yield t.unlink$)().then(()=>n.messageService.reportMinorSuccess(n.translateService.instant("userAccount.userAccount.orgUserProfile.unlinkAccount.success.message",{accountLabel:t.fullLabel})),n.messageService.errorHandler(n.translateService.instant("userAccount.userAccount.userAccountSettings.unlinkFailed.error")))})()}linkExternalAuthProvider(t){this.authService.initiateAuthenticatedExternalAuth(t)}makeIdentifierPrimary(t){var n=this;return(0,d.A)(function*(){n.currentUser.setPrimaryRecipientIdentifier(t).catch(n.messageService.errorHandler(n.translateService.instant("userAccount.userAccount.userAccountSettings.makePrimaryFailed.error")))})()}removeIdentifier(t){var n=this;return(0,d.A)(function*(){(yield n.dialogService.confirmDialog.openTrueFalseDialog({dialogTitle:n.translateService.instant("userAccount.userAccount.orgUserProfile.deleteEmail.confirmTitle.text"),dialogBody:n.translateService.instant("userAccount.userAccount.userAccountSettings.deleteEmailDialog.body",{email:t.value}),resolveButtonLabel:n.translateService.instant("userAccount.userAccount.orgUserProfile.deleteEmail.confirmButton.label"),rejectButtonLabel:n.translateService.instant("common.common.cancel")}))&&n.currentUser.removeRecipientIdentifier(t).catch(n.messageService.errorHandler(n.translateService.instant("userAccount.userAccount.orgUserProfile.deleteEmail.failure.error")))})()}static{this.\u0275fac=function(n){return new(n||r)(e.rXU(s.zZn),e.rXU(B.u),e.rXU(L.up),e.rXU(de.nX))}}static{this.\u0275cmp=e.VBU({type:r,selectors:[["ng-component"]],hostBindings:function(n,i){1&n&&e.bIt("focus",function(){return i.currentUser.refreshFromServer()},e.tSv)},standalone:!1,features:[e.Vt3],decls:45,vars:64,consts:[[3,"mainTitle"],["parentPage-x-description","",1,"u-text-body-large",3,"innerHTML"],[1,"l-flex","l-flex-column","l-flex-1x"],["titleStyle","section",3,"mainTitle"],["titleBar-x-description",""],[3,"bgRouterOutLink"],[1,"u-text","u-text-body"],[1,"u-padding-left0p5x",3,"id"],[1,"l-flex","l-flex-column","l-flex-2x","t-margin-top","t-margin-large"],[3,"valueChange","value"],[1,"u-text",3,"innerHTML"],[3,"bgHelpLink"]],template:function(n,i){1&n&&(e.j41(0,"bgl-parent-page",0),e.nrm(1,"span",1),e.nI1(2,"translate"),e.j41(3,"div")(4,"div",2)(5,"bg-title-bar",3),e.nI1(6,"translate"),e.j41(7,"div",4),e.EFF(8),e.nI1(9,"translate"),e.j41(10,"a",5),e.EFF(11),e.nI1(12,"translate"),e.k0s()()(),e.j41(13,"div",6)(14,"strong"),e.EFF(15),e.nI1(16,"translate"),e.k0s(),e.EFF(17),e.k0s(),e.j41(18,"div",6)(19,"strong"),e.EFF(20),e.nI1(21,"translate"),e.k0s(),e.nrm(22,"bg-recipient-identifier",7),e.k0s(),e.j41(23,"div",6)(24,"strong"),e.EFF(25),e.nI1(26,"translate"),e.k0s(),e.j41(27,"span"),e.EFF(28),e.nI1(29,"translate"),e.k0s()()(),e.j41(30,"div",8)(31,"bg-title-bar",3),e.nI1(32,"translate"),e.j41(33,"div",4),e.EFF(34),e.nI1(35,"translate"),e.j41(36,"a",5),e.EFF(37),e.nI1(38,"translate"),e.k0s(),e.EFF(39),e.nI1(40,"translate"),e.k0s()(),e.j41(41,"bg-toggle-switch",9),e.mxI("valueChange",function(f){return e.DH7(i.currentUser.isThemeOrgTrusted,f)||(i.currentUser.isThemeOrgTrusted=f),f}),e.nrm(42,"span",10),e.nI1(43,"translate"),e.nrm(44,"a",11),e.k0s()()()()),2&n&&(e.Y8G("mainTitle",i.pageRoute.pageTitle),e.R7$(),e.Y8G("innerHTML",e.i5U(2,22,"userAccount.userAccount.orgUserProfile.settingsDescription.text",e.eq3(53,pe,null==i.uiOrganization?null:i.uiOrganization.name)),e.npT),e.R7$(4),e.Y8G("mainTitle",e.bMT(6,25,"userAccount.userAccount.orgUserProfile.identity.title")),e.R7$(3),e.SpI(" ",e.bMT(9,27,"userAccount.userAccount.orgUserProfile.identity.descriptionPrefix")," "),e.R7$(2),e.Y8G("bgRouterOutLink",i.currentUser.routes.account.personal.accountSettings),e.R7$(),e.JRh(e.i5U(12,29,"userAccount.userAccount.orgUserProfile.identity.descriptionLinkText",e.eq3(55,D,i.brandingService.freeBrandName))),e.R7$(4),e.JRh(e.bMT(16,32,"userAccount.userAccount.orgUserProfile.name.label")),e.R7$(2),e.SpI(" ",i.currentUser.informalName," "),e.R7$(3),e.JRh(e.bMT(21,34,"userAccount.userAccount.orgUserProfile.primaryEmail.label")),e.R7$(2),e.Y8G("id",i.currentUser.primaryRecipientIdentifier),e.R7$(3),e.JRh(e.bMT(26,36,"userAccount.userAccount.orgUserProfile.occupation.label")),e.R7$(2),e.AVh("u-text-italic",!i.currentUser.jobTitle),e.R7$(),e.SpI(" ",i.currentUser.jobTitle||e.bMT(29,38,"userAccount.userAccount.orgUserProfile.occupation.notSpecified")," "),e.R7$(3),e.Y8G("mainTitle",e.bMT(32,40,"userAccount.userAccount.orgUserProfile.privacySecurity.title")),e.R7$(3),e.SpI(" ",e.bMT(35,42,"userAccount.userAccount.orgUserProfile.privacySecurity.descriptionPrefix")," "),e.R7$(2),e.Y8G("bgRouterOutLink",i.currentUser.routes.account.personal.privacy),e.R7$(),e.JRh(e.i5U(38,44,"userAccount.userAccount.orgUserProfile.privacySecurity.descriptionLinkText",e.eq3(57,D,i.brandingService.freeBrandName))),e.R7$(2),e.SpI(" ",e.i5U(40,47,"userAccount.userAccount.orgUserProfile.privacySecurity.descriptionSuffix",e.eq3(59,D,i.brandingService.freeBrandName))," "),e.R7$(2),e.R50("value",i.currentUser.isThemeOrgTrusted),e.R7$(),e.Y8G("innerHTML",e.i5U(43,50,"userAccount.userAccount.orgUserProfile.shareAllBadges.label",e.l_i(61,me,i.brandingService.freeBrandName,null==i.uiOrganization?null:i.uiOrganization.name)),e.npT),e.R7$(2),e.Y8G("bgHelpLink",i.helpLinks.aboutOrganizationAndIssuerTrust))},dependencies:[k.V,ge.I,Y.v,U.r,A.O,p.r],encapsulation:2})}}return r})();var E=a(67635),S=a(45428),M=a(65893),_=a(15500),w=a(62674),X=a(18907),x=a(41214);const be=(r,o)=>[r,o],he=r=>({required:r}),Ae=(r,o)=>({required:r,passwordMustChange:o}),_e=(r,o)=>({required:r,passwordsMatch:o});let ve=(()=>{class r extends b{passwordsMatchValidator(){return this.changePasswordForm&&this.changePasswordForm.controls.password.value===this.changePasswordForm.controls.password2.value?null:{passwordsMatch:!0}}passwordChanedValidator(){return this.changePasswordForm&&this.changePasswordForm.controls.currentPassword.value===this.changePasswordForm.controls.password.value?{passwordMustChange:!0}:null}constructor(t){super(t),this.isPasswordVisible=!1,this.isPassword2Visible=!1,this.isPassword3Visible=!1,this.changePasswordForm=(0,M.Yf)().addControl("currentPassword","",[u.k0.required]).addControl("password","",[u.k0.required,u.k0.minLength(8),this.passwordChanedValidator.bind(this)]).addControl("password2","",[u.k0.required,this.passwordsMatchValidator.bind(this)]),this.themeService.setTitle(this.translateService.instant("userAccount.userAccount.changePassword.title.text"))}onPasswordVisibilityToggle(){this.isPasswordVisible=!this.isPasswordVisible}onPassword2VisibilityToggle(){this.isPassword2Visible=!this.isPassword2Visible}onPassword3VisibilityToggle(){this.isPassword3Visible=!this.isPassword3Visible}handleSubmit(t){this.currentUser.updatePassword(t.currentPassword,t.password).then(()=>{const n=new URLSearchParams;n.set(F.Wu,this.translateService.instant("userAccount.userAccount.changePassword.success.message")),this.sessionService.authToken=null,window.location.replace("/auth/login?"+n.toString())},n=>{(0,E.ww)(n)&&(0,_.isInsecurePasswordException_InsecurePasswordErrorInfo)(n.errorInfo)?(this.messageService.dismissMessage(),this.changePasswordForm.controls.password.reportServerErrors((0,S.P)(n,n.errorInfo.messages.join(" ")))):(0,E.ww)(n)&&(0,_.isInvalidCredentialsException_InvalidCredentialsErrorInfo)(n.errorInfo)?(this.messageService.dismissMessage(),this.changePasswordForm.controls.currentPassword.reportServerErrors((0,S.P)(n,this.translateService.instant("userAccount.userAccount.changePassword.currentPassword.incorrect.error")))):this.messageService.reportAndThrowError((0,S.P)(n,this.translateService.instant("userAccount.userAccount.changePassword.failure.error")),n)})}static{this.\u0275fac=function(n){return new(n||r)(e.rXU(s.zZn))}}static{this.\u0275cmp=e.VBU({type:r,selectors:[["ng-component"]],standalone:!1,features:[e.Vt3],decls:26,vars:77,consts:[[3,"mainTitle","breadcrumbItems"],["parentPage-x-description",""],["linkStyle","textLink",3,"bgRouterLink"],[3,"bgTypedForm","cancelRoute","submitLabel","submittingLabel"],[1,"u-margin-bottom2x",3,"iconClick","control","label","errorMessage","fieldType","icon","isIconCl
1ickable","iconLabel","overrideAutocompleteType"],[1,"u-margin-bottom2x",3,"iconClick","control","label","errorMessage","fieldType","icon","isIconClickable","iconLabel","subLabel"],[1,"u-margin-bottom2x",3,"iconClick","control","label","fieldType","icon","isIconClickable","iconLabel","errorMessage"]],template:function(n,i){1&n&&(e.j41(0,"bgl-parent-page",0),e.nI1(1,"translate"),e.qex(2,1),e.EFF(3),e.nI1(4,"translate"),e.j41(5,"a",2),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.bVm(),e.j41(8,"form",3),e.nI1(9,"translate"),e.nI1(10,"translate"),e.j41(11,"bg-formfield-text",4),e.nI1(12,"translate"),e.nI1(13,"translate"),e.nI1(14,"translate"),e.bIt("iconClick",function(){return i.onPasswordVisibilityToggle()}),e.k0s(),e.j41(15,"bg-formfield-text",5),e.nI1(16,"translate"),e.nI1(17,"translate"),e.nI1(18,"translate"),e.nI1(19,"translate"),e.nI1(20,"translate"),e.bIt("iconClick",function(){return i.onPassword2VisibilityToggle()}),e.k0s(),e.j41(21,"bg-formfield-text",6),e.nI1(22,"translate"),e.nI1(23,"translate"),e.nI1(24,"translate"),e.nI1(25,"translate"),e.bIt("iconClick",function(){return i.onPassword3VisibilityToggle()}),e.k0s()()()),2&n&&(e.Y8G("mainTitle",e.bMT(1,32,"userAccount.userAccount.changePassword.title.text"))("breadcrumbItems",e.l_i(66,be,i.routes.personal.accountSettings,i.routes.personal.changePassword)),e.R7$(3),e.SpI(" ",e.bMT(4,34,"userAccount.userAccount.changePassword.noCurrentPassword.text")," "),e.R7$(2),e.Y8G("bgRouterLink",i.currentUser.routes.auth.forgotPassword.withReturn(i.routes.personal.accountSettings)),e.R7$(),e.SpI(" ",e.bMT(7,36,"userAccount.userAccount.changePassword.resetPassword.link")," "),e.R7$(2),e.Y8G("bgTypedForm",i.changePasswordForm.withHandler(i,i.handleSubmit))("cancelRoute",i.routes.personal.accountSettings)("submitLabel",e.bMT(9,38,"userAccount.userAccount.changePassword.title.text"))("submittingLabel",e.bMT(10,40,"userAccount.userAccount.changePassword.changingPassword.label")),e.R7$(3),e.Y8G("control",i.changePasswordForm.controls.currentPassword)("label",e.bMT(12,42,"userAccount.userAccount.changePassword.currentPassword.label"))("errorMessage",e.eq3(69,he,e.bMT(13,44,"userAccount.userAccount.changePassword.currentPassword.required.error")))("fieldType",i.isPasswordVisible?"text":"password")("icon",i.isPasswordVisible?"icon_action_visibility_off":"icon_action_visibility_on")("isIconClickable",!0)("iconLabel",e.bMT(14,46,i.isPasswordVisible?"auth.auth.signupForm.password.hide":"auth.auth.signupForm.password.show"))("overrideAutocompleteType","current-password"),e.R7$(4),e.Y8G("control",i.changePasswordForm.controls.password)("label",e.bMT(16,48,"auth.authentication.resetPassword.newPassword.label"))("errorMessage",e.l_i(71,Ae,e.bMT(17,50,"userAccount.userAccount.changePassword.newPassword.required.error"),e.bMT(18,52,"userAccount.userAccount.changePassword.newPassword.mustChange.error")))("fieldType",i.isPassword2Visible?"text":"password")("icon",i.isPassword2Visible?"icon_action_visibility_off":"icon_action_visibility_on")("isIconClickable",!0)("iconLabel",e.bMT(19,54,i.isPassword2Visible?"auth.auth.signupForm.password.hide":"auth.auth.signupForm.password.show"))("subLabel",e.bMT(20,56,"auth.auth.noAuthMethods.password.minlength")),e.R7$(6),e.Y8G("control",i.changePasswordForm.controls.password2)("label",e.bMT(22,58,"auth.authentication.resetPassword.confirmNewPassword.label"))("fieldType",i.isPassword3Visible?"text":"password")("icon",i.isPassword3Visible?"icon_action_visibility_off":"icon_action_visibility_on")("isIconClickable",!0)("iconLabel",e.bMT(23,60,i.isPassword3Visible?"auth.auth.signupForm.password.hide":"auth.auth.signupForm.password.show"))("errorMessage",e.l_i(74,_e,e.bMT(24,62,"auth.authentication.resetPassword.confirmNewPassword.required.error"),e.bMT(25,64,"auth.auth.signupForm.passwordConfirm.mismatch"))))},dependencies:[w.y,X.Dy,x.a,u.qT,u.cb,u.cV,A.O,p.r],encapsulation:2})}}return r})();var j=a(94751);const Ie=(r,o)=>[r,o];let Se=(()=>{class r extends b{constructor(t){super(t),this.profileEditForm=(0,M.Yf)().addControl("firstName","",[u.k0.required,u.k0.maxLength(30)]).addControl("lastName","",[u.k0.required,u.k0.maxLength(30)]).addControl("jobTitle",""),this.themeService.setTitle(this.translateService.instant("userAccount.userAccount.profileEdit.title.text")),this.currentUser.loadedProm
1ise.then(n=>this.profileEditForm.setValue({firstName:n.personalInfo?.firstName||"",lastName:n.personalInfo?.lastName||"",jobTitle:n.jobTitle||""}))}submitEdit(t){this.currentUser.updatePersonPersonalInfo({name:{firstName:(0,j.FF)(t.firstName),lastName:(0,j.FF)(t.lastName)},jobTitle:(0,j.FF)(t.jobTitle)}).then(()=>this.navigate(this.routes.personal.accountSettings),this.messageService.errorHandler(this.translateService.instant("userAccount.userAccount.profileEdit.updateFailure.error")))}static{this.\u0275fac=function(n){return new(n||r)(e.rXU(s.zZn))}}static{this.\u0275cmp=e.VBU({type:r,selectors:[["ng-component"]],standalone:!1,features:[e.Vt3],decls:10,vars:27,consts:[[3,"pageInfo","breadcrumbItems"],[3,"bgTypedForm","submitLabel","submittingLabel","cancelRoute"],[3,"control","label","overrideAutocompleteType"],[3,"control","label"]],template:function(n,i){1&n&&(e.j41(0,"bgl-parent-page",0)(1,"form",1),e.nI1(2,"translate"),e.nI1(3,"translate"),e.nrm(4,"bg-formfield-text",2),e.nI1(5,"translate"),e.nrm(6,"bg-formfield-text",2),e.nI1(7,"translate"),e.nrm(8,"bg-formfield-text",3),e.nI1(9,"translate"),e.k0s()()),2&n&&(e.Y8G("pageInfo",null==i.currentUser.routes||null==i.currentUser.routes.account||null==i.currentUser.routes.account.personal?null:i.currentUser.routes.account.personal.editName)("breadcrumbItems",e.l_i(24,Ie,i.routes.personal.accountSettings,i.routes.personal.editName)),e.R7$(),e.Y8G("bgTypedForm",i.profileEditForm.withHandler(i,i.submitEdit))("submitLabel",e.bMT(2,14,"common.common.save.button"))("submittingLabel",e.bMT(3,16,"common.common.saving.label"))("cancelRoute",i.routes.personal.accountSettings),e.R7$(3),e.Y8G("control",i.profileEditForm.controls.firstName)("label",e.bMT(5,18,"userAccount.userAccount.profileEdit.firstName.label"))("overrideAutocompleteType","given-name"),e.R7$(2),e.Y8G("control",i.profileEditForm.controls.lastName)("label",e.bMT(7,20,"userAccount.userAccount.profileEdit.lastName.label"))("overrideAutocompleteType","family-name"),e.R7$(2),e.Y8G("control",i.profileEditForm.controls.jobTitle)("label",e.bMT(9,22,"auth.auth.signupForm.jobTitle.label")))},dependencies:[X.Dy,x.a,u.qT,u.cb,u.cV,A.O,p.r],encapsulation:2})}}return r})();var y,l=a(31635),ye=a(97586),z=a.n(ye),H=a(55330),Te=a(89548),h=a(7589),$=a(18327);class q extends H.d8{get clientId(){return this.id.clientId}}class T extends q{constructor(o,t,n){super(o,t),this.apiModel=n}get creationDate(){return z()(this.apiModel.creationDate).toDate()}get expirationDate(){return z()(this.apiModel.expirationDate).toDate()}get scopes(){return this.apiModel?.scopes}get applicationName(){return this.apiModel?.applicationName}get applicationImageUrl(){return this.apiModel?.applicationImageUrl}get applicationWebsiteUrl(){return this.apiModel?.applicationWebsiteUrl}get presentationScopes(){return(0,Te.Ol)(this.scopes)}get detailRoute(){return{pageTitle:this.applicationName,routerLink:["/profile/privacy/apps/oauth2",this.clientId]}}delete(){return this.entityManager.performAction((0,_.createDeleteOAuth2AppAuthorizationApiEntityAction)({clientId:this.clientId}))}}(0,l.Cg)([(0,h.V)(),(0,l.Sn)("design:type",Object),(0,l.Sn)("design:paramtypes",[])],T.prototype,"creationDate",null),(0,l.Cg)([(0,h.V)(),(0,l.Sn)("design:type",Object),(0,l.Sn)("design:paramtypes",[])],T.prototype,"expirationDate",null),(0,l.Cg)([(0,h.V)(),(0,l.Sn)("design:type",Object),(0,l.Sn)("design:paramtypes",[])],T.prototype,"presentationScopes",null),(0,l.Cg)([(0,h.V)(),(0,l.Sn)("design:type",Object),(0,l.Sn)("design:paramtypes",[])],T.prototype,"detailRoute",null);let v=class extends H.yT{constructor(){super(...arguments),this.idClass=q,this.modelClass=T}static{y=this}static{this.wrapperClass=y}static{this.idType="OAuth2AppAuthorizationInfoApiEntityId"}static byId(o){return new $.YZ(y.wrapperClass,(0,_.createOAuth2AppAuthorizationInfoApiEntityId)({clientId:o}))}static{this.forCurrentUser=new $.UZ(y.wrapperClass,(0,_.createOAuth2AppAuthorizationInfosForAuthContextApiEntityGroupId)())}};v=y=(0,l.Cg)([(0,$.Jo)()],v);var J=a(17715),R=a(79873),Q=a(16530),W=a(53305);const Re=r=>[r],Z=r=>({applicationName:r}),Ce=r=>({brandName:r});function Pe(r,o){if(1&r){const t=e.RV6();e.j41(0,"li",4)(1,"div",5)(2,"div",6),e.nrm(3,"img",7),e.nI1(4,"translate"),e.k0s(),e.j41(5,"a",8),e.EFF(6),e.k0s(),e.j41(7,"div",9),e.EFF(8),e.nI1(9,"translate"),e.k0s()(),e.j41(10,"div",10)(11,"div",11),e.EFF(12),e.nI1(13,"translate"),e.j41(14,"strong")(15,"time"),e.EFF(16),e.nI1(17,"momentDate"),e.k0s()()(),e.j41(18,"button",12),e.nI1(19,"translate"),e.bIt("click",function(){const i=s.eBV(t).$implicit,c=e.XpG(2);return s.Njj(c.revokeApplication(i))}),e.EFF(20),e.nI1(21,"translate"),e.k0s()()()}if(2&r){const t=o.$implicit,n=e.XpG(2);e.R7$(3),e.Y8G("src",t.applicationImageUrl||n.images.placeholders.issuer,e.B4B)("alt",e.i5U(4,9,"userAccount.userAccount.appIntegrations.oauth2App.imageAlt",e.eq3(25,Z,t.applicationName))),e.R7$(2),e.Y8G("bgRouterLink",t.detailRoute),e.R7$(),e.JRh(t.applicationName),e.R7$(2),e.SpI(" ",e.i5U(9,12,"userAccount.userAccount.appIntegrations.oauth2App.description",e.eq3(27,Ce,n.brandingService.freeBrandName))," "),e.R7$(4),e.SpI(" ",e.bMT(13,15,"userAccount.userAccount.oauth2AppDetail.authorized.label")," "),e.R7$(4),e.JRh(e.i5U(17,17,t.creationDate,"lll")),e.R7$(2),e.BMQ("aria-label",e.i5U(19,20,"userAccount.userAccount.oauth2AppDetail.revokeAccess.ariaLabel",e.eq3(29,Z,t.applicationName))),e.R7$(2),e.SpI(" ",e.bMT(21,23,"userAccount.userAccount.appIntegrations.oauth2App.revoke")," ")}}function Ue(r,o){if(1&r&&(e.j41(0,"ul",2),e.DNE(1,Pe,22,31,"li",3),e.k0s()),2&r){const t=e.XpG();e.R7$(),e.Y8G("ngForOf",t.oAuth2AppIntegrations)}}class C extends b{get oAuth2AppIntegrations(){return this.entityManager.ensureTypedEntityGroup(v.forCurrentUser)}constructor(o){super(o),this.themeService.setTitle(this.translateService.instant("userAccount.userAccount.appIntegrations.connectedApps.title"))}revokeApplication(o){var t=this;return(0,d.A)(function*(){(yield t.dialogService.confirmDialog.openTrueFalseDialog({dialogTitle:t.translateService.instant("userAccount.userAccount.oauth2AppDetail.revokeDialog.title"),dialogBody:t.translateService.instant("userAccount.userAccount.oauth2AppDetail.revokeDialog.body"),useMarkdown:!1,rejectButtonLabel:t.translateService.instant("common.common.cancel"),resolveButtonLabel:t.translateService.instant("userAccount.userAccount.appIntegrations.revokeDialog.confirm")}
1))&&(yield o.delete$)().catch(t.messageService.errorHandler(t.translateService.instant("userAccount.userAccount.oauth2AppDetail.revokeFailed.error")))})()}static{this.\u0275fac=function(t){return new(t||C)(e.rXU(s.zZn))}}static{this.\u0275cmp=e.VBU({type:C,selectors:[["ng-component"]],standalone:!1,features:[e.Vt3],decls:2,vars:4,consts:[[3,"pageInfo"],["class","l-grid l-grid-1 l-grid-2attablet l-grid-3atlaptop",4,"bgAwaitPromises"],[1,"l-grid","l-grid-1","l-grid-2attablet","l-grid-3atlaptop"],["class","integrationcard",4,"ngFor","ngForOf"],[1,"integrationcard"],[1,"integrationcard-x-body"],[1,"integrationcard-x-image"],["width","80",1,"badgeimage",3,"src","alt"],[1,"integrationcard-x-title",3,"bgRouterLink"],[1,"integrationcard-x-desc"],[1,"integrationcard-x-footer"],[1,"integrationcard-x-status"],["buttonStyle","textLink-small","type","button",1,"integrationcard-x-link",3,"click"]],template:function(t,n){1&t&&(e.j41(0,"bgl-child-page",0),e.DNE(1,Ue,2,1,"ul",1),e.k0s()),2&t&&(e.Y8G("pageInfo",n.routes.personal.privacy.appIntegrations),e.R7$(),e.Y8G("bgAwaitPromises",e.eq3(2,Re,n.oAuth2AppIntegrations)))},dependencies:[g.Sq,J.h,w.y,R.O,Q.A,W.D,p.r],encapsulation:2})}}function Fe(r,o){if(1&r){const t=e.RV6();e.j41(0,"tr",7)(1,"td",4)(2,"a",8),e.EFF(3),e.k0s()(),e.j41(4,"td",4)(5,"bg-toggle-switch",9),e.bIt("valueChange",function(i){const c=s.eBV(t).$implicit,f=e.XpG();return s.Njj(f.updateOrgTrust(c,i))}),e.j41(6,"span",10),e.EFF(7),e.nI1(8,"translate"),e.k0s()()()()}if(2&r){const t=o.$implicit,n=e.XpG();e.R7$(2),e.Y8G("bgRouterOutLink",t.domainRoute),e.R7$(),e.SpI(" ",t.name," "),e.R7$(2),e.Y8G("value",null==n.currentUser?null:n.currentUser.isOrgTrusted(t.organizationId)),e.R7$(2),e.JRh(e.bMT(8,4,"userAccount.userAccount.orgPermissions.shareBackpack.label"))}}(0,l.Cg)([(0,h.V)(),(0,l.Sn)("design:type",Object),(0,l.Sn)("design:paramtypes",[])],C.prototype,"oAuth2AppIntegrations",null),a(11869);let ke=(()=>{class r extends b{ngOnInit(){var t=this;return(0,d.A)(function*(){t.currentUser.organizationsForPicker.loadedProm
1ise.then(n=>{0===n.length&&t.navigate(t.currentUser.routes.account.personal.privacy.appIntegrations,{replaceUrl:!0})})})()}updateOrgTrust(t,n){n!==this.currentUser.isOrgTrusted(t.organizationId)&&this.currentUser.updateOrgTrust(t.organizationId,n).catch(this.messageService.errorHandler(this.translateService.instant(n?"entity.entity2.currentUser.orgTrust.allowFailed.error":"entity.entity2.currentUser.orgTrust.disallowFailed.error")))}static{this.\u0275fac=(()=>{let t;return function(i){return(t||(t=e.xGo(r)))(i||r)}})()}static{this.\u0275cmp=e.VBU({type:r,selectors:[["ng-component"]],standalone:!1,features:[e.Vt3],decls:12,vars:9,consts:[[3,"pageInfo"],[1,"gridtable",3,"ariaLabel"],[1,"gridtable-x-head"],[1,"gridtable-x-headerRow"],[1,"gridtable-x-cell"],[1,"gridtable-x-body"],["class","gridtable-x-row",4,"ngFor","ngForOf"],[1,"gridtable-x-row"],[3,"bgRouterOutLink"],[3,"valueChange","value"],[1,"u-text"]],template:function(n,i){1&n&&(e.j41(0,"bgl-child-page",0)(1,"table",1)(2,"thead",2)(3,"tr",3)(4,"th",4),e.EFF(5),e.nI1(6,"translate"),e.k0s(),e.j41(7,"th",4),e.EFF(8),e.nI1(9,"translate"),e.k0s()()(),e.j41(10,"tbody",5),e.DNE(11,Fe,9,6,"tr",6),e.k0s()()()),2&n&&(e.Y8G("pageInfo",i.routes.personal.privacy.orgPermissions),e.R7$(),e.Y8G("ariaLabel",i.routes.personal.privacy.orgPermissions.pageTitle),e.R7$(4),e.SpI(" ",e.bMT(6,5,"issuerAuthoring.common.issuerList.issuerCard.visibility.organizationLink")," "),e.R7$(3),e.SpI(" ",e.bMT(9,7,"userAccount.userAccount.orgPermissions.access.label")," "),e.R7$(3),e.Y8G("ngForOf",i.currentUser.organizationsForPicker))},dependencies:[g.Sq,Y.v,U.r,Q.A,p.r],encapsulation:2})}}return r})();const De=(r,o)=>[r,o];let Ee=(()=>{class r extends b{static{this.\u0275fac=(()=>{let t;return function(i){return(t||(t=e.xGo(r)))(i||r)}})()}static{this.\u0275cmp=e.VBU({type:r,selectors:[["ng-component"]],hostBindings:function(n,i){1&n&&e.bIt("focus",function(){return i.currentUser.refreshFromServer()},e.tSv)},standalone:!1,features:[e.Vt3],decls:1,vars:5,consts:[[3,"pageInfo","tabs"]],template:function(n,i){1&n&&e.nrm(0,"bgl-parent-page",0),2&n&&e.Y8G("pageInfo",i.routes.personal.privacy)("tabs",e.l_i(2,De,(null==i.currentUser.organizationsForPicker?null:i.currentUser.organizationsForPicker.length)>0?i.routes.personal.privacy.orgPermissions:null,i.routes.personal.privacy.appIntegrations))},dependencies:[A.O],encapsulation:2})}}return r})();var Me=a(2528),G=a(33871),K=a(59238),ee=a(13446),we=a(84546),te=a(81890),xe=a(98656),je=a(10619),$e=a(29600),Ge=a(26195),ne=a(72896),m=a(38536),V=a(54551);const Ve=["verificationPanel"];function Ne(r,o){if(1&r){const t=e.RV6();e.j41(0,"dialog-layout",2),e.nI1(1,"translate"),e.bIt("closeButtonClicked",function(){s.eBV(t);const i=e.XpG();return s.Njj(i.closeDialog())}),e.j41(2,"bg-recipient-verification-panel",3,0),e.nI1(4,"translate"),e.bIt("codeValidated",function(i){s.eBV(t);const c=e.XpG();return s.Njj(c.addEmail(i))})("cancelRequested",function(){s.eBV(t);const i=e.XpG();return s.Njj(i.closeDialog())}),e.k0s()()}if(2&r){const t=e.XpG();e.Y8G("dialogTitle",e.bMT(1,7,"auth.auth.invitation.addEmail.title"))("showCloseButton",!0),e.R7$(2),e.Y8G("badgrServerId",t.currentUser.badgrServerId)("customIdValidator",t.validateId.bind(t))("recipientIdentifierFilter",t.filterId.bind(t))("requestIdentifierMe
1ssage",e.bMT(4,9,"userAccount.userAccount.addRecipientIdentifierDialog.enterEmail.message"))("isInDialog",!0)}}let Oe=(()=>{class r extends m.xD{get promise(){return this.ourPromise&&this.ourPromise.promise}constructor(t){super(t)}onNavigationRequested(){return this.closeModal(),!0}openDialog(){var t=this;return(0,d.A)(function*(){return t.ourPromise=(0,V.Qo)(),yield t.showModal(),t.ourPromise.promise})()}closeDialog(){this.closeModal()}onCancelRequested(){this.closeDialog()}onProceedRequested(){}onOutsideClick(){this.closeModal()}validateId(t){return this.currentUser.recipientIdentifiers.find(n=>n.type===t.type&&n.value===t.value)?this.translateService.instant("userAccount.userAccount.addRecipientIdentifierDialog.emailAlreadyAssociated.error"):null}filterId(t){return!this.currentUser.hasVerifiedIdentifier(t)||(this.closeDialog(),this.currentUser.addRecipientIdentifierCaseVariant(t).then(()=>this.messageService.reportMajorSuccess(this.translateService.instant("userAccount.userAccount.addRecipientIdentifierDialog.addedCaseVariant.success",{email:t.value})),this.messageService.errorHandler(this.translateService.instant("userAccount.userAccount.addRecipientIdentifierDialog.failedToAddCaseVariant.error"))),!1)}addEmail(t){this.closeDialog(),this.currentUser.addRecipientIdentifier(t.tokenInfo.token,!1).then(()=>this.messageService.reportMajorSuccess(this.translateService.instant("userAccount.userAccount.addRecipientIdentifierDialog.emailSuccessfullyAdded.success",{email:t.recipientIdentifier.value})),n=>{if((0,E.ww)(n)&&(0,_.isInvalidEmailException_InvalidEmailErrorInfo)(n.errorInfo)){const i=(0,S.P)(n,n.errorInfo.messages.join(" "));this.messageService.reportAndThrowError(this.translateService.instant("userAccount.userAccount.addRecipientIdentifierDialog.failedToAddEmail.error",{message:i}),n)}else this.messageService.reportAndThrowError(this.translateService.instant("userAccount.userAccount.addRecipientIdentifierDialog.failedToAddEmailNoDetails.error"),n);this.messageService.errorHandler(this.translateService.instant("userAccount.userAccount.addRecipientIdentifierDialog.failedToAddEmailGeneric.error",{email:t.recipientIdentifier.value}))})}static{this.\u0275fac=function(n){return new(n||r)(e.rXU(s.zZn))}}static{this.\u0275cmp=e.VBU({type:r,selectors:[["add-recipient-identifier-dialog"]],viewQuery:function(n,i){if(1&n&&e.GBs(Ve,7),2&n){let c;e.mGM(c=e.lsd())&&(i.verificationPanel=c.first)}},standalone:!1,features:[e.Vt3],decls:1,vars:1,consts:[["verificationPanel",""],[3,"dialogTitle","showCloseButton","closeButtonClicked",4,"dialogInstance"],[3,"closeButtonClicked","dialogTitle","showCloseButton"],["requestIdentifierTitle","","verificationType","ADD_EMAIL",3,"codeValidated","cancelRequested","badgrServerId","customIdValidator","recipientIdentifierFilter","requestIdentifierMe
1ssage","isInDialog"]],template:function(n,i){1&n&&e.DNE(0,Ne,5,11,"dialog-layout",1),2&n&&e.Y8G("dialogInstance",i)},dependencies:[m.ED,m.tx,G.J,p.r],encapsulation:2})}}return r})();var re=a(11764);const Be=["verificationPanel"],Le=r=>({name:r}),Ye=()=>({color:"red","font-weight":"bold"}),Xe=(r,o)=>({required:r,intentionMatch:o});function ze(r,o){if(1&r){const t=e.RV6();e.j41(0,"div")(1,"div",4),e.EFF(2),e.nI1(3,"translate"),e.nrm(4,"br")(5,"br"),e.EFF(6),e.nI1(7,"translate"),e.j41(8,"i",5),e.EFF(9),e.k0s(),e.EFF(10),e.nI1(11,"translate"),e.k0s(),e.j41(12,"form",6),e.bIt("ngSubmit",function(){s.eBV(t);const i=e.XpG(2);return s.Njj(i.deleteAccountForm.handleSubmit(i,i.submitRemoveAccount))}),e.nrm(13,"bg-formfield-text",7),e.nI1(14,"translate"),e.nI1(15,"translate"),e.nI1(16,"translate"),e.j41(17,"div",8)(18,"button",9),e.EFF(19),e.nI1(20,"translate"),e.k0s(),e.j41(21,"button",10),e.bIt("click",function(){s.eBV(t);const i=e.XpG(2);return s.Njj(i.closeDialog())}),e.EFF(22),e.nI1(23,"translate"),e.k0s()()()()}if(2&r){const t=e.XpG(2);e.R7$(2),e.SpI(" ",e.i5U(3,12,"userAccount.userAccount.deleteUserAccountDialog.dearUser.message",e.eq3(29,Le,t.currentUser.informalName))," "),e.R7$(4),e.SpI(" ",e.bMT(7,15,"userAccount.userAccount.deleteUserAccountDialog.enterEmailPart1.message")," "),e.R7$(2),e.Y8G("ngStyle",e.lJ4(31,Ye)),e.R7$(),e.SpI("'",t.REMOVE_ACCOUNT_INTENTION_TEXT,"'"),e.R7$(),e.SpI(" ",e.bMT(11,17,"userAccount.userAccount.deleteUserAccountDialog.enterEmailPart2.message")," "),e.R7$(2),e.Y8G("formGroup",t.deleteAccountForm.rawControl),e.R7$(),e.Y8G("control",t.deleteAccountForm.controls.intention)("label",e.bMT(14,19,"userAccount.userAccount.deleteUserAccountDialog.intentionField.label"))("errorMessage",e.l_i(32,Xe,e.bMT(15,21,"userAccount.userAccount.deleteUserAccountDialog.intentionRequired.error"),e.bMT(16,23,"userAccount.userAccount.deleteUserAccountDialog.intentionMismatch.error"))),e.R7$(5),e.Y8G("disabledWhenRequesting",!0),e.R7$(),e.SpI(" ",e.bMT(20,25,"common.common.confirm")," "),e.R7$(3),e.SpI(" ",e.bMT(23,27,"userAccount.userAccount.deleteUserAccountDialog.cancel.button")," ")}}function He(r,o){if(1&r){const t=e.RV6();e.j41(0,"dialog-layout",1),e.nI1(1,"translate"),e.bIt("closeButtonClicked",function(){s.eBV(t);const i=e.XpG();return s.Njj(i.closeDialog())}),e.j41(2,"bg-recipient-verification-panel",2),e.nI1(3,"translate"),e.bIt("verificationCodeTyped",function(i){s.eBV(t);const c=e.XpG();return s.Njj(c.onVerificationCodeTyped(i))})("codeValidated",function(){s.eBV(t);const i=e.XpG();return s.Njj(i.onCodeValidated())})("cancelRequested",function(){s.eBV(t);const i=e.XpG();return s.Njj(i.closeDialog())}),e.k0s(),e.DNE(4,ze,24,35,"div",3),e.k0s()}if(2&r){const t=e.XpG();e.Y8G("dialogTitle",e.bMT(1,9,"userAccount.userAccount.deleteUserAccountDialog.title"))("showCloseButton",!0),e.R7$(2),e.Y8G("badgrServerId",t.currentUser.badgrServerId)("restrictToRecipientIds",t.sessionService.isLoggedIn&&t.currentUser.recipientIdentifiers)("verifyButtonLabel",e.bMT(3,11,"common.common.continue.button"))("disableCodeVerification",!0)("bgHidden",!!t.showDeletePage)("isInDialog",!0),e.R7$(2),e.Y8G("ngIf",t.showDeletePage)}}let qe=(()=>{class r extends m.xD{get promise(){return this.ourPromise&&this.ourPromise.promise}constructor(t){super(t),this.verificationToken=null,this.verificationCode="",this.showDeletePage=!1,this.deleteAccountForm=(0,M.Yf)().addControl("intention","",[u.k0.required,this.intentionMatchValidator.bind(this)]),this.REMOVE_ACCOUNT_INTENTION_TEXT=this.currentUser.primaryRecipientIdentifier?this.currentUser.primaryRecipientIdentifier.value:this.translateService.instant("userAccount.userAccount.deleteUserAccountDialog.noPrimaryEmail.label")}onNavigationRequested(){return this.closeModal(),!0}openDialog(){var t=this;return(0,d.A)(function*(){return t.ourPromise=(0,V.Qo)(),t.showDeletePage=!1,yield t.showModal(),t.ourPromise.promise})()}closeDialog(){this.closeModal()}onCancelRequested(){this.closeDialog()}onProceedRequested(){}onOutsideClick(){this.closeModal()}onVerificationCodeTyped(t){this.verificationCode=t,this.showDeletePage=!0}onCodeValidated(){this.showDeletePage=!0}intentionMatchValidator(){return this.deleteAccountForm&&this.deleteAccountForm.controls.intention.value.toLowerCase()===this.REMOVE_ACCOUNT_INTENTION_TEXT.toLowerCase()?null:{
1intentionMatch:!0}}submitRemoveAccount(t){var n=this;return(0,d.A)(function*(){n.closeDialog(),(yield n.currentUser.deleteAccount$)(n.verificationCode).then(i=>{if(i.success){const c=n.translateService.instant("userAccount.userAccount.deleteUserAccountDialog.successfullyDeleted.success",{nameAndId:n.currentUser.nameAndPrimaryId});n.messageService.reportMajorSuccess(c),n.sessionService.logoutDeletedUser(c)}else n.dialogService.confirmDialog.openAlertDialog(n.translateService.instant("userAccount.userAccount.deleteUserAccountDialog.partiallyFailed.title"),"```"+JSON.stringify(i)+"```",n.translateService.instant("common.components2.confirmDialog.ok.button"),!0)},n.messageService.errorHandler(n.translateService.instant("userAccount.userAccount.deleteUserAccountDialog.failedToDelete.error",{nameAndId:n.currentUser.nameAndPrimaryId})))})()}static{this.\u0275fac=function(n){return new(n||r)(e.rXU(s.zZn))}}static{this.\u0275cmp=e.VBU({type:r,selectors:[["delete-user-account-dialog"]],viewQuery:function(n,i){if(1&n&&e.GBs(Be,7),2&n){let c;e.mGM(c=e.lsd())&&(i.verificationPanel=c.first)}},standalone:!1,features:[e.Vt3],decls:1,vars:1,consts:[[3,"dialogTitle","showCloseButton","closeButtonClicked",4,"dialogInstance"],[3,"closeButtonClicked","dialogTitle","showCloseButton"],[3,"verificationCodeTyped","codeValidated","cancelRequested","badgrServerId","restrictToRecipientIds","verifyButtonLabel","disableCodeVerification","bgHidden","isInDialog"],[4,"ngIf"],[1,"dialog-x-body"],[3,"ngStyle"],["novalidate","",1,"u-margin-top2x","u-width-form",3,"ngSubmit","formGroup"],["data-cy","delete-user-account-intention","fieldType","text",1,"dialog-x-body","u-margin-top2x",3,"control","label","errorMessage"],[1,"dialog-x-footer","l-flex","l-flex-1x","l-flex-attablet","l-flex-rowreverse","u-margin-top2x"],["buttonStyle","button-primary","type","submit","data-cy","delete-user-account-confirmation-button",3,"disabledWhenRequesting"],["buttonStyle","button-secondary","type","button",3,"click"]],template:function(n,i){1&n&&e.DNE(0,He,5,13,"dialog-layout",0),2&n&&e.Y8G("dialogInstance",i)},dependencies:[g.bT,g.B3,re.A,m.ED,R.O,x.a,m.tx,G.J,u.qT,u.cb,u.j4,p.r],encapsulation:2})}}return r})();const Je=["verificationPanel"],Qe=r=>[r],We=r=>({sourceEmail:r});function Ze(r,o){if(1&r){const t=e.RV6();e.qex(0),e.j41(1,"div",4)(2,"p",5),e.EFF(3),e.nI1(4,"translate"),e.nrm(5,"bg-recipient-identifier",6),e.EFF(6),e.nI1(7,"translate"),e.nrm(8,"bg-recipient-identifier",6),e.EFF(9,". "),e.k0s()(),e.j41(10,"div",7)(11,"button",8),e.nI1(12,"translate"),e.bIt("click",function(){s.eBV(t);const i=e.XpG(2);return s.Njj(i.mergeUser())}),e.EFF(13),e.nI1(14,"translate"),e.k0s(),e.j41(15,"button",9),e.bIt("click",function(){s.eBV(t);const i=e.XpG(2);return s.Njj(i.closeDialog())}),e.EFF(16),e.nI1(17,"translate"),e.k0s()(),e.bVm()}if(2&r){const t=e.XpG(2);e.R7$(3),e.SpI(" ",e.bMT(4,9,"userAccount.userAccount.mergeAccountDialog.mergingAllBadges.part1")," "),e.R7$(2),e.Y8G("id",t.sourceEmail),e.R7$(),e.SpI(" ",e.bMT(7,11,"org.org.orgDashboardSubscription.organizationUsage.to.label")," "),e.R7$(2),e.Y8G("id",t.targetEmail),e.R7$(3),e.Y8G("loadingPromises",e.eq3(20,Qe,t.mergePromise))("loadingMessage",e.i5U(12,13,"userAccount.userAccount.mergeAccountDialog.merging.message",e.eq3(22,We,t.sourceEmail.value))),e.R7$(2),e.SpI(" ",e.bMT(14,16,"userAccount.userAccount.mergeAccountDialog.mergeUser.button")," "),e.R7$(2),e.Y8G("disabledWhenRequesting",!0),e.R7$(),e.SpI(" ",e.bMT(17,18,"common.common.cancel")," ")}}function Ke(r,o){if(1&r){const t=e.RV6();e.j41(0,"dialog-layout",1),e.nI1(1,"translate"),e.bIt("closeButtonClicked",function(){s.eBV(t);const i=e.XpG();return s.Njj(i.closeDialog())}),e.j41(2,"bg-recipient-verification-panel",2),e.nI1(3,"translate"),e.bIt("cancelRequested",function(){s.eBV(t);const i=e.XpG();return s.Njj(i.closeDialog())})("verificationCodeTyped",function(i){s.eBV(t);const c=e.XpG();return s.Njj(c.onVerificationCodeTyped(i))})("codeValidated",function(){s.eBV(t);const i=e.XpG();return s.Njj(i.onCodeValidated())}),e.k0s(),e.DNE(4,Ze,18,24,"ng-container",3),e.k0s()}if(2&r){const t=e.XpG();e.Y8G("dialogTitle",e.bMT(1,11,"userAccount.userAccount.mergeAccountDialog.title"))("showCloseButton",!0),e.R7$(2),e.Y8G("badgrServerId",t.currentUser.badgrServerId)("customIdValidator",t.validateId.bind(t))("verificationCodeTitle",t.verificationCodeTitle)("requestIdentifierMe
1ssage",t.requestIdentifierMessage)("verifyButtonLabel",e.bMT(3,13,"common.common.continue.button"))("disableCodeVerification",!0)("bgHidden",!!t.showMergePage)("isInDialog",!0),e.R7$(2),e.Y8G("ngIf",t.showMergePage)}}let et=(()=>{class r extends m.xD{get promise(){return this.ourPromise&&this.ourPromise.promise}constructor(t){super(t),this._targetEmail=this.currentUser.primaryRecipientIdentifier,this.verificationCode="",this.showMergePage=!1,this.verificationCodeTitle=this.translateService.instant("auth.authentication.resetPassword.verificationCode.title"),this.verificationToken=null,this.requestIdentifierMessage=this.translateService.instant("userAccount.userAccount.mergeAccountDialog.enterEmail.message",{targetEmail:this._targetEmail?.value})}onNavigationRequested(){return this.closeModal(),!0}openDialog(){var t=this;return(0,d.A)(function*(){return t.ourPromise=(0,V.Qo)(),t.showMergePage=!1,yield t.showModal(),t.ourPromise.promise})()}closeDialog(){this.closeModal()}onCancelRequested(){this.closeDialog()}onVerificationCodeTyped(t){this.verificationCode=t,this.showMergePage=!0}onCodeValidated(){this.showMergePage=!0}onProceedRequested(){}onOutsideClick(){this.closeModal()}validateId(t){const n=t;return n.value===this._targetEmail?.value?this.translateService.instant("userAccount.userAccount.mergeAccountDialog.sameEmailError.error"):this.currentUser.recipientIdentifiers.find(i=>i.type===t.type&&i.value===t.value)?this.translateService.instant("userAccount.userAccount.addRecipientIdentifierDialog.emailAlreadyAssociated.error"):(this._sourceEmail=n,null)}mergeUser(){var t=this;return(0,d.A)(function*(){t.closeDialog(),t.mergePromise=(yield t.currentUser.mergeWith$)(t.sourceEmail,t.verificationCode).then(()=>{t.updateList(),t.messageService.reportMajorSuccess(t.translateService.instant("userAccount.userAccount.mergeAccountDialog.mergeSuccess.success",{sourceEmail:t.sourceEmail.value,targetEmail:t.targetEmail.value}))},n=>{const i=(0,S.P)(n,t.cleanErrorMessage(n.message));t.messageService.reportAndThrowError(t.translateService.instant("userAccount.userAccount.mergeAccountDialog.mergeFailed.error",{message:i}),n),t.messageService.errorHandler(t.translateService.instant("userAccount.userAccount.mergeAccountDialog.mergeFailedGeneric.error",{sourceEmail:t.sourceEmail.value}))})})()}cleanErrorMessage(t){return t.replace("java.lang.IllegalArgumentException:","")}updateList(){const t={isPrimary:!1,label:this.sourceEmail.value,caseVariants:[],recipientIdentifier:this.sourceEmail,stringIdentifier:JSON.stringify(this.sourceEmail)};this.currentUser.recipientIdentifierInfos.push(t)}get sourceEmail(){return this._sourceEmail}get targetEmail(){return this._targetEmail}set targetEmail(t){this._targetEmail=t}static{this.\u0275fac=function(n){return new(n||r)(e.rXU(s.zZn))}}static{this.\u0275cmp=e.VBU({type:r,selectors:[["merge-account-dialog"]],viewQuery:function(n,i){if(1&n&&e.GBs(Je,7),2&n){let c;e.mGM(c=e.lsd())&&(i.verificationPanel=c.first)}},standalone:!1,features:[e.Vt3],decls:1,vars:1,consts:[[3,"dialogTitle","showCloseButton","closeButtonClicked",4,"dialogInstance"],[3,"closeButtonClicked","dialogTitle","showCloseButton"],["verificationType","MERGE_ACCOUNTS",3,"cancelRequested","verificationCodeTyped","codeValidated","badgrServerId","customIdValidator","verificationCodeTitle","requestIdentifierMe
1ssage","verifyButtonLabel","disableCodeVerification","bgHidden","isInDialog"],[4,"ngIf"],[1,"dialog-x-body","u-margin-top2x","u-width-form"],[1,"u-text","ng-star-inserted"],[1,"u-text-bold",3,"id"],[1,"dialog-x-footer","l-stack","l-stack-buttons"],["buttonStyle","button-primary","bgDataCy","merge-account-option-primary-button",3,"click","loadingPromises","loadingMessage"],["buttonStyle","button-secondary","bgDataCy","merge-account-option-secondary-button",3,"click","disabledWhenRequesting"]],template:function(n,i){1&n&&e.DNE(0,Ke,5,15,"dialog-layout",0),2&n&&e.Y8G("dialogInstance",i)},dependencies:[g.bT,re.A,m.ED,ee.U,R.O,k.V,m.tx,G.J,p.r],encapsulation:2})}}return r})();const tt=["verificationPanel"],N=r=>({email:r}),ie=(r,o,t)=>({actionLabel:r,actionAriaLabel:o,actionPriority:"default",handleClick:t}),nt=(r,o)=>[r,o],rt=r=>({brandName:r}),it=r=>({provider:r}),ot=(r,o,t)=>({name:r,plural:o,issuers:t}),st=r=>({name:r});function at(r,o){1&r&&(e.j41(0,"bg-flag",31),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&r&&(e.R7$(),e.JRh(e.bMT(2,1,"userAccount.userAccount.userAccountSettings.primary.label")))}function ct(r,o){if(1&r){const t=e.RV6();e.j41(0,"button",32),e.bIt("click",function(){s.eBV(t);const i=e.XpG().bgTableColumnContent,c=e.XpG();return s.Njj(c.selectedIdentifier=i)}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}if(2&r){e.XpG(2);const t=e.sdS(39);e.Y8G("bgPopupMenuTrigger",t),e.R7$(),e.SpI(" ",e.bMT(2,2,"userAccount.userAccount.userAccountSettings.viewCaseVariants.button")," ")}}function lt(r,o){if(1&r&&(e.qex(0),e.j41(1,"div",26)(2,"p",27),e.nrm(3,"bg-recipient-identifier",28),e.k0s(),e.DNE(4,at,3,3,"bg-flag",29),e.k0s(),e.DNE(5,ct,3,4,"button",30),e.bVm()),2&r){const t=o.bgTableColumnContent;e.R7$(3),e.Y8G("id",t.recipientIdentifier)("isPrimary",!0),e.R7$(),e.Y8G("ngIf",t.isPrimary),e.R7$(),e.Y8G("ngIf",t.caseVariants.length>0)}}function ut(r,o){1&r&&(e.qex(0),e.j41(1,"div",33),s.qSk(),e.nrm(2,"svg",34),s.joV(),e.j41(3,"p",35),e.EFF(4),e.nI1(5,"translate"),e.k0s()(),e.bVm()),2&r&&(e.R7$(4),e.SpI(" ",e.bMT(5,1,"common.components.issuerLabel.verified.label")," "))}function dt(r,o){if(1&r&&e.nrm(0,"bg-action-items",37),2&r){const t=e.XpG().bgTableColumnContent,n=e.XpG();e.Y8G("actionItems",e.l_i(13,nt,e.sMw(3,ie,n.translateService.instant("userAccount.userAccount.userAccountSettings.makePrimary.button"),n.translateService.instant("userAccount.userAccount.userAccountSettings.makePrimary.ariaLabel",e.eq3(1,N,t.stringIdentifier)),n.makeIdentifierPrimary.bind(n,t.recipientIdentifier)),e.sMw(9,ie,n.translateService.instant("common.components.externalSkillsList.remove.button"),n.translateService.instant("userAccount.userAccount.userAccountSettings.remove.ariaLabel",e.eq3(7,N,t.stringIdentifier)),n.removeIdentifier.bind(n,t.recipientIdentifier))))}}function gt(r,o){if(1&r&&(e.qex(0),e.DNE(1,dt,1,16,"bg-action-items",36),e.bVm()),2&r){const t=o.bgTableColumnContent,n=e.XpG();e.R7$(),e.Y8G("ngIf",n.currentUser.recipientIdentifiers.length>1&&!t.isPrimary)}}function pt(r,o){if(1&r&&(e.j41(0,"ol",43)(1,"li"),e.nrm(2,"bg-recipient-identifier",44),e.k0s()()),2&r){const t=o.$implicit;e.R7$(2),e.Y8G("id",t)}}function mt(r,o){if(1&r&&(e.qex(0),e.nrm(1,"bg-heading",38)(2,"hr",39),e.DNE(3,pt,3,1,"ol",40),e.nrm(4,"hr",39),e.j41(5,"p",41),e.EFF(6),e.nI1(7,"translate"),e.j41(8,"strong"),e.EFF(9),e.nI1(10,"translate"),e.k0s(),e.EFF(11),e.nI1(12,"translate"),e.k0s(),e.nrm(13,"a",42),e.bVm()),2&r){const t=e.XpG();e.R7$(),e.Y8G("level",3)("headingText",t.translateService.instant("userAccount.userAccount.userAccountSettings.caseVariants.title",e.eq3(13,N,t.selectedIdentifier.recipientIdentifier.value))),e.R7$(2),e.Y8G("ngForOf",null==t.selectedIdentifier?null:t.selectedIdentifier.caseVariants),e.R7$(3),e.SpI(" ",e.bMT(7,7,"userAccount.userAccount.userAccountSettings.caseVariants.description")," "),e.R7$(3),e.JRh(e.bMT(10,9,"auth.auth.invitation.addEmail.title")),e.R7$(2),e.SpI(" ",e.bMT(12,11,"userAccount.userAccount.userAccountSettings.caseVariants.descriptionSuffix")," "),e.R7$(2),e.Y8G("bgHelpLink",t.helpLinks.managingYourBadgrAccountCaseVariants)}}function ft(r,o){if(1&r){const t=e.RV6();e.j41(0,"tr",53)(1,"td",48)(2,"div",54),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.EFF(5),e.k0s(),e.j41(6,"td",55)(7,"div",54),e.EFF(8),e.nI1(9,"translate"),e.k0s(),e.EFF(10),e.k0s(),e.j41(11,"td",56)(12,"div",57)(13,"button",58),e.bIt("click",function(){s.eBV(t);const i=e.XpG().$implicit,c=e.XpG(2);return s.Njj(c.unlinkAccount(i))}),e.EFF(14),e.nI1(15,"translate"),e.k0s()()()()}if(2&r){const t=e.XpG().$implicit;e.R7$(3),e.SpI(" ",e.bMT(4,8,"userAccount.userAccount.userAccountSettings.service.label")," "),e.R7$(2),e.SpI(" ",t.providerInfo.name," "),e.R7$(3),e.SpI(" ",e.bMT(9,10,"userAccount.userAccount.userAccountSettings.account.label")," "),e.R7$(2),e.SpI(" ",t.fullLabel," "),e.R7$(3),e.Y8G("bgDataCy",e.ai1("unlink_",t.providerInfo.slug,"_",t.fullLabel)),e.R7$(),e.SpI(" ",e.bMT(15,12,"userAccount.userAccount.userAccountSettings.unlink.button")," ")}}function bt(r,o){if(1&r&&(e.qex(0),e.DNE(1,ft,16,14,"tr",52),e.bVm()),2&r){const t=o.$implicit;e.R7$(),e.Y8G("ngIf",!t.providerInfo.isUnknown)}}function ht(r,o){if(1&r&&(e.j41(0,"bgl-page-section",10),e.nI1(1,"translate"),e.qex(2,11),e.EFF(3),e.nI1(4,"translate"),e.bVm(),e.j41(5,"table",45),e.nI1(6,"translate"),e.j41(7,"thead",46)(8,"tr",47)(9,"th",48),e.EFF(10),e.nI1(11,"translate"),e.k0s(),e.j41(12,"th",48),e.EFF(13),e.nI1(14,"translate"),e.k0s(),e.j41(15,"th",48)(16,"span",49),e.EFF(17),e.nI1(18,"translate"),e.k0s()()()(),e.j41(19,"tbody",50),e.DNE(20,bt,2,1,"ng-container",51),e.k0s()()()),2&r){const t=e.XpG();e.Y8G("mainTitle",e.bMT(1,7,"userAccount.userAccount.userAccountSettings.linkedAccounts.title")),e.R7$(3),e.SpI(" ",e.i5U(4,9,"userAccount.userAccount.userAccountSettings.linkedAccounts.description",e.eq3(20,rt,t.brandingService.freeBrandName))," "),e.R7$(2),e.BMQ("aria-label",e.bMT(6,12,"userAccount.userAccount.userAccountSettings.linkedAccounts.title")),e.R7$(5),e.SpI(" ",e.bMT(11,14,"userAccount.userAccount.userAccountSettings.service.label")," "),e.R7$(3),e.SpI(" ",e.bMT(14,16,"userAccount.userAccount.userAccountSettings.account.label")," "),e.R7$(4),e.JRh(e.bMT(18,18,"common.common.actions.label")),e.R7$(3),e.Y8G("ngForOf",t.currentUser.linkedSocialAccounts)}}function At(r,o){if(1&r){const t=e.RV6();e.j41(0,"button",62),e.bIt("click",function(){const i=s.eBV(t).$implicit,c=e.XpG(2);return s.Njj(c.linkExternalAuthProvider(i))}),e.j41(1,"span",49),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.nrm(4,"img",63),e.k0s()}if(2&r){const t=o.$implicit;e.xc7("background-color",t.backgroundColor),e.R7$(2),e.JRh(e.i5U(3,4,"userAccount.userAccount.userAccountSettings.addLinkedAccount.ariaLabel",e.eq3(7,it,t.name))),e.R7$(2),e.Y8G("src",t.imageUrl,e.B4B)}}function _t(r,o){if(1&r&&(e.j41(0,"bgl-page-section",59),e.nI1(1,"translate"),e.nI1(2,"translate"),e.j41(3,"div",60),e.DNE(4,At,5,9,"button",61),e.k0s()()),2&r){const t=e.XpG();e.Y8G("mainTitle",e.bMT(1,3,"userAccount.userAccount.userAccountSettings.addLinkedAccount.title"))("description",e.bMT(2,5,"userAccount.userAccount.userAccountSettings.addLinkedAccount.de
1scription")),e.R7$(4),e.Y8G("ngForOf",t.externalAuthProviders)}}function vt(r,o){if(1&r&&(e.qex(0,64),e.EFF(1),e.nI1(2,"translate"),e.bVm()),2&r){const t=e.XpG();e.R7$(),e.SpI(" ",e.i5U(2,1,"userAccount.userAccount.userAccountSettings.deleteAccount.notSelfRemovableDescription",e.sMw(4,ot,t.currentUser.informalName,t.issuersOwnedOnlyByCurrentUser.length>1?"s":"",t.issuersOwnedOnlyByCurrentUser.join(", ")))," ")}}function It(r,o){if(1&r&&(e.qex(0,65),e.EFF(1),e.nI1(2,"translate"),e.bVm()),2&r){const t=e.XpG();e.R7$(),e.SpI(" ",e.i5U(2,1,"userAccount.userAccount.userAccountSettings.deleteAccount.selfRemovableDescription",e.eq3(4,st,t.currentUser.informalName))," ")}}function St(r,o){if(1&r){const t=e.RV6();e.j41(0,"button",66),e.bIt("click",function(){s.eBV(t),e.XpG();const i=e.sdS(59);return s.Njj(i.openDialog())}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}2&r&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"userAccount.userAccount.userAccountSettings.deleteAccount.button")," "))}class P extends b{constructor(o,t,n){super(o),this.authService=t,this.domSanitizer=n,this.selectedIdentifier=null}ngOnInit(){var o=this;return(0,d.A)(function*(){const t=o.queryParam("authError");t&&(o.clearQueryParams(),o.messageService.reportError(t,null)),o.queryParam("linkedAccount")&&(o.clearQueryParams(),o.currentUser.linkedSocialAccounts.refreshFromServer())})()}unlinkAccount(o){var t=this;return(0,d.A)(function*(){return t.currentUser.linkedSocialAccounts.length<2&&!t.currentUser.hasPasswordSet?(t.messageService.reportError(t.translateService.instant("userAccount.userAccount.userAccountSettings.setPasswordBeforeUnlink.error"),null),!1):(yield t.dialogService.confirmDialog.openTrueFalseDialog({dialogTitle:t.translateService.instant("userAccount.userAccount.userAccountSettings.unlinkDialog.title",{provider:o.providerInfo.name}),dialogBody:t.translateService.instant("userAccount.userAccount.userAccountSettings.unlinkDialog.body",{provider:o.providerInfo.name,account:o.fullLabel,serviceName:t.theme.serviceName}),resolveButtonLabel:t.translateService.instant("userAccount.userAccount.userAccountSettings.unlinkDialog.unlinkButton",{provider:o.providerInfo.name}),rejectButtonLabel:t.translateService.instant("common.common.cancel")}))?(yield o.unlink$)().then(()=>t.messageService.reportMinorSuccess(t.translateService.instant("userAccount.userAccount.userAccountSettings.unlinkSuccess.success",{account:o.fullLabel})),t.messageService.errorHandler(t.translateService.instant("userAccount.userAccount.userAccountSettings.unlinkFailed.error"))):void 0})()}linkExternalAuthProvider(o){this.authService.initiateAuthenticatedExternalAuth(o)}handleParchmentChangePassword(){this.sessionService.authToken=null,window.location.href=`/oauth2/authorization/parchment?action=UPDATE_PASSWORD&redirectPath=${encodeURIComponent("/auth/login")}`}get actionItems(){return[this.themeService.isParchmentIdentityIntegrationEnabled?{checkActionEnabled:()=>this.currentUser.hasPasswordSet,actionPriority:"secondary",actionLabel:this.translateService.instant("userAccount.userAccount.userAccountSettings.changePassword.button"),actionAriaLabel:this.translateService.instant("userAccount.userAccount.userAccountSettings.changePassword.ariaLabel",{name:this.currentUser.informalName}),handleClick:()=>this.handleParchmentChangePassword()}:{checkActionEnabled:()=>this.currentUser.hasPasswordSet,actionPriority:"secondary",actionLabel:this.translateService.instant("userAccount.userAccount.userAccountSettings.changePassword.button"),actionAriaLabel:this.translateService.instant("userAccount.userAccount.userAccountSettings.changePassword.ariaLabel",{name:this.currentUser.informalName}),routerLink:this.routes.personal.changePassword},{checkActionEnabled:()=>!this.currentUser.hasPasswordSet,actionPriority:"secondary",actionLabel:this.translateService.instant("userAccount.userAccount.userAccountSettings.setPassword.button"),actionAriaLabel:this.translateService.instant("userAccount.userAccount.userAccountSettings.setPassword.ariaLabel",{name:this.currentUser.informalName}),routerLink:this.currentUser.routes.auth.forgotPassword.withReturn()}]}get issuersOwnedOnlyByCurrentUser(){const o=new Set;if(this.currentUser.hasIssuers)for(const t of Object.keys(this.currentUser.issuerAccessMap))if("Owner"===this.currentUser.issuerAccessMap[t]&&null!=this.currentUser.userId){const i=this.issuer(t),{userId:c}=this.currentUser;null!=i.isUserTheOnlyOwner&&i.isUserTheOnlyOwner(c)&&i.name&&o.add(i.name)}return Array.from(o)}get selfRemovableAccount(){const o=this.issuersOwnedOnlyByCurrentUser;return!(o&&o.length>0)}makeIdentifierPrimary(o){var t=this;return(0,d.A)(function*(){t.currentUser.setPrimaryRecipientIdentifier(o).catch(t.messageService.errorHandler(t.translateService.instant("userAccount.userAccount.userAccountSettings.makePrimaryFailed.error")))})()}removeIdentifier(o){var t=this;return(0,d.A)(function*(){(yield t.dialogService.confirmDialog.openTrueFalseDialog({dialogTitle:t.translateService.instant("userAccount.userAccount.userAccountSettings.deleteEmailDialog.title"),dialogBody:t.translateService.instant("userAccount.userAccount.userAccountSettings.deleteEmailDialog.body",{email:o.value}),resolveButtonLabel:t.translateService.instant("userAccount.userAccount.orgUserProfile.deleteEmail.confirmTitle.text"),rejectButtonLabel:t.translateService.instant("common.common.cancel")}))&&t.currentUser.removeRecipientIdentifier(o).catch(t.messageService.errorHandler(t.translateService.instant("userAccount.userAccount.orgUserProfile.deleteEmail.failure.error")))})()}
1issuer(o){return this.entityManager.ensureFetchedEntity(Me.ES.byId(o))}get hasOptedInToEmails(){return this.currentUser?.userPreferences?.communicationPreferences?.marketingEmailOptIn??!1}set hasOptedInToEmails(o){this.currentUser.updatePreferences({communicationPreferences:{marketingEmailOptIn:o}}).catch(this.messageService.errorHandler(this.translateService.instant("userAccount.userAccount.userAccountSettings.updateEmailPreferencesFailed.error")))}unsubscribeFromAllNotifications(){this.hasOptedInToEmails=!1}static{this.\u0275fac=function(t){return new(t||P)(e.rXU(s.zZn),e.rXU(B.u),e.rXU(L.up))}}static{this.\u0275cmp=e.VBU({type:P,selectors:[["ng-component"]],viewQuery:function(t,n){if(1&t&&e.GBs(tt,7),2&t){let i;e.mGM(i=e.lsd())&&(n.verificationPanel=i.first)}},standalone:!1,features:[e.Vt3],decls:62,vars:68,consts:[["caseVariantsMenu",""],["addRecipientIdentifierDialogComponent",""],["deleteUserAccountDialogComponent",""],["mergeAccountDialogComponent",""],[3,"pageInfo","actionItems"],[3,"title"],["pageSection-x-action","","linkStyle","button-secondary","bgDataCy","user-account-settings-edit",3,"bgRouterLink"],["pageSection-x-description","",1,"l-responsivelist","l-responsivelist-extraSmall"],["bgDataCy","user-account-settings-name",1,"u-text","u-text-body"],["bgDataCy","user-account-settings-job",1,"u-text","u-text-body"],[3,"mainTitle"],["pageSection-x-description",""],["pageSection-x-action","","buttonStyle","button-primary","aria-haspopup","dialog",3,"click"],[3,"rowData","ariaLabel"],["columnType","text","cellRole","rowheader",3,"columnLabel"],[4,"bgTableColumnContent"],["columnType","text",3,"columnLabel"],["columnType","actions",3,"columnLabel"],["popupPlacement","bottom-start",1,"u-padding-all2x",3,"closeOnOutsideClick","closeOnInsideClick","widthPx","enableFocusOnOpen"],[4,"ngIf"],["pageSection-x-action","","buttonStyle","button-primary","bgDataCy","user-account-settings-merge-account-button","aria-haspopup","dialog",3,"click"],[3,"mainTitle",4,"ngIf"],[3,"mainTitle","description",4,"ngIf"],["pageSection-x-description","","data-cy","user-account-not-self-removable-account",4,"ngIf"],["pageSection-x-description","","data-cy","user-account-self-removable-account",4,"ngIf"],["pageSection-x-action","","buttonStyle","button-primary","data-cy","user-account-delete-account-button",3,"click",4,"ngIf"],[1,"l-stack","l-stack-start"],[1,"u-break-word"],[3,"id","isPrimary"],["flagStyle","positive",4,"ngIf"],["buttonStyle","textLink","class","u-margin-top1x",3,"bgPopupMenuTrigger","click",4,"ngIf"],["flagStyle","positive"],["buttonStyle","textLink",1,"u-margin-top1x",3,"click","bgPopupMenuTrigger"],[1,"l-flex","l-flex-aligncenter","l-flex-1x"],["icon","icon_state_positive",1,"icon","icon-success"],[1,"u-text-body"],["actionPlacement","table",3,"actionItems",4,"ngIf"],["actionPlacement","table",3,"actionItems"],[3,"level","headingText"],[1,"rule","rule-hairline","u-margin-yaxis2x"],["class","u-text u-text-bold",4,"ngFor","ngForOf"],[1,"u-text","u-margin-bottom1x","u-width-small"],[3,"bgHelpLink"],[1,"u-text","u-text-bold"],[3,"id"],[1,"gridtable","gridtable-withaction"],[1,"gridtable-x-head"],[1,"gridtable-x-headerRow"],[1,"gridtable-x-cell"],[1,"visuallyhidden"],[1,"gridtable-x-body"],[4,"ngFor","ngForOf"],["class","gridtable-x-row",4,"ngIf"],[1,"gridtable-x-row"],[1,"gridtable-x-cardOnlyLabel"],[1,"gridtable-x-cell","u-break-all"],[1,"gridtable-x-cell","gridtable-x-actionCell"],[1,"l-flex","l-flex-justifyend"],["buttonStyle","textLink",3,"click","bgDataCy"],[3,"mainTitle","description"],[1,"l-grid","l-grid-1","l-grid-2atmobilelarge","l-grid-3attablet","l-grid-4atlaptop"],["class","socialButton",3,"backgroundColor","click",4,"ngFor","ngForOf"],[1,"socialButton",3,"click"],["aria-hidden","true","alt","",1,"socialButton-x-logo",3,"src"],["pageSection-x-description","","data-cy","user-account-not-self-removable-account"],["pageSection-x-description","","data-cy","user-account-self-removable-account"],["pageSection-x-action","","buttonStyle","button-primary","data-cy","user-account-delete-account-button",3,"click"]],template:function(t,n){if(1&t){const i=e.RV6();e.j41(0,"bgl-parent-page",4)(1,"bgl-page-section",5),e.nI1(2,"translate"),e.j41(3,"a",6),e.EFF(4),e.nI1(5,"translate"),e.k0s(),e.j41(6,"div",7)(7,"div",8)(8,"strong"),e.EFF(9),e.nI1(10,"translate"),e.k0s(),e.EFF(11),e.k0s(),e.j41(12,"div",9)(13,"strong"),e.EFF(14),e.nI1(15,"translate"),e.k0s(),e.j41(16,"span"),e.EFF(17),e.nI1(18,"translate"),e.k0s()()()(),e.j41(19,"bgl-page-section",10),e.nI1(20,"translate"),e.qex(21,11),e.EFF(22),e.nI1(23,"translate"),e.bVm(),e.j41(24,"button",12),e.bIt("click",function(){s.eBV(i);const f=e.sdS(57);return s.Njj(f.openDialog())}),e.EFF(25),e.nI1(26,"translate"),e.k0s(),e.j41(27,"bg-grid-table",13),e.nI1(28,"translate"),e.j41(29,"bg-grid-table-column",14),e.nI1(30,"translate"),e.DNE(31,lt,6,4,"ng-container",15),e.k0s(),e.j41(32,"bg-grid-table-column",16),e.nI1(33,"translate"),e.DNE(34,ut,6,3,"ng-container",15),e.k0s(),e.j41(35,"bg-grid-table-column",17),e.nI1(36,"translate"),e.DNE(37,gt,2,1,"ng-container",15),e.k0s()(),e.j41(38,"bg-popup-menu",18,0),e.DNE(40,mt,14,15,"ng-container",19),e.k0s()(),e.j41(41,"bgl-page-section",10),e.nI1(42,"translate"),e.qex(43,11),e.EFF(44),e.nI1(45,"translate"),e.bVm(),e.j41(46,"button",20),e.bIt("click",function(){s.eBV(i);const f=e.sdS(61);return s.Njj(f.openDialog())}),e.EFF(47),e.nI1(48,"translate"),e.k0s()(),e.DNE(49,ht,21,22,"bgl-page-section",21)(50,_t,5,7,"bgl-page-section",22),e.j41(51,"bgl-page-section",10),e.nI1(52,"translate"),e.DNE(
153,vt,3,8,"ng-container",23)(54,It,3,6,"ng-container",24)(55,St,3,3,"button",25),e.k0s()(),e.nrm(56,"add-recipient-identifier-dialog",null,1)(58,"delete-user-account-dialog",null,2)(60,"merge-account-dialog",null,3)}2&t&&(e.Y8G("pageInfo",n.currentUser.routes.account.personal.accountSettings)("actionItems",n.actionItems),e.R7$(),e.Y8G("title",e.bMT(2,36,"userAccount.userAccount.userAccountSettings.personalInformation.title")),e.R7$(2),e.Y8G("bgRouterLink",n.routes.personal.editName),e.R7$(),e.JRh(e.bMT(5,38,"entity.entity2.currentUser.routes.account.personal.editName.pageTitle")),e.R7$(5),e.JRh(e.bMT(10,40,"userAccount.userAccount.orgUserProfile.name.label")),e.R7$(2),e.SpI(" ",n.currentUser.informalName," "),e.R7$(3),e.JRh(e.bMT(15,42,"userAccount.userAccount.orgUserProfile.occupation.label")),e.R7$(2),e.AVh("u-text-italic",!n.currentUser.jobTitle),e.R7$(),e.SpI(" ",n.currentUser.jobTitle||e.bMT(18,44,"userAccount.userAccount.orgUserProfile.occupation.notSpecified")," "),e.R7$(2),e.Y8G("mainTitle",e.bMT(20,46,"userAccount.userAccount.userAccountSettings.accountEmails.title")),e.R7$(3),e.SpI(" ",e.bMT(23,48,"userAccount.userAccount.userAccountSettings.accountEmails.description")," "),e.R7$(3),e.SpI(" ",e.bMT(26,50,"userAccount.userAccount.userAccountSettings.accountEmails.button")," "),e.R7$(2),e.Y8G("rowData",n.currentUser.recipientIdentifierInfos)("ariaLabel",e.bMT(28,52,"userAccount.userAccount.userAccountSettings.accountEmails.title")),e.R7$(2),e.Y8G("columnLabel",e.bMT(30,54,"userAccount.userAccount.userAccountSettings.emailAddress.label")),e.R7$(2),e.Y8G("bgTableColumnContent",n.currentUser.recipientIdentifierInfos[0]),e.R7$(),e.Y8G("columnLabel",e.bMT(33,56,"org.org.shared.status.label")),e.R7$(2),e.Y8G("bgTableColumnContent",n.currentUser.recipientIdentifierInfos[0]),e.R7$(),e.Y8G("columnLabel",e.bMT(36,58,"common.common.actions.label")),e.R7$(2),e.Y8G("bgTableColumnContent",n.currentUser.recipientIdentifierInfos[0]),e.R7$(),e.Y8G("closeOnOutsideClick",!0)("closeOnInsideClick",!1)("widthPx",480)("enableFocusOnOpen",!0),e.R7$(2),e.Y8G("ngIf",n.selectedIdentifier),e.R7$(),e.Y8G("mainTitle",e.bMT(42,60,"userAccount.userAccount.mergeAccountDialog.title")),e.R7$(3),e.SpI(" ",e.bMT(45,62,"userAccount.userAccount.userAccountSettings.mergeAccounts.description")," "),e.R7$(3),e.SpI(" ",e.bMT(48,64,"userAccount.userAccount.userAccountSettings.mergeAccounts.button")," "),e.R7$(2),e.Y8G("ngIf",n.currentUser.linkedSocialAccounts.isNotEmpty),e.R7$(),e.Y8G("ngIf",n.externalAuthProviders.length),e.R7$(),e.Y8G("mainTitle",e.bMT(52,66,"userAccount.userAccount.userAccountSettings.deleteAccount.title")),e.R7$(2),e.Y8G("ngIf",!n.selfRemovableAccount),e.R7$(),e.Y8G("ngIf",n.selfRemovableAccount),e.R7$(),e.Y8G("ngIf",n.selfRemovableAccount))},dependencies:[g.Sq,g.bT,K.eH,ee.U,we.f,te.DM,K.U8,xe.T,w.y,je.Z,R.O,k.V,U.r,A.O,$e.F,Ge.P,ne.J$,ne.Ag,Oe,qe,et,p.r],encapsulation:2})}}(0,l.Cg)([(0,h.V)(),(0,l.Sn)("design:type",Function),(0,l.Sn)("design:paramtypes",[String]),(0,l.Sn)("design:returntype",Object)],P.prototype,"issuer",null);const yt=(r,o)=>[r,o],oe=r=>({applicationName:r}),Tt=r=>({brandName:r}),Rt=r=>({serviceName:r});function Ct(r,o){if(1&r&&(e.j41(0,"a",12),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&r){const t=e.XpG(2);e.Y8G("bgOutLinkHref",t.application.applicationWebsiteUrl),e.R7$(),e.SpI(" ",e.bMT(2,2,"userAccount.userAccount.oauth2AppDetail.visitWebsite.link")," ")}}function Pt(r,o){if(1&r&&(e.j41(0,"li",9),s.qSk(),e.nrm(1,"svg",13),e.EFF(2),e.k0s()),2&r){const t=o.$implicit;e.R7$(),e.Y8G("icon",t.iconName),e.R7$(),e.SpI(" ",t.label," ")}}function Ut(r,o){if(1&r){const t=e.RV6();e.j41(0,"bgl-parent-page",1)(1,"button",2),e.nI1(2,"translate"),e.bIt("click",function(){s.eBV(t);const i=e.XpG();return s.Njj(i.revokeApplication(i.application))}),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.j41(5,"div",3)(6,"div",4),e.EFF(7),e.nI1(8,"translate"),e.j41(9,"strong"),e.EFF(10),e.nI1(11,"momentDate"),e.k0s()(),e.EFF(12),e.nI1(13,"translate"),e.DNE(14,Ct,3,4,"a",5),e.k0s(),e.j41(15,"div",6)(16,"div",7),e.EFF(17),e.nI1(18,"translate"),e.k0s(),e.j41(19,"ul",8)(20,"li",9),s.qSk(),e.nrm(21,"svg",10),e.EFF(22),e.nI1(23,"translate"),e.k0s(),e.DNE(24,Pt,3,2,"li",11),e.k0s()()()}if(2&r){const t=e.XpG();e.Y8G("pageInfo",null==t.application?null:t.application.detailRoute)("breadcrumbItems",e.l_i(31,yt,t.routes.personal.privacy.appIntegrations,null==t.application?null:t.application.detailRoute))("headerImageUrl",t.application.applicationImageUrl||t.images.placeholders.issuer),e.R7$(),e.BMQ("aria-label",e.i5U(2,12,"userAccount.userAccount.oauth2AppDetail.revokeAccess.ariaLabel",e.eq3(34,oe,t.application.applicationName))),e.R7$(2),e.SpI(" ",e.bMT(4,15,"userAccount.userAccount.oauth2AppDetail.revokeAccess.button")," "),e.R7$(4),e.SpI(" ",e.bMT(8,17,"userAccount.userAccount.oauth2AppDetail.authorized.label")," "),e.R7$(3),e.JRh(e.i5U(11,19,t.application.creationDate,"ll")),e.R7$(2),e.SpI(" ",e.i5U(13,22,"userAccount.userAccount.appIntegrations.oauth2App.description",e.eq3(36,Tt,t.brandingService.freeBrandName))," "),e.R7$(2),e.Y8G("ngIf",t.application.applicationWebsiteUrl),e.R7$(3),e.SpI(" ",e.i5U(18,25,"userAccount.userAccount.oauth2AppDetail.permissionsTitle.text",e.eq3(38,oe,t.application.applicationName))," "),e.R7$(5),e.SpI(" ",e.i5U(23,28,"auth.auth.oauth2Authorize.knowWhoYouAre.label",e.eq3(40,Rt,t.theme.serviceName||t.brandingService.freeBrandName))," "),e.R7$(2),e.Y8G("ngForOf",t.application.presentationScopes)}}class I extends b{get oAuth2AppIntegrations(){return this.entityManager.ensureTypedEntityGroup(v.forCurrentUser)}constructor(o){super(o),this.themeService.setTitle(this.translateService.instant("userAccount.userAccount.oauth2AppDetail.appDetails.title"))}revokeApplication(o){var t=this;return(0,d.A)(function*(){(yield t.dialogService.confirmDialog.openTrueFalseDialog({dialogTitle:t.translateService.instant("userAccount.userAccount.oauth2AppDetail.revokeDialog.title"),dialogBody:t.translateService.instant("userAccount.userAccount.oauth2AppDetail.revokeDialog.body"),useMarkdown:!1,rejectButtonLabel:t.translateService.instant("common.common.cancel"),resolveButtonLabel:t.translateService.instant("userAccount.userAccount.appIntegrations.revokeDialog.confirm")}
1))&&o.loadedPromise.then(n=>n.delete()).catch(t.messageService.errorHandler(t.translateService.instant("userAccount.userAccount.oauth2AppDetail.revokeFailed.error")))})()}get application(){return this.entityManager.ensureFetchedEntity(v.byId(this.clientId))}get clientId(){return this.routeParamRequired(F.sK)}static{this.\u0275fac=function(t){return new(t||I)(e.rXU(s.zZn))}}static{this.\u0275cmp=e.VBU({type:I,selectors:[["ng-component"]],standalone:!1,features:[e.Vt3],decls:1,vars:1,consts:[[3,"pageInfo","breadcrumbItems","headerImageUrl",4,"bgAwaitPromises"],[3,"pageInfo","breadcrumbItems","headerImageUrl"],["parentPage-x-action","","buttonStyle","button-secondary",3,"click"],["parentPage-x-description","",1,"l-responsivelist","l-responsivelist-small"],[1,"u-text"],[3,"bgOutLinkHref",4,"ngIf"],[1,"authlist"],[1,"authlist-x-title"],[1,"authlist-x-items"],[1,"authlist-x-item"],["icon","icon_misc_member"],["class","authlist-x-item",4,"ngFor","ngForOf"],[3,"bgOutLinkHref"],[3,"icon"]],template:function(t,n){1&t&&e.DNE(0,Ut,25,42,"bgl-parent-page",0),2&t&&e.Y8G("bgAwaitPromises",n.application)},dependencies:[g.Sq,g.bT,J.h,te.DM,R.O,U.r,A.O,W.D,p.r],encapsulation:2})}}(0,l.Cg)([(0,h.V)(),(0,l.Sn)("design:type",Object),(0,l.Sn)("design:paramtypes",[])],I.prototype,"oAuth2AppIntegrations",null),(0,l.Cg)([(0,h.V)(),(0,l.Sn)("design:type",Object),(0,l.Sn)("design:paramtypes",[])],I.prototype,"application",null);const Ft=[{path:"",pathMatch:"full",component:P},{path:"edit-name",component:Se},{path:"change-password",component:ve},{path:"org-profile",component:fe},{path:"privacy",component:Ee,children:[{path:"",pathMatch:"full",redirectTo:"org-permissions"},{path:"org-permissions",component:ke},{path:"apps",component:C}]},{path:`privacy/apps/oauth2/:${F.sK}`,component:I}];let kt=(()=>{class r{static{this.\u0275fac=function(n){return new(n||r)}}static{this.\u0275mod=e.$C({type:r})}static{this.\u0275inj=s.G2t({imports:[O.iI.forChild(Ft),O.iI]})}}return r})(),Dt=(()=>{class r{static{this.\u0275fac=function(n){return new(n||r)}}static{this.\u0275mod=e.$C({type:r})}static{this.\u0275inj=s.G2t({imports:[g.MD,ae.gH,kt,u.YN,u.X1,le.a,ce.k]})}}return r})()}}]);
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.