1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e.SENTRY_RELEASE={id:"btse@5f19a485"};var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="f5549c84-4112-4ddd-9ad4-5e694b3ab49c",e._sentryDebugIdIdentifier="sentry-dbid-f5549c84-4112-4ddd-9ad4-5e694b3ab49c")}catch(o){}}();import{aW as e,ar as t,ak as o,a9 as i,am as s,aa as a,aK as r,af as n,a8 as l,ae as c,ad as d,aU as u,ag as p,al as g,bE as m,aX as h,aL as E,bk as S,aM as _,ab as f,aN as y,ac as b,a7 as w,r as C,a6 as v,aF as T,an as A,as as F}from"./PmfENnFs.js";import{io as M,aN as I,aO as $,q5 as O,a7 as B,qn as G,iq as N,iz as k,al as L,j as x,aL as P,a0 as U,l as D,hk as R,aA as H,O as V,b7 as K,aK as W,t as q,qo as j,g as Q,c_ as J,h as z,aj as Y,qp as X,o as Z,h5 as ee,fW as te,kv as oe,p as ie}from"./BhKTELSe.js";import{A as se}from"./BWQSGX0w.js";import{_ as ae}from"./CRPzHAml.js";import"./DzIKp7QL.js";import"./ByGuns7q.js";import"./chunk-lottie.zeumoeGY.js";import"./CXr9G-CP.js";import"./chunk-web3.7EmC4Up1.js";import"./chunk-web3-onboard-utils.D-9VMiP0.js";import"./chunk-sentry.q36DUBwH.js";const re={name:"TwoFactorVerifyEmail",components:{Panel:O,FormField:$,FormFieldInput:I,EmailVerification:M,ActionNotification:se},props:{title:{type:String,default:""}},emits:["update:pageName"],data:()=>({step:1,IconAirplaneMobile:k,form:{email:"",otpCode:""},isPasswordJumpingError:!1,isEmailSubmitError:!1,isSending:!1,emailErrorMsg:"",sendEmailType:N,isShowActionNotification:!1}),computed:{isStep1(){return 1===this.step},msgTitle(){return this.isStep1?this.$t("account.verification.email.enter"):this.$t("verifyEmail.title")},msgDescription(){return this.isStep1?this.$t("account.verification.email.description"):""}},methods:{...e(["updateAccountInfo"]),async handleSubmit(){this.isSending=!0;try{await B.createUserEmail(this.form.otpCode),await this.updateAccountInfo(),this.isShowActionNotification=!0,this.$emit("update:pageName",G.BIND_GOOGLE_OTP)}finally{this.isSending=!1}}}},ne={class:"verify-email"},le={class:"verify-email__img-content"},ce=["src"],de={class:"verify-email__msg-content mt-24"},ue={class:"verify-email__msg-title"},pe={class:"verify-email__msg-description"},ge={key:0,class:"mt-24"},me={key:1,class:"mt-24"},he={class:"mt-24 button-group"};const Ee=ae(re,[["render",function(e,u,p,g,m,h){const E=t("FormFieldInput"),S=t("FormField"),_=t("EmailVerification"),f=t("BrandButton"),y=t("ValidationForm"),b=t("ActionNotification"),w=t("Panel");return i(),o(w,{class:"two-factor-bind",headerText:e.$t("account.security.twoFactor.bind.header")},{default:s((()=>[a("div",ne,[a("div",le,[a("img",{class:"verify-email__img",src:m.IconAirplaneMobile},null,8,ce)]),a("div",de,[a("p",ue,n(h.msgTitle),1),a("p",pe,n(h.msgDescription),1)]),r(y,null,{default:s((({meta:t})=>[h.isStep1?(i(),l("div",ge,[r(S,{title:e.$t("t.email")},{default:s((()=>[r(E,{value:m.form.email,"onUpdate:value":u[0]||(u[0]=e=>m.form.email=e),valueModifiers:{trim:!0},isJumpingError:m.isPasswordJumpingError,"onUpdate:isJumpingError":u[1]||(u[1]=e=>m.isPasswordJumpingError=e),name:"email",rules:"required|email",maxlength:"128",setFocus:"",clearable:""},null,8,["value","isJumpingError"])])),_:1},8,["title"])])):(i(),l("div",me,[r(_,{totpCode:m.form.otpCode,"onUpdate:totpCode":u[2]||(u[2]=e=>m.form.otpCode=e),isSubmitError:m.isEmailSubmitError,"onUpdate:isSubmitError":u[3]||(u[3]=e=>m.isEmailSubmitError=e),errorMsg:m.emailErrorMsg,"onUpdate:errorMsg":u[4]||(u[4]=e=>m.emailErrorMsg=e),autoSendEmail:"",sendType:m.sendEmailType.CREATE_EMAIL,sendToEmail:m.form.email,isShowTitle:!1},null,8,["totpCode","isSubmitError","errorMsg","sendType","sendToEmail"])])),a("div",he,[h.isStep1?(i(),o(f,{key:0,class:"w-100",size:"biggest",disabled:!t.valid,onClick:u[5]||(u[5]=e=>m.step=2)},{default:s((()=>[c(n(e.$t("t.next")),1)])),_:2},1032,["disabled"])):(i(),l(d,{key:1},[r(f,{class:"button",type:"cancel",disabled:m.isSending,onClick:u[6]||(u[6]=e=>m.step=1)},{default:s((()=>[c(n(e.$t("t.previous")),1)])),_:1},8,["disabled"]),r(f,{class:"button",disabled:!t.valid,loading:m.isSending,onClick:h.handleSubmit},{default:s((()=>[c(n(e.$t("t.verify")),1)])),_:2},1032,["disabled","loading","onClick"])],64))])])),_:1})]),r(b,{isShow:m.isShowActionNotification,"onUpdate:isShow":u[7]||
1(u[7]=e=>m.isShowActionNotification=e),text:e.$t("account.verification.email.verified")},null,8,["isShow","text"])])),_:1},8,["headerText"])}],["__scopeId","data-v-e53426d2"]]),Se={class:"messages-block"},_e=["innerHTML"];const fe=ae({name:"MessagesBlock",components:{IconInfo2:L},props:{list:{type:Array,default:()=>[]}}},[["render",function(e,o,s,n,c,g){const m=t("IconInfo2");return i(),l("div",Se,[r(m,{class:"messages__warning-icon"}),a("ul",{class:p(["messages__list",{"one-message":1===s.list.length}])},[(i(!0),l(d,null,u(s.list,((t,o)=>(i(),l("li",{key:"message_"+o,innerHTML:e.$t(t)},null,8,_e)))),128))],2)])}],["__scopeId","data-v-00cdf081"]]),ye=["fill"],be=["fill"],we=["fill"],Ce=["fill"],ve=["id"],Te=["id"],Ae=["id"],Fe=["id"];const Me=ae({name:"IconGoogle",components:{Icon:x},data:()=>({id:P()})},[["render",function(e,r,n,l,c,d){const u=t("Icon");return i(),o(u,{"aria-label":"Google Icon 2",width:"16",height:"16"},{default:s((()=>[a("path",{fill:`url(#paint0_linear__icon-google${c.id})`,"fill-rule":"evenodd",d:"M2.98 1.678c-.144.153-.23.391-.23.7v11.005c0 .308.086.546.23.698l.037.037 6.165-6.165v-.146L3.017 1.642l-.037.036z","clip-rule":"evenodd"},null,8,ye),a("path",{fill:`url(#paint1_linear__icon-google${c.id})`,"fill-rule":"evenodd",d:"M9.182 7.807v.145l2.055 2.056.047-.026L13.719 8.6c.695-.396.695-1.043 0-1.438l-2.435-1.383-.046-.027-2.056 2.056z","clip-rule":"evenodd"},null,8,be),a("path",{fill:`url(#paint2_linear__icon-google${c.id})`,"fill-rule":"evenodd",d:"M2.98 14.082c.229.242.608.273 1.034.03l7.27-4.13L9.181 7.88 2.98 14.082z","clip-rule":"evenodd"},null,8,we),a("path",{fill:`url(#paint3_linear__icon-google${c.id})`,"fill-rule":"evenodd",d:"M2.98 1.678L9.182 7.88l2.101-2.102-7.269-4.13c-.2-.114-.39-.168-.558-.168-.19 0-.354.07-.476.198z","clip-rule":"evenodd"},null,8,Ce),a("defs",null,[a("linearGradient",{id:`paint0_linear__icon-google${c.id}`,x1:"5.966",x2:"5.966",y1:"1.853",y2:"14.118",gradientUnits:"userSpaceOnUse"},r[0]||(r[0]=[a("stop",{"stop-color":"#00C8FF"},null,-1),a("stop",{offset:"1","stop-color":"#00E2FF"},null,-1)]),8,ve),a("linearGradient",{id:`paint1_linear__icon-google${c.id}`,x1:"10.109",x2:"14.24",y1:"7.88",y2:"7.88",gradientUnits:"userSpaceOnUse"},r[1]||(r[1]=[a("stop",{"stop-color":"#FB0"},null,-1),a("stop",{offset:"1","stop-color":"#FFDB00"},null,-1)]),8,Te),a("linearGradient",{id:`paint2_linear__icon-google${c.id}`,x1:"10.141",x2:"1.115",y1:"9.858",y2:"18.884",gradientUnits:"userSpaceOnUse"},r[2]||(r[2]=[a("stop",{"stop-color":"#FF3A44"},null,-1),a("stop",{offset:"1","stop-color":"#C31162"},null,-1)]),8,Ae),a("linearGradient",{id:`paint3_linear__icon-google${c.id}`,x1:"4.445",x2:"9.057",y1:"2.779",y2:"6.934",gradientUnits:"userSpaceOnUse"},r[3]||(r[3]=[a("stop",{"stop-color":"#11D774"},null,-1),a("stop",{offset:"1","stop-color":"#00F076"},null,-1)]),8,Fe)])])),_:1})}]]),Ie="https://play.google.com/store/apps/details?id=com.google.android.apps.authenticator2",$e="https://apps.apple.com/tw/app/google-authenticator/id388497605",Oe={class:"download-app__body"},Be={class:"body__title"},Ge=["onClick"],Ne={class:"item__text"};const ke=["account.security.twoFactor.bind.messages"],Le={name:"TwoFactorBind",components:{IconNotificationHollow:W,Panel:O,MessagesBlock:fe,N
1otification:K,QrcodeVue:S,DownloadApp:ae({name:"DownloadApp",components:{BrandDialog:D,IconArrowRight:U,IconGoogle:Me},emits:["update:isShow"],computed:{apps:()=>[{name:"Google Play",link:Ie,icon:Me},{name:"App Store",link:$e,icon:R}]},methods:{openLink(e){window.open(e,"_blank","noopener")},closed(){this.$emit("update:isShow",!1)}}},[["render",function(e,c,p,m,h,E){const S=t("IconArrowRight"),_=t("BrandDialog");return i(),o(_,{class:"download-app",width:e.isMobile?"90%":"360px",idPrefix:"download_app_dialog",isBrandNewStyle:"",onClosed:E.closed},{body:s((()=>[a("div",Oe,[a("p",Be,n(e.$t("t.downloadVia")),1),(i(!0),l(d,null,u(E.apps,(e=>(i(),l("div",{key:e.name,class:"body__item-wrap"},[a("div",{class:"body__item",onClick:t=>E.openLink(e.link)},[(i(),o(g(e.icon),{class:"item__logo"})),a("p",Ne,n(e.name),1),r(S,{class:"item__arrow-icon"})],8,Ge)])))),128))])])),_:1},8,["width","onClosed"])}],["__scopeId","data-v-ba5231d9"]]),IconCopy:V,IconNotificationCheck:H},emits:["update:pageName"],data:()=>({isLoading:!0,isShowDownloadApp:!1}),computed:{...E("security",["apiTotpKey","apiQrcodeImg","hadBeenBoundG2FA"]),...h(["isSubAccount","isSubAccountByLogin"]),topMessages:()=>ke},created(){this.fetch2FACode()},methods:{...m("security",["setApiTotpKey","setApiQrcodeImg","setHadBeenBoundG2FA"]),api:()=>B.generate2faCode(),fetch2FACode(){this.apiTotpKey?this.isLoading=!1:this.api().then((({totpKey:e,qecode:t,hadBeenBoundG2FA:o=!1})=>{this.setApiTotpKey(e),this.setApiQrcodeImg(t),this.setHadBeenBoundG2FA(o),this.isLoading=!1}))},goNextPage(){this.$emit("update:pageName",G.BIND_GOOGLE_OTP_STEP_2)},showGoogleAppDownload(){this.isShowDownloadApp=!0},onCopy(){this.$refs.copyNotification.showNotification()}}},xe={key:0,class:"normal-sub-account-warning"},Pe={class:"warning-title"},Ue={class:"warning-description"},De={class:"two-factor-bind__scan-content"},Re={class:"scan-content__title"},He={class:"scan-content__totp-key-wrap"},Ve={class:"scan-content__text scan-content__text-2"};const Ke=ae(Le,[["render",function(e,u,p,g,m,h){const E=t("IconNotificationHollow"),S=t("MessagesBlock"),b=t("i18n-t"),w=t("QrcodeVue"),C=t("IconCopy"),v=t("IconNotificationCheck"),T=t("Notification"),A=t("BrandButton"),F=t("DownloadApp"),M=t("Panel"),I=_("clipboard");return i(),o(M,{class:"two-factor-bind",headerText:e.$t("account.security.twoFactor.bind.header"),isLoading:m.isLoading},{default:s((()=>[e.isSubAccount&&!e.isSubAccountByLogin?(i(),l("div",xe,[r(E,{class:"warning-icon"}),a("div",Pe,n(e.$t("t.warning")),1),a("div",Ue,n(e.$t("account.security.twoFactor.normalSubAccount.description")),1)])):(i(),l(d,{key:1},[e.hadBeenBoundG2FA?(i(),o(S,{key:0,class:"two-factor-bind__messages",list:h.topMessages},null,8,["list"])):f("",!0),a("div",De,[a("p",Re,n(e.$t("account.security.twoFactor.bind.title")),1),r(b,{class:"scan-content__text",keypath:"account.security.twoFactor.bind.text"},{googleAuthenticatorApp:s((()=>[a("a",{class:"text__link",onClick:u[0]||(u[0]=(...e)=>h.showGoogleAppDownload&&h.showGoogleAppDownload(...e))},n(e.$t("account.security.twoFactor.bind.googleAuthenticatorApp")),1)])),_:1}),r(w,{value:e.apiQrcodeImg,size:156},null,8,["value"]),a("div",He,[a("p",null,n(e.apiTotpKey),1),y((i(),l("div",{class:"totp-key-icon-wrap",onClick:u[1]||(u[1]=(...e)=>h.onCopy&&h.onCopy(...e))},[r(C,{class:"totp-key-icon"})])),[[I,e.apiTotpKey,"copy"]]),r(T,{ref:"copyNotification",class:"totp-key-wrap__notification",text:`${e.$t("msg.copied")}!`},{prefix:s((()=>[r(v,{class:"notification-icon"})])),_:1},8,["text"])]),a("p",Ve,n(e.$t("account.security.twoFactor.bind.text.2")),1),r(A,{class:"scan-content__next-button",onClick:h.goNextPage},{default:s((()=>[c(n(e.$t("t.next")),1)])),_:1},8,["onClick"])]),m.isShowDownloadApp?(i(),o(F,{key:1,isShow:m.isShowDownloadApp,"onUpdate:isShow":u[2]||(u[2]=e=>m.isShowDownloadApp=e)},null,8,["isShow"])):f("",!0)],64))])),_:1},8,["headerText","isLoading"])}],["__scopeId","data-v-81c1db89"]]),We={name:"GoogleAuthenticator",components:{BrandInput:Q,TwoFactorHelpDialog:j},props:{totpCode:{type:String,required:!0},isSubmitError:{type:Boolean,required:!0},errorMsg:{type:String,required:!0},isShowNeedHelp:{type:Boolean,default:!1}},emits:["update:totpCode","update:errorMsg","update:isSubmitError"],data(){return{code:this.totpCode,isShowTwoFactorHelpDialog:!1}},methods:{e2eID:q,onNeedHelp(){this.isShowTwoFactorHelpDialog=!0},onInputChange(e){this.$emit("update:totpCode",e),this.$emit("update:errorMsg",""),this.$emit("update:isSubmitError",!1)},errorMessage(e){const t=this.isSubmitError?this.$t(this.errorMsg):e;return this.isSubmitError||this.$emit("update:errorMsg",e||""),t}}},qe={class:"google-authenticator"},je={class:"google-authenticator__title"},Qe={class:"info-wrap"},Je={class:"google-authenticator__text"},ze={class:"error-msg"};const Ye=ae(We,[["render",function(e,c,d,u,p,g){const m=t("BrandInput"),h=t("ValidationField"),E=t("TwoFactorHelpDialog");return i(),l("div",qe,[a("p",je,n(e.$t("t.2FactorAuthentication")),1),a("div",null,[a("div",Qe,[a("p",Je,n(e.$t("t.googleAuthenticatorCode")),1),d.isShowNeedHelp?(i(),l("span",{key:0,class:"info-link",onClick:c[0]||(c[0]=(...e)=>g.onNeedHelp&&g.onNeedHelp(...e))},n(e.$t("t.needHelp")),1)):f("",!0)])]),r(h,{modelValue:p.code,"onUpdate:modelValue":c[2]||(c[2]=e=>p.code=e),name:"googleOtp",rules:"required|otpValidate"},{default:s((({meta:e,errors:t})=>[r(m,{id:g.e2eID("input_2facode"),value:p.code,"onUpdate:value":c[1]||(c[1]=e=>p.code=e),class:"google-authenticator__code-input",autocomplete:"off",inputmode:"numeric",isError:e.validated&&(!e.valid||d.isSubmitError),isBrandNewStyle:"",hasFocusStyle:"",onInput:g.onInputChange},null,8,["id","value","isError","onInput"]),a("span",ze,n(g.errorMessage(t[0])
1),1)])),_:1},8,["modelValue"]),p.isShowTwoFactorHelpDialog?(i(),o(E,{key:0,isShow:p.isShowTwoFactorHelpDialog,"onUpdate:isShow":c[3]||(c[3]=e=>p.isShowTwoFactorHelpDialog=e)},null,8,["isShow"])):f("",!0)])}],["__scopeId","data-v-4cec7f49"]]),Xe={name:"TwoFABindSuccess",components:{BrandDialog:D,IconPopSuccess2:J},computed:{...E(["lang"]),...E("security",["hadBeenBoundG2FA"])},methods:{...e(["logout"]),goLogin(){var e,t;this.logout();const o=(null==(e=history.state)?void 0:e.redirectName)?{name:history.state.redirectName}:{redirect:this.$router.resolve({name:z.SECURITY,params:{lang:this.lang}}).href};this.$router.push({name:"login",query:o,params:{lang:this.lang},state:{stayAlive:Boolean(null==(t=history.state)?void 0:t.redirectName)}})}}},Ze={class:"twoFA-bind-success-body"},et={class:"body-title"},tt={class:"body-text"},ot={key:0},it={key:1};const st=ae(Xe,[["render",function(e,d,u,p,g,m){const h=t("IconPopSuccess2"),E=t("BrandButton"),S=t("BrandDialog");return i(),o(S,{class:"twoFA-bind-success",width:e.isMobile?"90%":"560px",isBrandNewStyle:"",showClose:!1,idPrefix:"2fa_bind_success_dialog"},{body:s((()=>[a("div",Ze,[r(h),a("p",et,n(e.$t("t.successfullyEnabled")),1),a("div",tt,[e.hadBeenBoundG2FA?(i(),l("p",ot,n(e.$t("account.security.twoFactor.bind.success.manyTimes.text")),1)):(i(),l("p",it,n(e.$t("account.security.twoFactor.bind.success.firstTime.text")),1))]),r(E,{class:"body-button",onClick:m.goLogin},{default:s((()=>[c(n(e.$t("msg.login")),1)])),_:1},8,["onClick"])])])),_:1},8,["width"])}],["__scopeId","data-v-ef53edf7"]]),at={name:"TwoFactorBindStep2",components:{Panel:O,EmailVerification:M,GoogleAuthenticator:Ye,TwoFABindSuccess:st},emits:["update:pageName"],data:()=>({sendEmailType:N,isSuccess:!1,isEmailSubmitError:!1,emailErrorMsg:"",isGoogleSubmitError:!1,googleTotpCode:"",googleErrorMsg:"",isSendAPILoading:!1,otpCode:""}),computed:{...E(["lang","accountInfo"]),...E("security",["apiTotpKey"]),supportUrl(){return Z(this.lang,"TWO_FACTOR_AUTHENTICATION")},enableBtnDisabled(){return!this.googleTotpCode||!this.otpCode||!(!this.emailErrorMsg&&!this.googleErrorMsg)}},methods:{...m("security",["showNotificationMessage"]),goBackPage(){this.$emit("update:pageName",G.BIND_GOOGLE_OTP)},onEnable(){this.isSendAPILoading=!0;(0,B.bindTwoFactorByEmailOtp)(this.googleTotpCode,this.apiTotpKey,this.otpCode).then((()=>{this.isSuccess=!0}),(e=>{const t=(null==e?void 0:e.code)||e;t===Y.GOOGLE_AUTHENTICATOR_CODE_WRONG&&(this.googleTotpCode="",this.isGoogleSubmitError=!0,this.googleErrorMsg=X.CODE_WRONG),t===Y.EMAIL_OTP_ERROR&&(this.otpCode="",this.isEmailSubmitError=!0,this.emailErrorMsg=X.CODE_WRONG),t===Y.SMS_OTP_ERROR&&(this.otpCode="")})).finally((()=>{this.isSendAPILoading=!1}))},handleSendCodeSuccessfully(){this.showNotificationMessage(`${this.$t("account.account.update-pass.verificationSent")}.`)},handleSendCodeFail(){this.showNotificationMessage(this.$t("trade.marginCall.errorText"))}}},rt={class:"step-2__content"},nt={class:"step-2__title"},lt={class:"step-2__text"},ct=["href"],dt={class:"step-2__button-group"};const ut=ae(at,[["render",function(e,d,u,p,g,m){const h=t("EmailVerification"),E=t("GoogleAuthenticator"),S=t("BrandButton"),_=t("TwoFABindSuccess"),y=t("Panel");return i(),o(y,{class:"two-factor-bind-step-2",headerText:e.$t("account.security.twoFactor.bind.header.v2")},{default:s((()=>[a("div",rt,[a("p",nt,n(e.$t("account.security.twoFactor.bind.step2.title")),1),a("p",lt,n(e.$t("account.security.twoFactor.bind.step2.text")),1),r(h,{totpCode:g.otpCode,"onUpdate:totpCode":d[0]||(d[0]=e=>g.otpCode=e),isSubmitError:g.isEmailSubmitError,"onUpdate:isSubmitError":d[1]||(d[1]=e=>g.isEmailSubmitError=e),errorMsg:g.emailErrorMsg,"onUpdate:errorMsg":d[2]||(d[2]=e=>g.emailErrorMsg=e),class:"step-2__email-verification",sendType:g.sendEmailType.BIND_GOOGLE_2FA,autoSendEmail:"",onHandleSendCodeSuccessfully:m.handleSendCodeSuccessfully,onHandleSendCodeFail:m.handleSendCodeFail},null,8,["totpCode","isSubmitError","errorMsg","sendType","onHandleSendCodeSuccessfully","onHandleSendCodeFail"]),r(E,{totpCode:g.googleTotpCode,"onUpdate:totpCode":d[3]||(d[3]=e=>g.googleTotpCode=e),isSubmitError:g.isGoogleSubmitError,"onUpdate:isSubmitError":d[4]||(d[4]=e=>g.isGoogleSubmitError=e),errorMsg:g.googleErrorMsg,"onUpdate:errorMsg":d[5]||(d[5]=e=>g.googleErrorMsg=e),class:"step-2__google-auth"},null,8,["totpCode","isSubmitError","errorMsg"])]),m.supportUrl?(i(),l("a",{key:0,class:"step-2__support",href:m.supportUrl,target:"_blank"},n(e.$t("account.security.twoFactor.bind.step2.supportText")),9,ct)):f("",!0),a("div",dt,[r(S,{class:"button",type:"cancel",onClick:m.goBackPage},{default:s((()=>[c(n(e.$t("t.previous")),1)])),_:1},8,["onClick"]),r(S,{class:"button",disabled:m.enableBtnDisabled,loading:g.isSendAPILoading,onClick:m.onEnable},{default:s((()=>[c(n(e.$t("t.enable")),1)])),_:1},8,["disabled","loading","onClick"])]),g.isSuccess?(i(),o(_,{key:1})):f("",!0)])),_:1},8,["headerText"])}],["__scopeId","data-v-1cb50bdf"]]),pt=["account.security.twoFactor.remove.message.1","account.security.twoFactor.remove.message.2"],gt={name:"TwoFactorRemove",components:{Panel:O,EmailVerification:M,GoogleAuthenticator:Ye,MessagesBlock:fe},data:()=>({sendEmailType:N,isSuccess:!1,isEmailSubmitError:!1,emailErrorMsg:"",isGoogleSubmitError:!1,googleTotpCode:"",googleErrorMsg:"",isSe
1ndAPILoading:!1,otpCode:""}),computed:{...h(["userName"]),...E(["lang","accountInfo"]),topMessages:()=>pt,supportUrl(){return Z(this.lang,"TWO_FACTOR_AUTHENTICATION")},enableBtnDisabled(){return!this.googleTotpCode||!this.otpCode||!(!this.emailErrorMsg&&!this.googleErrorMsg)}},methods:{...m("security",["showNotificationMessage"]),...e(["getKycStatus"]),completedRemove2FA(){this.showNotificationMessage(this.$t("account.security.twoFactor.googleAuthenticatorRemoved")),this.$router.push({name:z.SECURITY,params:{lang:this.lang}})},onRemove(){this.isSendAPILoading=!0;(0,B.unbindTwoFactorByEmailOtp)(this.googleTotpCode,this.otpCode).then((async()=>{this.isSuccess=!0,window.localStorage.removeItem(`${ee}.${te(this.userName)}`),await this.getKycStatus(),this.completedRemove2FA()}),(e=>{const t=(null==e?void 0:e.code)||e;t===Y.GOOGLE_AUTHENTICATOR_CODE_WRONG&&(this.googleTotpCode="",this.isGoogleSubmitError=!0,this.googleErrorMsg=X.CODE_WRONG),t===Y.EMAIL_OTP_ERROR&&(this.otpCode="",this.isEmailSubmitError=!0,this.emailErrorMsg=X.CODE_WRONG),t===Y.SMS_OTP_ERROR&&(this.otpCode="")})).finally((()=>{this.isSendAPILoading=!1}))},handleSendCodeSuccessfully(){this.showNotificationMessage(`${this.$t("account.account.update-pass.verificationSent")}.`)},handleSendCodeFail(){this.showNotificationMessage(this.$t("trade.marginCall.errorText"))}}},mt={class:"two-factor-remove__content"},ht={class:"two-factor-remove__title"},Et={class:"two-factor-remove__text"},St={key:0,class:"two-factor-remove__support-wrap"},_t=["href"];const ft=ae(gt,[["render",function(e,d,u,p,g,m){const h=t("MessagesBlock"),E=t("EmailVerification"),S=t("GoogleAuthenticator"),_=t("BrandButton"),y=t("Panel");return i(),o(y,{class:"two-factor-remove",headerText:e.$t("account.security.twoFactor.remove.header")},{default:s((()=>[r(h,{class:"two-factor-remove__messages",list:m.topMessages},null,8,["list"]),a("div",mt,[a("p",ht,n(e.$t("account.security.twoFactor.remove.title")),1),a("p",Et,n(e.$t("account.security.twoFactor.remove.text")),1),r(E,{totpCode:g.otpCode,"onUpdate:totpCode":d[0]||(d[0]=e=>g.otpCode=e),isSubmitError:g.isEmailSubmitError,"onUpdate:isSubmitError":d[1]||(d[1]=e=>g.isEmailSubmitError=e),errorMsg:g.emailErrorMsg,"onUpdate:errorMsg":d[2]||(d[2]=e=>g.emailErrorMsg=e),class:"two-factor-remove__email-verification",sendType:g.sendEmailType.UNBIND_GOOGLE_2FA,autoSendEmail:"",onHandleSendCodeSuccessfully:m.handleSendCodeSuccessfully,onHandleSendCodeFail:m.handleSendCodeFail},null,8,["totpCode","isSubmitError","errorMsg","sendType","onHandleSendCodeSuccessfully","onHandleSendCodeFail"]),r(S,{totpCode:g.googleTotpCode,"onUpdate:totpCode":d[3]||(d[3]=e=>g.googleTotpCode=e),isSubmitError:g.isGoogleSubmitError,"onUpdate:isSubmitError":d[4]||(d[4]=e=>g.isGoogleSubmitError=e),errorMsg:g.googleErrorMsg,"onUpdate:errorMsg":d[5]||(d[5]=e=>g.googleErrorMsg=e),class:"two-factor-remove__google-auth"},null,8,["totpCode","isSubmitError","errorMsg"]),m.supportUrl?(i(),l("div",St,[a("a",{class:"two-factor-remove__support",href:m.supportUrl,target:"_blank"},n(e.$t("account.security.twoFactor.bind.step2.supportText")),9,_t)])):f("",!0),r(_,{class:"two-factor-remove__button",disabled:m.enableBtnDisabled,loading:g.isSendAPILoading,onClick:m.onRemove},{default:s((()=>[c(n(e.$t("t.remove")),1)])),_:1},8,["disabled","loading","onClick"])])])),_:1},8,["headerText"])}],["__scopeId","data-v-7e85fbc0"]]),yt={class:"step-block"},bt={class:"header-wrap"},wt={class:"step-number-wrap"},Ct={class:"step-number"},vt={class:"title"},Tt={class:"content"};const At={name:"TwoFactorBindV2",components:{IconNotificationHollow:W,Panel:O,MessagesBlock:fe,StepBlock:ae({name:"StepBlock",props:{stepNumber:{type:String,required:!0}}},[["render",function(e,t,o,s,r,c){return i(),l("div",yt,[a("div",bt,[a("div",wt,[a("span",Ct,n(o.stepNumber),1)]),a("div",vt,[b(e.$slots,"title",{},void 0,!0)])]),a("div",Tt,[b(e.$slots,"content",{},void 0,!0)])])}],["__scopeId","data-v-a0721c21"]]),CopyButton:oe,IconGoogle:Me,IconApple:R,QrcodeVue:S},emits:["update:pageName"],data:()=>({isLoading:!0}),computed:{...E("security",["apiTotpKey","apiQrcodeImg","hadBeenBoundG2FA"]),...h(["isSubAccount","
1isSubAccountByLogin"])},created(){this.get2FACode()},methods:{...m("security",["setApiTotpKey","setApiQrcodeImg","setHadBeenBoundG2FA"]),async get2FACode(){if(this.apiTotpKey)this.isLoading=!1;else try{const e=await B.generate2faCode()||{},{totpKey:t,qecode:o,hadBeenBoundG2FA:i=!1}=e;this.setApiTotpKey(t),this.setApiQrcodeImg(o),this.setHadBeenBoundG2FA(i),this.isLoading=!1}catch{}},onAppStore(){window.open($e,"_blank","noopener")},onGooglePlay(){window.open(Ie,"_blank","noopener")},onNext(){this.$emit("update:pageName",G.BIND_GOOGLE_OTP_STEP_2)}}},Ft={key:0,class:"normal-sub-account-warning"},Mt={class:"warning-title"},It={class:"warning-description"},$t={class:"app-download-wrap"},Ot={class:"mt-32"},Bt={class:"copy-auth-wrap"},Gt={class:"notice"};const Nt=ae(At,[["render",function(e,u,g,m,h,E){const S=t("IconNotificationHollow"),_=t("MessagesBlock"),y=t("IconApple"),b=t("IconGoogle"),w=t("StepBlock"),C=t("QrcodeVue"),v=t("CopyButton"),T=t("BaseButton"),A=t("Panel");return i(),o(A,{class:"two-factor-bind",headerText:e.$t("account.security.twoFactor.bind.header.v2"),isLoading:h.isLoading},{default:s((()=>[e.isSubAccount&&!e.isSubAccountByLogin?(i(),l("div",Ft,[r(S,{class:"warning-icon"}),a("div",Mt,n(e.$t("t.warning")),1),a("div",It,n(e.$t("account.security.twoFactor.normalSubAccount.description")),1)])):(i(),l(d,{key:1},[e.hadBeenBoundG2FA?(i(),o(_,{key:0,class:"two-factor-bind-messages",list:["account.security.twoFactor.bind.warning"]})):f("",!0),a("div",{class:p(["two-factor-bind-content",{"mt-24":e.hadBeenBoundG2FA}])},[r(w,{stepNumber:"1"},{title:s((()=>[c(n(e.$t("account.security.twoFactor.bindStep1.step1.title")),1)])),content:s((()=>[a("div",null,n(e.$t("account.security.twoFactor.bindStep1.step1.description")),1),a("div",$t,[a("div",{class:"app-download-button",onClick:u[0]||(u[0]=(...e)=>E.onAppStore&&E.onAppStore(...e))},[r(y),c(" "+n(e.$t("t.appStore")),1)]),a("div",{class:"app-download-button",onClick:u[1]||(u[1]=(...e)=>E.onGooglePlay&&E.onGooglePlay(...e))},[r(b),c(" "+n(e.$t("t.googlePlay")),1)])])])),_:1}),r(w,{stepNumber:"2"},{title:s((()=>[c(n(e.$t("account.security.twoFactor.bindStep1.step2.title",{brandName:e.$t("brand.name")})),1)])),content:s((()=>[a("div",null,n(e.$t("account.security.twoFactor.bindStep1.step2.description",{brandName:e.$t("brand.name")})),1),r(C,{class:"qr-code",value:e.apiQrcodeImg,size:140},null,8,["value"]),a("div",Ot,n(e.$t("account.security.twoFactor.bindStep1.step2.description.2")),1),a("div",Bt,[a("p",null,n(e.apiTotpKey),1),r(v,{value:e.apiTotpKey},null,8,["value"])]),u[2]||(u[2]=a("div",{class:"divider"},null,-1)),a("p",Gt,n(e.$t("account.security.twoFactor.bindStep1.notice")),1)])),_:1})],2),r(T,{class:"primary next-button",size:"large",onClick:E.onNext},{default:s((()=>[c(n(e.$t("t.next")),1)])),_:1},8,["onClick"])],64))])),_:1},8,["headerText","isLoading"])}],["__scopeId","data-v-92c830ae"]]),kt={name:"TwoFactorBindStep2V2",components:{Panel:O,EmailVerification:M,GoogleAuthenticator:Ye,TwoFABindSuccess:st},emits:["update:pageName"],data:()=>({sendEmailType:N,isSuccess:!1,emailTotpCode:"",isEmailSubmitError:!1,emailErrorMsg:"",isGoogleSubmitError:!1,googleTotpCode:"",googleErrorMsg:"",isSendAPILoading:!1}),computed:{...E(["lang"]),...E("security",["apiTotpKey"]),pageList(){return[{text:this.$t("account.nav.security"),onClick:this.goToSecurity},{text:this.$t("account.security.twoFactor.enableGoogleAuthenticator")}]},isBtnDisabled(){return!this.googleTotpCode||!this.emailTotpCode||!(!this.emailErrorMsg&&!this.googleErrorMsg)}},methods:{...m("security",["showNotificationMessage"]),api:(e,t,o)=>B.bindTwoFactorByEmailOtp(e,t,o),goBackPage(){this.$emit("update:pageName",G.BIND_GOOGLE_OTP)},goToSecurity(){this.$router.push({name:z.SECURITY,params:{lang:this.lang}})},onEnable(){this.isSendAPILoading=!0,this.api(this.googleTotpCode,this.apiTotpKey,this.emailTotpCode).then((()=>{this.isSuccess=!0}),(e=>{const{code:t=""}=e;t===Y.GOOGLE_AUTHENTICATOR_CODE_WRONG?(this.googleTotpCode="",this.isGoogleSubmitError=!0,this.googleErrorMsg=X.CODE_WRONG):t===Y.EMAIL_OTP_ERROR&&(this.emailTotpCode="",this.isEmailSubmitError=!0,this.emailErrorMsg=X.CODE_WRONG)})).finally((()=>{this.isSendAPILoading=!1}))},handleSendCodeSuccessfully(){this.showNotificationMessage(`${this.$t("account.account.update-pass.verificationSent")}.`)},handleSendCodeFail(){this.showNotificationMessage(this.$t("trade.marginCall.errorText"))}}},Lt={class:"step-2-content"},xt={class:"step-2-title"},Pt={class:"step-2-text"},Ut={class:"step-2-button-group"};const Dt=ae(kt,[["render",function(e,l,d,u,p,g){const m=t("EmailVerification"),h=t("GoogleAuthenticator"),E=t("BrandButton"),S=t("TwoFABindSuccess"),_=t("Panel");return i(),o(_,{class:"two-factor-bind-step-2",headerText:e.$t("account.security.twoFactor.bind.header.v2"),pageList:g.pageList},{default:s((()=>[a("div",Lt,[a("p",xt,n(e.$t("account.security.twoFactor.bind.header.v2")),1),a("p",Pt,n(e.$t("account.security.twoFactor.bind.step2.text.v2")),1),r(m,{totpCode:p.emailTotpCode,"onUpdate:totpCode":l[0]||(l[0]=e=>p.emailTotpCode=e),isSubmitError:p.isEmailSubmitError,"onUpdate:isSubmitError":l[1]||(l[1]=e=>p.isEmailSubmitError=e),errorMsg:p.emailErrorMsg,"onUpdate:errorMsg":l[2]||(l[2]=e=>p.emailErrorMsg=e),class:"step-2-email-verification",sendType:p.sendEmailType.BIND_GOOGLE_2FA,isCountdown:"",autoSendEmail:"",onHandleSendCodeSuccessfully:g.handleSendCodeSuccessfully,onHandleSendCodeFail:g.handleSendCodeFail},null,8,["totpCode","isSubmitError","errorMsg","sendType","onHandleSendCodeSuccessfully","onHandleSendCodeFail"]),r(h,{totpCode:p.googleTotpCode,"onUpdate:totpCode":l[3]||(l[3]=e=>p.googleTotpCode=e),isSubmitError:p.isGoogleSubmitError,"onUpdate:isSubmitError":l[4]||(l[4]=e=>p.isGoogleSubmitError=e),errorMsg:p.googleErrorMsg,"onUpdate:errorMsg":l[5]||(l[5]=e=>p.googleErrorMsg=e),class:"step-2-google-auth",isShowNeedHelp:""},null,8,["totpCode","isSubmitError","errorMsg"])]),a("div",Ut,[r(E,{class:"button",type:"cancel",onClick:g.goBackPage},{default:s((()=>[c(n(e.$t("t.previous")),1)])),_:1},8,["onClick"]),r(E,{class:"button",disabled:g.isBtnDisabled,loading:p.isSendAPILoading,onClick:g.onEnable},{default:s((()=>[c(n(e.$t("t.enable")),1)])),_:1},8,["disabled","loading","onClick"])]),p.isSuccess?(i(),o(S,{key:0})):f("",!0)])),_:1},8,["headerText","pageList"])}],["__scopeId","data-v-a284a46c"]]),Rt=["account.security.twoFactor.remove.message.1","account.security.twoFactor.remove.message.2"],Ht={name:"TwoFactorRemoveV2",components:{Panel:O,EmailVerification:M,GoogleAuthenticator:Ye,MessagesBlock:fe},data:()=>({sendEmailType:N,isSuccess:!1,emailTotpCode:"",isEmailSubmitError:!1,emailErrorMsg:"",isGoogleSubmitError:!1,googleTotpCode:"",googleErrorMsg:"",isSe
1ndAPILoading:!1}),computed:{...E(["lang"]),...h(["userName"]),pageList(){return[{text:this.$t("account.nav.security"),onClick:this.goToSecurity},{text:this.$t("account.security.twoFactor.removeGoogleAuthenticator")}]},topMessages:()=>Rt,isBtnDisabled(){return!this.googleTotpCode||!this.emailTotpCode||!(!this.emailErrorMsg&&!this.googleErrorMsg)}},methods:{...m("security",["showNotificationMessage"]),...e(["getKycStatus"]),goToSecurity(){this.$router.push({name:z.SECURITY,params:{lang:this.lang}})},completedRemove2FA(){this.showNotificationMessage(this.$t("account.security.twoFactor.googleAuthenticatorRemoved.v2")),this.goToSecurity()},api:(e,t)=>B.unbindTwoFactorByEmailOtp(e,t),onRemove(){this.isSendAPILoading=!0,this.api(this.googleTotpCode,this.emailTotpCode).then((async()=>{this.isSuccess=!0,window.localStorage.removeItem(`${ee}.${te(this.userName)}`),await this.getKycStatus(),this.completedRemove2FA()}),(e=>{const{code:t}=e;t===Y.GOOGLE_AUTHENTICATOR_CODE_WRONG?(this.googleTotpCode="",this.isGoogleSubmitError=!0,this.googleErrorMsg=X.CODE_WRONG):t===Y.EMAIL_OTP_ERROR&&(this.emailTotpCode="",this.isEmailSubmitError=!0,this.emailErrorMsg=X.CODE_WRONG)})).finally((()=>{this.isSendAPILoading=!1}))},handleSendCodeSuccessfully(){this.showNotificationMessage(`${this.$t("account.account.update-pass.verificationSent")}.`)},handleSendCodeFail(){this.showNotificationMessage(`${this.$t("trade.marginCall.errorText")}`)}}},Vt={class:"two-factor-remove-content"},Kt={class:"two-factor-remove-title"},Wt={class:"two-factor-remove-text"};const qt=ae(Ht,[["render",function(e,l,d,u,p,g){const m=t("MessagesBlock"),h=t("EmailVerification"),E=t("GoogleAuthenticator"),S=t("BrandButton"),_=t("Panel");return i(),o(_,{class:"two-factor-remove",headerText:e.$t("account.security.twoFactor.remove.header.v2"),pageList:g.pageList},{default:s((()=>[a("div",Vt,[r(m,{class:"two-factor-remove-messages",list:g.topMessages},null,8,["list"]),a("p",Kt,n(e.$t("account.security.twoFactor.remove.header.v2")),1),a("p",Wt,n(e.$t("account.security.twoFactor.remove.text.v2")),1),r(h,{totpCode:p.emailTotpCode,"onUpdate:totpCode":l[0]||(l[0]=e=>p.emailTotpCode=e),isSubmitError:p.isEmailSubmitError,"onUpdate:isSubmitError":l[1]||(l[1]=e=>p.isEmailSubmitError=e),errorMsg:p.emailErrorMsg,"onUpdate:errorMsg":l[2]||(l[2]=e=>p.emailErrorMsg=e),class:"two-factor-remove-email-verification",sendType:p.sendEmailType.UNBIND_GOOGLE_2FA,isCountdown:"",autoSendEmail:"",onHandleSendCodeSuccessfully:g.handleSendCodeSuccessfully,onHandleSendCodeFail:g.handleSendCodeFail},null,8,["totpCode","isSubmitError","errorMsg","sendType","onHandleSendCodeSuccessfully","onHandleSendCodeFail"]),r(E,{totpCode:p.googleTotpCode,"onUpdate:totpCode":l[3]||(l[3]=e=>p.googleTotpCode=e),isSubmitError:p.isGoogleSubmitError,"onUpdate:isSubmitError":l[4]||(l[4]=e=>p.isGoogleSubmitError=e),errorMsg:p.googleErrorMsg,"onUpdate:errorMsg":l[5]||(l[5]=e=>p.googleErrorMsg=e),class:"two-factor-remove-google-auth",isShowNeedHelp:""},null,8,["totpCode","isSubmitError","errorMsg"]),r(S,{class:"two-factor-remove-button",disabled:g.isBtnDisabled,loading:p.isSendAPILoading,onClick:g.onRemove},{default:s((()=>[c(n(e.$t("t.remove")),1)])),_:1},8,["disabled","loading","onClick"])])])),_:1},8,["headerText","pageList"])}],["__scopeId","data-v-a52901e5"]]),jt={name:"TwoFactorVerifyEmailV2",components:{Panel:O,FormField:$,FormFieldInput:I,EmailVerification:M},props:{title:{type:String,default:""}},data:()=>({step:1,IconAirplaneMobile:k,form:{email:"",otpCode:""},isPasswordJumpingError:!1,isEmailSubmitError:!1,isSending:!1,emailErrorMsg:"",sendEmailType:N}),computed:{...E(["lang"]),pageList(){return[{text:this.$t("account.nav.security"),onClick:()=>{this.$router.push({name:z.SECURITY,params:{lang:this.lang}})}},{text:this.$t("account.security.twoFactor.enableGoogleAuthenticator")}]},isStep1(){return 1===this.step},msgTitle(){return this.isStep1?this.$t("account.verification.email.enter"):this.$t("verifyEmail.title")},msgDescription(){return this.isStep1?this.$t("account.verification.email.description"):""}},methods:{...e(["updateAccountInfo"]),async handleSubmit(){this.isSending=!0;try{await B.createUserEmail(this.form.otpCode),await this.updateAccountInfo(),this.$message({message:this.$t("account.verification.email.verified"),customClass:"notification",offset:100}),this.$router.push({name:z.SECURITY_TWO_FACTOR_SETTING,params:{lang:this.lang}})}finally{this.isSending=!1}}}},Qt={class:"verify-email"},Jt={class:"verify-email__img-content"},zt=["src"],Yt={class:"verify-email__msg-content mt-24"},Xt={class:"verify-email__msg-title"},Zt={class:"verify-email__msg-description"},eo={key:0,class:"mt-24"},to={key:1,class:"mt-24"},oo={class:"mt-24 button-group"};const io=ae(jt,[["render",function(e,u,p,g,m,h){const E=t("FormFieldInput"),S=t("FormField"),_=t("EmailVerification"),f=t("BrandButton"),y=t("ValidationForm"),b=t("Panel");return i(),o(b,{class:"two-factor-bind",headerText:e.$t("account.security.twoFactor.bind.header"),pageList:h.pageList},{default:s((()=>[a("div",Qt,[a("div",Jt,[a("img",{class:"verify-email__img",src:m.IconAirplaneMobile},null,8,zt)]),a("div",Yt,[a("p",Xt,n(h.msgTitle),1),a("p",Zt,n(h.msgDescription),1)]),r(y,null,{default:s((({meta:t})=>[h.isStep1?(i(),l("div",eo,[r(S,{title:e.$t("t.email")},{default:s((()=>[r(E,{value:m.form.email,"onUpdate:value":u[0]||(u[0]=e=>m.form.email=e),valueModifiers:{trim:!0},isJumpingError:m.isPasswordJumpingError,"onUpdate:isJumpingError":u[1]||(u[1]=e=>m.isPasswordJumpingError=e),name:"email",rules:"required|email",maxlength:"128",setFocus:"",clearable:""},null,8,["value","isJumpingError"])])),_:1},8,["title"])])):(i(),l("div",to,[r(_,{totpCode:m.form.otpCode,"onUpdate:totpCode":u[2]||(u[2]=e=>m.form.otpCode=e),isSubmitError:m.isEmailSubmitError,"onUpdate:isSubmitError":u[3]||(u[3]=e=>m.isEmailSubmitError=e),errorMsg:m.emailErrorMsg,"onUpdate:errorMsg":u[4]||(u[4]=e=>m.emailErrorMsg=e),autoSendEmail:"",sendType:m.sendEmailType.CREATE_EMAIL,sendToEmail:m.form.email,isShowTitle:!1},null,8,["totpCode","isSubmitError","errorMsg","sendType","sendToEmail"])])),a("div",oo,[h.isStep1?(i(),o(f,{key:0,class:"w-100",size:"biggest",disabled:!t.valid,onClick:u[5]||(u[5]=e=>m.step=2)},{default:s((()=>[c(n(e.$t("t.next")),1)])),_:2},1032,["disabled"])):(i(),l(d,{key:1},[r(f,{class:"button",type:"cancel",disabled:m.isSending,onClick:u[6]||(u[6]=e=>m.step=1)},{default:s((()=>[c(n(e.$t("t.previous")),1)])),_:1},8,["disabled"]),r(f,{class:"button",disabled:!t.valid,loading:m.isSending,onClick:h.handleSubmit},{default:s((()=>[c(n(e.$t("t.verify")),1)])),_:2},1032,["disabled","loading","onClick"])],64))])])),_:1})])])),_:1},8,["headerText","pageList"])}],["__scopeId","data-v-f9af2df4"]]),so={__name:"TwoFactorSetting",setup(e){const{enableV2TwoFactorAuthenticator:t}=ie,s=w(),a=C(null),r=v((()=>s.getters.isAccountInfoExist)),n=v((()=>s.getters.isBasicTwoFactorAuthenticatorBind)),l=v((()=>{switch(a.value){case G.BIND_GOOGLE_OTP:return Ke;
1case G.BIND_GOOGLE_OTP_STEP_2:return ut;case G.REMOVE_GOOGLE_OTP:return ft;case G.EMAIL_VERIFICATION:return Ee;default:return null}})),c=v((()=>{switch(a.value){case G.BIND_GOOGLE_OTP:return Nt;case G.BIND_GOOGLE_OTP_STEP_2:return Dt;case G.REMOVE_GOOGLE_OTP:return qt;case G.EMAIL_VERIFICATION:return io;default:return null}}));return T((()=>{s.commit("security/setApiTotpKey",""),s.commit("security/setApiQrcodeImg","")})),A(r,(e=>{e&&(n.value?a.value=G.REMOVE_GOOGLE_OTP:a.value=G.BIND_GOOGLE_OTP)}),{immediate:!0}),(e,s)=>(i(),o(g(F(t)?c.value:l.value),{pageName:a.value,"onUpdate:pageName":s[0]||(s[0]=e=>a.value=e)},null,40,["pageName"]))}};export{so as default}; 2//# sourceMappingURL=CbHhHkp1.js.map
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.