import{_ as a}from"./index104.js?v=1763625242172";import{t as s,c as o}from"./page_layout.js?v=1763625242172";import{d as t}from"./public.js?v=1763625242172";import{aC as e}from"./naive.js?v=1763625242172";import{k as l,r,o as n,G as p,R as i,S as m,X as c,a3 as d,j as u,a4 as f,V as g}from"./vue.js?v=1763625242172";import"./common.js?v=1763625242172";import"./__commonjsHelpers__.js?v=1763625242172";const j={class:"p-16px h-400px"},_=l({__name:"ssl-log",props:{data:{}},setup(l){const _=l,{loading:v,setLoading:y}=t(),h=r("None"),x=async(a=!0)=>{if(console.log("111"),y(a),_.data.path)try{const{message:a}=await s({path:_.data.path});o(a)&&(h.value=a.data?a.data:"None")}finally{y(!1)}};x();let b=null;return n((()=>{b=setInterval((()=>{x(!1)}),2e3)})),p((()=>{b&&clearInterval(b)})),(s,o)=>{const t=e,l=a;return i(),m("div",j,[c(t,{class:"mb-8px",type:"primary",onClick:o[0]||(o[0]=a=>x(!0))},{default:d((()=>[u(f(s.$t("Public.Btn.Refresh")),1)])),_:1}),c(l,{loading:g(v),log:g(h)},null,8,["loading","log"])])}}});export{_ as default};
