import{l as d,a7 as m,m as p,q as x,b as t,w as e,n as b,F as f,o as g,aH as i,e as a,j as l,aI as _,v as h}from"./index-4f532da6.js";import{W as y}from"./WaitingForRestart-8e3e6225.js";import{_ as H}from"./_plugin-vue_export-helper-c27b6911.js";import"./common-d4d7cfa6.js";const G={components:{WaitingForRestart:y},data(){return{githubProxies:["https://gh.llkk.cc","https://gitproxy.click"],selectedGitHubProxy:""}},methods:{restartAstrBot(){d.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)}}},V={style:{"background-color":"white",padding:"8px","padding-left":"16px","border-radius":"8px","margin-bottom":"16px"}};function k(o,s,P,B,r,n){const u=m("WaitingForRestart");return g(),p(f,null,[x("div",V,[t(b,{lines:"two"},{default:e(()=>[t(i,null,{default:e(()=>[a("网络")]),_:1}),t(l,{subtitle:"设置下载插件或者更新 AstrBot 时所用的 GitHub 加速地址。这在中国大陆的网络环境有效。可以自定义，输入结果实时生效。所有地址均不保证稳定性，如果在更新插件/项目时出现报错，请首先检查加速地址是否能正常使用。",title:"GitHub 加速地址"},{default:e(()=>[t(_,{variant:"outlined",style:{width:"100%","margin-top":"16px"},modelValue:r.selectedGitHubProxy,"onUpdate:modelValue":s[0]||(s[0]=c=>r.selectedGitHubProxy=c),items:r.githubProxies,label:"选择 GitHub 加速地址"},null,8,["modelValue","items"])]),_:1}),t(i,null,{default:e(()=>[a("系统")]),_:1}),t(l,{subtitle:"重启 AstrBot",title:"重启"},{default:e(()=>[t(h,{style:{"margin-top":"16px"},color:"error",onClick:n.restartAstrBot},{default:e(()=>[a("重启")]),_:1},8,["onClick"])]),_:1})]),_:1})]),t(u,{ref:"wfr"},null,512)],64)}const A=H(G,[["render",k]]);export{A as default};
