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 _,aQ as n,d as l,t as i,j as m,aR as k,p as P}from"./index-e345ed95.js";import{W as V}from"./WaitingForRestart-2ba1b2f5.js";import{_ as w}from"./_plugin-vue_export-helper-c27b6911.js";import"./common-a2e6f630.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 R=w(G,[["render",B]]);export{R as default};
