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