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,aW as m,d as o,t as i,h as r,j as n,p as f,_ as h}from"./index-6dc81347.js";import{W as w}from"./WaitingForRestart-9578a95e.js";import{P as V}from"./ProxySelector-b4bb74b0.js";import{M as v}from"./MigrationDialog-e00f1f97.js";import"./common-fd73112a.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./ConsoleDisplayer-6a0a8a09.js";const M={style:{"background-color":"var(--v-theme-surface, #fff)",padding:"8px","padding-left":"16px","border-radius":"8px","margin-bottom":"16px"}},P={__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{P as default};
