1"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[3423],{3423:(M,c,a)=>{a.r(c),a.d(c,{OAuth2AuthorizationAccessModule:()=>F});var o=a(4438),m=a(5231),S=a(1552),e=a(7613),y=a(9373),l=a(5060),z=a(8810),v=a(7673),R=a(8141),g=a(6354),V=a(9437),I=a(1397),H=a(516),U=a(3408),K=a(7006),f=a(7348),d=a(7289),A=a(6347),D=a(1626);let O=(()=>{class s{constructor(t,r,i,h,n){this.http=t,this.routes=r,this.validations=i,this.languageService=h,this.logoutService=n}authorize(t,r,i){const h=JSON.stringify({queryString:r});return this.http.post(this.authorizeUrl(t),h,{observe:"response"}).pipe((0,R.M)(n=>this.extractLanguage(n)),(0,g.T)(n=>A.N.fromJsonApiResponse(n)),(0,V.W)(n=>this.handleOAuth2ErrorOrDefaultHandling(n,i)))}authorizeUrl(t){return(0,f.OZ)(["public","authentication","oauth2","authorization-servers",t,"authorize"])}handleOAuth2ErrorOrDefaultHandling(t,r){return this.setLanguage(t.error.meta.uiLocale),this.validations.getServerValidationErrorsWithCodes(t,["OAUTH2_AUTHORIZATION_SERVER_REAUTHENTICATION_REQUIRED"]).length>0?this.logoutService.logout(r).pipe((0,I.Z)(()=>l.t)):this.defaultErrorHandling(t)}defaultErrorHandling(t){return 403===t.status?(this.routes.error.noAccess.navigate(),l.t):404===t.status?(this.routes.error.notFound.navigate(),(0,z.$)(()=>t)):(0,v.of)(A.Z.fromErrorResponse(t))}extractLanguage(t){this.setLanguage(t.body.data.attributes.uiLocale)}setLanguage(t){K.D.isNotBlank(t)&&this.languageService.isSupportedLanguage(t)&&(this.languageService.language=t)}static#t=this.\u0275fac=function(r){return new(r||s)(o.KVO(D.Qq),o.KVO(e.BV),o.KVO(H.R),o.KVO(U.g),o.KVO(d.k))};static#s=this.\u0275prov=o.jDH({token:s,factory:s.\u0275fac})}return s})(),p=(()=>{class s{constructor(t,r){this.authUiService=t,this.authAccessService=r}authorize(t,r,i){return this.authUiService.access(()=>this.authAccessService.authorize(t,r,i))}static#t=this.\u0275fac=function(r){return new(r||s)(o.KVO(y.I),o.KVO(O))};static#s=this.\u0275prov=o.jDH({token:s,factory:s.\u0275fac})}return s})(),E=(()=>{class s{constructor(t,r){this.oauth2AuthUiService=t,this.routes=r}canActivate(t){return this.performAccess(t)}performAccess(t){const r=(0,f.zJ)(t.queryParams),i=t.paramMap.get("asId");return i?this.oauth2AuthUiService.authorize(i,r,window.location.href).pipe((0,g.T)(()=>!1)):(this.routes.error.notFound.navigate(),(0,v.of)(!1))}static#t=this.\u0275fac=function(r){return new(r||s)(o.KVO(p),o.KVO(e.BV))};static#s=this.\u0275prov=o.jDH({token:s,factory:s.\u0275fac})}return s})();var u=a(4735),L=a(4074),T=a(9557);const C=[e.ft,{path:":asId/authorize",canActivate:[s=>(0,o.WQX)(E).canActivate(s)],resolve:{logoutConfig:s=>(0,o.WQX)(u.f).resolve(s)},pathMatch:"full",runGuardsAndResolvers:"always",component:T.n}];let F=(()=>{class s{static#t=this.\u0275fac=function(r){return new(r||s)};static#s=this.\u0275mod=o.$C({type:s});static#a=this.\u0275inj=o.G2t({providers:[p,O,E,d.k,u.f,u.f.PROVIDER,L.W],imports:[m.iI.forChild(C),S.G]})}return s})()}}]);
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.