PageSourceSearch

https://coinmate.io/chunk-7H2DS7Y7.js

js coinmate.io collected 2026-09-25 02:37:07 UTC 22,200 bytes, 1 lines download raw bytes

1import{a as _t}from"./chunk-MTQWKZ3N.js";import{a as Jt}from"./chunk-VLOMP4PH.js";import"./chunk-4ZOGUIOJ.js";import{a as Qt,b as $t,c as Kt,e as Zt}from"./chunk-3QT64D3H.js";import{a as Ht}from"./chunk-WQ2JNSIT.js";import{$ as St,$a as Ot,Be as Mt,Ca as Lt,Ce as Pt,Fe as Bt,Ge as Rt,He as Ut,Ie as Vt,N as H,Na as Ft,O as xt,Pe as Gt,Wh as Dt,Za as P,_a as kt,hc as Z,if as jt,jf as Nt,qa as Q,sa as $,va as It,vb as At,vf as Wt,vj as qt,za as K}from"./chunk-343ZGUUY.js";import{$c as A,$e as zt,Bb as b,Cb as u,D as tt,Fa as U,Fb as G,Gb as at,Hc as pt,Ic as ct,J as B,Jb as j,Jc as mt,Kb as N,Kc as dt,La as X,Lb as W,Ma as k,Nd as ft,Ob as g,Pb as y,Pd as wt,Qa as r,Qb as O,Qd as bt,Qe as Tt,Rd as q,Sc as gt,Sd as Ct,Tc as D,Va as p,Xd as vt,Ya as S,Yd as yt,Z as et,Za as V,ab as nt,bb as v,be as Et,cc as st,ga as R,gb as l,ja as it,kc as c,lc as d,mc as lt,nb as I,nd as ut,oa as ot,od as ht,pa as f,pd as Y,qa as w,qd as M,sb as n,tb as a,ub as h,vb as L,wa as rt,wb as F,xa as x,yb as z}from"./chunk-WVDDQXOX.js";import"./chunk-H7UP2DGQ.js";import"./chunk-ZQSXG4NU.js";import{k as _}from"./chunk-VNZSNVCY.js";var m=(function(o){return o.login="LOGIN",o.confirmationEmail="CONFIRMATION-EMAIL",o.twoFactorEmail="TWO-FACTOR-EMAIL",o.twoFactorGoogle="TWO-FACTOR-GOOGLE",o.twoFactorTrezor="TWO-FACTOR-TREZOR",o})(m||{});function ue(o,E){if(o&1&&(n(0,"div",4)(1,"span"),g(2),c(3,"translate"),a()()),o&2){let t=u();r(2),y(d(3,1,"error.auth-server."+t.error))}}function he(o,E){if(o&1){let t=z();n(0,"div",17)(1,"app-action-button",18),b("click",function(){f(t);let i=u();return w(i.trezorLogin())}),h(2,"img",19),a()(),n(3,"div",20)(4,"span",21)(5,"strong"),g(6),c(7,"translate"),a(),n(8,"a",22),c(9,"localize"),g(10),c(11,"translate"),h(12,"img",23),a()()()}if(o&2){let t=u();r(),l("facet","tertiary")("isFullWidth",!0)("size","small"),r(5),y(d(7,6,"login.no-account")),r(2),l("href",t.signUpUrl||d(9,8,"/sign-up"),k),r(2),O(" ",d(11,10,"shared.common.signup")," ")}}var Yt=(()=>{class o{constructor(t,e){if(this.formBuilder=t,this.showTrezorButtonAndLinks=!1,this.trezorChallengeUrl="/auth/trezor/challenge",this.trezorManifestUrl="/auth/trezor/manifest",this.loginEmitter=new x,this.trezorLoginEmitter=new x,this.trezorAuthEmitter=new x,this.loginOidcEmitter=new x,this.bankIdTypeEnum=$t,D(e)){let i=window.location.hostname;i.startsWith("auth-test")?this.hostnamePasswordResetUrl="http://test.coinmate.cz/reset-password":i.startsWith("auth-stage")?this.hostnamePasswordResetUrl="https://stage.coinmate.io/reset-password":(i.startsWith("auth.")||i.startsWith("auth-"))&&(this.hostnamePasswordResetUrl="https://coinmate.io/reset-password")}this.formGroup=this.formBuilder.group({email:["",[Q.required,Q.pattern(Ot)]],password:["",[Q.required]]}),this.trezorLogin=this.trezorLogin.bind(this)}ngOnInit(){let t=this.username||this.defaultEmail;t&&this.formGroup.patchValue({email:t}),this.defaultPassword&&this.formGroup.patchValue({password:this.defaultPassword})}login(){this.loginEmitter.emit({email:this.formGroup.get("email")?.value,password:this.formGroup.get("password")?.value})}trezorLogin(){if(Et.mode==="elements"){this.runTrezorElementsFlow();return}this.trezorLoginEmitter.emit()}loginWithOidc(t){this.loginOidcEmitter.emit(t)}runTrezorElementsFlow(){return _(this,null,function*(){this.waiting=!0;try{let[t,e]=yield Promise.all([this.fetchTrezorChallenge(),this.fetchTrezorManifestEmail()]),{default:i}=yield import("./chunk-HQRSTD37.js");try{yield i.init({manifest:{email:e,appUrl:"https://coinmate.io",appName:"Coinmate.io"}})}catch(C){if(C?.message!=="Init_AlreadyInitialized")throw C}let s=yield i.requestLogin({challengeHidden:t.challenge,challengeVisual:t.challengeVisual});if(!s.success)throw new Error("Trezor login was cancelled or failed.");this.trezorAuthEmitter.emit({challenge:t.challenge,challengeVisual:t.challengeVisual,signature:s.payload.signature,publicKey:s.payload.publicKey})}catch(t){console.error("Trezor login error",t),this.waiting=!1}})}fetchTrezorChallenge(){return _(this,null,function*(){let t=yield fetch(this.trezorChallengeUrl,{method:"POST",credentials:"include",headers:{Accept:"application/json"}});if(!t.ok)throw new Error(`Trezor challenge request failed: ${t.status}`);let e=yield t.json();return{challenge:e.challenge,challengeVisual:e.visualChallenge}})}fetchTrezorManifestEmail(){return _(this,null,function*(){let t=yield fetch(this.trezorManifestUrl,{method:"GET",credentials:"include",headers:{Accept:"application/json"}});if(!t.ok)throw new Error(`Trezor manifest request failed: ${t.status}`);return(yield t.json()).email})}static{this.\u0275fac=function(e){return new(e||o)(p(Ft),p(U))}}static{this.\u0275cmp=S({type:o,selectors:[["app-login"]],inputs:{waiting:"waiting",username:"username",defaultEmail:"defaultEmail",defaultPassword:"defaultPassword",error:"error",showTrezorButtonAndLinks:"showTrezorButtonAndLinks",signUpUrl:"signUpUrl",passwordResetUrl:"passwordResetUrl",trezorChallengeUrl:"trezorChallengeUrl",trezorManifestUrl:"trezorManifestUrl"},outputs:{loginEmitter:"loginEmitter",trezorLoginEmitter:"trezorLoginEmitter",trezorAuthEmitter:"trezorAuthEmitter",loginOidcEmitter:"loginOidcEmitter"},standalone:!1,decls:33,vars:30,consts:[[1,"login-container"],[1,"display-h2"],[1,"display-h4","mb-4"],[1,"mt-4","block",3,"bankIdClick","type"],[1,"cm-alert-danger","mt-4","mb-4"],[1,"w-full","flex","flex-nowrap","items-center","justify-center","gap-3","mb-[20px]"],[1,"block","w-auto","flex-1","h-[1px]","bg-cm-grey-100","dark:bg-cm-grey-500"],["translate","",1,"text-cm-grey-300","dark:text-cm-grey-200","text-[14px]","flex-none"],["appAutofillEnabler","",1,"mb-4",3,"formGroup"],[1,"cm-paragraph","cm-form-paragraph"],[3,"size","parent"],[1,"cm-paragraph","cm-form-paragraph","flex","flex-col"],["id","password",3,"size","parent"],[1,"cm-paragraph-address","self-end","mt-2","text-16px",3,"href","target"],[1,"cm-security","cm-paragraph","cm-form-paragraph"],["src","/assets/icons/icon-shield.svg","alt","Security","width","24","height","24",1,"cm-security-icon"],["type","submit","label","shared.common.log-in",3,"action","testId","facet","disabled","isFullWidth","size","waiting"],[1,"mt-6"],["type","submit","label","shared.common.log-in-trezor",1,"btn-trezor",3,"click","facet","isFullWidth","size"],["button-icon-left","","src","/assets/icons/icon-trezor.svg","alt","Trezor","width","16","height","17"],[1,"flex","mt-6","items-center","justify-center"],[1,"block","text-[14px]"],["target","_self",1,"cm-paragraph-address",3,"href"],["alt","Icon","src","/assets/img/arrow-right-blue.svg",1,"cm-paragraph-icon"]],template:function(e,i){e&1&&(n(0,"div",0)(1,"h1",1),g(2),c(3,"translate"),a(),n(4,"h2",2),g(5),c(6,"translate"),a(),n(7,"app-bankid-button",3),b("bankIdClick",function(){return i.loginWithOidc("bankid")}),a(),v(8,ue,4,3,"div",4),n(9,"div",5)(10,"div",6),g(11,"\xA0"),a(),n(12,"span",7),g(13," login.page-separation-or "),a(),n(14,"div",6),g(15,"\xA0"),a()(),n(16,"form",8)(17,"fieldset")(18,"p",9),h(19,"app-email",10),a(),n(20,"p",11),h(21,"app-password",12),n(22,"a",13),c(23,"localize"),g(24),c(25,"translate"),a()(),n(26,"p",14),h(27,"img",15),n(28,"span"),g(29),c(30,"translate"),a()(),n(31,"app-action-button",16),b("action",function(){return i.login()}),a()()(),v(32,he,13,12),a()),e&2&&(r(2),y(d(3,20,"login.welcome-back")),r(3),y(d(6,22,"login.happy-to")),r(2),l("type",i.bankIdTypeEnum.login),r(),I(i.error?8:-1),r(8),l("formGroup",i.formGroup),r(3),l("size","small")("parent",i.formGroup),r(2),l("size","small")("parent",i.formGroup),r(),l("href",i.passwordResetUrl||i.hostnamePasswordResetUrl||d(23,24,"/reset-password"),k)("target",i.showTrezorButtonAndLinks?"_self":"_blank"),r(2),O(" ",d(25,26,"login.forgot-password")," "),r(5),y(d(30,28,"login.please-check-visiting")),r(2),l("testId","btn-login")("facet","primary")("disabled",i.formGroup.invalid)("isFullWidth",!0)("size","small")("waiting",i.waiting),r(),I(i.showTrezorButtonAndLinks?32:-1))},dependencies:[Kt,bt,Pt,K,$,Lt,Z,Mt,At,q,yt],styles:[".login-container[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto;width:100%;padding:25px 20px}@media(min-width:800px){.login-container[_ngcontent-%COMP%]{margin-top:3.5rem;max-width:450px;border-radius:6px;border-width:1px;border-style:solid;--tw-border-opacity: 1;border-color:rgb(206 206 210 / var(--tw-border-opacity, 1));--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1));padding:30px;box-shadow:0 0 10px #0000001a}}.login-container[_ngcontent-%COMP%]:is([class~=dark] *){--tw-bg-opacity: 1;background-color:rgb(26 26 26 / var(--tw-bg-opacity, 1))}@media(min-width:800px){.login-container[_ngcontent-%COMP%]:is([class~=dark] *){--tw-border-opacity: 1;border-color:rgb(38 38 41 / var(--tw-border-opacity, 1))}}[_nghost-%COMP%]     .btn-trezor button svg{--tw-text-opacity: 1;color:rgb(15 97 72 / var(--tw-text-opacity, 1))}[_nghost-%COMP%]     .btn-trezor button:hover svg:is([class~=dark] *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}[_nghost-%COMP%]     .btn-trezor button{color:rgb(var(--button-text-default-default));border-color:rgb(var(--button-stroke-default-default));border-style:solid;border-width:2px}[_nghost-%COMP%]     .btn-trezor button:hover{color:rgb(var(--button-text-default-hover));border-color:rgb(var(--button-stroke-default-hover))}[_nghost-%COMP%]     .btn-trezor button:focus{color:rgb(var(--button-text-default-pressed));border-color:rgb(var(--button-stroke-default-pressed))}[_nghost-%COMP%]     .btn-trezor button:disabled, [_nghost-%COMP%]     .btn-trezor button:disabled:hover, [_nghost-%COMP%]     .btn-trezor button:disabled:focus, [_nghost-%COMP%]     .btn-trezor button.cm-button-inactive, [_nghost-%COMP%]     .btn-trezor button.cm-button-inactive:hover, [_nghost-%COMP%]     .btn-trezor button.cm-button-inactive:focus{color:rgb(var(--button-text-default-disabled));border-color:rgb(var(--button-stroke-default-disabled))}
1[_nghost-%COMP%]     .btn-trezor button, .dark   [_nghost-%COMP%]     .btn-trezor button, [_nghost-%COMP%]     .btn-trezor button:hover, .dark   [_nghost-%COMP%]     .btn-trezor button:hover, [_nghost-%COMP%]     .btn-trezor button:focus, .dark   [_nghost-%COMP%]     .btn-trezor button:focus{background-color:transparent}[_nghost-%COMP%]     .btn-trezor button{--tw-border-opacity: 1;border-color:rgb(206 206 210 / var(--tw-border-opacity, 1));--tw-text-opacity: 1;color:rgb(7 10 25 / var(--tw-text-opacity, 1))}[_nghost-%COMP%]     .btn-trezor button:hover{--tw-border-opacity: 1;border-color:rgb(107 108 118 / var(--tw-border-opacity, 1));--tw-text-opacity: 1;color:rgb(15 97 72 / var(--tw-text-opacity, 1))}[_nghost-%COMP%]     .btn-trezor button:is([class~=dark] *){--tw-border-opacity: 1;border-color:rgb(107 108 118 / var(--tw-border-opacity, 1));--tw-bg-opacity: 1;background-color:rgb(38 38 41 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}[_nghost-%COMP%]     .btn-trezor button:hover:is([class~=dark] *){--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity, 1));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}"]})}}return o})();var be=["otpInputComponent"],Ce=o=>({email:o});function ve(o,E){if(o&1&&(n(0,"div",8)(1,"span"),g(2),c(3,"translate"),a()()),o&2){let t=u();r(2),y(d(3,1,"error.auth-server."+t.error))}}function ye(o,E){o&1&&(h(0,"app-link-pair",14),c(1,"translate"),c(2,"translate")),o&2&&(G("label",d(1,3,"login.2fa.disable.link-label")),G("addressLabel",d(2,5,"login.2fa.disable.link-text")),l("openInNewWindow",!1))}var te=(()=>{class o{constructor(){this.email="",this.twoFactorCodeEmitter=new x,this.codeInputState={code:"",isComplete:!1}}ngOnChanges(t){t.type.previousValue!==t.type.currentValue&&this.resetCode()}iconType(){switch(this.type){case m.confirmationEmail:case m.twoFactorEmail:return"email";default:return"trezor"}}iconLabelType(){switch(this.type){case m.confirmationEmail:case m.twoFactorEmail:return"login.2fa.email";default:return"login.2fa.authenticator"}}titleType(){switch(this.type){case m.confirmationEmail:return"login.2fa.unknown-device";case m.twoFactorEmail:return"login.2fa.2fa-safety";default:return"login.2fa.2fa-google"}}descriptionType(){return this.isGoogleAuth()?"login.2fa.enter-2fa-app-title":"login.2fa.enter-2fa-mail-title"}labelType(){return this.isGoogleAuth()?"login.2fa.enter-2fa-app-label":"login.2fa.enter-2fa-mail-label"}isGoogleAuth(){return this.type===m.twoFactorGoogle}onCodeCompleted(t){this.codeInputState.code=t,this.codeInputState.isComplete=!0,this.submitCode()}submitCode(){this.twoFactorCodeEmitter.emit(this.codeInputState.code)}resetCode(){this.otpInputComponent&&(this.otpInputComponent.resetCodeInput(),this.otpInputComponent.focusOnField(0))}static{this.\u0275fac=function(e){return new(e||o)}}static{this.\u0275cmp=S({type:o,selectors:[["app-login-2fa"]],viewQuery:function(e,i){if(e&1&&j(be,5),e&2){let s;N(s=W())&&(i.otpInputComponent=s.first)}},inputs:{email:"email",waiting:"waiting",error:"error",type:"type"},outputs:{twoFactorCodeEmitter:"twoFactorCodeEmitter"},standalone:!1,features:[ot],decls:22,vars:26,consts:[["otpInputComponent",""],[3,"narrower","contentAlignment"],["intro-content",""],["double-section-page-template-title","",3,"innerHTML"],["payload-content",""],["double-section-page-template-icon","",3,"src","alt"],[1,"display-h3","mb-6"],[3,"innerHTML"],[1,"cm-alert-danger","mt-4","mb-4","max-w-[385px]"],[1,"max-w-[385px]","mb-4"],[1,"text-[14px]","font-bold","text-cm-blue-900","dark:text-app-dark-mode-white","w-full","flex","mb-[14px]","items-center"],[3,"otpCompleted"],["label","shared.common.verify","progressLabel","shared.common.verifying",3,"action","facet","disabled","isFullWidth","waiting"],[1,"hidden-mobile-app"],["routerLink","/disable-2fa","addressIcon","/assets/img/arrow-right-blue.svg",3,"label","addressLabel","openInNewWindow"]],template:function(e,i){if(e&1){let s=z();n(0,"app-double-section-page-template",1),L(1,2),h(2,"h2",3),c(3,"translate"),F(),L(4,4),h(5,"img",5),n(6,"p",6),g(7),c(8,"translate"),a(),h(9,"p",7),c(10,"translate"),v(11,ve,4,3,"div",8),n(12,"form",9)(13,"fieldset")(14,"label",10),g(15),c(16,"translate"),a(),n(17,"app-otp-input",11,0),b("otpCompleted",function(T){return f(s),w(i.onCodeCompleted(T))}),a(),n(19,"app-action-button",12),b("action",function(){return f(s),w(i.submitCode())}),a()()(),n(20,"div",13),v(21,ye,3,7,"app-link-pair",14),a(),F(),a()}e&2&&(l("narrower",!0)("contentAlignment","center"),r(2),l("innerHTML",d(3,15,i.titleType()),X),r(3),at("src","/assets/img/shapes/shape-",i.iconType(),".svg",k),G("alt",i.iconType()),r(2),y(d(8,17,i.iconLabelType())),r(2),l("innerHTML",lt(10,19,i.descriptionType(),st(24,Ce,i.email)),X
1),r(2),I(i.error?11:-1),r(4),O(" ",d(16,22,i.labelType())," "),r(4),l("facet","primary")("disabled",!i.codeInputState.isComplete)("isFullWidth",!0)("waiting",i.waiting),r(2),I(i.isGoogleAuth()?21:-1))},dependencies:[ht,Bt,K,$,It,Rt,Ut,Vt,Z,Nt,q],encapsulation:2})}}return o})();var Ee=["twoFaLoginComponent"];function Te(o,E){if(o&1){let t=z();n(0,"app-login",5),b("loginEmitter",function(i){f(t);let s=u();return w(s.login(i))})("trezorLoginEmitter",function(){f(t);let i=u();return w(i.loginTrezor())})("loginOidcEmitter",function(i){f(t);let s=u();return w(s.loginWithOidc(i))}),a()}if(o&2){let t=u();l("showTrezorButtonAndLinks",!0)("waiting",t.waiting)}}function xe(o,E){o&1&&h(0,"app-loading")}function ze(o,E){if(o&1){let t=z();n(0,"app-login-2fa",7,0),b("twoFactorCodeEmitter",function(i){f(t);let s=u(2);return w(s.twoFactorCodeEntered(i))}),a()}if(o&2){let t=u(2);l("email",t.loginEmail)("type",t.loginState)("waiting",t.waiting)}}function Se(o,E){if(o&1&&(L(0),v(1,ze,2,3,"app-login-2fa",6),F()),o&2){let t=u();r(),l("ngIf",t.loginState!==t.templateLoginStateEnum.login&&t.loginState!==t.templateLoginStateEnum.twoFactorTrezor)}}var ee=(()=>{class o extends Ht{constructor(t,e,i,s,C,T,oe,re,ne,ae,se,le,pe,ce){super(t),this.platformId=t,this.loginService=e,this.twoFactor=i,this.toastr=s,this.translate=C,this.seonService=T,this.trezor=oe,this.guiParams=re,this.backButtonSupportService=ne,this.gtmService=ae,this.accountActivation=se,this.router=le,this.localize=pe,this.bankIdService=ce,this.templateLoginStateEnum=m,this.loginEmail="",this.loginState=m.login,this.waiting=!1,this.originalRequest=null,this.destroyRef=it(rt)}static getLogInState(t){switch(t){case P.deviceConfirmation:return m.confirmationEmail;case P.email:return m.twoFactorEmail;case P.googleAuth:return m.twoFactorGoogle;case P.trezor:return m.twoFactorTrezor;default:return null}}static isCsrfException(t){if(t instanceof A){let e=t.error;if(t.status===401&&(e.errorType==="InvalidCsrfTokenException"||e.errorType==="MissingCsrfTokenException"))return!0}return!1}static isTwoFactorAuthenticationException(t){if(t instanceof A){let e=t.error;if(t.status===401&&e.errorType==="TwoFactorAuthenticationException")return!0}return!1}static isInvalid2FA(t){if(t instanceof A){let e=t.error;if(t.status===400&&e.errorType==="InvalidTwoFactorAuthenticationException"||t.status===401&&e.errorType==="InvalidLoginTwoFactorAuthentication")return!0}return!1}static isWrongCredentialsError(t){if(t instanceof A){let e=t.error;if(t.status===401&&e.errorType==="WrongCredentialsException")return!0}return!1}redirectAfterLoggedInTo(t){this.guiParams.loggedIn$.pipe(tt(e=>e),B(1),et(()=>this.guiParams.guiParams$.pipe(B(1)))).subscribe(e=>{let i=!!this.redirect,s=e.appState!=="verification",C=!i&&s?"/dashboard":t,T=this.localize.translateRoute(C);Array.isArray(T)?this.router.navigate(T):this.router.navigateByUrl(T??C)})}ngOnInit(){if(!this.isBrowser)return;let t=new URLSearchParams(window.location.search);this.activateAccount(t.get("activation"));let e=t.get("redirect");e?.startsWith("/")&&(this.redirect=e)}activateAccount(t){t&&this.accountActivation.activate(t).pipe(M(this.destroyRef)).subscribe(e=>{e&&this.toastr.success(this.translate.instant("signUp.account-activated-text"),this.translate.instant("signUp.account-activated-title"))})}isInLoginState(){let t=this.loginState===m.login;return t?this.backButtonSupportService.show():this.backButtonSupportService.hide(),t}login(t){this.loginEmail=t.email;let e={email:t.email,password:t.password};this.waiting=!0,this.legacyLogin(e)}legacyLogin(t){this.loginService.login(t).pipe(M(this.destroyRef)).subscribe({next:e=>_(this,null,function*(){this.guiParams.load(),yield this.seonService.sendUserFingerprint(H.ACCOUNT_LOGIN),this.redirectAfterLoggedInTo(this.redirect??e.homepage)}),error:e=>this.handleError(e)}).add(()=>{this.waiting=!1})}twoFactorCodeEntered(t){this.originalRequest&&(this.waiting=!0,this.twoFactor.redoRequestWith2FA(this.originalRequest,t,!0).pipe(M(this.destroyRef)).subscribe({next:e=>_(this,null,function*(){this.originalRequest=null,e?.homepage&&(this.guiParams.load(),yield this.seonService.sendUserFingerprint(H.ACCOUNT_LOGIN),this.redirectAfterLoggedInTo(this.redirect??e.homepage))}),error:e=>this.handleError(e)}).add(()=>{this.waiting=!1}))}loginWithOidc(t){t==="bankid"&&D(this.platformId)&&(window.location.href=this.bankIdService.getBankIdRedirect())}loginTrezor(){this.loginState=this.templateLoginStateEnum.twoFactorTrezor,this.trezor.performLogin$.pipe(M(this.destroyRef)).subscribe({next:t=>_(this,null,function*(){this.guiParams.load(),yield this.seonService.sendUserFingerprint(H.ACCOUNT_LOGIN),this.redirectAfterLoggedInTo(this.redirect??t.homepage)}),error:()=>{this.gtmService.pushTag({event:"login_trezor_error",method:"trezor"}),this.loginState=this.templateLoginStateEnum.login,this.toastr.error(this.translate.instant("shared.trezor.error-message"),this.translate.instant("shared.trezor.error-title"))}}).add(()=>{this.waiting=!1})}loginError(t,e,i){this.toastr.error(this.translate.instant(i??"login.login-error-message"),this.translate.instant(e??"login.login-error-title"))}handleError(t){if(o.isCsrfException(t)){this.guiParams.load(),this.guiParams.guiParams$.pipe(B(1)).subscribe(()=>this.loginError(t,"login.login-error-title","login.login-error-csrf-message"));return}if(o.isTwoFactorAuthenticationException(t)){let e=t.error.additionalInfo.twoFactorType;this.originalRequest=this.twoFactor.popRequest(t.url)||null;let i=o.getLogInState(e);if(i){this.loginState=i,i===m.twoFactorTrezor&&this.loginTrezor();return}}if(o.isInvalid2FA(t)){this.twoFaLoginComponent.resetCode(),this.loginError(t,"login.2fa.2fa-error-title","login.2fa.2fa-error-message");return}if(o.isWrongCredentialsError(t)){this.loginError(t,"login.login-error-title","login.login-error-message");return}this.loginError(t,"login.login-error-title","login.login-error-message-common")}static{this.\u0275fac=function(e){return new(e||o)(p(U),p(Tt),p(kt),p(St),p(wt),p(xt),p(Wt),p(ft),p(Jt),p(zt),p(_t),p(ut),p(vt),p(Qt))}}static{this.\u0275cmp=S({type:o,selectors:[["app-login-base"]],viewQuery:function(e,i){if(e&1&&j(Ee,5),e&2){let s;N(s=W())&&(i.twoFaLoginComponent=s.first)}},standalone:!1,features:[nt],decls:4,vars:3,consts:[["twoFaLoginComponent",""],[3,"ngSwitch"],[3,"showTrezorButtonAndLinks","waiting","loginEmitter","trezorLoginEmitter","loginOidcEmitter",4,"ngSwitchCase"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[3,"loginEmitter","trezorLoginEmitter","loginOidcEmitter","showTrezorButtonAndLinks","waiting"],[3,"email","type","waiting","twoFactorCodeEmitter",4,"ngIf"],[3,"twoFactorCodeEmitter","email","type","waiting"]],template:function(e,i){e&1&&(L(0,1),v(1,Te,1,2,"app-login",2)(2,xe,1,0,"app-loading",3)(3,Se,2,1,"ng-container",4),F()),e&2&&(l("ngSwitch",i.loginState),r(),l("ngSwitchCase",i.templateLoginStateEnum.login),r(),l("ngSwitchCase",i.templateLoginStateEnum.twoFactorTrezor))},dependencies:[pt,ct,mt,dt,Gt,Yt,te],encapsulation:2})}}return o}
1)();var Ie=[{path:"",component:ee,title:"meta-tags.login.title"}],ie=(()=>{class o{static{this.\u0275fac=function(e){return new(e||o)}}static{this.\u0275mod=V({type:o})}static{this.\u0275inj=R({imports:[Y.forChild(Ie),Y]})}}return o})();var Di=(()=>{class o{static{this.\u0275fac=function(e){return new(e||o)}}static{this.\u0275mod=V({type:o})}static{this.\u0275inj=R({imports:[gt,Zt,ie,Ct,jt,Dt,qt]})}}return o})();export{Di as LoginModule};

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.