import{o,c,w as p,u as s,f as a,t as d,h as n,b as r,a as e,d as u,e as _,g as i,F as h,D as v}from"./app-SC54XQDl.js";import{i as g,c as T}from"./app-Ba7ZqSpq.js";import{_ as y}from"./app-Cft_lrsr.js";import{W as C}from"./app-B9xxzP2y.js";import{_ as P}from"./app-DFulsyXy.js";import{_ as x}from"./app-FlPLZh9D.js";import{_ as S}from"./app-D6YuZr7n.js";import{_ as k}from"./app-DWUwCFNm.js";import{D as H}from"./app-ZeVDYyDS.js";import{_ as N}from"./app-EJKcBieS.js";import"./app-qhR41k1m.js";import"./app-CS3AUTAk.js";import"./app-CCkWSX4Q.js";import"./app-Dhl-Bw0H.js";import"./app-BjSCO7rC.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-DZaelcLs.js";import"./app-PrSv7rSt.js";import"./app-BZGObKCm.js";import"./app-BPIIxVwk.js";import"./app-DgoEZtNT.js";import"./app-Dw0jKdCD.js";import"./app-DnXuoh8P.js";import"./app-CNHjdV6U.js";import"./app-CVQkwzlf.js";import"./app-DjJGwY8P.js";import"./app-CHxME8Sw.js";import"./app-B5UbDc9M.js";import"./app-DoVkxbmA.js";import"./app-Ciy_QwIW.js";import"./app-C0-Qcoum.js";import"./app-BxWqoSpr.js";import"./app-nyOoGAKT.js";function $(){g(this),this.success=this.$NotifyReloadSuccess("保存成功")}const O=e("p",{class:"comment"},"提醒：HTTP/2、证书等信息修改后，可能需要清空浏览器缓存后才能浏览效果。",-1),V=["value"],b=["value"],w=e("td",{class:"title"},"启用HTTPS",-1),D=e("td",{class:"title"},"绑定端口 *",-1),B={key:0,class:"red"},F={class:"comment"},I={key:0,class:"red"},E={key:0},R={key:0},kt={__name:"index",setup(W){const t=T(new $);return(j,l)=>(o(),c(y,{ctx:s(t)},{default:p(()=>[O,s(t).httpsConfig.isOn&&s(t).missingCertServerNames!=null&&s(t).missingCertServerNames.length>0?(o(),c(C,{key:0},{default:p(()=>[a(" 警告：当前网站绑定的以下域名尚未配置证书，将无法通过HTTPS协议访问："+d(s(t).missingCertServerNames.join("、"))+" 。 ",1)]),_:1})):n("",!0),r(P,{action:"$",onSuccess:s(t).success},{default:p(()=>[e("input",{type:"hidden",name:"serverId",value:s(t).serverId},null,8,V),e("input",{type:"hidden",name:"serverType",value:s(t).serverType},null,8,b),r(H,null,{default:p(()=>[e("tbody",null,[e("tr",null,[w,e("td",null,[r(x,{name:"isOn",value:"1",modelValue:s(t).httpsConfig.isOn,"onUpdate:modelValue":l[0]||(l[0]=m=>s(t).httpsConfig.isOn=m)},null,8,["modelValue"])])])]),u(e("tbody",null,[e("tr",null,[D,e("td",null,[s(t).httpsConfig.isOn&&(s(t).httpsConfig.addresses==null||s(t).httpsConfig.addresses.length==0)?(o(),i("span",B,"还没有添加端口绑定，会导致HTTPS服务无法访问。")):n("",!0),r(N,{"v-server-type":s(t).serverType,"v-addresses":s(t).httpsConfig.addresses,"v-protocol":"https","min-port":s(t).minPort,"max-port":s(t).maxPort},null,8,["v-server-type","v-addresses","min-port","max-port"]),e("p",F,[s(t).conflictingPorts.length>0?(o(),i("span",I,[a("配置错误："),(o(!0),i(h,null,v(s(t).conflictingPorts,(m,f)=>(o(),i("span",null,[a(d(m),1),f!=s(t).conflictingPorts.length-1?(o(),i("span",E,"、")):n("",!0)]))),256)),s(t).conflictingPorts.length>1?(o(),i("span",R,"等")):n("",!0),a("端口同HTTP设置的端口冲突，请删除HTTP或HTTPS中的相关端口。")])):n("",!0)])])])],512),[[_,s(t).httpsConfig.isOn&&s(t).canSpecifyPort]])]),_:1}),u(r(S,{"v-ssl-policy":s(t).httpsConfig.sslPolicy,"v-protocol":"https","v-server-id":s(t).serverId,"v-support-http3":s(t).httpsConfig.supportsHTTP3&&s(t).http3FeatureEnabled},null,8,["v-ssl-policy","v-server-id","v-support-http3"]),[[_,s(t).httpsConfig.isOn]]),r(k)]),_:1},8,["onSuccess"])]),_:1},8,["ctx"]))}};export{kt as default};
