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