import{a as g}from"./chunk-BXXEY6EK.js";import{c as d,e as p}from"./chunk-XZELSHJP.js";import{c as l}from"./chunk-YM543BQE.js";import{m as f,o as h,p as v}from"./chunk-STBSUBIU.js";import{Ac as m,Fd as u,_ as s,lb as e,qa as a,xb as c}from"./chunk-NW2U37DI.js";import"./chunk-TWZW5B45.js";var k=(()=>{class r extends v{constructor(o,t,n,S,b,C){super(C),this.router=o,this.activatedRoute=t,this.customerService=n,this.toastr=S,this.translate=b,t.params.pipe(s(this.unSubscribe$)).subscribe({next:I=>{this.loaderService.showLoader(),this.customerService.verifytoken(I.id).pipe(s(this.unSubscribe$)).subscribe({next:i=>{i?.success&&(this.toastr.success(this.translate.transform(i.success)),i?.redirect&&this.router.navigate(["/"]),this.router.navigate(["/customer/login"])),i?.warning&&(this.toastr.warning(this.translate.transform(i.warning)),this.router.navigate(["/customer/login"])),this.loaderService.hideLoader()},error:()=>this.loaderService.hideLoader()})}})}ngOnInit(){}static{this.\u0275fac=function(t){return new(t||r)(e(p),e(d),e(g),e(f),e(l),e(h))}}static{this.\u0275cmp=a({type:r,selectors:[["app-customer-verify"]],standalone:!0,features:[c,m],decls:0,vars:0,template:function(t,n){},dependencies:[u]})}}return r})();export{k as CustomerVerifyComponent};
