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-DnroACXc.js";import{i as g,c as T}from"./app-DckefXYL.js";import{_ as y}from"./app-DgsA44Do.js";import{W as C}from"./app-C7P1WxYu.js";import{_ as P}from"./app-MnSDCF4P.js";import{_ as x}from"./app-BbRQPmFH.js";import{_ as S}from"./app-Dv1kfi-t.js";import{_ as k}from"./app-COct4tsy.js";import{D as H}from"./app-Cx7ENVlu.js";import{_ as N}from"./app-DBzPPMxI.js";import"./app-B2-Q9WJQ.js";import"./app-DAKlLAys.js";import"./app-xECxwo4T.js";import"./app-BBDtZW3a.js";import"./app-Co2SIBzr.js";import"./app-B0NrURRk.js";import"./app-R-vSvFIF.js";import"./app-HaDoyrq5.js";import"./app-CYYQ_Zep.js";import"./app-Cmxxk_WX.js";import"./app-CF8nmC-F.js";import"./app-B09rlSqG.js";import"./app-B4bUdtyo.js";import"./app-DntYVxd7.js";import"./app-BJhJ7lM8.js";import"./app-Dd07dUxy.js";import"./app-Dpl5YSiv.js";import"./app-NVAx7Sc3.js";import"./app-CF0qXH5Q.js";import"./app-LqsmzyUT.js";import"./app-DPkDcD7h.js";import"./app-DK4Xe9me.js";import"./app-MtOp7vk3.js";import"./app-B5UbDc9M.js";import"./app-B8VsrFxM.js";import"./app-Do8DhyKT.js";import"./app-C0-Qcoum.js";import"./app-z7Z_Uo-k.js";import"./app-NF1oOHjK.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},Ht={__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{Ht as default};
