import{l as s,t as e,v as t,x as a}from"./utils-lib.js?v=20260328163632";import{u as o,k as i,l as r,r as n}from"./index.vue_vue_type_script_setup_true_lang9.js?v=20260328163632";import{u as l}from"./store4.js?v=20260328163632";import{c3 as m}from"./site.js?v=20260328163632";import{k as p,O as u,F as c,c as d,r as S,o as _,V as j,W as v,Y as x}from"./base-lib.js?v=20260328163632";import"./naive-ui.js?v=20260328163632";import"./__commonjsHelpers__.js?v=20260328163632";import"./env-lib.js?v=20260328163632";import"./index84.js?v=20260328163632";import"./useMethod4.js?v=20260328163632";import"./index.vue_vue_type_script_setup_true_lang10.js?v=20260328163632";import"./index158.js?v=20260328163632";import"./ace.js?v=20260328163632";import"./index91.js?v=20260328163632";import"./index88.js?v=20260328163632";import"./index118.js?v=20260328163632";import"./logs.js?v=20260328163632";const b={class:"p-20px"},f=p({__name:"index",setup(p,{expose:f}){l();const{isRefreshSSL:g}=o(),h=[{content:s("申请之前，请确保域名已解析，如未解析会导致审核失败(包括根域名)")},{content:s("宝塔SSL申请的是TrustAsia DV SSL CA - G5证书，仅支持单个域名申请")},{content:s("有效期1年，不支持续签，到期后需要重新申请")},{content:s("建议使用二级域名为www的域名申请证书,此时系统会默认赠送顶级域名为可选名称")},{content:s("在未指定SSL默认站点时,未开启SSL的站点使用HTTPS会直接访问到已开启SSL的站点")},{content:u(c,null,[s("宝塔SSL申请注意事项及教程"),u("a",{href:"https://www.bt.cn/bbs/thread-33113-1-1.html",target:"_blank",class:"bt-link"},[s("使用帮助")])])},{content:u("span",{class:"text-danger"},[s("IIS8.5以下版本，一台服务器只能存在一个SSL，多次部署会替换之前的SSL")])}],w=d((()=>({label:s("域名"),ruleKey:"domain",rules:[{required:!0,message:s("请选择域名"),trigger:"blur"}],children:[{type:"select",key:"domain",attrs:{class:"w-[300px]",options:i.value,placeholder:s("请选择域名")}}]}))),L=S({formAttrs:{labelWidth:"100px"},formItems:[]}),y=d((()=>(L.value.formItems=[w.value],L.value))),[k,I,A]=e(y);return _((()=>{r()})),f({onConfirm:async()=>{await A.value.validate();const e={ssl_id:n.value.oid,domain:I.value.domain};await a({loading:s("正在申请证书，请稍后..."),request:m(e),message:!0,success:()=>{g.value=!0}})}}),(s,e)=>(j(),v("div",b,[u(x(k)),u(x(t),{options:h})]))}});export{f as default};
