1(self.webpackChunkhomepageUi=self.webpackChunkhomepageUi||[]).push([[7755],{7755(H,h,e){e.r(h),e.d(h,{ErrorHandlerComponent:()=>A});var c=e(5802),f=e(8141),p=e(980),l=e(8589),m=e(7811);let E=(()=>{class r extends m.jh{constructor(){super({errorDescriptions:[],errorByApi:[]}),this.errorMessages=(0,c.WQX)(l.im),this.currentErrorItem$=this.select(({errorByApi:o,errorDescriptions:t})=>{let s;const i=o.map(({statusCode:a})=>a).reverse().find(a=>0===a||a>=400);if(String(i).startsWith(l.Fg)){const a=this.getErrorDescription(t,l.io);a&&(s={...a},s.errorCode=i??0)}else s=this.getErrorDescription(t,i);return s}),this.updateError=this.updater((o,{api:t,status:s})=>({...o,errorByApi:[...o.errorByApi.filter(({api:i})=>i!==t),{statusCode:s,api:t}]})),this.removeAllErrors=this.updater(o=>({...o,errorByApi:[]})),this.syncError=this.effect(o=>o.pipe((0,f.M)(t=>{void 0!==t?this.setError("content-api",t):this.clearError()}))),this.syncError((0,c.WQX)(l.Vi).pipe((0,p.j)(()=>{this.clearError()}))),(0,c.QZP)(()=>{this.patchState({errorDescriptions:this.errorMessages()})})}setError(o,t){this.updateError({api:o,status:t})}getErrorDescription(o,t){return o.find(s=>String(t).startsWith(String(s.errorCode)))}clearError(){this.removeAllErrors()}static{this.\u0275fac=function(t){return new(t||r)}}static{this.\u0275prov=c.jDH({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})();var g=e(9882),v=e(9079),n=e(5547);const C=()=>[Promise.all([e.e(6537),e.e(5641),e.e(8834),e.e(5584)]).then(e.bind(e,5584)).then(r=>r.ErrorUiComponent)];function y(r,d){if(1&r&&n.nrm(0,"hra-error-ui",0),2&r){const o=n.XpG();n.Y8G("errorPayloadObject",o)}}function D(r,d){1&r&&(n.PeT(0,y,1,1),n.nv$(1,0,C),n.g25())}function x(r,d){1&r&&n.nrm(0,"router-outlet")}let A=(()=>{class r{constructor(){this.errorService=(0,c.WQX)(E),this.error$=this.errorService.currentErrorItem$,this.error=(0,v.ot)(this.error$)}static{this.\u0275fac=function(t){return new(t||r)}}static{this.\u0275cmp=n.VBU({type:r,selectors:[["hra-error-handler"]],decls:2,vars:2,consts:[[3,"errorPayloadObject"]],template:function(t,s){if(1&t&&(n.nVh(0,D,3,0),n.nVh(1,x,1,0,"router-outlet")),2&t){let i;n.vxM((i=s.error())?0:-1,i),n.R7$(),n.vxM(void 0===s.error()?1:-1)}},dependencies:[g.n3],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;flex-grow:1;background-color:var(--color-background-background-100)}"],changeDetection:0})}}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.