import{a4 as b,_ as f,a5 as x,k as p,l as g,b as e,w as r,m as y,F as h,o as _,aP as n,d as l,t as i,j as m,aQ as k,p as P}from"./index-09e73aa7.js";import{W as V}from"./WaitingForRestart-ace08891.js";import{_ as w}from"./_plugin-vue_export-helper-c27b6911.js";import"./common-9810ee4a.js";const G={components:{WaitingForRestart:V},setup(){const{tm:o}=b("features/settings");return{tm:o}},data(){return{githubProxies:["https://gh.llkk.cc","https://gitproxy.click"],selectedGitHubProxy:""}},methods:{restartAstrBot(){f.post("/api/stat/restart-core").then(()=>{this.$refs.wfr.check()})}},mounted(){this.selectedGitHubProxy=localStorage.getItem("selectedGitHubProxy")||""},watch:{selectedGitHubProxy:function(o,s){o||(o=""),localStorage.setItem("selectedGitHubProxy",o)}}},H={style:{"background-color":"var(--v-theme-surface, #fff)",padding:"8px","padding-left":"16px","border-radius":"8px","margin-bottom":"16px"}};function B(o,s,v,t,a,u){const c=x("WaitingForRestart");return _(),p(h,null,[g("div",H,[e(y,{lines:"two"},{default:r(()=>[e(n,null,{default:r(()=>[l(i(t.tm("network.title")),1)]),_:1}),e(m,{subtitle:t.tm("network.githubProxy.subtitle"),title:t.tm("network.githubProxy.title")},{default:r(()=>[e(k,{variant:"outlined",style:{width:"100%","margin-top":"16px"},modelValue:a.selectedGitHubProxy,"onUpdate:modelValue":s[0]||(s[0]=d=>a.selectedGitHubProxy=d),items:a.githubProxies,label:t.tm("network.githubProxy.label")},null,8,["modelValue","items","label"])]),_:1},8,["subtitle","title"]),e(n,null,{default:r(()=>[l(i(t.tm("system.title")),1)]),_:1}),e(m,{subtitle:t.tm("system.restart.subtitle"),title:t.tm("system.restart.title")},{default:r(()=>[e(P,{style:{"margin-top":"16px"},color:"error",onClick:u.restartAstrBot},{default:r(()=>[l(i(t.tm("system.restart.button")),1)]),_:1},8,["onClick"])]),_:1},8,["subtitle","title"])]),_:1})]),e(c,{ref:"wfr"},null,512)],64)}const W=w(G,[["render",B]]);export{W as default};
