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-BYcXwl4U.js";import{i as g,c as T}from"./app-a6cKceqE.js";import{_ as y}from"./app-C3oVnfUH.js";import{W as C}from"./app-D7QVa3_6.js";import{_ as P}from"./app-CQ-vNlMj.js";import{_ as x}from"./app-DwtlHtUX.js";import{_ as S}from"./app-CorBkM4c.js";import{_ as k}from"./app-CignoBaV.js";import{D as H}from"./app-7GBSHA5C.js";import{_ as N}from"./app-xuUOhL_d.js";import"./app-CLawzVMq.js";import"./app-BeFNDz9n.js";import"./app-BDgR0DSb.js";import"./app-DxjODhok.js";import"./app-DPDEogA0.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-BHl80pFw.js";import"./app-DxbU-QrX.js";import"./app-Cp3gmk2J.js";import"./app--MWyBMkA.js";import"./app-CNARLpXE.js";import"./app-D5k1HLu9.js";import"./app-ysQ8KbGS.js";import"./app-CrjU8lgK.js";import"./app-Ufpj4Ll4.js";import"./app-JrQl8j_T.js";import"./app-MtOp7vk3.js";import"./app-B5UbDc9M.js";import"./app-D2Wz0BUQ.js";import"./app-iaXXZg9Y.js";import"./app-C0-Qcoum.js";import"./app-0YmIdYYs.js";import"./app-BmaR5UVy.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};
