1"use strict"; 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="2f2dfc6b-fb92-54bb-8a35-0b03ec3caa73")}catch(e){}}(); 3(self.webpackChunkauth_fe=self.webpackChunkauth_fe||[]).push([[516],{54516(P,u,o){o.d(u,{TwoFaDisableConfirmComponent:()=>A});var l=o(49074),n=o(66563),E=o(97031),s=o(34164),f=o(21745),i=o(81104),_=o(94518),p=o(44906),e=o(35703),r=o(28225),a=o(60790),v=o(57437),t=o(36124),C=o(3139),T=o(597);function D(d,h){if(1&d){const O=t.RV6();t.j41(0,"base-form",2),t.nI1(1,"translate"),t.nI1(2,"translate"),t.j41(3,"gc-button",3),t.bIt("click",function(){n.eBV(O);const c=t.XpG();return n.Njj(c.goToProfile())}),t.EFF(4),t.nI1(5,"translate"),t.k0s()()}2&d&&(t.Y8G("title",t.bMT(1,3,"TWO_FA_DISABLE.ERROR.TITLE"))("subTitle",t.bMT(2,5,"TWO_FA_DISABLE.ERROR.SUBTITLE")),t.R7$(4),t.SpI(" ",t.bMT(5,7,"TWO_FA_DISABLE.ERROR.ACTION")," "))}let A=(()=>{var d;class h{constructor(){this.destroyRef=(0,n.WQX)(n.abz),this.clientsService=(0,n.WQX)(r._),this.pageLoaderService=(0,n.WQX)(v.E),this.secureUrlParamsService=(0,n.WQX)(i.Q),this.urlService=(0,n.WQX)(a.H),this.appInstanceType=(0,n.WQX)(p.L),this.isMainReseller=(0,n.WQX)(e.o8),this.hasError=(0,n.vPA)(!1)}ngOnInit(){const m=this.secureUrlParamsService.getParamFromSession(i.V.Token);if(!m)throw new Error("Token is expected");this.pageLoaderService.showLoader(),this.clientsService.disableTwoFaConfirm(m).pipe((0,l.pQ)(this.destroyRef)).subscribe({next:()=>{this.secureUrlParamsService.deleteParamFromSession(i.V.Token),this.navigateToProfile()},error:()=>{this.hasError.set(!0),this.secureUrlParamsService.deleteParamFromSession(i.V.Token),this.pageLoaderService.hideLoader()}})}goToProfile(){this.navigateToProfile()}navigateToProfile(){location.href=this.appInstanceType===p.r.Admin?this.urlService.getAdminProfileTwoFactorURL():this.urlService.getUserProfileURL()}get backgroundStyle(){return this.isMainReseller?_.O.BackgroundStyle.Dark:_.O.BackgroundStyle.Default}static#t=d=()=>(this.\u0275fac=function(c){return new(c||h)},this.\u0275cmp=t.VBU({type:h,selectors:[["two-fa-disable-confirm"]],features:[t.Jv_([r._])],decls:3,vars:2,consts:[[3,"background"],["id","left"],[3,"title","subTitle"],["name","goToProfileButton","gcId","goToProfileButton",1,"w-100","d-block","button-primary",3,"click"]],template:function(c,g){1&c&&(t.j41(0,"main-layout",0)(1,"div",1),t.nVh(2,D,6,9,"base-form",2),t.k0s()()),2&c&&(t.Y8G("background",g.backgroundStyle),t.R7$(2),t.vxM(g.hasError()?2:-1))},dependencies:[f.L,_.v,C.J,s.lj,s.SZ,E.hi,T.D9],styles:[".font-medium[_ngcontent-%COMP%]{font-weight:600}.main-reseller-primary[_ngcontent-%COMP%]{--gc-color-primary: #ff4c00;--new-primary: #251b29;--new-secondary: #818181;--new-success: #043d21;--new-success-background: #e6f4dc;--new-error: #5e1100;--new-error-background: #fcd9d4}base-form[_ngcontent-%COMP%]{padding:2.2857142857rem 3.1428571429rem 2.8571428571rem}"],changeDetection:0}))}return d(),h})()},28225(P,u,o){o.d(u,{D:()=>s,_:()=>f});var l=o(66563),n=o(50698),E=o(35703),s=function(i){return i.passwordRestore="auth/password/restore",i.passwordForgot="auth/password/forgot",i.adminPasswordRestore="auth/set_password",i.adminPasswordForgot="auth/reset_password",i.jwtActivate="auth/jwt/activate",i.joinAccount="auth/join_account",i.confirmChangeEmail="auth/jwt/users/email/confirm",i.resetChangeEmail="auth/jwt/users/email/reset",i.twoFaDisableConfirm="auth/2fa/disable/confirm",i.deleteRequestConfirm="clients/delete_request/token/verify/confirm",i}(s||{});let f=(()=>{var i;class _{constructor(){this.httpClient=(0,l.WQX)(n.Qq),this.identityApiUri=(0,l.WQX)(E.Xx)}activateAccount(e,r){return this.httpClient.post(`${this.identityApiUri}/${s.jwtActivate}`,{email:decodeURIComponent(e),token:r},{params:{version:"2"}})}joinAccount(e,r,a){return this.httpClient.post(`${this.identityApiUri}/${s.joinAccount}`,{email:decodeURIComponent(r),password:e,token:a,blog_agree:!1})}restorePass(e,r,a){return this.httpClient.post(`${this.identityApiUri}/${s.passwordRestore}`,{email:decodeURIComponent(r),password:e,token:a})}restoreAdminPass(e,r,a){return this.httpClient.post(`${this.identityApiUri}/${s.adminPasswordRestore}`,{email:decodeURIComponent(r),password:e,token:a})}askForgottenPasswordEmail(e,r){let a={};return r&&(a=new n.Lr({"X-CAPTCHA-VALUE":r})),this.httpClient.post(`${this.identityApiUri}/${s.passwordForgot}`,{email:decodeURIComponent(e)},{headers:a})}askForgottenPasswordAdminEmail(e){return this.httpClient.post(`${this.identityApiUri}/${s.adminPasswordForgot}`,{email:decodeURIComponent(e)})}confirmChangeEmail(e){return this.httpClient.post(`${this.identityApiUri}/${s.confirmChangeEmail}`,{token:e})}disableTwoFaConfirm(e){return this.httpClient.post(`${this.identityApiUri}/${s.twoFaDisableConfirm}`,{token:e})}
3confirmAccountDeletion(e){return this.httpClient.post(`${this.identityApiUri}/${s.deleteRequestConfirm}`,{verification_token:e})}resetChangeEmail(e){const r=new n.Lr({Authorization:`Bearer ${e??""}`});return this.httpClient.get(`${this.identityApiUri}/${s.resetChangeEmail}`,{headers:r})}static#t=i=()=>(this.\u0275fac=function(r){return new(r||_)},this.\u0275prov=l.jDH({token:_,factory:_.\u0275fac}))}return i(),_})()}}]); 4//# sourceMappingURL=516.f2f599e009b39c79.js.map 5//# debugId=2f2dfc6b-fb92-54bb-8a35-0b03ec3caa73
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.