1import{a as T}from"./chunk-DFWETVRG.js";import{d as w}from"./chunk-B6QQTL5U.js";import"./chunk-3YLKWUWH.js";import"./chunk-B3ZX5VU2.js";import"./chunk-DQFPXF55.js";import{cc as k}from"./chunk-WQJBBTCI.js";import"./chunk-4CJWBYCB.js";import"./chunk-SURXIWHQ.js";import"./chunk-XA5FCWDS.js";import"./chunk-HI2SFOKG.js";import"./chunk-Q4RKSZPF.js";import"./chunk-EAXXXKJF.js";import"./chunk-TSAGDD3L.js";import"./chunk-2KLHVVXY.js";import"./chunk-57ZE2MFX.js";import"./chunk-2K3OMPC4.js";import"./chunk-Y7RIDXUL.js";import"./chunk-YEGPHGBX.js";import"./chunk-7RCWNHPV.js";import{b as S}from"./chunk-UVZTK3KN.js";import"./chunk-SHGQQ3FD.js";import"./chunk-V4O2LDMY.js";import"./chunk-2ST2D35A.js";import"./chunk-QM7L3NXF.js";import"./chunk-FQJS5LDW.js";import"./chunk-QNL77YDP.js";import"./chunk-57ZU5LG5.js";import"./chunk-PHLZ3AAU.js";import"./chunk-M6TI2MTM.js";import"./chunk-3X7N74SL.js";import"./chunk-GDVMO23R.js";import{a as E}from"./chunk-L24GWH2F.js";import"./chunk-XZ7DUGPR.js";import{o as x,p as I}from"./chunk-DVYNXNTI.js";import"./chunk-4KBURNX4.js";import"./chunk-5HC4BW43.js";import"./chunk-B6STJHB2.js";import{g as M,j as P}from"./chunk-PWUAYS4F.js";import"./chunk-YJKRYWMV.js";import"./chunk-ZDR3KJJS.js";import"./chunk-KTIPPCE2.js";import"./chunk-IVJ2I5VN.js";import{$b as l,Aa as f,Cb as C,Ec as a,Gb as _,P as p,Zb as s,aa as h,ea as u,ec as n,fc as o,gc as y,mb as c,nc as D,rc as b,s as m,tc as v,xb as d,za as g}from"./chunk-EN2B4KZW.js";import"./chunk-4KIXNS7N.js";function j(e,A){if(e&1){let r=D();n(0,"button",6),b("click",function(){g(r);let i=v();return f(i.confirmDeleteCreditCard())}),a(1," Delete Payment Method "),o()}}function N(e,A){e&1&&(n(0,"button",5),a(1," Deleting Card... "),o())}var q=(()=>{class e extends S{constructor(r,t,i){super(),this._router=r,this._store=t,this.activatedroute=i,this.numPaymentMethodsChanged$=this._store.pipe(I(k),m(U=>U?.length??0),p(),h(1)),this.confirming=!1}ngOnInit(){this.cardId=Number(this.activatedroute.snapshot.paramMap.get("card_id")),this.numPaymentMethodsChanged$.pipe(u(this.destroyed$)).subscribe(()=>{this._router.navigate([E.MANAGE_PAYMENT_METHODS])})}confirmDeleteCreditCard(){this.confirming=!0,this._store.dispatch(w({creditCardId:this.cardId}))}static{this.\u0275fac=function(t){return new(t||e)(d(P),d(x),d(M))}}static{this.\u0275cmp=C({type:e,selectors:[["app-delete-payment-method"]],inputs:{loggedInUser:"loggedInUser"},features:[_],decls:11,vars:2,consts:[[1,"ghg-page-container","ghg-fill-height"],[1,"title","h5","mb-0"],[1,"content"],[1,"text-center","mt-3"],["data-testid","delete-card",1,"block-button","warning"],["ng-reflect-disabled","true","disabled","","data-testid","delete-card",1,"block-button","warning"],["data-testid","delete-card",1,"block-button","warning",3,"click"]],template:function(t,i){t&1&&(n(0,"div",0)(1,"app-display-card")(2,"h1",1),a(3,"Delete Payment Method"),o(),n(4,"div",2)(5,"p"),a(6," Are you sure you wish to delete the following payment method, this action cannot be undone. "),o(),y(7,"p"),n(8,"div",3),s(9,j,2,0,"button",4),s(10,N,2,0,"button",5),o()()()()),t&2&&(c(9),l(i.confirming?-1:9),c(),l(i.confirming?10:-1))},dependencies:[T],encapsulation:2,changeDetection:0})}}return e})();export{q as DeletePaymentMethodComponent};
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.