1import{b as ee}from"./chunk-L6SMFOBK.js";import{a as h}from"./chunk-ZV72O3CB.js";import{b as X}from"./chunk-PPU67YEL.js";import{a as u}from"./chunk-HR34OGGD.js";import{a as Y}from"./chunk-N6QPV3GS.js";import{a as f}from"./chunk-ZPI3WHJS.js";import{b as Z}from"./chunk-WPO6X7C5.js";import{a as J}from"./chunk-NWSSGM7S.js";import{d as H}from"./chunk-RBS4TIKH.js";import"./chunk-A352Y2TG.js";import"./chunk-FWTG5XIZ.js";import"./chunk-OIRFSLWN.js";import{i as z}from"./chunk-ACJ3NLO5.js";import{E as $,J as K,f as Q,g as G,o as j,t as q,v as W,x as V}from"./chunk-GPVZISOV.js";import"./chunk-45WCVJBT.js";import"./chunk-74CDSVWG.js";import"./chunk-SEQCRKB6.js";import{Aa as l,B as S,Ba as P,Ca as U,Ea as R,Fa as L,Ga as m,O as A,R as C,Tb as N,V as x,Y as k,Ya as T,Z as I,_ as v,_a as d,cb as E,db as B,i as _,ia as r,la as y,ma as F,ob as M,pa as w,pb as D,qa as g,rb as O,s as b,xa as o,ya as p,za as c}from"./chunk-HBLARLGW.js";var ne=e=>({publicSelfServiceLink:e}),oe=e=>({userSelfRegistrationLink:e});function ae(e,i){if(e&1&&l(0,"iam-text-message",8),e&2){let n=m().ngIf;o("id","publicSelfService")("text","authentication.airlock-2fa.usernameless.actions.open-self-service")("textArguments",d(3,ne,n.pageSettings.links.publicSelfServiceLink))}}function re(e,i){if(e&1&&l(0,"iam-text-message",8),e&2){let n=m().ngIf;o("id","userSelfRegistration")("text","authentication.airlock-2fa.usernameless.actions.sign-up")("textArguments",d(3,oe,n.pageSettings.links.userSelfRegistrationLink))}}function se(e,i){if(e&1){let n=R();p(0,"iam-button",10),L("buttonClick",function(){let a=I(n).$implicit,s=m(3);return v(s.navigate(a))}),c()}if(e&2){let n=i.$implicit;o("id","additionalAuthenticationTarget-"+n.applicationId)("text","authentication.airlock-2fa.usernameless.actions.target."+n.applicationId)}}function le(e,i){if(e&1&&(p(0,"iam-button-row"),g(1,se,1,2,"iam-button",9),c()),e&2){let n=m().ngIf;r(),o("ngForOf",n.pageSettings.links.additionalAuthenticationTargets)}}function me(e,i){if(e&1&&(p(0,"iam-page",1),P(1),l(2,"iam-text-message",2)(3,"iam-image-row",3),U(),l(4,"iam-dynamic-step-activation-checkboxes"),p(5,"iam-button-row"),l(6,"iam-cancel-button",4)(7,"iam-goto-buttons",5),c(),g(8,ae,1,5,"iam-text-message",6)(9,re,1,5,"iam-text-message",6)(10,le,2,1,"iam-button-row",7),c()),e&2){let n=i.ngIf,t=m();o("pageId",t.pageId)("bodyAttributes",t.bodyAttributes)("title","authentication.airlock-2fa.usernameless.title"),r(2),o("id","airlock2FAUsernamelessDetails")("text","authentication.airlock-2fa.usernameless.instructions"),r(),o("id","airlock2FAUsernamelessQrCodeImage")("imgClass","iam-mx-auto iam-d-block iam-qr-code")("withoutLabel",!0)("src",n.qrCodeImage.dataUrl),r(3),o("disableWhenBusy",!1)("beforeCancelFlow",t.stopPolling.bind(t)),r(),o("disableAllWhenBusy",!1)("allBeforeGotoTargetStep",t.stopPolling.bind(t)),r(),o("ngIf",n.pageSettings.links.publicSelfServiceLink),r(),o("ngIf",n.pageSettings.links.userSelfRegistrationLink),r(),o("ngIf",n.pageSettings.links.additionalAuthenticationTargets.length>0)}}var te=(()=>{let i=class i extends J{constructor(){super(),this.onQrCodeImageUpdate=new _,this.pollingService=k(u)}get pageId(){return"iamAuthAirlock2FAUsernameless"}ngOnInit(){this.settings=this.initUiConfig().pipe(C(t=>this.startPolling(t)),A(()=>S(this.onQrCodeImageUpdate,this.flowPageService.getStepUiConfig().pipe(b(t=>this.toAirlock2FAUsernamelessSettings(t))))))}ngOnDestroy(){super.ngOnDestroy(),this.stopPolling(),this.pollSubscription&&(this.pollSubscription.unsubscribe(),this.pollSubscription=void 0)}stopPolling(){return this.pollingService.stopPolling()}navigate(t){this.pages.routes.navigateTo(t.targetUrl)}startPolling(t){let a=this.toAirlock2FAUsernamelessSettings(t);this.pollSubscription=this.pollingService.doPolling().subscribe({next:s=>this.handlePollingResult(s,a),error:s=>this.handleFailedStep(s)})}handlePollingResult(t,a){t.nextStep()==="AIRLOCK_2FA_USERNAMELESS_POLLING_REQUIRED"?(a.qrCodeImage=new f(t.additionalAttribute("challengeImage")),this.onQrCodeImageUpdate.next(a)):this.stopPolling().subscribe(()=>this.handleSuccessfulStep(t))}toAirlock2FAUsernamelessSettings(t){return{qrCodeImage:new f(t.additionalAttribute("challengeImage")),pageSettings:{links:ee.toPageLinks(t)}}}};i.\u0275fac=function(a){return new(a||i)},i.\u0275cmp=y({type:i,selectors:[["iam-airlock-2fa-challenge"]],standalone:!1,features:[T([X]),w],decls:2,vars:3,consts:[[3,"pageId","bodyAttributes","title",4,"ngIf"],[3,"pageId","bodyAttributes","title"],[3,"id","text"],[3,"id","imgClass","withoutLabel","src"],[3,"disableWhenBusy","beforeCancelFlow"],[3,"disableAllWhenBusy","allBeforeGotoTargetStep"],[3,"id","text","textArguments",4,"ngIf"],[4,"ngIf"],[3,"id","text","textArguments"],[3,"id","text","buttonClick",4,"ngFor","ngForOf"],[3,"buttonClick","id","text"]],template:function(a,s){a&1&&(g(0,me,11,16,"iam-page",0),E(1,"async")),a&2&&o("ngIf",B(1,1,s.settings))},dependencies:[M,D,Q,G,W,V,$,q,j,K,O],encapsulation:2});let e=i;return e})();var pe=[{path:"",component:te,pathMatch:"full",runGuardsAndResolvers:"always"}],Oe=(()=>{let i=class i{};i.\u0275fac=function(a){return new(a||i)},i.\u0275mod=F({type:i}),i.\u0275inj=x({providers:[u,h,{provide:Y,useExisting:h}],imports:[N.forChild(pe),z,H,Z]});let e=i;return e})();export{Oe as Airlock2FAUsernamelessModule};
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.