1"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[4316],{8413:(O,b,t)=>{t.d(b,{Q:()=>T});var s=t(5451),I=t(7805),A=t(6247),e=t(6354),r=t(8141),B=t(2695);class S{constructor(M,l){this.challenge=M,this.showAppDeviceActivationLink=l}}class C{constructor(M,l){this.appDeviceActivationUrl=l,this.activationQrCode=new B._(M)}}var o=t(7030),n=t(4438),f=t(177),P=t(57),g=t(4160),E=t(5033),_=t(9099),x=t(7493),h=t(3076),a=t(6453),y=t(3813);function i(d,M){if(1&d){const l=n.RV6();n.j41(0,"div",7),n.nrm(1,"iam-text-message",8),n.j41(2,"iam-button-row")(3,"iam-button",9),n.bIt("buttonClick",function(){n.eBV(l);const U=n.XpG().ngIf,W=n.XpG();return n.Njj(W.switchToMobileApp(U.challenge.appDeviceActivationUrl))}),n.k0s()()()}if(2&d){const l=n.XpG(2);n.Y8G("id","airlock2FAAppActivation"),n.R7$(),n.Y8G("id","airlock2FAAppActivationDetails")("text",l.translationPrefix+".app-activation.instructions")("textNgClass","iam-text-center"),n.R7$(2),n.Y8G("id","airlock2FAOpenAppActivation")("text",l.translationPrefix+".app-activation.actions.open-app")("disableWhenBusy",!1)("noFloat",!0)("buttonNgClass","iam-mx-auto iam-d-block")}}function u(d,M){if(1&d&&(n.j41(0,"iam-page",1),n.nrm(1,"iam-text-message",2)(2,"iam-image-row",3),n.DNE(3,i,4,9,"div",4),n.nrm(4,"iam-text-message",2)(5,"iam-dynamic-step-activation-checkboxes"),n.j41(6,"iam-button-row"),n.nrm(7,"iam-cancel-button",5)(8,"iam-goto-buttons",6),n.k0s()()),2&d){const l=M.ngIf,m=n.XpG();n.Y8G("pageId",m.pageId)("bodyAttributes",m.bodyAttributes)("title",m.translationPrefix+".title"),n.R7$(),n.Y8G("id","airlock2FAActivationDetails")("text",m.translationPrefix+".instruction"),n.R7$(),n.Y8G("id","airlock2FAActivationImage")("imgClass","iam-mx-auto iam-d-block iam-qr-code")("withoutLabel",!0)("noMarginBottom",l.showAppDeviceActivationLink)("src",l.challenge.activationQrCode.dataUrl),n.R7$(),n.Y8G("ngIf",l.showAppDeviceActivationLink),n.R7$(),n.Y8G("id","airlock2FAActivationDoNotClose")("text",m.translationPrefix+".do-not-close"),n.R7$(3),n.Y8G("disableWhenBusy",!1)("beforeCancelFlow",m.stopPolling.bind(m)),n.R7$(),n.Y8G("disableAllWhenBusy",!1)("allBeforeGotoTargetStep",m.stopPolling.bind(m))}}let T=(()=>{class d extends s.V{constructor(l,m,U){super(m,U),this.pollingService=l}ngOnInit(){this.activation=this.initUiConfig().pipe((0,e.T)(l=>this.extractActivationChallenge(l)),(0,r.M)(()=>this.startPolling()))}ngOnDestroy(){super.ngOnDestroy(),this.stopPolling(),this.pollSubscription&&(this.pollSubscription.unsubscribe(),this.pollSubscription=void 0)}stopPolling(){return this.pollingService.stopPolling()}switchToMobileApp(l){this.pages.routes.navigateTo(l)}startPolling(){this.pollSubscription=this.pollingService.doPolling().subscribe({next:l=>this.handlePollingResult(l),error:l=>this.handleFailedStep(l)})}handlePollingResult(l){"AIRLOCK_2FA_DEVICE_ACTIVATION_POLLING_REQUIRED"!==l.nextStep()&&this.stopPolling().subscribe(()=>this.handleSuccessfulStep(l))}extractActivationChallenge(l){return new S(new C(l.additionalAttribute("challengeImage"),l.additionalAttribute("appActivationUrl")),!!l.pageAttribute("showAppDeviceActivationLink"))}static#t=this.\u0275fac=function(m){return new(m||d)(n.rXU(o.h),n.rXU(A.z),n.rXU(I.b))};static#e=this.\u0275cmp=n.VBU({type:d,selectors:[["iam-airlock-2fa-activation"]],inputs:{translationPrefix:"translationPrefix",pageId:"pageId"},standalone:!1,features:[n.Vt3],decls:2,vars:3,consts:[[3,"pageId","bodyAttributes","title",4,"ngIf"],[3,"pageId","bodyAttributes","title"],[3,"id","text"],[3,"id","imgClass","withoutLabel","noMarginBottom","src"],[3,"id",4,"ngIf"],[3,"disableWhenBusy","beforeCancelFlow"],[3,"disableAllWhenBusy","allBeforeGotoTargetStep"],[3,"id"],[3,"id","text","textNgClass"],[3,"buttonClick","id","text","disableWhenBusy","noFloat","buttonNgClass"]],template:function(m,U){1&m&&(n.DNE(0,u,9,17,"iam-page",0),n.nI1(1,"async")),2&m&&n.Y8G("ngIf",n.bMT(1,1,U.activation))},dependencies:[f.bT,P.m,g.Q,E.Q,_.a,x.E,h.j,a.I,y.H,f.Jj],encapsulation:2})}return d})()},328:(O,b,t)=>{t.d(b,{d:()=>r});var s=t(1552),I=t(4720),A=t(7030),e=t(4438);let r=(()=>{class B{static#t=this.\u0275fac=function(o){return new(o||B)};static#e=this.\u0275mod=e.$C({type:B});static#n=this.\u0275inj=e.G2t({providers:[A.h],imports:[s.G,I.S]})}return B})()},6771:(O,b,t)=>
1{t.d(b,{k:()=>s});class s{}},7030:(O,b,t)=>{t.d(b,{h:()=>W});var s=t(1413),I=t(8839),A=t(1807),r=t(1397),B=t(8211),S=t(9974),C=t(8750),o=t(1853),n=t(4360),f=t(5225);const P=(0,o.L)(p=>function(c=null){p(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=c});function E(p){throw new P(p)}var x=t(7673),h=t(5060),a=t(8452),y=t(6977),i=t(9437),u=t(6354),T=t(7348),d=t(1626),M=t(2652),l=t(6347),m=t(4438),U=t(6771);let W=(()=>{class p{static#t=this.FINAL_POLLING_ATTRIBUTE="finalResultAvailable";constructor(c,v){this.http=c,this.restEndpoints=v,this.abort=new s.B}doPolling(){return function e(p=0,R=I.E){return p<0&&(p=0),(0,A.O)(p,p,R)}(1e3).pipe((0,y.Q)(this.abort),(0,r.Z)(()=>this.retrievePollStatus(!0).pipe(function g(p,R){const{first:c,each:v,with:w=E,scheduler:G=R??I.E,meta:L=null}=(0,B.v)(p)?{first:p}:"number"==typeof p?{each:p}:p;if(null==c&&null==v)throw new TypeError("No timeout provided.");return(0,S.N)((k,F)=>{let V,D,K=null,N=0;const X=j=>{D=(0,f.N)(F,G,()=>{try{V.unsubscribe(),(0,C.Tg)(w({meta:L,lastValue:K,seen:N})).subscribe(F)}catch(Y){F.error(Y)}},j)};V=k.subscribe((0,n._)(F,j=>{D?.unsubscribe(),N++,F.next(K=j),v>0&&X(v)},void 0,void 0,()=>{D?.closed||D?.unsubscribe(),K=null})),!N&&X(null!=c?"number"==typeof c?c:+c-G.now():v)})}(8e3),(0,i.W)(c=>this.handlePollingError(c)))),function _(p,R=!1){return(0,S.N)((c,v)=>{let w=0;c.subscribe((0,n._)(v,G=>{const L=p(G,w++);(L||R)&&v.next(G),!L&&v.complete()}))})}(c=>!this.isFinalResponseReady(c),!0),(0,r.Z)(c=>this.handlePollingResult(c)))}stopPolling(){return this.abort.next(!0),(0,x.of)(!0)}retrievePollStatus(c){const v=(0,M.R)();return v.params={queryOnly:""+c},this.http.post((0,T.OZ)(this.restEndpoints.poll()),null,v).pipe((0,u.T)(w=>new a.d(w)))}handlePollingResult(c){return this.isFinalResponseReady(c)?(this.stopPolling(),this.retrievePollStatus(!1)):(0,x.of)(c)}isFinalResponseReady(c){return!0===c.additionalAttribute(p.FINAL_POLLING_ATTRIBUTE)}handlePollingError(c){if(c instanceof P)return console.log("Timeout during polling request"),h.t;if(!(c instanceof d.yz))throw c;if(0===c.status)return h.t;const v=new l.Z(c);if("UNEXPECTED_CALL"===v.getErrorCode()||"NO_FLOW_TO_CONTINUE"===v.getErrorCode()||"CONCURRENT_ACCESS"===v.getErrorCode())return console.log("Ignoring polling response with error code "+v.getErrorCode()),h.t;throw this.stopPolling(),c}static#e=this.\u0275fac=function(v){return new(v||p)(m.KVO(d.Qq),m.KVO(U.k))};static#n=this.\u0275prov=m.jDH({token:p,factory:p.\u0275fac})}return p})()},2695:(O,b,t)=>
1{t.d(b,{_:()=>s});class s{constructor(A){this.qrCodeImage=A}get dataUrl(){return this.qrCodeImage.startsWith("data:image/png;base64,")?this.qrCodeImage:"data:image/png;base64,"+this.qrCodeImage}}},3841:(O,b,t)=>{t.d(b,{L:()=>e});var s=t(7376),A=t(4438);let e=(()=>{class r{transform(S){return(0,s.upperFirst)((0,s.camelCase)(S))}static#t=this.\u0275fac=function(C){return new(C||r)};static#e=this.\u0275pipe=A.EJ8({name:"upperCamelCase",type:r,pure:!0,standalone:!1});static#n=this.\u0275prov=A.jDH({token:r,factory:r.\u0275fac})}return r})()},5033:(O,b,t)=>{t.d(b,{Q:()=>E});var s=t(6247),I=t(2315),A=t(6884),e=t(7673),r=t(8141),B=t(6354),S=t(5558),C=t(7613),o=t(4438),n=t(1400),f=t(177),P=t(4160);function g(_,x){if(1&_){const h=o.RV6();o.j41(0,"iam-button",1),o.bIt("buttonClick",function(){const y=o.eBV(h).ngIf,i=o.XpG();return o.Njj(i.cancelFlow(y.targetUri))}),o.k0s()}if(2&_){const h=o.XpG();o.Y8G("id",h.buttonId)("submit",!1)("right",h.right)("text",h.text||h.translationKey)("disableWhenBusy",h.disableWhenBusy)}}let E=(()=>{class _{set buttonId(h){h&&(this._id=h)}get buttonId(){return this._id}constructor(h,a,y,i,u){this.flowPageService=h,this.flowNavigationService=a,this.pageAlertService=y,this.routes=i,this.currentFlow=u,this.right=!0,this.disableWhenBusy=!0,this.beforeCancelFlow=this.nopBeforeCancelFlow,this._id="cancelButton",this.cancelButton=this.flowPageService.getStepUiConfig().pipe((0,r.M)(T=>{this._translationPrefix=T.getResourceKeyPrefix(),this.translationKey=this._translationPrefix+".pages.actions.cancel"}),(0,B.T)(T=>T.pageAttribute("cancelButtonSettings")))}get hostCss(){return"iam-btn-cancel"}cancelFlow(h){this.beforeCancelFlow().pipe((0,S.n)(()=>this.flowPageService.cancelFlow())).subscribe(()=>{this._translationPrefix&&this.pageAlertService.info(this._translationPrefix+".pages.messages.cancel");const a=this.currentFlow.retrieveId();this.flowPageService.clearState(),h?this.routes.navigateTo(h):this.flowNavigationService.navigateToFlow(a)})}nopBeforeCancelFlow(){return(0,e.of)(!0)}static#t=this.\u0275fac=function(a){return new(a||_)(o.rXU(s.z),o.rXU(n._),o.rXU(A.D),o.rXU(C.BV),o.rXU(I.E))};static#e=this.\u0275cmp=o.VBU({type:_,selectors:[["iam-cancel-button"]],hostVars:2,hostBindings:function(a,y){2&a&&o.HbH(y.hostCss)},inputs:{right:"right",text:"text",disableWhenBusy:"disableWhenBusy",buttonId:"buttonId",beforeCancelFlow:"beforeCancelFlow"},standalone:!1,decls:2,vars:3,consts:[[3,"id","submit","right","text","disableWhenBusy","buttonClick",4,"ngIf"],[3,"buttonClick","id","submit","right","text","disableWhenBusy"]],template:function(a,y){1&a&&(o.DNE(0,g,1,5,"iam-button",0),o.nI1(1,"async")),2&a&&o.Y8G("ngIf",o.bMT(1,1,y.cancelButton))},dependencies:[f.bT,P.Q,f.Jj],encapsulation:2})}return _})()},7493:(O,b,t)=>{t.d(b,{E:()=>h});var s=t(6247),I=t(8141),A=t(3597),e=t(4438),r=t(177),B=t(2315),S=t(7301),C=t(9417),o=t(2816),n=t(1463);function f(a,y){if(1&a&&(e.nrm(0,"iam-checkbox-row",1),e.nI1(1,"translate")),2&a){const i=e.XpG();e.Y8G("id",i.checkboxId)("label",e.bMT(1,5,i.translationKey))("control",i.control)("labelRight",!0)("disabled",i.disabled)}}let P=(()=>{class a{get hostCss(){return"iam-dynamic-step-activation-checkbox"}set checkboxId(i){i&&(this._id=i)}get checkboxId(){return this._id}set targetStep(i){i&&(this._target=i,this.translationKey=this.translationKey.replace("{targetStepId}",i.targetStepId))}get targetStep(){return this._target}constructor(i,u){this.currentFlow=i,this.flowPageService=u,this.checkboxChangedEvent=new e.bkB,this.stepUiConfig=this.flowPageService.getStepUiConfig(),this.translationKey=this.keyPrefix()+".pages.actions.dynamic-step.{targetStepId}"}ngOnInit(){this.control=new C.hs,this.control.setValue(this._target.activated),this._checkboxSubscription=this.control.valueChanges.subscribe(i=>{this._target.activated=i,this.checkboxChangedEvent.emit({targetStepId:this._target.targetStepId,activated:i})})}ngOnDestroy(){this._checkboxSubscription.unsubscribe()}get disabled(){return!this._target.activated&&!this._target.activatable||this._target.activated&&!this._target.deactivatable}keyPrefix(){const i=this.currentFlow.retrieveType();return(0,S.U)(i)}static#t=this.\u0275fac=function(u){return new(u||a)(e.rXU(B.E),e.rXU(s.z))};
1static#e=this.\u0275cmp=e.VBU({type:a,selectors:[["iam-dynamic-step-activation-checkbox"]],hostVars:2,hostBindings:function(u,T){2&u&&e.HbH(T.hostCss)},inputs:{checkboxId:"checkboxId",targetStep:"targetStep"},outputs:{checkboxChangedEvent:"checkboxChangedEvent"},standalone:!1,decls:2,vars:3,consts:[[3,"id","label","control","labelRight","disabled",4,"ngIf"],[3,"id","label","control","labelRight","disabled"]],template:function(u,T){if(1&u&&(e.DNE(0,f,2,7,"iam-checkbox-row",0),e.nI1(1,"async")),2&u){let d;e.Y8G("ngIf",null==(d=e.bMT(1,1,T.stepUiConfig))||null==d.pageSettings?null:d.pageSettings.dynamicStepActivationTargets)}},dependencies:[r.bT,o.D,n.t,r.Jj],encapsulation:2})}return a})();var g=t(9856),E=t(3841);function _(a,y){if(1&a){const i=e.RV6();e.j41(0,"iam-dynamic-step-activation-checkbox",3),e.nI1(1,"upperCamelCase"),e.bIt("checkboxChangedEvent",function(T){e.eBV(i);const d=e.XpG(2);return e.Njj(d.handleCheckboxChanges(T))}),e.k0s()}if(2&a){const i=y.$implicit;e.Y8G("targetStep",i)("checkboxId","dsaCheckbox"+e.bMT(1,2,i.targetStepId))}}function x(a,y){if(1&a&&(e.j41(0,"iam-row-with-label",1),e.DNE(1,_,2,4,"iam-dynamic-step-activation-checkbox",2),e.k0s()),2&a){const i=e.XpG();e.Y8G("withoutLabel",!0),e.R7$(),e.Y8G("ngForOf",i.dynamicStepActivationTargets)}}let h=(()=>{class a{constructor(i,u){this.flowPageService=i,this.dynamicStepActivationService=u,this.stepUiConfig=this.flowPageService.getStepUiConfig().pipe((0,I.M)(T=>this.setDynamicStepActivationTargets(T)))}handleCheckboxChanges(i){this.dynamicStepActivationService.addActivation(i)}setDynamicStepActivationTargets(i){this.dynamicStepActivationTargets=i.pageAttribute("dynamicStepActivationTargets")}static#t=this.\u0275fac=function(u){return new(u||a)(e.rXU(s.z),e.rXU(A.T))};static#e=this.\u0275cmp=e.VBU({type:a,selectors:[["iam-dynamic-step-activation-checkboxes"]],standalone:!1,decls:2,vars:3,consts:[[3,"withoutLabel",4,"ngIf"],[3,"withoutLabel"],[3,"targetStep","checkboxId","checkboxChangedEvent",4,"ngFor","ngForOf"],[3,"checkboxChangedEvent","targetStep","checkboxId"]],template:function(u,T){if(1&u&&(e.DNE(0,x,2,2,"iam-row-with-label",0),e.nI1(1,"async")),2&u){let d;e.Y8G("ngIf",(null==(d=e.bMT(1,1,T.stepUiConfig))||null==d.pageSettings||null==d.pageSettings.dynamicStepActivationTargets?null:d.pageSettings.dynamicStepActivationTargets.length)>0)}},dependencies:[r.Sq,r.bT,P,g.U,r.Jj,E.L],encapsulation:2})}return a})()},9099:(O,b,t)=>{t.d(b,{a:()=>n});var s=t(6247),I=t(7673),A=t(6354),e=t(4438),r=t(177),B=t(3594),S=t(3841);function C(f,P){if(1&f&&(e.nrm(0,"iam-goto-button",2),e.nI1(1,"upperCamelCase")),2&f){const g=P.$implicit,E=e.XpG(2);e.Y8G("currentStepId",E.currentStepId)("targetStepId",g)("disableWhenBusy",E.disableAllWhenBusy)("right",E.allRight)("buttonId","gotoButton"+e.bMT(1,6,g))("beforeGotoTargetStep",E.allBeforeGotoTargetStep)}}function o(f,P){if(1&f&&(e.qex(0),e.DNE(1,C,2,8,"iam-goto-button",1),e.nI1(2,"async"),e.bVm()),2&f){const g=e.XpG();e.R7$(),e.Y8G("ngForOf",e.bMT(2,1,g.gotoTargetsStepIds))}}let n=(()=>{class f{constructor(g){this.flowPageService=g,this.disableAllWhenBusy=!0,this.allRight=!0,this.allBeforeGotoTargetStep=this.nopBeforeGotoTargetStep,this.stepUiConfig=this.flowPageService.getStepUiConfig()}get hostCss(){return"iam-btns-goto-wrapper"}ngOnInit(){this.gotoTargetsStepIds=this.stepUiConfig.pipe((0,A.T)(g=>this.setCurrentStepIdAndGetGotoTargetsStepIds(g)))}setCurrentStepIdAndGetGotoTargetsStepIds(g){return this.currentStepId=g.pageId.replace(/\//g,""),g.pageAttribute("interactiveGotoTargets").targetStepIds}nopBeforeGotoTargetStep(){return(0,I.of)(!0)}static#t=this.\u0275fac=function(E){return new(E||f)(e.rXU(s.z))};static#e=this.\u0275cmp=e.VBU({type:f,selectors:[["iam-goto-buttons"]],hostVars:2,hostBindings:function(E,_){2&E&&e.HbH(_.hostCss)},inputs:{disableAllWhenBusy:"disableAllWhenBusy",allRight:"allRight",allBeforeGotoTargetStep:"allBeforeGotoTargetStep"},standalone:!1,decls:2,vars:3,consts:[[4,"ngIf"],[3,"currentStepId","targetStepId","disableWhenBusy","right","buttonId","beforeGotoTargetStep",4,"ngFor","ngForOf"],[3,"currentStepId","targetStepId","disableWhenBusy","right","buttonId","beforeGotoTargetStep"]],template:function(E,_){if(1&E&&(e.DNE(0,o,3,3,"ng-container",0),e.nI1(1,"async")),2&E){let x;e.Y8G("ngIf",null==(x=e.bMT(1,1,_.stepUiConfig))||null==x.pageSettings?null:x.pageSettings.interactiveGotoTargets)}},dependencies:[r.Sq,r.bT,B.Z,r.Jj,S.L],encapsulation:2})}return f})()},3076:(O,b,t)=>
1{t.d(b,{j:()=>e});var s=t(4438),I=t(9856);const A=r=>({"iam-mb-0":r});let e=(()=>{class r{constructor(){this.label="",this.src="",this.alt="",this.height="",this.width="",this.noMarginBottom=!1,this.labelClass="",this.withoutLabel=!1,this.imgClass="iam-mx-sm-auto iam-d-block",this.overflowHidden=!1}get hostCss(){return"iam-row-group"}static#t=this.\u0275fac=function(C){return new(C||r)};static#e=this.\u0275cmp=s.VBU({type:r,selectors:[["iam-image-row"]],hostVars:2,hostBindings:function(C,o){2&C&&s.HbH(o.hostCss)},inputs:{label:"label",src:"src",alt:"alt",height:"height",width:"width",noMarginBottom:"noMarginBottom",labelClass:"labelClass",withoutLabel:"withoutLabel",imgClass:"imgClass",overflowHidden:"overflowHidden",id:"id"},standalone:!1,decls:3,vars:14,consts:[[3,"label","labelClass","withoutLabel","rowNgClass"]],template:function(C,o){1&C&&(s.j41(0,"div")(1,"iam-row-with-label",0),s.nrm(2,"img"),s.k0s()()),2&C&&(s.AVh("overflow-hidden",o.overflowHidden),s.R7$(),s.Y8G("label",o.label)("labelClass",o.labelClass)("withoutLabel",o.withoutLabel)("rowNgClass",s.eq3(12,A,o.noMarginBottom)),s.R7$(),s.BMQ("id",o.id)("src",o.src,s.B4B)("alt",o.alt)("class",o.imgClass)("width",o.width)("height",o.height))},dependencies:[I.U],encapsulation:2})}return r})()}}]);
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.