import{_ as a}from"./index99.js?v=1764233927359";import{hc as s,d as e,bk as l,e5 as t}from"./page_layout.js?v=1764233927359";import{u as n}from"./public.js?v=1764233927359";import{a as i}from"./ssl-lets-progress.js?v=1764233927359";import{dk as o,aC as p}from"./naive.js?v=1764233927359";import{k as r,P as d,af as c,e as m,R as u,V as x,W as f,S as v,a3 as _,j as y,a4 as h,U as j}from"./vue.js?v=1764233927359";import"./common.js?v=1764233927359";import"./__commonjsHelpers__.js?v=1764233927359";import"./index.js?v=1764233927359";const g={class:"p-20px"},C={class:"flex flex-wrap py-2px text-primary text-12px"},S={class:"pr-24px"},b={class:"pr-24px"},k={class:"flex gap-20px mt-16px"},$={class:"flex-1"},w={class:"mb-8px"},P={class:"flex-1"},U={class:"mb-8px"},K={class:"my-10px"},L=r({__name:"index",props:{data:{}},setup(r){const{t:L}=d(),R=r,{row:F}=c(R.data),H=m({privateKey:F.value.cert.key,certPem:F.value.cert.csr}),I=async()=>{const{message:a}=await s({hash:F.value.hash});e(a)&&l(encodeURIComponent(a.result))},J=async()=>{const{message:a}=await t({hash:F.value.hash});e(a)&&n({hideClose:!0,data:{isJump:!1,task_id:a.task_id,onFinish:()=>{R.data.onRefresh()}},component:i})};return(s,e)=>{const l=o,t=a,n=p;return x(),u("div",g,[f(l,{type:"success","show-icon":!1},{default:_(()=>[v("div",C,[v("div",null,[v("span",S,[y(h(s.$t("SSL.index_41")),1),v("b",null,h(j(F).provider),1)]),v("span",null,[y(h(s.$t("Config.Safe.index_38")),1),v("b",null,h(j(F).issuer),1)])]),v("div",null,[v("span",b,[y(h(s.$t("Config.Safe.index_37")),1),v("b",null,h(j(F).verify_domains.join(",")),1)]),v("span",null,[y(h(s.$t("Config.Safe.index_39")),1),v("b",null,h(j(F).end_date),1)])])])]),_:1}),v("div",k,[v("div",$,[v("div",w,h(s.$t("Config.Safe.index_27")),1),f(t,{value:j(H).privateKey,"onUpdate:value":e[0]||(e[0]=a=>j(H).privateKey=a),readonly:"",rows:14,placeholder:""},null,8,["value"])]),v("div",P,[v("div",U,h(s.$t("Config.Safe.index_28")),1),f(t,{value:j(H).certPem,"onUpdate:value":e[1]||(e[1]=a=>j(H).certPem=a),readonly:"",rows:14,placeholder:""},null,8,["value"])])]),v("div",K,[f(n,{type:"primary",onClick:I,class:"mr-12px"},{default:_(()=>[y(h(s.$t("Ftp.Label.index_11")),1)]),_:1}),f(n,{onClick:J},{default:_(()=>[y(h(s.$t("SSL.index_42")),1)]),_:1})])])}}});export{L as default};
