import{u as e,l as a,cm as t,v as s,az as l}from"./utils-lib.js?v=20260328163632";import{_ as o}from"./index.vue_vue_type_script_setup_true_lang5.js?v=20260328163632";import{a9 as n,r as p,k as r,o as u,V as i,_ as m,a3 as d,O as _,Y as c,N as f}from"./base-lib.js?v=20260328163632";import{_ as v}from"./index.vue_vue_type_script_setup_true_lang7.js?v=20260328163632";import{_ as b}from"./index.vue_vue_type_script_setup_true_lang6.js?v=20260328163632";import{e as j}from"./naive-ui.js?v=20260328163632";import"./__commonjsHelpers__.js?v=20260328163632";import"./env-lib.js?v=20260328163632";import"./index158.js?v=20260328163632";import"./ace.js?v=20260328163632";const{panel:y,getGlobalInfo:V}=e(),{paths:x}=n(y.value),g=p("server"),h=p({});p(!1);const w=[{content:a("FTP如遇到无法连接，请在服务器安全组放行主动端口21和被动端口3000-4000")}],z=[{content:a("此处为0.9.60主配置文件，若您不了解配置规则，请勿随意修改。")}],D=e=>{g.value=e},U=r({__name:"index",props:{compData:{default:{}}},setup(n){const p=n,{isWin:r}=e();return u((()=>{h.value=p.compData,x.value.soft||V()})),(e,n)=>{const p=j;return i(),m(c(l),{modelValue:c(g),"onUpdate:modelValue":n[2]||(n[2]=e=>f(g)?g.value=e:null),type:"card",placement:"left",onChange:c(D)},{default:d((()=>[_(p,{name:"server",tab:c(t)(c(a)("服务")),"display-directive":"show:lazy"},{default:d((()=>[_(o,{tab:c(g),modelValue:c(h).status,"onUpdate:modelValue":n[0]||(n[0]=e=>c(h).status=e),name:c(r)?"ftpserver":"pureftpd"},null,8,["tab","modelValue","name"]),_(c(s),{options:c(w),class:"!mt-20px"},null,8,["options"])])),_:1},8,["tab"]),_(p,{name:"config",tab:c(t)(c(a)("配置修改")),"display-directive":"show:lazy"},{default:d((()=>[_(b,{modelValue:c(g),"onUpdate:modelValue":n[1]||(n[1]=e=>f(g)?g.value=e:null),filename:c(r)?"ftpServer/FileZilla Server Interface.xml":"/www/server/pure-ftpd/etc/pure-ftpd.conf",options:c(z)},null,8,["modelValue","filename","options"])])),_:1},8,["tab"]),_(p,{name:"version",tab:c(t)(c(a)("切换版本")),"display-directive":"show:lazy"},{default:d((()=>[_(v,{compData:c(h)},null,8,["compData"])])),_:1},8,["tab"])])),_:1},8,["modelValue","onChange"])}}});export{U as default};
