1import{i as M}from"./chunk-BUPSVSKU.js";import{d as D}from"./chunk-ERT55GZD.js";import"./chunk-JSEE3QHX.js";import{$ as v,Ca as _,Dc as R,Fc as k,Ha as b,Pa as w,Qa as T,T as m,Va as f,Wa as i,Xa as n,Y as p,Ya as x,Z as g,_ as u,ab as S,bb as C,db as q,fa as h,fb as y,hb as c,sa as r,tb as E,ub as s,wb as l}from"./chunk-FRXGJQCG.js";import"./chunk-HZ6M6AS2.js";function I(a,t){if(a&1&&(i(0,"p",10),s(1),n()),a&2){let e=c().$implicit;r(),l(" ",e("common.errors.serverRetryBody")," ")}}function N(a,t){if(a&1){let e=q();S(0),i(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5),u(),i(6,"svg",6),x(7,"path",7),n()()(),v(),i(8,"h1",8),s(9),n(),i(10,"p",9),s(11),n(),w(12,I,2,1,"p",10),i(13,"div",11)(14,"button",12),y("click",function(){p(e);let d=c();return g(d.reload())}),u(),i(15,"svg",13),x(16,"path",14),n(),s(17),n(),v(),i(18,"button",15),y("click",function(){p(e);let d=c();return g(d.goToDashboard())}),u(),i(19,"svg",13),x(20,"path",16),n(),s(21),n(),v(),i(22,"button",17),y("click",function(){p(e);let d=c();return g(d.goToLogin())}),s(23),n()()()()(),C()}if(a&2){let e=t.$implicit,o=c();r(9),l(" ",e("common.errors.serverTitle")," "),r(2),l(" ",e("common.errors.serverBody")," "),r(),T(o.retryFailed()?12:-1),r(2),f("disabled",o.isRetrying()),r(),E(o.isRetrying()?"animate-spin":""),r(2),l(" ",o.isRetrying()?e("common.states.retrying"):e("common.actions.tryAgain")," "),r(),f("disabled",o.isRetrying()),r(3),l(" ",e("common.actions.returnToDashboard")," "),r(2),l(" ",e("common.actions.goToLogin")," ")}}var V=class a{router=m(k);route=m(R);authService=m(D);isRetrying=h(!1);retryFailed=h(!1);reload(){let t=this.route.snapshot.queryParamMap.get("returnUrl"),e=t&&this.isSafeReturnUrl(t)?t:null;return this.retryThenNavigate(e)}goToDashboard(){return this.retryThenNavigate(null)}async retryThenNavigate(t){if(this.isRetrying())return;this.isRetrying.set(!0),this.retryFailed.set(!1);let e=await this.authService.retryInit();if(this.isRetrying.set(!1),e==="network-error"||e==="server-error"){this.retryFailed.set(!0);return}t?await this.router.navigateByUrl(t):await this.router.navigate(["/dashboard/workspace"])}isSafeReturnUrl(t){return t.startsWith("/")&&!t.startsWith("//")}goToLogin(){this.router.navigate(["/login"])}static \u0275fac=function(e){return new(e||a)};static \u0275cmp=_({type:a,selectors:[["app-server-error"]],decls:1,vars:0,consts:[[4,"transloco"],[1,"min-h-screen","bg-linear-to-br","from-gray-900","via-gray-800","to-gray-900","flex","items-center","justify-center","p-4"],[1,"max-w-md","w-full"],[1,"bg-designer-panel","rounded-2xl","p-8","shadow-2xl","border","border-gray-700"],[1,"flex","justify-center","mb-6"],[1,"size-20","rounded-full","bg-red-500/10","flex","items-center","justify-center"],["xmlns","http://www.w3.org/2000/svg","height","48px","viewBox","0 -960 960 960","width","48px","fill","#ef4444"],["d","M480-80q-82 0-155-31.5t-127.5-86Q143-252 111.5-325T80-480q0-83 31.5-155.5t86-127Q252-817 325-848.5T480-880q83 0 155.5 31.5t127 86q54.5 54.5 86 127T880-480q0 82-31.5 155t-86 127.5q-54.5 54.5-127 86T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-120q-17 0-28.5-11.5T440-320q0-17 11.5-28.5T480-360q17 0 28.5 11.5T520-320q0 17-11.5 28.5T480-280Zm-40-160h80v-240h-80v240Z"],[1,"text-2xl","font-semibold","text-white","text-center","mb-3"],[1,"text-gray-400","text-center","mb-8","leading-relaxed"],["role","status",1,"text-red-400","text-sm","text-center","mb-6"],[1,"space-y-3"],[1,"w-full","px-6","py-3","bg-designer-primary","hover:bg-designer-primary-hover","text-white","font-medium","rounded-lg","transition-colors","duration-200","flex","items-center","justify-center","gap-2","disabled:opacity-60","disabled:cursor-not-allowed",3,"click","disabled"],["xmlns","http://www.w3.org/2000/svg","height","20px","viewBox","0 -960 960 960","width","20px","fill","currentColor"],["d","M480-160q-134 0-227-93t-93-227q0-134 93-227t227-93q69 0 132 28.5T720-690v-110h80v280H520v-80h168q-32-56-87.5-88T480-720q-100 0-170 70t-70 170q0 100 70 170t170 70q77 0 139-44t87-116h84q-28 106-114 173t-196 67Z"],[1,"w-full","px-6","py-3","bg-gray-700","hover:bg-gray-600","text-white","font-medium","rounded-lg","transition-colors","duration-200","flex","items-center","justify-center","gap-2","disabled:opacity-60","disabled:cursor-not-allowed",3,"click","disabled"],["d","m313-440 224 224-57 56-320-320 320-320 57 56-224 224h487v80H313Z"],[1,"w-full","px-6","py-3","bg-transparent","hover:bg-gray-700/50","text-gray-400","hover:text-white","font-medium","rounded-lg","transition-colors","duration-200",3,"click"]],template:function(e,o){e&1&&b(0,N,24,10,"ng-container",0)},dependencies:[M],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})};export{V as ServerErrorComponent};
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.