import{o,c as n,w as r,u as t,g as i,b as a,f as c,h as l,a as s,d as p,e as u,F as d,D as _,t as f}from"./app-BYcXwl4U.js";import{i as v,c as h}from"./app-a6cKceqE.js";import{C as y}from"./app-CLawzVMq.js";import{W as x}from"./app-D7QVa3_6.js";import{_ as g}from"./app-CQ-vNlMj.js";import{_ as C}from"./app-CignoBaV.js";import{T as S}from"./app-D2Wz0BUQ.js";import{_ as T}from"./app-xuUOhL_d.js";import{D as b}from"./app-7GBSHA5C.js";import"./app-BeFNDz9n.js";import"./app-BDgR0DSb.js";import"./app-CO4sV-Ic.js";import"./app-yt37eDzA.js";import"./app-BG60hdvp.js";import"./app-BQ5ggxk2.js";import"./app-SxAW7vhf.js";import"./app-D3zbrzdO.js";import"./app-CrjU8lgK.js";function k(){v(this),this.success=this.$NotifyReloadSuccess("保存成功")}const w={key:0},D=["value"],N=["value"],$=s("td",{class:"title"},"绑定端口 *",-1),B={key:0,class:"label-group"},Y={__name:"index",setup(V){const e=h(new k);return(L,P)=>(o(),n(y,{ctx:t(e),"has-tab":!0},{default:r(()=>[t(e).canSpecifyPort?l("",!0):(o(),i("div",w,[a(x,null,{default:r(()=>[c("根据系统管理员设定，你不能修改此网站的端口信息。")]),_:1})])),a(g,{action:"$",onSuccess:t(e).success},{default:r(()=>[s("input",{type:"hidden",name:"serverId",value:t(e).serverId},null,8,D),s("input",{type:"hidden",name:"serverType",value:t(e).serverType},null,8,N),a(b,null,{default:r(()=>[s("tbody",null,[s("tr",null,[$,s("td",null,[p(s("div",null,[a(T,{"v-server-type":t(e).serverType,"v-addresses":t(e).tcpConfig.listen,"v-protocol":"tcp"},null,8,["v-server-type","v-addresses"])],512),[[u,t(e).canSpecifyPort]]),t(e).tcpConfig.listen!=null?p((o(),i("div",B,[(o(!0),i(d,null,_(t(e).tcpConfig.listen,m=>(o(),n(S,{outlined:""},{default:r(()=>[c("tcp://*:"+f(m.portRange),1)]),_:2},1024))),256))],512)),[[u,!t(e).canSpecifyPort]]):l("",!0)])])])]),_:1}),a(C)]),_:1},8,["onSuccess"])]),_:1},8,["ctx"]))}};export{Y as default};
