import{ca as _,p,i as u,m as g}from"./index-BTglIPU2.js?v=1773287522785";import{b as C,_ as h,C as w,m as x}from"./index-DLN4sTNp.js?v=1773287522785";import S from"./config-Db5nkq_D.js?v=1773287522785";import{k as $,R as k,al as b,$ as y,Z as R,a0 as o,a9 as n,j as f,aa as s,_ as a}from"./vue-core-DJjvd5ZC.js?v=1773287522785";const v={class:"p-20px"},T={class:"text-error"},j={class:"text-error"},B={class:"flex items-center justify-between"},N={class:"bt-link",href:"https://www.yakpanel.com/forum/d/357-how-to-use-google-authenticator-in-the-yakpanel",target:"_blank"},F=$({__name:"confirm",props:{onRefresh:{type:Function,default:()=>{}}},setup(r,{expose:c}){const{t:l}=k(),{safeConfig:m}=C(),d=r,i=b("riskRef");return c({onConfirm:async()=>{var t;await((t=i.value)==null?void 0:t.validate());const{message:e}=await _({act:1});m.value.dynamicPwd=!0,d.onRefresh(),p({title:l("Config.Safe.index_62"),width:600,component:S}),u(e)&&g.success(e.result)}}),(e,t)=>(y(),R("div",v,[o(h,{class:"mb-20px"},{default:n(()=>[f(s(e.$t("Config.Safe.index_47")),1)]),_:1}),o(w,{class:"mb-20px"},{default:n(()=>[a("li",T,s(e.$t("Config.Safe.index_19")),1),a("li",j,s(e.$t("Config.Safe.index_69")),1),a("li",null,s(e.$t("Config.Safe.index_66")),1),a("li",null,s(e.$t("Config.Safe.index_67")),1)]),_:1}),a("div",B,[o(x,{ref_key:"riskRef",ref:i},{default:n(()=>[f(s(e.$t("Config.Safe.index_68")),1)]),_:1},512),a("a",N,s(e.$t("Config.Safe.index_168")),1)])]))}});export{F as _};
