import{_ as l}from"./index-lEMZglLp.js?v=1773287522785";import{cd as m,i as u}from"./index-BTglIPU2.js?v=1773287522785";import{u as f}from"./useLoading-CZ2gSAW7.js?v=1773287522785";import{k as g,r as d,$ as h,a8 as w,S as n,a9 as x,a0 as y}from"./vue-core-DJjvd5ZC.js?v=1773287522785";import{a9 as b}from"./naive-ui--dJnpVcV.js?v=1773287522785";const D=g({__name:"logs",props:{data:{}},setup(a){const e=a,{type:c,path:i}=e.data,o=d(""),{loading:r,setLoading:s}=f();return(async()=>{try{s(!0);const{message:t}=await m({type:c,path:i});u(t)&&(o.value=t.result)}finally{s(!1)}})(),(t,C)=>{const p=l,_=b;return h(),w(_,{class:"w-650px h-550px bg-#282C34",show:n(r)},{default:x(()=>[y(p,{log:n(o)},null,8,["log"])]),_:1},8,["show"])}}});export{D as _};
