PageSourceSearch

https://my.xnce.com/2225.22b7a63dc269dc50.js

js xnce.com collected 2026-10-07 23:00:20 UTC 7,126 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkb2core=self.webpackChunkb2core||[]).push([[2225],{62225(O,C,i){i.d(C,{TwoFaSmsEnableComponent:()=>I});var s=i(65145),w=i(15954),l=i(8785),d=i(65668),b=i(61009),S=i(6458),p=i(86970),t=i(88463),c=i(32348),m=i(6512),x=i(47421),F=i(40115),y=i(9921),P=i(72364),h=i(15980),u=function(o){return o.AddPhone="2fa_sms_phone_create",o.CodeFromSms="phone",o}(u||{});const T=o=>({error:o}),_=()=>["../"];function v(o,g){if(1&o){const e=t.RV6();t.j41(0,"h2",0),t.EFF(1),t.nI1(2,"translate"),t.k0s(),t.j41(3,"p",1),t.EFF(4),t.nI1(5,"translate"),t.k0s(),t.nrm(6,"ds-phone-input",2),t.j41(7,"div",3),t.nrm(8,"ds-button",4),t.j41(9,"ds-button",5),t.nI1(10,"async"),t.bIt("click",function(){s.eBV(e);const r=t.XpG();return s.Njj(r.emitNextStep())}),t.k0s()()}if(2&o){const e=g,n=t.XpG();t.R7$(),t.SpI(" ",t.bMT(2,8,"%%B2Core.FeatureSecurity.Pages.TwoFaSmsEnable.Wizards.AddPhone.Title%%")," "),t.R7$(3),t.SpI(" ",t.bMT(5,10,"%%B2Core.FeatureSecurity.Pages.TwoFaSmsEnable.Wizards.AddPhone.Hint%%")," "),t.R7$(2),t.Y8G("error",e.error??"")("formControl",n.phoneControl)("hasSign",!0),t.R7$(2),t.Y8G("routerPath",t.lJ4(14,_)),t.R7$(),t.Y8G("isDisabled",n.phoneControl.invalid||!!e.error)("isLoading",t.bMT(10,12,n.isLoading$))}}let M=(()=>{class o extends d.oo{constructor(e){super(),this.twoFaApiService=e,this.uuid="",this.nextStep=new t.bkB,this.phoneControl=new c.MJ(null,[c.k0.required]),this.error$=(0,P.h)(this.errorFormData$.pipe((0,h.T)(n=>n?.message)),this.phoneControl.valueChanges.pipe((0,h.T)(()=>null)))}emitNextStep(){this.isLoading$.next(!0);const e=this.phoneControl.value;this.twoFaApiService.confirmTwoFaWizard({uuid:this.uuid,phone:e}).pipe(this.processWizardError(),this.destroyer()).subscribe(n=>{this.isLoading$.next(!1),n instanceof m.tr?this.setErrorData(n.data):this.nextStep.emit({...n,workflow:u.CodeFromSms,data:{...n.data,phoneNumber:e}})})}static{this.\u0275fac=function(n){return new(n||o)(t.rXU(l.rc))}}static{this.\u0275cmp=t.VBU({type:o,selectors:[["feature-security-add-phone"]],inputs:{uuid:"uuid"},outputs:{nextStep:"nextStep"},features:[t.Vt3],decls:2,vars:5,consts:[[1,"title"],[1,"sub-title"],[3,"error","formControl","hasSign"],[1,"button-wrap"],["appearance","secondary","data-testId","cancel-button","labelTranslateKey","%%B2Core.FeatureSecurity.Pages.TwoFaSmsEnable.Wizards.AddPhone.CancelButton%%",3,"routerPath"],["data-testId","continue-button","labelTranslateKey","%%B2Core.FeatureSecurity.Pages.TwoFaSmsEnable.Wizards.AddPhone.ContinueButton%%",3,"click","isDisabled","isLoading"]],template:function(n,r){if(1&n&&(t.nVh(0,v,11,15),t.nI1(1,"async")),2&n){let a;t.vxM((a=t.eq3(3,T,t.bMT(1,1,r.error$)))?0:-1,a)}},dependencies:[c.X1,c.BC,c.l_,x.D,F.n,p.Jj,y.D],styles:[".stepper[_ngcontent-%COMP%]{max-width:640px;margin-bottom:42px}.title[_ngcontent-%COMP%], .sub-title[_ngcontent-%COMP%]{margin-bottom:24px}.sub-title[_ngcontent-%COMP%]{color:var(--text-secondary)}.button-wrap[_ngcontent-%COMP%]{display:flex;align-items:center;margin-top:40px;gap:16px}@media (max-width: 480px){.button-wrap[_ngcontent-%COMP%]   ds-button[_ngcontent-%COMP%]{flex:1;width:100%}}[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return o})();var f=i(76889);const z=o=>({phoneNumber:o});let W=(()=>{class o extends d.oo{get isCodeWrong(){return!!this.errorFormData}get wrongCodeMessage(){return this.errorFormData?.details?.[0]?.issue??""}constructor(e){super(),this.twoFaApiService=e,this.confirmTypeEnum=f.MR,this.uuid="",this.configData=null,this.nextStep=new t.bkB}sendCode(e){this.isLoading$.next(!0),this.twoFaApiService.confirmTwoFaWizard({code:e,uuid:this.uuid,phone:this.configData?.phoneNumber,action:"code"}).pipe(this.processWizardError(),this.destroyer()).subscribe(n=>{n instanceof m.tr?this.setErrorData(n.data):this.router.navigate(["security"])})}goBack(){this.resetInit.emit()}static{this.\u0275fac=function(n){return new(n||o)(t.rXU(l.rc))}}static{this.\u0275cmp=t.VBU({type:o,selectors:[["feature-security-code-from-sms"]],inputs:{uuid:"uuid",configData:"configData"},outputs:{nextStep:"nextStep"},features:[t.Vt3],decls:2,vars:11,consts:[["hintTranslateKey","%%B2Core.FeatureSecurity.Pages.TwoFaSmsEnable.Wizards.CodeFromSms.Hint [phoneNumber]%%","titleTranslateKey","%%B2Core.FeatureSecurity.Pages.TwoFaSmsEnable.Wizards.CodeFromSms.Title%%",3,"canceled","codeSubmitted","confirmType","errorData","hintInterpolateParams","isCenteredView","isLoading","isShowCancelButton","uuid"]],template:function(n,r){1&n&&(t.j41(0,"ui-kit-code-confirm",0),t.nI1(1,"async"),t.bIt("canceled",function(){return r.goBack()})("codeSubmitted",function(D){return r.sendCode(D)}),t.k0s()),2&n&&t.Y8G("confirmType",r.confirmTypeEnum.Phone)("errorData",r.errorFormData)("hintInterpolateParams",t.eq3(9,z,(null==r.configData?null:r.configData.phoneNumber)??""))("isCenteredView",!1)("isLoading",t.bMT(1,7,r.isLoading$))("isShowCancelButton",!0)("uuid",r.uuid)},dependencies:[f.xp,p.Jj],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return o}
1)();const k=new Map([[u.AddPhone,new d.HZ(M)],[u.CodeFromSms,new d.HZ(W)]]);function A(o,g){if(1&o){const e=t.RV6();t.nrm(0,"ds-step-indicator",0),t.j41(1,"feature-wizards",1),t.bIt("currentWorkflow",function(r){s.eBV(e);const a=t.XpG();return s.Njj(a.setCurrentWorkflow(r))})("resetInit",function(){s.eBV(e);const r=t.XpG();return s.Njj(r.reset())}),t.k0s()}if(2&o){const e=t.XpG();t.Y8G("current",e.currentWorkflowStep)("total",e.wizardsMap.size),t.R7$(),t.Y8G("wizardsConfig",e.wizardsConfig)("wizardsList",e.wizardsMap)}}let I=(()=>{class o{constructor(){this.destroyer=(0,S.M)(),this.twoFaApiService=(0,s.WQX)(l.rc),this.cdr=(0,s.WQX)(w.gRc),this.wizardsMap=k,this.wizardsConfig=null,this.currentWorkflow=null}get currentWorkflowStep(){return Array.from(this.wizardsMap.keys()).findIndex(r=>r===this.currentWorkflow)+1}ngOnInit(){this.getAddPhoneWizard()}reset(){this.getAddPhoneWizard()}setCurrentWorkflow(e){this.currentWorkflow=e}getAddPhoneWizard(){this.twoFaApiService.enableTwoFaItem(l.nu.Sms).pipe(this.destroyer()).subscribe(e=>{this.wizardsConfig=e,this.cdr.markForCheck()})}static{this.\u0275fac=function(n){return new(n||o)}}static{this.\u0275cmp=t.VBU({type:o,selectors:[["feature-security-two-fa-sms-enable"]],decls:1,vars:1,consts:[[1,"stepper",3,"current","total"],[3,"currentWorkflow","resetInit","wizardsConfig","wizardsList"]],template:function(n,r){1&n&&t.nVh(0,A,2,4),2&n&&t.vxM(r.wizardsConfig?0:-1)},dependencies:[b.O,d.e5],styles:[".stepper[_ngcontent-%COMP%]{max-width:640px;margin-bottom:42px}.title[_ngcontent-%COMP%], .sub-title[_ngcontent-%COMP%]{margin-bottom:24px}.sub-title[_ngcontent-%COMP%]{color:var(--text-secondary)}.button-wrap[_ngcontent-%COMP%]{display:flex;align-items:center;margin-top:40px;gap:16px}@media (max-width: 480px){.button-wrap[_ngcontent-%COMP%]   ds-button[_ngcontent-%COMP%]{flex:1;width:100%}}[_nghost-%COMP%]{display:block;padding-bottom:40px}@media (max-width: 960px){[_nghost-%COMP%]{padding-bottom:24px}}@media (max-width: 640px){[_nghost-%COMP%]{padding-bottom:16px}}feature-wizards[_ngcontent-%COMP%]{max-width:640px}"],changeDetection:0})}}return 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.