import{c as s,q as e,v as t,x as r,y as l,e as a,B as i,z as o,F as m,C as n,D as p,A as u,G as c,aY as d}from"./base-lib.js?v=1761009159";import{aj as j}from"./utils-lib.js?v=1761009159";import{t as f,aH as v,c as x,r as _}from"./useController13.js?v=1761009159";import{u as y}from"./useStore12.js?v=1761009159";import{n as b}from"./useController4.js?v=1761009159";import{u as k}from"./useStore4.js?v=1761009159";import"./__commonjsHelpers__.js?v=1761009159";import"./site.js?v=1761009159";import"./index105.js?v=1761009159";import"./index106.js?v=1761009159";import"./column.js?v=1761009159";import"./useController6.js?v=1761009159";import"./validator.js?v=1761009159";import"./useController5.js?v=1761009159";import"./useMethod5.js?v=1761009159";import"./useStore10.js?v=1761009159";const S={class:"relative h-full"},C={key:0,class:"mb-[16px]"},w={class:"flex items-center justify-between w-full"},A={class:"mr-[32px] text-small flex items-center"},z=["title"],I=s({__name:"index",setup(s){const{sslTabActive:I,sslAlertState:T,sslInfo:h}=y(),{siteInfo:B,siteType:H}=k(),{siteInfo:L}=b(),{BtTabs:g}=j({type:"card",options:f.filter(s=>"trustAsiaList"!==s.name),value:I});return e(()=>{B.value={...L.value,project_type:"docker"},H.value="docker",v()}),(s,e)=>{const j=c,f=d;return t(),r("div",S,[l(T)?(t(),r("div",C,[a(f,{type:"error",class:"mb-[16px]",closable:!1},{title:i(()=>{var s,c,d;return[o("div",w,[(null==(s=l(h))?void 0:s.isStart)?p("",!0):(t(),r(m,{key:0},[e[2]||(e[2]=o("div",{class:"mr-[32px] text-small"},"温馨提示：当前站点未开启SSL证书访问，站点访问可能存在风险。",-1)),a(j,{type:"primary",size:"small",onClick:l(x)},{default:i(()=>e[1]||(e[1]=[n(" 申请证书 ",-1)])),_:1,__:[1]},8,["onClick"])],64)),(null==(c=l(h))?void 0:c.isSupportRenewal)&&(null==(d=l(h))?void 0:d.isStart)?(t(),r(m,{key:1},[o("div",A,[e[3]||(e[3]=n(" 温馨提示：当前[ ",-1)),o("span",{class:"flex max-w-[20rem] truncate leading-[18px] inline-block",title:l(h).dns.join("、")},u(l(h).dns.join("、")),9,z),n(" ]证书"+u(Number(l(h).endtime)<0?"已过期":"即将过期"),1)]),a(j,{type:"primary",size:"small",onClick:e[0]||(e[0]=s=>l(_)())},{default:i(()=>e[4]||(e[4]=[n(" 续签证书 ",-1)])),_:1,__:[4]})],64)):p("",!0)])]}),_:1})])):p("",!0),a(l(g))])}}});export{I as default};
