import{_ as v}from"./index-DIKmrNCq.js?v=1773287522785";import{k as y,e as b,r as h,$ as C,Z as S,_ as t,aa as s,j as i,S as n,a0 as l,a9 as r,l as k,v as $}from"./vue-core-DJjvd5ZC.js?v=1773287522785";import{g2 as w,i as d,g3 as D,c as j}from"./index-BTglIPU2.js?v=1773287522785";import{u as B}from"./useLoading-CZ2gSAW7.js?v=1773287522785";import{a_ as N,a9 as V}from"./naive-ui--dJnpVcV.js?v=1773287522785";import"./prismjs-BZPoR7_J.js?v=1773287522785";const K={class:"p-20px"},L={class:"mb-20px text-20px text-center text-[var(--setting-security-google-login-bind-title)]"},P={class:"px-36px"},Q={class:"mb-10px text-16px text-[var(--setting-security-google-login-bind-text)]"},T={class:"mb-20px px-24px py-16px bg-[var(--setting-security-google-login-key-bg)] rounded-4px leading-24px text-14px text-[var(--setting-security-google-login-key-text)] font-500"},q={class:"text-[var(--setting-security-google-login-bind-text)]"},z={class:"text-[var(--setting-security-google-login-bind-text)]"},E={class:"mb-20px text-16px text-[var(--setting-security-google-login-bind-text)]"},I={class:"bt-link",href:"",target:"_blank"},O={class:"text-error"},Z=y({__name:"config",setup(A){const o=b({key:"--",username:"--"}),a=h(""),{loading:_,setLoading:c}=B(),p=async()=>{const{message:e}=await w();d(e)&&(o.key=e.key,o.username=e.username)},f=async()=>{try{c(!0);const{message:e}=await D({act:1});d(e)&&(a.value=e.result)}finally{c(!1)}};return p(),f(),(e,g)=>{const x=N,u=V,m=v;return C(),S("div",K,[t("div",L,s(e.$t("Config.Safe.index_70")),1),t("div",P,[t("div",Q,s(e.$t("Config.Safe.index_71")),1),t("div",T,[t("div",null,[i(s(e.$t("Config.Safe.index_72"))+" ",1),t("span",q,s(n(o).username),1)]),t("div",null,[i(s(e.$t("Config.Safe.index_73"))+" ",1),t("span",z,s(n(o).key),1)]),t("div",null,[i(s(e.$t("Config.Safe.index_74"))+" ",1),g[0]||(g[0]=t("span",{class:"text-[var(--setting-security-google-login-bind-text)]"},"Time based",-1))])]),t("div",E,s(e.$t("Config.Safe.index_75")),1),l(u,{class:"flex justify-center h-150px",show:n(_)},{default:r(()=>[k(l(x,{value:n(a),size:150,padding:0},null,8,["value"]),[[$,n(a)]])]),_:1},8,["show"]),l(m,null,{default:r(()=>[t("li",null,[i(s(e.$t("Config.Safe.index_76"))+" ",1),t("a",I,s(e.$t("Config.Safe.index_77")),1)]),t("li",O,s(e.$t("Config.Safe.index_78")),1)]),_:1})])])}}}),U=j(Z,[["__scopeId","data-v-6dc5521d"]]);export{U as default};
