import{_ as x}from"./index.vue_vue_type_script_setup_true_lang-DgjjuUjT.js?v=1773287522785";import{_ as y}from"./index.vue_vue_type_script_setup_true_lang-C5hb-Th7.js?v=1773287522785";import{_ as C}from"./index.vue_vue_type_script_setup_true_lang-BeO8Hyma.js?v=1773287522785";import{_ as L}from"./index.vue_vue_type_script_setup_true_lang-D2Bk83Ev.js?v=1773287522785";import{c as R,a as v}from"./index-BX8s-Tkz.js?v=1773287522785";import{a4 as w,R as $,a6 as B,k as P,$ as U,Z as z,a0 as i,a9 as l,S as o,X as j,j as N,aa as T}from"./vue-core-DJjvd5ZC.js?v=1773287522785";import{R as V,i as A,h as D,S as E}from"./index-BTglIPU2.js?v=1773287522785";import{u as I}from"./useLoading-CZ2gSAW7.js?v=1773287522785";import{B as K,a2 as O}from"./naive-ui--dJnpVcV.js?v=1773287522785";import"./index.vue_vue_type_script_setup_true_lang-B7YvCBmY.js?v=1773287522785";import"./data-BVsViUMm.js?v=1773287522785";import"./accountState-C6swUxox.js?v=1773287522785";import"./useTableColumns-DDeyYvje.js?v=1773287522785";import"./index-S15tYq5l.js?v=1773287522785";import"./copy-D-wIKr0q.js?v=1773287522785";import"./index-DIKmrNCq.js?v=1773287522785";import"./index.vue_vue_type_script_setup_true_lang-DeTfbeeM.js?v=1773287522785";import"./index-Cg6fMjw6.js?v=1773287522785";import"./ssl-Bm8jcneQ.js?v=1773287522785";import"./index.vue_vue_type_script_setup_true_lang-D8O2mMsP.js?v=1773287522785";import"./quota-CnIxokiE.js?v=1773287522785";import"./disk-CUga-VD7.js?v=1773287522785";import"./useRestart-m69F1Jd4.js?v=1773287522785";import"./prismjs-BZPoR7_J.js?v=1773287522785";const X=w("logsStore",()=>{const{t:m}=$(),{search:c,table:s}=B(R()),p=async()=>{try{r(!0);const{message:a}=await V(c.value);A(a)&&(s.value.data=a.list,s.value.total=a.page.count)}finally{r(!1)}},{loading:_,setLoading:r}=I();return{init:p,setLoading:r,loading:_,onClear:()=>{D({title:m("Logs.Panel.index_5"),content:m("Logs.Panel.index_15"),onConfirm:async()=>{await E(),p()}})}}}),go=P({__name:"index",setup(m){const{logs:c}=v(),{init:s,onClear:p,loading:_}=X();s();const{table:r,search:e,keys:a,columns:d}=c;return(u,t)=>{const g=K,f=L,b=C,h=y,k=x,S=O;return U(),z("div",null,[i(S,{class:"p-16px mb-16px"},{default:l(()=>[i(k,{feedback:!0,email:!0},{toolsLeft:l(()=>[i(g,{onClick:o(p)},{default:l(()=>[N(T(u.$t("Logs.Panel.index_5")),1)]),_:1},8,["onClick"])]),toolsRight:l(()=>[i(f,{value:o(e).search,"onUpdate:value":t[0]||(t[0]=n=>o(e).search=n),placeholder:u.$t("Logs.Panel.index_4"),onSearch:o(s)},null,8,["value","placeholder","onSearch"])]),table:l(()=>[i(b,{"checked-row-keys":o(a),"onUpdate:checkedRowKeys":t[1]||(t[1]=n=>j(a)?a.value=n:null),"max-height":800,loading:o(_),data:o(r).data,columns:o(d)},null,8,["checked-row-keys","loading","data","columns"])]),pageRight:l(()=>[i(h,{page:o(e).p,"onUpdate:page":t[2]||(t[2]=n=>o(e).p=n),"page-size":o(e).rows,"onUpdate:pageSize":t[3]||(t[3]=n=>o(e).rows=n),"item-count":o(r).total,onRefresh:o(s)},null,8,["page","page-size","item-count","onRefresh"])]),_:1})]),_:1})])}}});export{go as default};
