import{_ as d}from"./index-lEMZglLp.js?v=1773287522785";import{a as f}from"./ssl-Bm8jcneQ.js?v=1773287522785";import{u as _}from"./useLoading-CZ2gSAW7.js?v=1773287522785";import{i as g}from"./index-BTglIPU2.js?v=1773287522785";import{B as y}from"./naive-ui--dJnpVcV.js?v=1773287522785";import{k as h,r as x,o as B,K as b,$ as v,Z as k,a0 as l,a9 as N,j as S,aa as C,S as i}from"./vue-core-DJjvd5ZC.js?v=1773287522785";import"./prismjs-BZPoR7_J.js?v=1773287522785";const L={class:"p-16px h-400px"},K=h({__name:"ssl-log",props:{data:{}},setup(p){const n=p,{loading:c,setLoading:s}=_(),r=x("None"),o=async(e=!0)=>{if(console.log("111"),s(e),!!n.data.path)try{const{message:t}=await f({path:n.data.path});g(t)&&(r.value=t.data?t.data:"None")}finally{s(!1)}};o();let a=null;return B(()=>{a=setInterval(()=>{o(!1)},2e3)}),b(()=>{a&&clearInterval(a)}),(e,t)=>{const m=y,u=d;return v(),k("div",L,[l(m,{class:"mb-8px",type:"primary",onClick:t[0]||(t[0]=$=>o(!0))},{default:N(()=>[S(C(e.$t("Public.Btn.Refresh")),1)]),_:1}),l(u,{loading:i(c),log:i(r)},null,8,["loading","log"])])}}});export{K as default};
