PageSourceSearch

https://thebbq-express.co.uk/delete-account-page.component-7MTC7DW6.js

js thebbq-express.co.uk collected 2026-10-02 16:15:06 UTC 2,329 bytes, 1 lines download raw bytes

1import{a as M}from"./chunk-6HHNEZFJ.js";import"./chunk-AYSR25CR.js";import"./chunk-SYHQX2AD.js";import"./chunk-NVRLIFTB.js";import"./chunk-4UM2KBEW.js";import"./chunk-WLX2V4Y4.js";import{b as A,c as b}from"./chunk-FQYCAPH3.js";import"./chunk-YG2LPD5X.js";import"./chunk-NBJDOE7Y.js";import{h as I}from"./chunk-G3GNO263.js";import{e as D,h as y}from"./chunk-IWD2VGYG.js";import{F as v,aa as S}from"./chunk-TYJIMTOU.js";import{B as l,Hb as f,I as p,Ib as _,Ob as o,Pb as c,U as s,Zb as x,bc as C,dc as h,hb as r,ja as m,ka as u,nb as d,rb as g,rc as a}from"./chunk-BYXESBPT.js";import"./chunk-EQDQRRRY.js";function P(n,k){if(n&1){let e=x();o(0,"div",0)(1,"div",1)(2,"h1",2),a(3,"Delete your account"),c(),o(4,"p",3),a(5,"To permanently delete your account and personal data, please sign in first."),c(),o(6,"button",4),C("click",function(){m(e);let i=h();return u(i.signIn())}),o(7,"span"),a(8,"Sign in"),c()()()()}}var $=(()=>{class n extends I{constructor(e,t,i){super(),this._userService=e,this._router=t,this._storage=i}ngOnInit(){this.requiresSignIn=!this._storage.get(S.accessToken),this._userService.currentUser$.pipe(l(e=>!!e?.Id),p(1),s(this.destroy$)).subscribe(()=>{this.requiresSignIn=!1,this.openDeleteAccountDialog()})}signIn(){this._userService.login(!1,"/profile/delete")}openDeleteAccountDialog(){this.openDialog(M,"DeleteAccountComponent",{maxWidth:"550px",panelClass:["no-padding","confirmDelete"]}).afterClosed().pipe(s(this.destroy$)).subscribe(()=>this._router.navigateByUrl("/"))}static{this.\u0275fac=function(t){return new(t||n)(r(y),r(v),r(D))}}static{this.\u0275cmp=d({type:n,selectors:[["app-delete-account-page"]],features:[g],decls:1,vars:1,consts:[[1,"_delete-account-page"],[1,"_delete-account-prompt"],[1,"_delete-account-title"],[1,"_delete-account-text"],["mat-raised-button","",1,"button-action-1","_delete-account-signin",3,"click"]],template:function(t,i){t&1&&f(0,P,9,0,"div",0),t&2&&_(i.requiresSignIn?0:-1)},dependencies:[b,A],styles:["._delete-account-page[_ngcontent-%COMP%]{display:flex;justify-content:center;padding:40px 20px}._delete-account-prompt[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:16px;max-width:480px;text-align:center}._delete-account-signin[_ngcontent-%COMP%]{min-width:160px}"]})}}return n})();export{$ as DeleteAccountPageComponent};

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.