1import{a as N}from"./chunk-AXGLW2AG.js";import"./chunk-7QIFXHBJ.js";import"./chunk-4JZ2LMEF.js";import"./chunk-EHX5NZF7.js";import"./chunk-AA2WQG56.js";import{d as W}from"./chunk-ZLUK7JFV.js";import"./chunk-46YLFARR.js";import"./chunk-NWXTY4VU.js";import"./chunk-YLQ3VEKM.js";import{a as R,b as T}from"./chunk-PZQWDTYU.js";import{A as D,C as H,G as z,K as B,a as F,b as L}from"./chunk-2LOZQKDB.js";import{b as E,c as j,f as k}from"./chunk-PL65QUBP.js";import"./chunk-4EBYQCNS.js";import"./chunk-JAD7XMWW.js";import{a as w}from"./chunk-PINT3XN2.js";import"./chunk-36SSSHBW.js";import{Db as i,Eb as e,Fb as s,Mb as _,Mc as b,Xa as c,Yb as r,Yc as P,ab as u,hb as x,hd as y,ia as M,ib as p,ja as a,jd as O,kd as S,la as v,nb as d,qd as I,sb as m,ud as A,wd as g}from"./chunk-VSN3JVKD.js";import"./chunk-RKIXE2YC.js";var f=(()=>{class t{constructor(n){this.httpClient=n}confirm(n){return this.httpClient.post(w.api+"/auth/email/confirm",n)}static{this.\u0275fac=function(o){return new(o||t)(v(y))}}static{this.\u0275prov=M({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function K(t,l){t&1&&(i(0,"div",14),s(1,"mat-progress-spinner",15),e())}function Q(t,l){t&1&&(i(0,"mat-hint",16),r(1," We were unable to validate your account. "),e())}function U(t,l){if(t&1&&(i(0,"div")(1,"div",9)(2,"a",10)(3,"mat-icon",11),r(4," arrow_back "),e()()(),i(5,"h2",12),r(6,"Confirm your account"),e(),d(7,K,2,0,"div",7)(8,Q,2,0,"mat-hint",13),e()),t&2){let n=_();c(7),m("ngIf",n.loading===!0),c(),m("ngIf",n.error)}}function V(t,l){t&1&&(i(0,"div",14)(1,"div",17),s(2,"img",18),e(),i(3,"h2",12),r(4,"Welcome to Slingui!"),e(),i(5,"p",19),r(6,"Almost there. Let\u2019s log in!"),e(),i(7,"div",20)(8,"button",21),r(9," Go to login "),e()()())}var G=(()=>{class t{constructor(n,o){this.route=n,this.confirmAccountService=o,this.activeStep=0,this.loading=!1}ngOnInit(){let n=this.route.snapshot.paramMap.get("hash");this.loading=!0,this.confirmAccountService.confirm({hash:n}).subscribe({error:({error:o})=>{this.loading=!1,this.error=o},complete:()=>{this.activeStep=1,this.loading=!1}})}static{this.\u0275fac=function(o){return new(o||t)(u(I),u(f))}}static{this.\u0275cmp=x({type:t,selectors:[["app-confirm-account"]],standalone:!1,decls:12,vars:3,consts:[[1,"confirm-account-page","align-items-center"],[1,"container"],[1,"mx-auto","confirm-account-content"],[1,"confirm-account-header"],["href","https://slingui.com"],["srcFallback","/assets/app-icon.svg",3,"height"],[4,"ngIf"],["class","text-center",4,"ngIf"],[1,"confirm-account-footer"],[1,"back-button","text-right","mb-3"],["routerLink","/sign-in","mat-icon-button","","color","primary"],[1,"material-symbols-outlined"],[1,"mat-h1","mb-1"],["class","error-hint",4,"ngIf"],[1,"text-center"],["diameter","24","mode","indeterminate"],[1,"error-hint"],[1,"icon","mb-5"],["src","/assets/welcome-icon.svg","alt","Slingui"],[1,"mat-h3","mb-5"],[1,"action-buttons"],["mat-flat-button","","routerLink","/sign-in","color","primary"]],template:function(o,C){o&1&&(i(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"a",4),s(5,"app-logo",5),e()(),i(6,"mat-card")(7,"mat-card-content"),d(8,U,9,2,"div",6)(9,V,10,0,"div",7),e()(),i(10,"div",8),r(11,"Powered by Slingui - 2025"),e()()()()),o&2&&(c(5),m("height",52),c(3),m("ngIf",C.activeStep===0),c(),m("ngIf",C.activeStep==1))},dependencies:[b,D,H,j,E,R,F,B,A,N],styles:[".confirm-account-page[_ngcontent-%COMP%]{min-height:100%;display:flex}.confirm-account-content[_ngcontent-%COMP%]{max-width:408px}.confirm-account-content[_ngcontent-%COMP%] .confirm-account-header[_ngcontent-%COMP%]{text-align:center;margin-top:16px;margin-bottom:16px}.confirm-account-content[_ngcontent-%COMP%] .confirm-account-header[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:52px}.confirm-account-content[_ngcontent-%COMP%] .confirm-account-footer[_ngcontent-%COMP%]{text-align:center;margin-top:16px;margin-bottom:16px;color:#adaaaa;font-weight:500;font-size:14px;line-height:20px}.confirm-account-content[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{margin-bottom:28px}.confirm-account-content[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:212px;height:auto}.confirm-account-content[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{color:var(--mat-sys-primary)}.confirm-account-content[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%]{padding:24px}
1.confirm-account-content[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:100%;margin-top:16px;display:flex;align-items:center}.confirm-account-content[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{margin-bottom:1px;margin-right:6px}.error-hint[_ngcontent-%COMP%]{font-size:14px;margin-bottom:16px;display:block;color:var(--mat-sys-error)}"]})}}return t})();var X=[{path:":hash",component:G}],q=(()=>{class t{static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275mod=p({type:t})}static{this.\u0275inj=a({imports:[g.forChild(X),g]})}}return t})();var yt=(()=>{class t{static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275mod=p({type:t})}static{this.\u0275inj=a({providers:[f,O(S())],imports:[P,z,k,T,L,W,q]})}}return t})();export{yt as ConfirmAccountModule};
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.