import{c as e,s as l,q as a,aF as s,H as o,v as t,x as m,z as i,e as r,y as n,I as d,J as u,A as p,B as c,C as f,bt as j,G as x}from"./base-lib.js?v=1761009159";import{ax as V,bw as h,k as g,_ as v}from"./utils-lib.js?v=1761009159";import{F as _}from"./index37.js?v=1761009159";import"./__commonjsHelpers__.js?v=1761009159";import"./store.js?v=1761009159";import"./files.js?v=1761009159";import"./validator.js?v=1761009159";import"./index106.js?v=1761009159";import"./column.js?v=1761009159";import"./store2.js?v=1761009159";import"./index103.js?v=1761009159";import"./default.js?v=1761009159";import"./index114.js?v=1761009159";import"./vue-virtual-scroller.esm.js?v=1761009159";import"./vue-virtual-scroller.js?v=1761009159";import"./file-icon.js?v=1761009159";const b={class:"flex flex-col p-16px lib-box"},w={class:"menu"},C={class:"flex items-center"},k={class:"flex items-center mt-[1rem]"},U={class:"log mt-[1rem]"},y=v(e({__name:"index",setup(e,{expose:v}){const y=_(),{loading:I,quickForm:F}=l(y),{limitOptions:O,changeLimit:q,getLog:z,setAutoRefresh:A,checkTime:H,init:L,$reset:B}=y;return a(()=>{L()}),s(()=>{B()}),v({}),(e,l)=>{const a=V,s=h,v=g,_=x,y=o("bt-loading");return t(),m("div",b,[i("div",w,[i("div",C,[l[6]||(l[6]=i("span",null,"获取最新:",-1)),r(a,{modelValue:n(F).limit,"onUpdate:modelValue":l[0]||(l[0]=e=>n(F).limit=e),options:n(O),class:"w-[8rem] mr-[2rem]",onChange:n(q)},null,8,["modelValue","options","onChange"]),l[7]||(l[7]=i("span",null,"自动刷新:",-1)),r(s,{class:"mr-[2rem]",modelValue:n(F).auto,"onUpdate:modelValue":l[1]||(l[1]=e=>n(F).auto=e),onChange:n(A)},null,8,["modelValue","onChange"]),l[8]||(l[8]=i("span",null,"刷新间隔:",-1)),r(v,{class:"mr-[1rem]",modelValue:n(F).time,"onUpdate:modelValue":l[2]||(l[2]=e=>n(F).time=e),onInput:n(H),width:"8rem"},null,8,["modelValue","onInput"]),l[9]||(l[9]=i("span",null,"/单位（秒）",-1)),d(i("span",null,"最后刷新时间："+p(n(F).last),513),[[u,""!==n(F).last]])]),i("div",k,[l[11]||(l[11]=i("span",null,"文件路径:",-1)),r(v,{class:"mr-[1rem]",modelValue:n(F).file,"onUpdate:modelValue":l[3]||(l[3]=e=>n(F).file=e),readOnly:"",width:"46rem"},null,8,["modelValue"]),r(v,{class:"mr-[1rem]",modelValue:n(F).search,"onUpdate:modelValue":l[4]||(l[4]=e=>n(F).search=e),width:"20rem",placeholder:"搜索关键值/内容"},null,8,["modelValue"]),r(_,{onClick:n(z)},{default:c(()=>l[10]||(l[10]=[f("搜索",-1)])),_:1,__:[10]},8,["onClick"])])]),d((t(),m("div",U,[d(i("textarea",{class:"w-full h-[42rem] leading-[2.2rem] resize-none bg-darkPrimary text-white p-[.5rem]","onUpdate:modelValue":l[5]||(l[5]=e=>n(F).data=e),readOnly:"readonly"},null,512),[[j,n(F).data]])])),[[y,n(I)],[y,"正在获取日志，请稍候...","title"]])])}}}),[["__scopeId","data-v-8c19bb1f"]]);export{y as default};
