import{a5 as g,r as c,k as _,l as y,b as t,w as s,m as b,F as x,o as k,aX as m,d as o,t as i,h as r,j as n,p as f,_ as h}from"./index-4fe3736d.js";import{W as w}from"./WaitingForRestart-fa0a1129.js";import{P as V}from"./ProxySelector-2cb40bac.js";import{M as v}from"./MigrationDialog-d1dc7149.js";import"./common-5a202e4c.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./ConsoleDisplayer-2ed21417.js";const M={style:{"background-color":"var(--v-theme-surface, #fff)",padding:"8px","padding-left":"16px","border-radius":"8px","margin-bottom":"16px"}},W={__name:"Settings",setup(B){const{tm:e}=g("features/settings"),u=c(null),l=c(null),p=()=>{h.post("/api/stat/restart-core").then(()=>{u.value.check()})},d=async()=>{if(l.value)try{const a=await l.value.open();a.success&&console.log("Migration completed successfully:",a.message)}catch(a){console.error("Migration dialog error:",a)}};return(a,D)=>(k(),_(x,null,[y("div",M,[t(b,{lines:"two"},{default:s(()=>[t(m,null,{default:s(()=>[o(i(r(e)("network.title")),1)]),_:1}),t(n,null,{default:s(()=>[t(V)]),_:1}),t(m,null,{default:s(()=>[o(i(r(e)("system.title")),1)]),_:1}),t(n,{subtitle:r(e)("system.restart.subtitle"),title:r(e)("system.restart.title")},{default:s(()=>[t(f,{style:{"margin-top":"16px"},color:"error",onClick:p},{default:s(()=>[o(i(r(e)("system.restart.button")),1)]),_:1})]),_:1},8,["subtitle","title"]),t(n,{subtitle:r(e)("system.migration.subtitle"),title:r(e)("system.migration.title")},{default:s(()=>[t(f,{style:{"margin-top":"16px"},color:"primary",onClick:d},{default:s(()=>[o(i(r(e)("system.migration.button")),1)]),_:1})]),_:1},8,["subtitle","title"])]),_:1})]),t(w,{ref_key:"wfr",ref:u},null,512),t(v,{ref_key:"migrationDialog",ref:l},null,512)],64))}};export{W as default};
