1"use strict";(self.webpackChunkprivacypillar_sfo3=self.webpackChunkprivacypillar_sfo3||[]).push([["src_app_pagesettings_two-step-auth_two-step-auth_module_ts"],{99104:(H,m,a)=>{a.r(m),a.d(m,{TwoStepAuthModule:()=>G});var g=a(36895),c=a(42111),p=a(3940),l=a(92340),t=a(94650),x=a(20388),v=a(37407),d=a(51692),u=a(85740),C=a(80529);let f=(()=>{const n=class{constructor(e,i){this.http=e,this.activateRoute=i}onCreateTwoFactorAuthConfig(e,i){return this.http.get(l.N.apiUrl+u.R.TWO_FACTOR_AUTH)}onGetTwoFactorAuthConfig(e,i){return this.http.get(l.N.apiUrl+u.R.GET_TWO_FACTOR_AUTH)}onDeleteTwoFactorAuthConfig(e,i){return this.http.delete(l.N.apiUrl+u.R.DELETE_TWO_FACTOR_AUTH)}onUpdateTwoFactorAuthConfig(e,i){return this.http.patch(l.N.apiUrl+u.R.UPDATE_TWO_FACTOR_AUTH,{})}};let o=n;return n.\u0275fac=function(i){return new(i||n)(t.LFG(C.eN),t.LFG(d.gz))},n.\u0275prov=t.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),o})();var w=a(11481),b=a(72989),T=a(34466),h=a(4358),A=a(1637),U=a(2854);function y(o,n){1&o&&(t.TgZ(0,"span",30),t._uU(1,"Active"),t.qZA())}function Z(o,n){1&o&&(t.TgZ(0,"span",31),t._uU(1,"Disabled"),t.qZA())}function _(o,n){if(1&o){const r=t.EpF();t.TgZ(0,"button",32),t.NdJ("click",function(){t.CHM(r);const i=t.oxw(),s=t.MAs(47);return i.onCreateUserQrCode(),t.KtG(i.openModalWithClass(s))}),t._uU(1,"Enable"),t.qZA()}}function S(o,n){if(1&o){const r=t.EpF();t.TgZ(0,"button",32),t.NdJ("click",function(){t.CHM(r);const i=t.oxw(),s=t.MAs(47);return t.KtG(i.openModalWithClass(s))}),t._uU(1,"View QR Code"),t.qZA()}}function O(o,n){if(1&o&&(t.ynx(0),t._UZ(1,"qr-code",43),t.BQk()),2&o){const r=t.oxw(2);t.xp6(1),t.Q6J("value",r.twoStepAuthQrCode)}}const M=function(){return{width:"280px",height:"260px","border-radius":"10px"}};function Q(o,n){1&o&&(t.ynx(0),t._UZ(1,"ngx-skeleton-loader",44),t.BQk()),2&o&&(t.xp6(1),t.Q6J("theme",t.DdM(1,M)))}function N(o,n){if(1&o){const r=t.EpF();t.TgZ(0,"div",33)(1,"h4",34),t._uU(2,"Scan QR Code from Authentication App "),t.qZA(),t.TgZ(3,"button",35),t.NdJ("click",function(){t.CHM(r);const i=t.oxw();return t.KtG(null==i.modalRef?null:i.modalRef.hide())}),t.TgZ(4,"span",36),t._uU(5,"\xd7"),t.qZA()()(),t.TgZ(6,"div",37)(7,"div",38),t._uU(8,"In case you have updated or disabled and enabled authentication you need to rescan code with authenticator app"),t.qZA(),t.YNc(9,O,2,1,"ng-container",39),t.YNc(10,Q,2,2,"ng-container",39),t.qZA(),t.TgZ(11,"div",40)(12,"button",41),t.NdJ("click",function(){t.CHM(r);const i=t.oxw();return t.KtG(i.onDisable())}),t._uU(13,"Disable"),t.qZA(),t.TgZ(14,"button",42),t.NdJ("click",function(){t.CHM(r);const i=t.oxw();return t.KtG(i.onUpdate())}),t._uU(15,"Update "),t.qZA()()}if(2&o){const r=t.oxw();
1t.xp6(9),t.Q6J("ngIf",!r.skLoading),t.xp6(1),t.Q6J("ngIf",r.skLoading)}}function F(o,n){if(1&o&&(t.TgZ(0,"alert",47),t._uU(1),t.qZA()),2&o){const r=t.oxw(2);t.Q6J("type",r.alertType)("dismissible",r.dismissible),t.xp6(1),t.hij("",r.alertMsg," ")}}function R(o,n){if(1&o&&(t.TgZ(0,"div",45),t.YNc(1,F,2,3,"alert",46),t.qZA()),2&o){const r=t.oxw();t.xp6(1),t.Q6J("ngIf",r.isOpen)}}const D=function(o,n){return{oid:o,pid:n}},I=function(){return{width:"50vw"}};let k=(()=>{const n=class{constructor(e,i,s,q,L,B){this.modalService=e,this.loader=i,this.confirmationService=s,this.activatedRoute=q,this.twoStepAuthService=L,this.titleService=B,this.skLoading=!1,this.dismissible=!0,this.titleService.setTitle("Two Factor Authentication - "+l.N.portalPrefix)}ngOnInit(){this.onGetUserQrCode(),this.activatedRoute.queryParamMap.subscribe(e=>{this.queryOID=e.get("oid"),this.queryPID=e.get("pid")})}onCreateUserQrCode(){this.loader.start(),this.skLoading=!0,this.twoStepAuthService.onCreateTwoFactorAuthConfig(this.constructor.name,p.e.setUpModule).subscribe(e=>{this.loader.stop(),this.skLoading=!1,this.twoStepAuthQrCode=e.response,this.alertMsg="Two Factor Authentication Enabled",this.isOpen=!0,this.alertType="success",this.onGetUserQrCode()},e=>{this.alertMsg=e,this.isOpen=!0,this.alertType="danger",this.skLoading=!1,this.loader.stop()})}onGetUserQrCode(){this.loader.start(),this.twoStepAuthService.onGetTwoFactorAuthConfig(this.constructor.name,p.e.setUpModule).subscribe(e=>{this.loader.stop(),e.hasOwnProperty("error")?this.isdisabled=!0:e&&(this.configData=e.response,this.isdisabled=!1,e?.response.hasOwnProperty("secret_2")&&(this.twoStepAuthQrCode=e.response.secret_2))},e=>{this.loader.stop()})}onDisableUserQrCode(){this.loader.start(),this.twoStepAuthService.onDeleteTwoFactorAuthConfig(this.constructor.name,p.e.setUpModule).subscribe(e=>{this.loader.stop(),this.onGetUserQrCode(),this.alertMsg="Two Factor Authentication Disabled",this.isOpen=!0,this.alertType="success",this.modalRef.hide()},e=>{this.alertMsg=e,this.isOpen=!0,this.alertType="danger",this.loader.stop()})}onUpdateUserQrCode(){this.loader.start(),this.twoStepAuthService.onUpdateTwoFactorAuthConfig(this.constructor.name,p.e.setUpModule).subscribe(e=>{this.loader.stop(),this.onGetUserQrCode(),this.alertMsg="Two Factor Authentication Configuration Updated",this.isOpen=!0,this.alertType="success"},e=>{this.alertMsg=e,this.isOpen=!0,this.alertType="danger",this.loader.stop()})}openModalWithClass(e){this.modalRef=this.modalService.show(e,Object.assign({},{class:"gray modal-lg"}))}onDisable(){this.modalRef?.hide(),this.confirmationService.confirm({message:"Are you sure that you want to Disable two factor Authencation?",header:"Disable Confirmation",icon:"pi pi-exclamation-triangle",accept:()=>{this.onDisableUserQrCode()},reject:e=>{}})}onUpdate(){this.modalRef?.hide(),this.confirmationService.confirm({message:"Are you sure that you want to Update two factor Authencation QR Code?",header:"Update Confirmation",icon:"pi pi-exclamation-triangle",accept:()=>{this.onUpdateUserQrCode()},reject:e=>{}})}};let o=n;return n.\u0275fac=function(i){return new(i||n)(t.Y36(x.tT),t.Y36(v.LA),t.Y36(c.YP),t.Y36(d.gz),t.Y36(f),t.Y36(w.Dx))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-two-step-auth"]],decls:50,vars:13,consts:[["appTheme","",1,"d-sm-flex","align-items-center","justify-content-between"],["aria-label","breadcrumb"],[1,"breadcrumb","breadcrumb-style1","mg-b-10"],[1,"breadcrumb-item"],["routerLink","/settings",3,"queryParams"],["aria-current","page",1,"breadcrumb-item","active"],["appTheme","",1,"container","ht-lg-100p"],[1,"card"],[1,"card-header"],[1,"card-body"],[1,"row"],[1,"col-md-12","text-center"],[1,"fas","fa-solid","fa-lock",2,"font-size","35px"],[1,"card-footer"],[1,"tx-16"],[1,"row","mt-3"],[1,"col-md-6",2,"border-right","1px solid rgba(72, 94, 144, 0.16)"],[1,"col-md-2","bar-code-icon"],[1,"fas","fa-solid","fa-qrcode"],[1,"col-md-10"],[1,"m-0","tx-14"],[1,"mb-1"],[1,"text-success","font-weight-bold"],[1,"float-left"],["class","pl-2 text-primary font-weight-bold",4,"ngIf"],["class","pl-2 text-danger font-weight-bold",4,"ngIf"],["type","button","class","float-right tx-12 pt-1 pb-1 btn btn-primary btn-sm",3,"click",4,"ngIf"],["qrModal",""],["rejectButtonStyleClass","p-button-text",3,"baseZIndex"],["class","col-sm-5 mr-0 float-right flotingdiv",4,"ngIf"],[1,"pl-2","text-primary","font-weight-bold"],[1,"pl-2","text-danger","font-weight-bold"],["type","button",1,"float-right","tx-12","pt-1","pb-1","btn","btn-primary","btn-sm",3,"click"],[1,"modal-header"],[1,"modal-title","pull-left"],["type","button","aria-label","Close",1,"close","btn-close","pull-right",3,"click"],["aria-hidden","true",1,"visually-hidden"],[1,"modal-body","text-center"],[1,"alert","alert-warning","ccpa-status-text"],[4,"ngIf"],["appTheme","",1,"modal-footer"],["type","button",1,"btn","btn-sm","btn-danger","mr-2",3,"click"],["type","button",1,"btn","btn-sm","btn-primary",3,"click"],["size","400","errorCorrectionLevel","M",3,"value"],["appearance","circle",3,"theme"],[1,"col-sm-5","mr-0","float-right","flotingdiv"],["dismissOnTimeout","5000",3,"type","dismissible",4,"ngIf"],["dismissOnTimeout","5000",3,"type","dismissible"]],template:function(i,s){1&i&&(t.TgZ(0,"div",0)(1,"div")(2,"nav",1)(3,"ol",2)(4,"li",3)(5,"a",4),t._uU(6,"Settings"),t.qZA()(),t.TgZ(7,"li",5),t._uU(8,"Two-Factor Authentication"),t.qZA()()()()(),t.TgZ(9,"div",6)(10,"div",7)(11,"div",8)(12,"h4"),t._uU(13,"Two-Factor Authentication"),t.qZA()(),t.TgZ(14,"div",9)(15,"div",10)(16,"div",11),t._UZ(17,"i",12),t.TgZ(18,"h2"),t._uU(19,"Two-Factor Authentication"),t.qZA(),t.TgZ(20,"p"),t._uU(21,"Two Factor Authentication, or 2FA, is an extra layer of protection used to ensure "),t._UZ(22,"br"),t._uU(23," the security of online accounts beyond just a username and password."),t.qZA()()()(),t.TgZ(24,"div",13)(25,"h5",14),t._uU(26,"Select a Security Method"),t.qZA(),t.TgZ(27,"div",15)(28,"div",16)(29,"div",10)(30,"div",17),t._UZ(31,"i",18),t.qZA(),t.TgZ(32,"div",19)(33,"h6",20)(34,"b"),t._uU(35,"Authentication App"),t.qZA()(),t.TgZ(36,"p",21)(37,"span",22),t._uU(38,"Recommended"),t.qZA(),t._uU(39," Use an app like google authenticator to Generate Verification codes for more Protection"),t.qZA(),t.TgZ(40,"p",23),t._uU(41,"Status: "),t.YNc(42,y,2,0,"span",24),t.YNc(43,Z,2,0,"span",25),t.qZA(),t.YNc(44,_,2,0,"button",26),t.YNc(45,S,2,0,"button",26),t.qZA()()()()()()(),t.YNc(46,N,16,2,"ng-template",null,27,t.W1O),t._UZ(48,"p-confirmDialog",28),t.YNc(49,R,2,1,"div",29)),2&i&&(t.xp6(5),t.Q6J("queryParams",t.WLB(9,D,s.queryOID,s.queryPID)),t.xp6(37),t.Q6J("ngIf",!s.isdisabled),t.xp6(1),t.Q6J("ngIf",s.isdisabled),t.xp6(1),t.Q6J("ngIf",s.isdisabled),t.xp6(1),t.Q6J("ngIf",!s.isdisabled),t.xp6(3),t.Akn(t.DdM(12,I)),t.Q6J("baseZIndex",1e4),t.xp6(1),t.Q6J("ngIf",s.isOpen))},dependencies:[g.O5,b.uU,T.Q,h.wx,A.xr,d.rH,U.E],styles:[".bar-code-icon[_ngcontent-%COMP%]{display:flex;justify-content:center;margin-top:10px;font-size:40px}.alert-success[_ngcontent-%COMP%]{background-color:#5cb85c;border-color:#4cae4c;color:#fff;padding:12px 32px 12px 12px!important}.alert-danger[_ngcontent-%COMP%]{color:#721c24;background-color:#f8d7da;border-color:#f5c6cb}input[_ngcontent-%COMP%]::-ms-reveal, input[_ngcontent-%COMP%]::-ms-clear{display:none}.flotingdiv[_ngcontent-%COMP%]{position:fixed;bottom:0;top:84%;right:0;overflow-x:hidden;overflow-y:auto}
1 .alert{padding:12px 35px 12px 12px}"]}),o})();var J=a(23501),P=a(55466),Y=a(91742);const E=[{path:"",component:k}];let G=(()=>{const n=class{};let o=n;return n.\u0275fac=function(i){return new(i||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({providers:[f,h.TK,c.YP],imports:[g.ez,b.OF,T.D,h.nM,A.hx.forRoot(),d.Bz.forChild(E),J.O.forRoot({themes:[P.W,Y.$],active:l.N.theme})]}),o})()}}]);
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.