1import{a as b,b as A}from"./chunk-MTYUXE7B.js";import{c as R,d as N}from"./chunk-AZS3QIZL.js";import"./chunk-UYRUDIUB.js";import"./chunk-KXNDLGYE.js";import{f as I,h as x,m as D,n as T}from"./chunk-MJC7NEL7.js";import"./chunk-G7CCAZ6K.js";import{c as y,e as M,f as O}from"./chunk-P2NB64WX.js";import"./chunk-H3JKYH2Z.js";import{Mb as h,Ob as p,Pb as u,Pc as r,Qc as s,Yb as a,Zb as c,_b as v,hb as i,hc as C,ic as g,ob as l,uc as _,ud as S,vb as f,xc as m,zc as d}from"./chunk-6ZKZEUGL.js";import{e as L}from"./chunk-J6LPXIX4.js";function F(e,k){e&1&&(a(0,"p",4),v(1,"span",8),a(2,"span",9),m(3),r(4,"translate"),c()()),e&2&&(i(3),d(" ",s(4,1,"DELETE_CONFIRM.LOADING")," "))}function K(e,k){if(e&1&&(a(0,"p"),m(1),r(2,"translate"),c()),e&2){let t=g();_("has-text-success",t.ok)("has-text-danger",!t.ok),i(),d(" ",s(2,5,t.msgKey)," ")}}var V,B=L(()=>{T();O();S();T();A();N();O();V=(()=>{class e{route;srv;auth;router;pending=!0;ok=!1;msgKey=null;constructor(t,n,o,E){this.route=t,this.srv=n,this.auth=o,this.router=E}ngOnInit(){let t=this.route.snapshot.queryParamMap.get("token")||"";this.srv.confirmDeleteAccount(t).subscribe({next:()=>{this.ok=!0,this.msgKey="DELETE_CONFIRM.SUCCESS",this.pending=!1,this.auth.logout()},error:()=>{this.ok=!1,this.msgKey="DELETE_CONFIRM.ERROR_LINK_INVALID",this.pending=!1}})}goToHome(){this.router.navigate(["/"])}static \u0275fac=function(n){return new(n||e)(l(I),l(b),l(R),l(x))};static \u0275cmp=f({type:e,selectors:[["ng-component"]],decls:13,vars:11,consts:[["aria-labelledby","delete-confirm-title",1,"section"],[1,"container","has-text-centered"],["role","status","aria-live","polite",1,"box"],["id","delete-confirm-title",1,"title","is-5"],["aria-busy","true",1,"mt-3"],[3,"has-text-success","has-text-danger"],[1,"mt-4"],["type","button",1,"button","is-link",3,"click"],["aria-hidden","true",1,"loader","is-loading"],[1,"sr-only"]],template:function(n,o){n&1&&(a(0,"section",0)(1,"div",1)(2,"div",2)(3,"h1",3),m(4),r(5,"translate"),c(),p(6,F,5,3,"p",4),p(7,K,3,7,"p",5),a(8,"div",6)(9,"button",7),r(10,"translate"),C("click",function(){return o.goToHome()}),m(11),r(12,"translate"),c()()()()()),n&2&&(i(4),d(" ",s(5,5,"DELETE_CONFIRM.TITLE")," "),i(2),u(o.pending?6:-1),i(),u(!o.pending&&o.msgKey?7:-1),i(2),h("aria-label",s(10,7,"DELETE_CONFIRM.GO_HOME_ARIA")),i(2),d(" ",s(12,9,"DELETE_CONFIRM.GO_HOME")," "))},dependencies:[D,M,y],encapsulation:2,changeDetection:1})}return e})()});B();export{V as DeleteConfirmComponent};
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.