Files

2 lines
12 KiB
JavaScript
Raw Permalink Normal View History

2026-04-07 02:04:22 +05:30
import{_ as Z}from"./index.vue_vue_type_script_setup_true_lang-D8O2mMsP.js?v=1773287522785";import{e as H,c as g,r as I,w as V,k as N,$ as b,a8 as R,a9 as u,a0 as l,_ as a,L as S,S as t,l as $,as as q,v as k,j as B,aa as p,Z as w,R as K,ak as A,F as D,o as Q,P as M}from"./vue-core-DJjvd5ZC.js?v=1773287522785";import{u as X}from"./useLoading-CZ2gSAW7.js?v=1773287522785";import{F as ee,G as z}from"./ssl-Bm8jcneQ.js?v=1773287522785";import{i as O,m as L,c as G,cE as ne,f as J,cF as te,h as oe,cG as se,u as ae}from"./index-BTglIPU2.js?v=1773287522785";import{a1 as U,k as E,B as W,a9 as ie,ad as le}from"./naive-ui--dJnpVcV.js?v=1773287522785";import{l as re,a as ce}from"./paypal-js-DVrdQmks.js?v=1773287522785";const e=H({domainCount:1,certType:"dv",brand:"Positive",mode:"single",years:5,deploy:1});V(()=>e.certType,s=>{s==="dv"?e.brand="Positive":e.brand="sslTrus",e.domainCount>1?e.mode="multi":e.mode="single"});V(()=>e.domainCount,s=>{s>1&&e.mode==="single"?e.mode="multi":s===1&&e.mode==="multi"&&(e.mode="single")});V(()=>e.domainCount,s=>{s>1&&e.brand==="GeoTrust"&&(e.brand="Positive")});const v=g(()=>{var o;return((o=Y.value)==null?void 0:o.find(r=>{const _=r.brand===e.brand,y=r.type.substring(0,2).toLowerCase()===e.certType;let m=!1;return e.brand==="Sectigo"&&e.certType==="ov"&&e.mode==="wildcard"&&e.domainCount>1?(m=r.code.includes("comodo-multi-domain-wildcard"),_&&y&&m):e.brand==="Positive"&&e.certType==="dv"&&e.mode==="wildcard"&&e.domainCount>1?(m=r.code.includes("multi-domain-wildcard"),_&&y&&m):(e.mode==="single"?m=r.add_price===0:e.mode==="multi"?m=r.code.includes("multi"):e.mode==="wildcard"&&(e.brand==="Digicert"||e.domainCount===1?m=r.code.includes("wildcard"):(m=r.code.includes("multi-domain-wildcard"),m||(L.error("The current certificate brand does not support multi-domain certificate, has automatically switched to the supported certificate brand for you!"),e.mode="multi"))),e.brand==="Digicert"&&e.certType==="ov"&&e.mode==="wildcard"?m=r.code.includes("digicert-basic-ov-wildcard"):e.brand==="Digicert"&&!m&&(m=r.code.includes("digicert-secure-site-".concat(e.certType))),_&&y&&m)}))||{}}),de=[{value:"dv",name:"DV certificate",desc:"Recommended for personal, test use"},{value:"ov",name:"OV certificate",desc:"Recommended for enterprise use"},{value:"ev",name:"EV certificate",desc:"Recommended for large government and enterprise use, high security"}],ue=H([{value:"Positive",name:"Positive",show:g(()=>e.certType!=="ov")},{value:"sslTrus",name:"sslTrus",show:!0},{value:"Digicert",name:"Digicert",show:g(()=>e.certType!=="dv")},{value:"GeoTrust",name:"GeoTrust",show:g(()=>e.domainCount===1||e.domainCount!==1&&e.certType==="ev")},{value:"Sectigo",name:"Sectigo",show:!0}]),me=H([{value:"single",name:"Single domain",show:g(()=>e.domainCount===1)},{value:"multi",name:"Multi-domain",show:g(()=>e.domainCount>1)},{value:"wildcard",name:"Wildcard",show:g(()=>e.certType!=="ev")}]),pe=[{value:5,name:"5 year"},{value:4,name:"4 year"},{value:3,name:"3 year"},{value:2,name:"2 year"},{value:1,name:"1 year"}],_e=[{value:1,name:"Deploy Service"},{value:0,name:"It isn't necessary"}],F=I(),Y=I(),fe=g(()=>{var o;const s=(o=F.value)==null?void 0:o.type[e.certType];return Array.isArray(s)&&s.length>0?s[0]:""}),ve=g(()=>{var o;const s=(o=F.value)==null?void 0:o.brand[e.brand];return Array.isArray(s)&&s.length>0?s[0]:""}),ye=g(()=>{var o;const s=(o=F.value)==null?void 0:o.recommend[e.certType];return typeof s=="string"?s:""}),he=g(()=>e.mode==="single"?"Only one secondary domain or subdomain is supported, e.g. bt.com, cloud.bt.com, or dnspod.cloud.bt.com. If you need to bind all subdomains of a peer, e.g. *.bt.com, purchase a universal domain certificate.":"Domain names with wildcards, such as *.bt.com and *.cloud.bt.com, are universal domain names that contain all subdomain names of the same level.<br>Note that universal domain names do not support cross-tiers, e.g. *.bt.com does not include *.cloud.bt.com support"),be=g(()=>{var o;const s=(o=F.value)==null?void 0:o.times["".concat(e.years,"_year")];return Array.isArray(s)&&s.length>0?s[