1import{a as F}from"./chunk-JTAASQT5.js";import{a as $}from"./chunk-NX2PSVBQ.js";import"./chunk-YV5PYWCA.js";import"./chunk-CMQMDXEV.js";import{d as T,e as O}from"./chunk-AEFFENHG.js";import{M as U,l as N,m as B}from"./chunk-WJCZH6HG.js";import{M as j}from"./chunk-MCKXKETK.js";import{h as I,k,l as A,o as P}from"./chunk-HE2257SY.js";import{e as h}from"./chunk-5V2X2RTQ.js";import{Aa as S,Ab as v,Ac as L,Bb as g,Bc as R,Eb as b,Fb as x,Fc as D,Lb as d,Mb as u,Nb as w,Rb as H,Sb as _,Vb as s,Wb as l,Za as C,cb as t,ia as E,n as y,rb as M,ta as m,tb as o,xb as r,yb as n,zb as p}from"./chunk-JDM5YRQG.js";var Q=()=>["/account/"];function q(i,a){if(i&1&&(v(0),r(1,"div",6)(2,"h1",7),d(3),s(4,"translate"),n()(),r(5,"div",6),p(6,"app-image-header",8),n(),r(7,"div",9)(8,"p"),d(9),s(10,"translate"),n()(),p(11,"app-reset-password",10),g()),i&2){let z=b();t(3),u(l(4,3,"pages.reset.reset_password.title")),t(6),u(l(10,5,"pages.reset.reset_password.introduction")),t(2),o("mailHandler",z.mailHandler)}}function K(i,a){i&1&&(r(0,"span")(1,"div",6)(2,"h1",7),d(3),s(4,"translate"),n()(),r(5,"div",6),p(6,"app-image-header",8),n(),p(7,"p",11),s(8,"translate"),n()),i&2&&(t(3),u(l(4,2,"pages.register.validation.title")),t(4),x("innerHTML",l(8,4,"pages.register.validation.introduction"),C))}var de=(()=>{let a=class a{constructor(){this.activatedRoute=m(I),this.router=m(k),this.authService=m(j),this.store=m(N),this.destroyed$=new y,this.MAIL_HANDLER_MODE=h,this.mailHandler={mode:null,oobCode:null,apiKey:null,lang:null,continueUrl:null}}ngOnInit(){switch(Object.keys(this.mailHandler).forEach(e=>this.mailHandler[e]=this.getQueryParam(e)),this.store.pipe(B(U.getUser),E(this.destroyed$)).subscribe(e=>this.user=e),this.mailHandler.mode){case h.verifyEmail:this.verifyEmail();break;case h.resetPassword:break;default:break}}verifyEmail(){this.authService.verifyUserEmail(this.mailHandler.oobCode).then(e=>{this.validation=e,this.checkPayment()}).catch(e=>this.validation=e)}checkPayment(){this.router.navigate(["account"])}getQueryParam(e){return this.activatedRoute.snapshot.queryParamMap.get(e)}ngOnDestroy(){this.destroyed$.next(!0),this.destroyed$.complete()}};a.\u0275fac=function(c){return new(c||a)},a.\u0275cmp=S({type:a,selectors:[["app-mail"]],standalone:!0,features:[H],decls:9,vars:8,consts:[["id","register",1,"section-default","container"],[1,"row","justify-content-center","pb-5"],[3,"ngSwitch"],[4,"ngSwitchCase"],[1,"col-12","px-5","mb-5","text-center"],["type","button",1,"btn","btn-light","btn-u12","btn-sm",3,"routerLink"],[1,"col-12"],[1,"text-center","py-5","m-0"],["size","small"],[1,"col-12","text-center"],["mode","RESET",3,"mailHandler"],[1,"anim-opacity","p-0","p-md-5",3,"innerHTML"]],template:function(c,f){c&1&&(r(0,"section",0)(1,"div",1),v(2,2),M(3,q,12,7,"ng-container",3)(4,K,9,6,"span",3),g(),n(),r(5,"div",4)(6,"button",5),d(7),s(8,"translate"),n()()()),c&2&&(t(2),o("ngSwitch",f.mailHandler.mode),t(),o("ngSwitchCase",f.MAIL_HANDLER_MODE.resetPassword),t(),o("ngSwitchCase",f.MAIL_HANDLER_MODE.verifyEmail),t(2),o("routerLink",_(7,Q)),t(),w(" ",l(8,5,"interface.back")," "))},dependencies:[O,T,P,A,D,L,R,$,F]});let i=a;return i})();export{de as MailComponent};
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.