PageSourceSearch

https://portal.finma.ch/auth-login/ui/chunk-C3JZW76W.js

js finma.ch collected 2026-09-24 08:41:54 UTC 2,954 bytes, 1 lines download raw bytes

1import{b as U,c as w}from"./chunk-ZHSZTINU.js";import{a as S}from"./chunk-AIIHRTPL.js";import{a as d}from"./chunk-HBAVZALE.js";import{a as A,b as s}from"./chunk-MLPSSSTX.js";import"./chunk-L6SMFOBK.js";import{a as F}from"./chunk-NWSSGM7S.js";import{b as n,c as a}from"./chunk-6YU4FSJZ.js";import"./chunk-64LDHU52.js";import"./chunk-RBS4TIKH.js";import"./chunk-A352Y2TG.js";import"./chunk-FWTG5XIZ.js";import"./chunk-OIRFSLWN.js";import{i as C}from"./chunk-ACJ3NLO5.js";import"./chunk-GPVZISOV.js";import"./chunk-45WCVJBT.js";import"./chunk-74CDSVWG.js";import"./chunk-SEQCRKB6.js";import{Aa as v,Tb as g,V as h,Y as l,la as c,ma as m,pa as f,s as p,u,xa as b}from"./chunk-HBLARLGW.js";var y=(()=>{let t=class t extends F{get pageId(){return"iamAuthUsernameFido"}constructor(){super(),this.verificationService=l(s),this.webauthn=l(a),this.abortController=new AbortController,this.isConditionalUiAvailable=this.webauthn.isAvailable()&&this.webauthn.isConditionalMediationAvailable(),this.isConditionalUiAvailable?this.activateConditionalUi():this.reportFailure(n.NO_WEB_AUTHN,"WebAuthn not available. User agent: "+navigator.userAgent)}ngOnDestroy(){this.abortController.abort()}activateConditionalUi(){this.awaitFidoCredentials().pipe(S()).subscribe({next:e=>this.handleFidoResponse(e),error:e=>this.handleCredentialsFailure(e)})}awaitFidoCredentials(){return this.initUiConfig().pipe(p(e=>this.verificationService.toCredentialRequestOptions(e.additionalAttribute("fidoChallenge"))),u(e=>this.webauthn.getCredentials(e,"conditional",this.abortController.signal)))}handleFidoResponse(e){this.verificationService.verify(e).subscribe({next:i=>this.handleSuccessfulStep(i),error:i=>this.handleFailedStep(i)})}handleCredentialsFailure(e){let i=this.webauthn.detectFailureReason(e);if(i===n.NOT_ALLOWED){console.debug("Webauthn login timed out or was declined by user.");return}i===n.UNKNOWN&&console.error("Unexpected error while getting WebAuthn credentials: "+JSON.stringify(e)),this.reportFailure(i,e.name+": "+e.message)}reportFailure(e,i){this.verificationService.reportFailure(e,i).subscribe({next:r=>this.handleSuccessfulStep(r),error:r=>this.handleFailedStep(r)})}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=c({type:t,selectors:[["ng-component"]],standalone:!1,features:[f],decls:1,vars:4,consts:[[3,"pageId","translationPrefix","supportsCaptcha","useWebauthnConditionalUi"]],template:function(i,r){i&1&&v(0,"iam-username",0),i&2&&b("pageId",r.pageId)("translationPrefix","authentication.fido")("supportsCaptcha",!1)("useWebauthnConditionalUi",r.isConditionalUiAvailable)},dependencies:[U],encapsulation:2});let o=t;return o})();var N=[{path:"",component:y,pathMatch:"full",runGuardsAndResolvers:"always"}],K=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=m({type:t}),t.\u0275inj=h({providers:[s,a,d,{provide:A,useExisting:d}],imports:[g.forChild(N),C,w]});let o=t;return o})();export{K as UsernameFidoModule};

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.