import{a4 as f,_ as p,a5 as n,k as u,l as _,b as t,w as e,m as x,F as g,o as y,aR as l,d as s,t as o,j as i,p as b}from"./index-525d7e2b.js";import{W as h}from"./WaitingForRestart-a1d9c2b4.js";import{P as k}from"./ProxySelector-7bde56e3.js";import{_ as V}from"./_plugin-vue_export-helper-c27b6911.js";import"./common-d0736c0d.js";const w={components:{WaitingForRestart:h,ProxySelector:k},setup(){const{tm:a}=f("features/settings");return{tm:a}},methods:{restartAstrBot(){p.post("/api/stat/restart-core").then(()=>{this.$refs.wfr.check()})}}},B={style:{"background-color":"var(--v-theme-surface, #fff)",padding:"8px","padding-left":"16px","border-radius":"8px","margin-bottom":"16px"}};function S(a,F,v,r,C,c){const m=n("ProxySelector"),d=n("WaitingForRestart");return y(),u(g,null,[_("div",B,[t(x,{lines:"two"},{default:e(()=>[t(l,null,{default:e(()=>[s(o(r.tm("network.title")),1)]),_:1}),t(i,null,{default:e(()=>[t(m)]),_:1}),t(l,null,{default:e(()=>[s(o(r.tm("system.title")),1)]),_:1}),t(i,{subtitle:r.tm("system.restart.subtitle"),title:r.tm("system.restart.title")},{default:e(()=>[t(b,{style:{"margin-top":"16px"},color:"error",onClick:c.restartAstrBot},{default:e(()=>[s(o(r.tm("system.restart.button")),1)]),_:1},8,["onClick"])]),_:1},8,["subtitle","title"])]),_:1})]),t(d,{ref:"wfr"},null,512)],64)}const A=V(w,[["render",S]]);export{A as default};
