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-SC54XQDl.js";import{i as v,c as h}from"./app-Ba7ZqSpq.js";import{C as y}from"./app-qhR41k1m.js";import{W as g}from"./app-B9xxzP2y.js";import{_ as x}from"./app-DFulsyXy.js";import{_ as C}from"./app-EJKcBieS.js";import{_ as S}from"./app-DWUwCFNm.js";import{T}from"./app-DoVkxbmA.js";import{D as b}from"./app-ZeVDYyDS.js";import"./app-CS3AUTAk.js";import"./app-CCkWSX4Q.js";import"./app-C28obFWS.js";import"./app-CkINxBL9.js";import"./app-PPG0ZS4d.js";import"./app--Lj8zATS.js";import"./app-Ch8j4za4.js";import"./app-C2mBgI5Z.js";import"./app-CNHjdV6U.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};
