import{_ as y}from"./index-CZps0rIN.js?v=1773287522785";import{a2 as S,K as w}from"./ssl-Bm8jcneQ.js?v=1773287522785";import{i as u,aq as C,p as g}from"./index-BTglIPU2.js?v=1773287522785";import{a as b}from"./ssl-lets-progress-6I5lHATh.js?v=1773287522785";import{ad as $,B as k}from"./naive-ui--dJnpVcV.js?v=1773287522785";import{k as L,O as B,e as K,$ as P,Z as R,a0 as i,a9 as d,_ as e,j as n,aa as a,S as t}from"./vue-core-DJjvd5ZC.js?v=1773287522785";import"./prismjs-BZPoR7_J.js?v=1773287522785";import"./index-DIKmrNCq.js?v=1773287522785";import"./index.vue_vue_type_script_setup_true_lang-BeO8Hyma.js?v=1773287522785";import"./data-BVsViUMm.js?v=1773287522785";import"./useLoading-CZ2gSAW7.js?v=1773287522785";import"./useTableData-BmkIKQ_R.js?v=1773287522785";const j={class:"p-20px"},F={class:"flex flex-wrap py-2px text-primary text-12px"},N={class:"pr-24px"},U={class:"pr-24px"},V={class:"flex gap-20px mt-16px"},D={class:"flex-1"},O={class:"mb-8px"},q={class:"flex-1"},E={class:"mb-8px"},I={class:"my-10px"},ee=L({__name:"index",props:{data:{}},setup(f){const c=f,{row:o}=B(c.data),l=K({privateKey:o.value.cert.key,certPem:o.value.cert.csr}),v=async()=>{const{message:s}=await S({hash:o.value.hash});u(s)&&C(encodeURIComponent(s.result))},x=async()=>{const{message:s}=await w({hash:o.value.hash});u(s)&&g({hideClose:!0,data:{isJump:!1,task_id:s.task_id,onFinish:()=>{c.data.onRefresh()}},component:b})};return(s,r)=>{const h=$,_=y,m=k;return P(),R("div",j,[i(h,{type:"success","show-icon":!1},{default:d(()=>[e("div",F,[e("div",null,[e("span",N,[n(a(s.$t("SSL.index_41")),1),e("b",null,a(t(o).provider),1)]),e("span",null,[n(a(s.$t("Config.Safe.index_38")),1),e("b",null,a(t(o).issuer),1)])]),e("div",null,[e("span",U,[n(a(s.$t("Config.Safe.index_37")),1),e("b",null,a(t(o).verify_domains.join(",")),1)]),e("span",null,[n(a(s.$t("Config.Safe.index_39")),1),e("b",null,a(t(o).end_date),1)])])])]),_:1}),e("div",V,[e("div",D,[e("div",O,a(s.$t("Config.Safe.index_27")),1),i(_,{value:t(l).privateKey,"onUpdate:value":r[0]||(r[0]=p=>t(l).privateKey=p),readonly:"",rows:14,placeholder:""},null,8,["value"])]),e("div",q,[e("div",E,a(s.$t("Config.Safe.index_28")),1),i(_,{value:t(l).certPem,"onUpdate:value":r[1]||(r[1]=p=>t(l).certPem=p),readonly:"",rows:14,placeholder:""},null,8,["value"])])]),e("div",I,[i(m,{type:"primary",onClick:v,class:"mr-12px"},{default:d(()=>[n(a(s.$t("Ftp.Label.index_11")),1)]),_:1}),i(m,{onClick:x},{default:d(()=>[n(a(s.$t("SSL.index_42")),1)]),_:1})])])}}});export{ee as default};
