1import{d as defineComponent,g as getCurrentInstance,o as onMounted,E as ElMessage,A as resolveComponent,B as openBlock,C as createElementBlock,j as createVNode,I as withCtx,D as createBaseVNode,H as toDisplayString,G as createTextVNode,P as createCommentVNode,L as createBlock,Q as normalizeClass,u as unref,r as ref,aa as nextTick,ag as ElMessageBox,ah as ElRadio,aj as ElRadioGroup}from"./vue-vendor-fc9d70f0.js";import{o as i18n,s as store,_ as _export_sfc}from"./index-761c6c6f.js";import setUpVerify from"./setUpVerify-3f6c4923.js";import"./http-crypto-09d0f023.js";import"./i18n-e53c91ad.js";const _hoisted_1={class:"va-userSettings-safety max-w-[1110px] m-auto w-full mt-10"},_hoisted_2={class:"flex justify-between px-10 py-8 flex-col"},_hoisted_3={class:"font-bold text-lg"},_hoisted_4={key:0},_hoisted_5={class:"text-sm py-4"},_hoisted_6={class:"relative"},_hoisted_7={key:2},_hoisted_8={class:"personal-title flex items-center"},_hoisted_9={key:0,class:"bg-[#E3E9FC] px-3 py-1 rounded-2xl mb-1 align-top text-xs ml-3"},_hoisted_10={key:1,class:"bg-[#E8F8EE] px-3 py-1 rounded-2xl mb-1 align-top text-xs ml-3"},_hoisted_11={class:"personal-content text-sm font-normal"},_hoisted_12={class:"globalAccounts-button-item flex flex-wrap pt-2"},_hoisted_13={class:"personal-title flex items-center"},_hoisted_14={key:0,class:"bg-[#E3E9FC] px-3 py-1 rounded-2xl mb-1 align-top text-xs ml-3"},_hoisted_15={key:1,class:"bg-[#E8F8EE] px-3 py-1 rounded-2xl mb-1 align-top text-xs ml-3"},_hoisted_16={class:"personal-content text-sm font-normal"},_hoisted_17={class:"globalAccounts-button-item flex flex-wrap pt-2"},_hoisted_18={class:"personal-title flex items-center"},_hoisted_19={key:0,class:"bg-[#E3E9FC] px-3 py-1 rounded-2xl mb-1 align-top text-xs ml-3"},_hoisted_20={key:1,class:"bg-[#E8F8EE] px-3 py-1 rounded-2xl mb-1 align-top text-xs ml-3"},_hoisted_21={class:"personal-content text-sm font-normal"},_hoisted_22={class:"globalAccounts-button-item flex flex-wrap pt-2"},_sfc_main=defineComponent({__name:"twoAuth",props:{visible:{type:Boolean,default:!0},Verloader:{type:Boolean,default:!1}},emits:["update:visible","update:data"],setup(__props,{emit:__emit}){const setUp=ref(0),verifyTip=ref(""),showVerify=ref(!1);i18n.global;const _this=getCurrentInstance().appContext.config.globalProperties,isSetting=ref(!1),settingTwoAuth1=(v,v1)=>{isSetting.value=v1;const refVariable=eval("showVerify");refVariable&&(refVariable.value=!0),isSetting.value||2==v?setUp.value=2:setUp.value=3,isSetting.value?tip.value="åéå®å
¨è®¤è¯":tip.value=1==v?"è°·æè®¤è¯":"ææºè®¤è¯",verifyTip.value=1==v?"validator":3==v?"shortEmailCode":"shortCode",step.value=1},settingTwoAuth=()=>{const refVariable=eval("showVerify");refVariable&&(refVariable.value=!0),setUp.value=2,1==radio1.value?verifyTip.value="validator":3==radio1.value?verifyTip.value="shortEmailCode":verifyTip.value="shortCode",step.value=1,isSetting.value=!0},radio1=ref(1),tip=ref("åéå®å
¨è®¤è¯"),step=ref(0),updateVis=(e,t,a,o)=>{showVerify.value=e,nextTick(async()=>{await getTwoAuthApi(),authTwo.value.sms||authTwo.value.google||authTwo.value.emailAuth?step.value=3:step.value=0})},getTwoAuth=async()=>{step.value=0,await getTwoAuthApi()},authTwo=ref({});onMounted(async()=>{await getTwoAuthApi(),(authTwo.value.sms||authTwo.value.google)&&(step.value=3)});const getTwoAuthApi=()=>new Promise((e,t)=>{_this.$get(_this.$config.RESQUEST.GETTWOAUTH,{},{"content-type":"application/x-www-form-urlencoded"}).then(a=>{null!=a.data?(authTwo.value=a.data,store.state.twoAuth=a.data,e(a.data)):(ElMessage.error(a.msg),t(a.msg))}).catch(e=>{ElMessage.error(e),t(e)})}),settingdefalut=e=>{ElMessageBox({customClass:"va-msgbox",title:_this.$t("register.Tip"),message:_this.$t("settings.key2"),showCancelButton:!0,confirmButtonText:_this.$t("comm.confirm"),cancelButtonText:_this.$t("comm.cancel"),confirmButtonClass:"va-button",cancelButtonClass:"va-button"}).then(t=>{_this.$post(_this.$config.RESQUEST.SECURITYUPDATE,{type:e},{"content-type":"application/x-www-form-urlencoded"}).then(e=>{getTwoAuthApi()})})};return(e,t)=>
1{const a=ElRadio,o=ElRadioGroup,s=resolveComponent("VaButton"),l=resolveComponent("va-button"),i=resolveComponent("VaCard");return openBlock(),createElementBlock("div",_hoisted_1,[createVNode(i,null,{header:withCtx(()=>[createBaseVNode("div",_hoisted_2,[createBaseVNode("div",_hoisted_3,toDisplayString(e.$t("selectMer.key35")),1)])]),content:withCtx(()=>[0==step.value?(openBlock(),createElementBlock("div",_hoisted_4,[createBaseVNode("div",_hoisted_5,toDisplayString(e.$t("selectMer.key19")),1),createBaseVNode("p",null,toDisplayString(e.$t("selectMer.key20")),1),createVNode(o,{modelValue:radio1.value,"onUpdate:modelValue":t[0]||(t[0]=e=>radio1.value=e),class:"ml-4"},{default:withCtx(()=>[createVNode(a,{style:{width:"100%"},value:2,size:"default"},{default:withCtx(()=>[createTextVNode(toDisplayString(e.$t("profile.key32")),1),t[9]||(t[9]=createBaseVNode("span",null,null,-1))]),_:1}),createBaseVNode("div",_hoisted_6,[createVNode(a,{style:{width:"100%"},value:1,size:"default"},{default:withCtx(()=>[createTextVNode(toDisplayString(e.$t("selectMer.key21"))+" Â ",1)]),_:1})]),createVNode(a,{style:{width:"100%"},value:3,size:"default"},{default:withCtx(()=>[createTextVNode(toDisplayString(e.$t("profile.key86")),1),t[10]||(t[10]=createBaseVNode("span",null,null,-1))]),_:1})]),_:1},8,["modelValue"])])):createCommentVNode("",!0),1==step.value?(openBlock(),createBlock(setUpVerify,{key:1,visible:showVerify.value,setUp:setUp.value,verifyTip:verifyTip.value,isSetting:isSetting.value,"onUpdate:visible":updateVis,onGetTwoAuth:getTwoAuth},null,8,["visible","setUp","verifyTip","isSetting"])):createCommentVNode("",!0),3==step.value?(openBlock(),createElementBlock("div",_hoisted_7,[createBaseVNode("div",{class:normalizeClass(["flex justify-between items-star db-title py-7",{"flex-col":1===unref(store).state.deviceWidth}])},[createBaseVNode("div",null,[createBaseVNode("div",_hoisted_8,[createTextVNode(toDisplayString(e.$t("profile.key8")),1),2==authTwo.value.priorityType?(openBlock(),createElementBlock("span",_hoisted_9,toDisplayString(2==authTwo.value.priorityType?e.$t("selectMer.key23"):""),1)):createCommentVNode("",!0),1==authTwo.value.google&&2!=authTwo.value.priorityType?(openBlock(),createElementBlock("span",_hoisted_10,toDisplayString(e.$t("selectMer.key24")),1)):createCommentVNode("",!0)]),createBaseVNode("div",_hoisted_11,toDisplayString(e.$t("profile.key9")),1)]),createBaseVNode("div",_hoisted_12,[1==authTwo.value.google&&2!=authTwo.value.priorityType?(openBlock(),createBlock(s,{key:0,class:"mr-3 md:mr-6",type:"primary",onClick:t[1]||(t[1]=e=>settingdefalut(2))},{default:withCtx(()=>[createTextVNode(toDisplayString(e.$t("selectMer.key25")),1)]),_:1})):createCommentVNode("",!0),createVNode(s,{style:{width:"80px"},class:"mr-3 md:mr-6",type:"primary",onClick:t[2]||(t[2]=e=>settingTwoAuth1(1,!0))},{default:withCtx(()=>[createTextVNode(toDisplayString(1!=authTwo.value.google?e.$t("profile.key63"):e.$t("index.update")),1)]),_:1}),1==authTwo.value.google&&1==authTwo.value.sms?(openBlock(),createBlock(s,{key:1,style:{width:"80px"},class:"",type:"primary",onClick:t[3]||(t[3]=e=>settingTwoAuth1(1,!1))},{default:withCtx(()=>[createTextVNode(toDisplayString(e.$t("selectMer.key26")),1)]),_:1})):createCommentVNode("",!0)])],2),createBaseVNode("div",{class:normalizeClass(["flex justify-between items-star db-title py-7",{"flex-col":1===unref(store).state.deviceWidth}])},[createBaseVNode("div",null,[createBaseVNode("div",_hoisted_13,[createTextVNode(toDisplayString(e.$t("profile.key11"))+" ",1),1==authTwo.value.priorityType?(openBlock(),createElementBlock("span",_hoisted_14,toDisplayString(1==authTwo.value.priorityType?e.$t("selectMer.key23"):""),1)):createCommentVNode("",!0),1==authTwo.value.sms&&1!=authTwo.value.priorityType?(openBlock(),createElementBlock("span",_hoisted_15,toDisplayString(e.$t("selectMer.key24")),1)):createCommentVNode("",!0)]),createBaseVNode("div",_hoisted_16,toDisplayString(e.$t("profile.key12")),1)]),createBaseVNode("div",_hoisted_17,[1==authTwo.value.sms&&1!=authTwo.value.priorityType?(openBlock(),createBlock(s,{key:0,class:"mr-3 md:mr-6",type:"primary",onClick:t[4]||(t[4]=e=>settingdefalut(1))},{default:withCtx(()=>
1[createTextVNode(toDisplayString(e.$t("selectMer.key25")),1)]),_:1})):createCommentVNode("",!0),createVNode(s,{class:"mr-3 md:mr-6",style:{width:"80px"},type:"primary",onClick:t[5]||(t[5]=e=>settingTwoAuth1(2,!0))},{default:withCtx(()=>[createTextVNode(toDisplayString(1!=authTwo.value.sms?e.$t("profile.key63"):e.$t("index.update")),1)]),_:1}),1==authTwo.value.sms&&1==authTwo.value.google?(openBlock(),createBlock(s,{key:1,style:{width:"80px"},class:normalizeClass({}),type:"primary",onClick:t[6]||(t[6]=e=>settingTwoAuth1(2,!1))},{default:withCtx(()=>[createTextVNode(toDisplayString(e.$t("selectMer.key26")),1)]),_:1})):createCommentVNode("",!0)])],2),createBaseVNode("div",{class:normalizeClass(["flex justify-between items-star db-title py-7",{"flex-col":1===unref(store).state.deviceWidth}])},[createBaseVNode("div",null,[createBaseVNode("div",_hoisted_18,[createTextVNode(toDisplayString(e.$t("auth.key64"))+" ",1),3==authTwo.value.priorityType?(openBlock(),createElementBlock("span",_hoisted_19,toDisplayString(3==authTwo.value.priorityType?e.$t("selectMer.key23"):""),1)):createCommentVNode("",!0),1==authTwo.value.emailAuth&&3!=authTwo.value.priorityType?(openBlock(),createElementBlock("span",_hoisted_20,toDisplayString(e.$t("selectMer.key24")),1)):createCommentVNode("",!0)]),createBaseVNode("div",_hoisted_21,toDisplayString(e.$t("profile.key85")),1)]),createBaseVNode("div",_hoisted_22,[1==authTwo.value.emailAuth&&3!=authTwo.value.priorityType?(openBlock(),createBlock(s,{key:0,class:"mr-3 md:mr-6",type:"primary",onClick:t[7]||(t[7]=e=>settingdefalut(3))},{default:withCtx(()=>[createTextVNode(toDisplayString(e.$t("selectMer.key25")),1)]),_:1})):createCommentVNode("",!0),1!=authTwo.value.emailAuth?(openBlock(),createBlock(s,{key:1,class:"mr-3 md:mr-6",style:{width:"80px"},type:"primary",onClick:t[8]||(t[8]=e=>settingTwoAuth1(3,!0))},{default:withCtx(()=>[createTextVNode(toDisplayString(e.$t("profile.key63")),1)]),_:1})):createCommentVNode("",!0)])],2)])):createCommentVNode("",!0),0==step.value?(openBlock(),createElementBlock("div",{key:3,class:normalizeClass(["flex justify-end mt-4",{"flex-col":1===e.$store.state.deviceWidth}])},[createVNode(l,{onClick:settingTwoAuth,type:"primary"},{default:withCtx(()=>[createTextVNode(toDisplayString(e.$t("exchangeManagement.key21")),1)]),_:1})],2)):createCommentVNode("",!0)]),_:1})])}}}),twoAuth_vue_vue_type_style_index_0_scoped_833dbd74_lang="",twoAuth=_export_sfc(_sfc_main,[["__scopeId","data-v-833dbd74"]]);export{twoAuth as default};
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.