import{o as r,c as n,w as o,u as t,g as i,b as a,f as c,h as l,a as s,d as u,e as p,F as m,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 g}from"./app-D7QVa3_6.js";import{_ as x}from"./app-CQ-vNlMj.js";import{_ as C}from"./app-xuUOhL_d.js";import{_ as S}from"./app-CignoBaV.js";import{T}from"./app-D2Wz0BUQ.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)=>(r(),n(y,{ctx:t(e),"has-tab":!0},{default:o(()=>[t(e).canSpecifyPort?l("",!0):(r(),i("div",w,[a(g,null,{default:o(()=>[c("根据系统管理员设定，你不能修改此网站的端口信息。")]),_:1})])),a(x,{action:"$",onSuccess:t(e).success},{default:o(()=>[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:o(()=>[s("tbody",null,[s("tr",null,[$,s("td",null,[u(s("div",null,[a(C,{"v-server-type":t(e).serverType,"v-addresses":t(e).udpConfig.listen,"v-protocol":"udp","v-support-range":!0},null,8,["v-server-type","v-addresses"])],512),[[p,t(e).canSpecifyPort]]),t(e).udpConfig.listen!=null?u((r(),i("div",B,[(r(!0),i(m,null,_(t(e).udpConfig.listen,d=>(r(),n(T,{outlined:""},{default:o(()=>[c("udp://*:"+f(d.portRange),1)]),_:2},1024))),256))],512)),[[p,!t(e).canSpecifyPort]]):l("",!0)])])])]),_:1}),a(S)]),_:1},8,["onSuccess"])]),_:1},8,["ctx"]))}};export{Y as default};
