1"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[691],{892:(A,_,t)=>{t.d(_,{u:()=>U});var u=t(5451),n=t(7805),m=t(6247),e=t(7348),d=t(6354),C=t(5482),y=t(2652),i=t(4438),r=t(1626),S=t(5463);let h=(()=>{class E{constructor(s,D,P){this.http=s,this.restEndpoints=D,this.flowSessionService=P}editDevice(s){const D=JSON.stringify(s);return this.http.post((0,e.OZ)(this.restEndpoints.edit()),D,{observe:"response"}).pipe((0,d.T)(P=>this.flowSessionService.createFlowSession(P)))}continue(){return this.http.post((0,e.OZ)(this.restEndpoints.continue()),null,(0,y.R)()).pipe((0,d.T)(s=>this.flowSessionService.createFlowSession(s)))}static#t=this.\u0275fac=function(D){return new(D||E)(i.KVO(r.Qq),i.KVO(S.r),i.KVO(C.Q))};static#e=this.\u0275prov=i.jDH({token:E,factory:E.\u0275fac})}return E})();class T{constructor(M){this.displayName=M}}var c=t(2263),f=t(8141),p=t(661),v=t(177),o=t(57),l=t(4160),I=t(5033),a=t(9099),g=t(7493),b=t(9710),B=t(3001),O=t(6453),x=t(3813);function R(E,M){if(1&E){const s=i.RV6();i.j41(0,"iam-page",1)(1,"iam-form",2),i.bIt("formSubmit",function(){i.eBV(s);const P=i.XpG();return i.Njj(P.editDevice())}),i.nrm(2,"iam-text-message",3)(3,"iam-input-row",4)(4,"iam-dynamic-step-activation-checkboxes"),i.j41(5,"iam-button-row"),i.nrm(6,"iam-button",5)(7,"iam-cancel-button")(8,"iam-goto-buttons"),i.k0s()()()}if(2&E){const s=i.XpG();i.Y8G("pageId",s.pageId)("bodyAttributes",s.bodyAttributes)("title",s.translationPrefix+".device.edit.title"),i.R7$(),i.Y8G("form",s.form),i.R7$(),i.Y8G("id","airlock2FADeviceEditInstructions")("text",s.translationPrefix+".device.edit.instructions"),i.R7$(),i.Y8G("id","displayName")("required",!0)("control",s.form.controls.displayName)("label",s.translationPrefix+".device.edit.display-name")("type","text"),i.R7$(3),i.Y8G("id","editDevice")("submit",!0)("disabled",!s.form.valid)("text",s.translationPrefix+".device.edit.actions.continue")}}let U=(()=>{class E extends u.V{constructor(s,D,P){super(D,P),this.restService=s}ngOnInit(){this.initialDevice=this.initUiConfig().pipe((0,d.T)(s=>new T(s.additionalAttribute("displayName"))),(0,f.M)(s=>this.initializeForm(s)))}editDevice(){this.restService.editDevice(this.form.model).subscribe({next:s=>this.handleEditResult(s),error:s=>this.handleFailedStep(s)})}handleEditResult(s){"AIRLOCK_2FA_DEVICE_EDIT_POSSIBLE"===s.nextStep()&&this.continue()}continue(){this.restService.continue().subscribe({next:s=>this.handleSuccessfulStep(s),error:s=>this.handleFailedStep(s)})}initializeForm(s){this.form=c.l.of(s,{required:["displayName"],validators:{displayName:p.k.matches("[\\p{L}\\s0-9-+/.()]{1,50}",{patternFlags:"u",errorKey:"error.validation-failed.wrong-format"})}})}static#t=this.\u0275fac=function(D){return new(D||E)(i.rXU(h),i.rXU(m.z),i.rXU(n.b))};static#e=this.\u0275cmp=i.VBU({type:E,selectors:[["iam-airlock-2fa-device-edit"]],inputs:{translationPrefix:"translationPrefix",pageId:"pageId"},standalone:!1,features:[i.Jv_([h]),i.Vt3],decls:2,vars:3,consts:[[3,"pageId","bodyAttributes","title",4,"ngIf"],[3,"pageId","bodyAttributes","title"],[3,"formSubmit","form"],[3,"id","text"],[3,"id","required","control","label","type"],[3,"id","submit","disabled","text"]],template:function(D,P){1&D&&(i.DNE(0,R,9,15,"iam-page",0),i.nI1(1,"async")),2&D&&i.Y8G("ngIf",i.bMT(1,1,P.initialDevice))},dependencies:[v.bT,o.m,l.Q,I.Q,a.a,g.E,b.s,B.e,O.I,x.H,v.Jj],encapsulation:2})}return E})()},6774:(A,_,t)=>{t.d(_,{t:()=>e});var u=t(1552),n=t(4720),m=t(4438);let e=(()=>{class d{static#t=this.\u0275fac=function(i){return new(i||d)};static#e=this.\u0275mod=m.$C({type:d});static#n=this.\u0275inj=m.G2t({imports:[u.G,n.S]})}return d})()},5463:(A,_,t)=>{t.d(_,{r:()=>u});class u{}},3841:(A,_,t)=>{t.d(_,{L:()=>e});var u=t(7376),m=t(4438);let e=(()=>{class d{transform(y){return(0,u.upperFirst)((0,u.camelCase)(y))}static#t=this.\u0275fac=function(i){return new(i||d)};static#e=this.\u0275pipe=m.EJ8({name:"upperCamelCase",type:d,pure:!0,standalone:!1});static#n=this.\u0275prov=m.jDH({token:d,factory:d.\u0275fac})}return d})()},5033:(A,_,t)=>{t.d(_,{Q:()=>f});var u=t(6247),n=t(2315),m=t(6884),e=t(7673),d=t(8141),C=t(6354),y=t(5558),i=t(7613),r=t(4438),S=t(1400),h=t(177),T=t(4160);function c(p,v){if(1&p){const o=r.RV6();r.j41(0,"iam-button",1),r.bIt("buttonClick",function(){const I=r.eBV(o).ngIf,a=r.XpG();
1return r.Njj(a.cancelFlow(I.targetUri))}),r.k0s()}if(2&p){const o=r.XpG();r.Y8G("id",o.buttonId)("submit",!1)("right",o.right)("text",o.text||o.translationKey)("disableWhenBusy",o.disableWhenBusy)}}let f=(()=>{class p{set buttonId(o){o&&(this._id=o)}get buttonId(){return this._id}constructor(o,l,I,a,g){this.flowPageService=o,this.flowNavigationService=l,this.pageAlertService=I,this.routes=a,this.currentFlow=g,this.right=!0,this.disableWhenBusy=!0,this.beforeCancelFlow=this.nopBeforeCancelFlow,this._id="cancelButton",this.cancelButton=this.flowPageService.getStepUiConfig().pipe((0,d.M)(b=>{this._translationPrefix=b.getResourceKeyPrefix(),this.translationKey=this._translationPrefix+".pages.actions.cancel"}),(0,C.T)(b=>b.pageAttribute("cancelButtonSettings")))}get hostCss(){return"iam-btn-cancel"}cancelFlow(o){this.beforeCancelFlow().pipe((0,y.n)(()=>this.flowPageService.cancelFlow())).subscribe(()=>{this._translationPrefix&&this.pageAlertService.info(this._translationPrefix+".pages.messages.cancel");const l=this.currentFlow.retrieveId();this.flowPageService.clearState(),o?this.routes.navigateTo(o):this.flowNavigationService.navigateToFlow(l)})}nopBeforeCancelFlow(){return(0,e.of)(!0)}static#t=this.\u0275fac=function(l){return new(l||p)(r.rXU(u.z),r.rXU(S._),r.rXU(m.D),r.rXU(i.BV),r.rXU(n.E))};static#e=this.\u0275cmp=r.VBU({type:p,selectors:[["iam-cancel-button"]],hostVars:2,hostBindings:function(l,I){2&l&&r.HbH(I.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(l,I){1&l&&(r.DNE(0,c,1,5,"iam-button",0),r.nI1(1,"async")),2&l&&r.Y8G("ngIf",r.bMT(1,1,I.cancelButton))},dependencies:[h.bT,T.Q,h.Jj],encapsulation:2})}return p})()},7493:(A,_,t)=>{t.d(_,{E:()=>o});var u=t(6247),n=t(8141),m=t(3597),e=t(4438),d=t(177),C=t(2315),y=t(7301),i=t(9417),r=t(2816),S=t(1463);function h(l,I){if(1&l&&(e.nrm(0,"iam-checkbox-row",1),e.nI1(1,"translate")),2&l){const a=e.XpG();e.Y8G("id",a.checkboxId)("label",e.bMT(1,5,a.translationKey))("control",a.control)("labelRight",!0)("disabled",a.disabled)}}let T=(()=>{class l{get hostCss(){return"iam-dynamic-step-activation-checkbox"}set checkboxId(a){a&&(this._id=a)}get checkboxId(){return this._id}set targetStep(a){a&&(this._target=a,this.translationKey=this.translationKey.replace("{targetStepId}",a.targetStepId))}get targetStep(){return this._target}constructor(a,g){this.currentFlow=a,this.flowPageService=g,this.checkboxChangedEvent=new e.bkB,this.stepUiConfig=this.flowPageService.getStepUiConfig(),this.translationKey=this.keyPrefix()+".pages.actions.dynamic-step.{targetStepId}"}ngOnInit(){this.control=new i.hs,this.control.setValue(this._target.activated),this._checkboxSubscription=this.control.valueChanges.subscribe(a=>{this._target.activated=a,this.checkboxChangedEvent.emit({targetStepId:this._target.targetStepId,activated:a})})}ngOnDestroy(){this._checkboxSubscription.unsubscribe()}get disabled(){return!this._target.activated&&!this._target.activatable||this._target.activated&&!this._target.deactivatable}keyPrefix(){const a=this.currentFlow.retrieveType();return(0,y.U)(a)}static#t=this.\u0275fac=function(g){return new(g||l)(e.rXU(C.E),e.rXU(u.z))};static#e=this.\u0275cmp=e.VBU({type:l,selectors:[["iam-dynamic-step-activation-checkbox"]],hostVars:2,hostBindings:function(g,b){2&g&&e.HbH(b.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(g,b){if(1&g&&(e.DNE(0,h,2,7,"iam-checkbox-row",0),e.nI1(1,"async")),2&g){let B;e.Y8G("ngIf",null==(B=e.bMT(1,1,b.stepUiConfig))||null==B.pageSettings?null:B.pageSettings.dynamicStepActivationTargets)}},dependencies:[d.bT,r.D,S.t,d.Jj],encapsulation:2})}return l})();var c=t(9856),f=t(3841);function p(l,I){if(1&l){const a=e.RV6();e.j41(0,"iam-dynamic-step-activation-checkbox",3),e.nI1(1,"upperCamelCase"),e.bIt("checkboxChangedEvent",function(b){e.eBV(a);const B=e.XpG(2);return e.Njj(B.handleCheckboxChanges(b))}),e.k0s()}if(2&l){const a=I.$implicit;e.Y8G("targetStep",a)("checkboxId","dsaCheckbox"+e.bMT(1,2,a.targetStepId))}}function v(l,I){if(1&l&&(e.j41(0,"iam-row-with-label",1),e.DNE(1,p,2,4,"iam-dynamic-step-activation-checkbox",2),e.k0s()),2&l){const a=e.XpG();e.Y8G("withoutLabel",!0),e.R7$(),e.Y8G("ngForOf",a.dynamicStepActivationTargets)}}let o=(()=>{class l{constructor(a,g){this.flowPageService=a,this.dynamicStepActivationService=g,this.stepUiConfig=this.flowPageService.getStepUiConfig().pipe((0,n.M)(b=>this.setDynamicStepActivationTargets(b)))}handleCheckboxChanges(a){this.dynamicStepActivationService.addActivation(a)}setDynamicStepActivationTargets(a){this.dynamicStepActivationTargets=a.pageAttribute("dynamicStepActivationTargets")}static#t=this.\u0275fac=function(g){return new(g||l)(e.rXU(u.z),e.rXU(m.T))};
1static#e=this.\u0275cmp=e.VBU({type:l,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(g,b){if(1&g&&(e.DNE(0,v,2,2,"iam-row-with-label",0),e.nI1(1,"async")),2&g){let B;e.Y8G("ngIf",(null==(B=e.bMT(1,1,b.stepUiConfig))||null==B.pageSettings||null==B.pageSettings.dynamicStepActivationTargets?null:B.pageSettings.dynamicStepActivationTargets.length)>0)}},dependencies:[d.Sq,d.bT,T,c.U,d.Jj,f.L],encapsulation:2})}return l})()},9710:(A,_,t)=>{t.d(_,{s:()=>d});var u=t(4438),m=(t(2263),t(9417));const e=["*"];let d=(()=>{class C{constructor(){this.autocomplete="off",this.formSubmit=new u.bkB}static#t=this.\u0275fac=function(r){return new(r||C)};static#e=this.\u0275cmp=u.VBU({type:C,selectors:[["iam-form"]],inputs:{autocomplete:"autocomplete",form:"form"},outputs:{formSubmit:"formSubmit"},standalone:!1,ngContentSelectors:e,decls:2,vars:2,consts:[[3,"ngSubmit","formGroup"]],template:function(r,S){1&r&&(u.NAR(),u.j41(0,"form",0),u.bIt("ngSubmit",function(T){return S.formSubmit.emit(T)}),u.SdG(1),u.k0s()),2&r&&(u.Y8G("formGroup",S.form.formGroup),u.BMQ("autocomplete",S.autocomplete))},dependencies:[m.qT,m.cb,m.j4],encapsulation:2})}return C})()},9099:(A,_,t)=>{t.d(_,{a:()=>S});var u=t(6247),n=t(7673),m=t(6354),e=t(4438),d=t(177),C=t(3594),y=t(3841);function i(h,T){if(1&h&&(e.nrm(0,"iam-goto-button",2),e.nI1(1,"upperCamelCase")),2&h){const c=T.$implicit,f=e.XpG(2);e.Y8G("currentStepId",f.currentStepId)("targetStepId",c)("disableWhenBusy",f.disableAllWhenBusy)("right",f.allRight)("buttonId","gotoButton"+e.bMT(1,6,c))("beforeGotoTargetStep",f.allBeforeGotoTargetStep)}}function r(h,T){if(1&h&&(e.qex(0),e.DNE(1,i,2,8,"iam-goto-button",1),e.nI1(2,"async"),e.bVm()),2&h){const c=e.XpG();e.R7$(),e.Y8G("ngForOf",e.bMT(2,1,c.gotoTargetsStepIds))}}let S=(()=>{class h{constructor(c){this.flowPageService=c,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,m.T)(c=>this.setCurrentStepIdAndGetGotoTargetsStepIds(c)))}setCurrentStepIdAndGetGotoTargetsStepIds(c){return this.currentStepId=c.pageId.replace(/\//g,""),c.pageAttribute("interactiveGotoTargets").targetStepIds}nopBeforeGotoTargetStep(){return(0,n.of)(!0)}static#t=this.\u0275fac=function(f){return new(f||h)(e.rXU(u.z))};static#e=this.\u0275cmp=e.VBU({type:h,selectors:[["iam-goto-buttons"]],hostVars:2,hostBindings:function(f,p){2&f&&e.HbH(p.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(f,p){if(1&f&&(e.DNE(0,r,3,3,"ng-container",0),e.nI1(1,"async")),2&f){let v;e.Y8G("ngIf",null==(v=e.bMT(1,1,p.stepUiConfig))||null==v.pageSettings?null:v.pageSettings.interactiveGotoTargets)}},dependencies:[d.Sq,d.bT,C.Z,d.Jj,y.L],encapsulation:2})}return h})()},3001:(A,_,t)=>{t.d(_,{e:()=>T});var u=t(3719),n=t(4438),m=t(177),e=t(9417),d=t(9276),C=t(9856),y=t(1463);const i=["*"],r=()=>({display:"none"});function S(c,f){if(1&c){const p=n.RV6();n.j41(0,"button",4),n.bIt("click",function(){n.eBV(p);const o=n.XpG();return n.Njj(o.isPasswordConcealed=!o.isPasswordConcealed)}),n.nrm(1,"img",5),n.nI1(2,"translate"),n.k0s()}if(2&c){const p=n.XpG();n.AVh("iam-invalid",p.hasError()),n.Y8G("ngStyle",n.lJ4(7,r)),n.R7$(),n.Y8G("ngSrc",p.isPasswordConcealed?"assets/custom/img/eye
1-regular.svg":"assets/custom/img/eye-slash-regular.svg")("alt",n.bMT(2,5,"authentication.password.show-password"))}}function h(c,f){if(1&c&&n.nrm(0,"iam-errors",6),2&c){const p=n.XpG();n.Y8G("id",p.errorFor(p.id))("errors",p.getErrors())}}let T=(()=>{class c extends u.G{constructor(){super(...arguments),this.label="",this.placeholder="",this.focus=!1,this.readonly=!1,this.inputNgClass={},this.required=!1,this.autocapitalize=!1,this.spellcheck=!1,this.isPasswordConcealed=!0}get hostCss(){return"iam-row-group"}determineType(){return"password"===this.type?this.isPasswordConcealed?"password":"text":this.type||"text"}static#t=this.\u0275fac=(()=>{let p;return function(o){return(p||(p=n.xGo(c)))(o||c)}})();static#e=this.\u0275cmp=n.VBU({type:c,selectors:[["iam-input-row"]],hostVars:2,hostBindings:function(v,o){2&v&&n.HbH(o.hostCss)},inputs:{id:"id",name:"name",label:"label",type:"type",textArguments:"textArguments",placeholder:"placeholder",focus:"focus",readonly:"readonly",inputNgClass:"inputNgClass",required:"required",autocapitalize:"autocapitalize",spellcheck:"spellcheck"},standalone:!1,features:[n.Vt3],ngContentSelectors:i,decls:6,vars:23,consts:[[3,"label","labelFor","required"],[1,"iam-form-control",3,"formControl","name","autofocus","readonly","ngClass"],["class","iam-btn iam-btn-outline-secondary iam-show-password-toggle","type","button",3,"ngStyle","iam-invalid","click",4,"ngIf"],[3,"id","errors",4,"ngIf"],["type","button",1,"iam-btn","iam-btn-outline-secondary","iam-show-password-toggle",3,"click","ngStyle"],["height","16","width","16",3,"ngSrc","alt"],[3,"id","errors"]],template:function(v,o){1&v&&(n.NAR(),n.j41(0,"iam-row-with-label",0),n.nrm(1,"input",1),n.nI1(2,"translate"),n.DNE(3,S,3,8,"button",2),n.SdG(4),n.DNE(5,h,1,2,"iam-errors",3),n.k0s()),2&v&&(n.Y8G("label",o.label)("labelFor",o.name||o.id)("required",o.required),n.R7$(),n.AVh("iam-is-invalid",o.hasError())("iam-password-input-field","password"===o.type),n.Y8G("formControl",o.control)("name",o.name||o.id)("autofocus",o.focus)("readonly",o.readonly)("ngClass",o.inputNgClass),n.BMQ("type",o.determineType())("id",o.id)("placeholder",n.i5U(2,20,o.placeholder,o.textArguments))("autocapitalize",o.autocapitalize?"on":"off")("spellcheck",o.spellcheck)("aria-describedby",o.hasError()?o.errorFor(o.id):void 0),n.R7$(2),n.Y8G("ngIf","password"===o.type),n.R7$(2),n.Y8G("ngIf",o.hasError()))},dependencies:[m.YU,m.bT,m.B3,e.me,e.BC,e.l_,m.kt,d.I,C.U,y.t],encapsulation:2})}return c})()}}]);
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.