PageSourceSearch

https://cdn.saldoar.com/chunk-YPBESHDA.js

js saldoar.com collected 2026-10-09 21:55:46 UTC 5,977 bytes, 2 lines download raw bytes

1import{a as N}from"./chunk-JFTPJOA7.js";import{X as x,a as u,b as I}from"./chunk-ADFC5ZUG.js";import{b as T,p as P}from"./chunk-EDUFDWTI.js";import{a as O}from"./chunk-E52QKEHP.js";import{a as _}from"./chunk-36F45RJK.js";import{h as p}from"./chunk-B55WPK7D.js";import{Aa as j,Da as F,g as b,ha as w,la as m,pa as n}from"./chunk-LPNNXG2C.js";import{a as i,b as s}from"./chunk-RO3SFXNZ.js";var M=(()=>{class o{constructor(t,e){this.errorFormService=t,this.notifyService=e}render(t){if(t.detail_bag.length===0){this.notifyService.notify(t.message);return}this.errorFormService.resetErrorNotification(),t.detail_bag.forEach(e=>{e.attribute_name?this.errorFormService.notifyToForm(e.message,e.attribute_name)||this.notifyService.notify(e.message):this.notifyService.notify(e.message)})}static{this.\u0275fac=function(e){return new(e||o)(n(O),n(x))}}static{this.\u0275prov=m({token:o,factory:o.\u0275fac,providedIn:"root"})}}return o})();var l=class{constructor(r,t){this.pipes=r,this.terminal=t}run(r){return this.pipes.reduceRight((e,a)=>c=>a.handle(c,e),this.terminal)(r)}};var h=class extends l{constructor(r,t){super(r,t)}};function G(o){return r=>r.result?r:(console.warn("[ErrorTerminal] No pipe handled this error. Using fallback:",r.data),s(i({},r),{result:o.getAppErrorFromError(r.data)}))}var H=(()=>{class o{constructor(t){this.browserService=t,this.NO_CONNECTION_MESSAGE="Sin conexi\xF3n a Internet.",this.APP_ERROR_MESSAGE="\xA1Ups! Ha ocurrido un error desconocido en la aplicaci\xF3n.",this.SERVER_ERROR_MESSAGE="\xA1Ups! Ha ocurrido un error desconocido en el servidor."}getAppErrorFromJsonApi(t){let e=new u;return e.message="JsonApi error",e.original_error=t,e.render=!0,t.errors.forEach(a=>{let c=new I;a.source?.attribute&&(c.attribute_name=a.source.attribute),c.message=a.detail??a.title??"",e.detail_bag.push(c)}),e}getAppErrorFromError(t){let e=new u;return e.message=this.browserService.isBrowser&&!navigator.onLine?this.NO_CONNECTION_MESSAGE:this.APP_ERROR_MESSAGE,e.original_error=t,e.report=!0,e}getAppErrorFromHttpErrorResponse(t){let e=new u;return e.original_error=t,t.status>=500?(e.message=this.SERVER_ERROR_MESSAGE,e.render=!0):(e.message=this.APP_ERROR_MESSAGE,e.render=!0),e}getAppErrorFromRuntimeError(t){let e=new u;return e.original_error=t,e.message=t.message,e.render=!0,e.report=!0,e}static{this.\u0275fac=function(e){return new(e||o)(n(_))}}static{this.\u0275prov=m({token:o,factory:o.\u0275fac,providedIn:"root"})}}return o})();var J=(()=>{class o{constructor(){this.isError=new b}static{this.\u0275fac=function(e){return new(e||o)}}static{this.\u0275prov=m({token:o,factory:o.\u0275fac,providedIn:"root"})}}return o})();var d=class{constructor(r){this.errorConverter=r}handle(r,t){if(r.result)return t(r);let e=r.data;return e?.errors?.[0]?.title!=="El correo no ha sido validado"?t(r):(console.warn("User not validate!",e),s(i({},r),{result:this.errorConverter.getAppErrorFromJsonApi(e)}))}};var E=class{constructor(r){this.errorConverter=r}handle(r,t){if(r.result)return t(r);let e=r.data;return!e?.error?.errors||!Array.isArray(e.error.errors)?t(r):s(i({},r),{result:this.errorConverter.getAppErrorFromJsonApi(e.error)})}};var v=class{constructor(r){this.errorConverter=r}handle(r,t){if(r.result)return t(r);let e=r.data;return!e?.errors||!Array.isArray(e.errors)?t(r):s(i({},r),{result:this.errorConverter.getAppErrorFromJsonApi(e)})}};var S=class{constructor(r){this.errorConverter=r}handle(r,t){if(r.result)return t(r);let e=r.data;return!e?.promise||!e?.rejection?.error?.errors?t(r):s(i({},r),{result:this.errorConverter.getAppErrorFromJsonApi(e.rejection.error)})}};var g=class{constructor(r){this.errorConverter=r}handle(r,t){return r.result||!(r.data instanceof p)?t(r):s(i({},r),{result:this.errorConverter.getAppErrorFromHttpErrorResponse(r.data)})}};var R=class o extends Error{constructor(r){super(r),Object.setPrototypeOf(this,o.prototype)}getAppError(){let r=new u;return r.message=this.message,r.original_error=this,r.render=!0,r.report=!1,r}};var A=class{handle(r,t){return r.result||!(r.data instanceof R)?t(r):s(i({},r),{result:r.data.getAppError()})}};var y=class{constructor(r,t){this.errorConverter=r,this.errorTrustedService=t}handle(r,t){if(r.result)return t(r);let e=r.data;if(!e||typeof e!="object"||!("isTrusted"in e))return t(r);this.errorTrustedService.isError.next(!0);let a=JSON.stringify(e,["message","arguments","type","name"]);return s(i({},r),{result:this.errorConverter.getAppErrorFromError(a)})}};var C=class{constructor(r){this.errorConverter=r}handle(r,t){return r.result||!(r.data instanceof w)?t(r):s(i({},r),{result:this.errorConverter.getAppErrorFromRuntimeError(r.data)})}};var B=(()=>{class o{constructor(t,e){this.errorConverter=t,this.errorTrustedService=e}create(){let t=[new d(this.errorConverter),new E(this.errorConverter),new v(this.errorConverter),new S(this.errorConverter),new g(this.errorConverter),new A,new y(this.errorConverter,this.errorTrustedService),new C(this.errorConverter)];return new h(t,G(this.errorConverter))}static{this.\u0275fac=function(e){return new(e||o)(n(H),n(J))}}static{this.\u0275prov=m({token:o,factory:o.\u0275fac})}}return o}
1)();var ee=(()=>{class o extends F{constructor(t,e,a){super(),this.injector=t,this.breadcrumbTrackerService=a,this.pipeline=e.create()}handleError(t){let e={data:t,result:void 0,extra:{timestamp:Date.now(),source:"CustomErrorHandler"}},c=this.pipeline.run(e).result;c.render&&this.injector.get(M).render(c),c.report&&(this.isErrorWithResponsePayload(t)?this.breadcrumbTrackerService?.jsExceptionWithResponse(i({hasResponse:!0},N(t))):this.breadcrumbTrackerService?.unhandledJsExceptionCaptured({errorType:typeof t}),this.injector.get(T).report(c))}isErrorWithResponsePayload(t){return t instanceof p?!!t.error:!1}static{this.\u0275fac=function(e){return new(e||o)(n(j),n(B),n(P,8))}}static{this.\u0275prov=m({token:o,factory:o.\u0275fac})}}return o})();export{J as a,B as b,ee as c};
2//# sourceMappingURL=chunk-YPBESHDA.js.map

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.