import{c as e,g as l,e as s,C as a,G as o,v as r,x as t,B as u,z as p,y as m,aZ as d}from"./base-lib.js?v=1761009159";import{G as i,bl as n,c0 as g,ga as c}from"./utils-lib.js?v=1761009159";import{_ as v}from"./input-popover.vue_vue_type_script_setup_true_lang.js?v=1761009159";import{a0 as y,a1 as C,a2 as b,a3 as f}from"./useController13.js?v=1761009159";import"./__commonjsHelpers__.js?v=1761009159";import"./site.js?v=1761009159";import"./index104.js?v=1761009159";import"./index105.js?v=1761009159";import"./column.js?v=1761009159";import"./useStore12.js?v=1761009159";import"./useStore4.js?v=1761009159";import"./useController6.js?v=1761009159";import"./validator.js?v=1761009159";import"./useController5.js?v=1761009159";import"./useMethod5.js?v=1761009159";import"./useController4.js?v=1761009159";import"./useStore10.js?v=1761009159";const j={class:"p-[16px]"},h=e({__name:"apply-bt-ssl",setup(e,{expose:h}){const{BtForm:x,submit:w}=i({data:y,options:e=>l(()=>[{type:"custom",render:()=>s(n,{label:"证书信息"},{default:()=>[s("span",{class:"text-primary"},[a(" TrustAsia TLS RSA CA(免费版)")])]})},{type:"select",label:"域名",key:"domain",options:C.value||[],attrs:{placeholder:"请选择",style:"width: 15rem"},rules:[g({message:"请选择域名"})]},{type:"custom",render:()=>s(n,{label:"个人/公司名称",prop:"orgName"},{default:()=>[s(v,{customClass:"!w-[36rem]",modelValue:e.value.orgName,"onUpdate:modelValue":l=>e.value.orgName=l,placeholderTips:"请输入个人/公司名称，必填项"},null)]}),rules:{orgName:[g({message:"请输入个人/公司名称"})]}},{type:"custom",render:()=>s(n,{label:"所在地区"},{default:()=>[s("div",{class:"flex flex-row"},[s(n,{prop:"orgRegion"},{default:()=>[s(v,{customClass:"mr-[16px] !w-[17rem]",modelValue:e.value.orgRegion,"onUpdate:modelValue":l=>e.value.orgRegion=l,placeholderTips:"请输入所在省份，必填项"},null)]}),s(n,{prop:"orgCity"},{default:()=>[s(v,{customClass:"!w-[17.4rem]",modelValue:e.value.orgCity,"onUpdate:modelValue":l=>e.value.orgCity=l,placeholderTips:"请输入所在市/县，必填项"},null)]})])]}),rules:{orgRegion:[g({message:"请输入所在省份"})],orgCity:[g({message:"请输入所在市/县"})]}},{type:"custom",render:()=>s(n,{label:"地址",prop:"orgAddress"},{default:()=>[s(v,{customClass:"!w-[36rem]",modelValue:e.value.orgAddress,"onUpdate:modelValue":l=>e.value.orgAddress=l,placeholderTips:"请输入个人/公司地址，必填项"},null)]}),rules:{orgAddress:[g({message:"请输入个人/公司地址"})]}},{type:"custom",render:()=>s(n,{label:"手机",prop:"orgPhone"},{default:()=>[s(v,{customClass:"!w-[36rem]",modelValue:e.value.orgPhone,"onUpdate:modelValue":l=>e.value.orgPhone=l,placeholderTips:"请输入手机号码，必填项"},null)]}),rules:{orgPhone:[{required:!0,message:"请输入手机号码",validator:(e,l,s)=>{c(l)?s():s(new Error("请输入正确的手机号码"))},trigger:["blur","change"]}]}},{type:"custom",render:()=>s(n,{label:"邮政编码",prop:"orgPostalCode"},{default:()=>[s(v,{customClass:"!w-[36rem]",modelValue:e.value.orgPostalCode,"onUpdate:modelValue":l=>e.value.orgPostalCode=l,placeholderTips:"请输入邮政编码，必填项"},null)]}),rules:{orgPostalCode:[{required:!0,message:"请输入邮政编码",validator:(e,l,s)=>{6===l.length?s():s(new Error("请输入正确的邮政编码"))},trigger:["blur","change"]}]}},{type:"custom",render:()=>s(n,{label:" "},{default:()=>[s(o,{type:"primary",onClick:()=>w()},{default:()=>{var e;return[(null==(e=b.value)?void 0:e.ssl_id)?"提交信息":"申请证书"]}})]})}]),submit:async(e,l)=>(await l(),await f(e.value))});return h({onConfirm:w}),(e,l)=>{const a=d;return r(),t("div",j,[s(a,{type:"error",closable:!1},{title:u(()=>l[0]||(l[0]=[p("span",{class:"text-small"},[p("i",{calss:"svgtofont-el-warning text-small text-warning"}),p("span",null," 禁止含有诈骗、赌博、色情、木马、病毒等违法违规业务信息的站点申请SSL证书，如有违反，撤销申请，停用账号。 ")],-1)])),_:1}),s(m(x),{"label-width":"100px",class:"mt-[16px] pb-[16px]"})])}}});export{h as default};
