import{_ as e}from"./index.vue_vue_type_script_setup_true_lang5.js?v=1763625242172";import{_ as a}from"./index.vue_vue_type_script_setup_true_lang7.js?v=1763625242172";import{d as t,a as s,h as o}from"./public.js?v=1763625242172";import{_ as n}from"./index.vue_vue_type_script_setup_true_lang8.js?v=1763625242172";import{c as i,a as l}from"./index103.js?v=1763625242172";import{Z as r,P as p,a0 as u,k as _,R as c,S as d,X as m,a3 as g,V as v,j as h,a4 as j,aj as f}from"./vue.js?v=1763625242172";import{aa as x,c as y,ab as k}from"./page_layout.js?v=1763625242172";import{dS as b,aC as w}from"./naive.js?v=1763625242172";import"./index.vue_vue_type_script_setup_true_lang6.js?v=1763625242172";import"./common.js?v=1763625242172";import"./__commonjsHelpers__.js?v=1763625242172";import"./accountState.js?v=1763625242172";import"./index.vue_vue_type_script_setup_true_lang.js?v=1763625242172";import"./quota.js?v=1763625242172";import"./disk.js?v=1763625242172";const L=r("logsStore",(()=>{const{t:e}=p(),{search:a,table:o}=u(i()),n=async()=>{try{r(!0);const{message:e}=await x(a.value);y(e)&&(o.value.data=e.list,o.value.total=e.page.count)}finally{r(!1)}},{loading:l,setLoading:r}=t();return{init:n,setLoading:r,loading:l,onClear:()=>{s({title:e("Logs.Panel.index_5"),content:e("Logs.Panel.index_15"),onConfirm:async()=>{await k(),n()}})}}})),S=_({__name:"index",setup(t){const{logs:s}=l(),{init:i,onClear:r,loading:p}=L();i();const{table:u,search:_,keys:x,columns:y}=s;return(t,s)=>{const l=w,k=n,L=o,S=a,C=e,R=b;return c(),d("div",null,[m(R,{class:"p-16px mb-16px"},{default:g((()=>[m(C,{feedback:!0,email:!0},{toolsLeft:g((()=>[m(l,{onClick:v(r)},{default:g((()=>[h(j(t.$t("Logs.Panel.index_5")),1)])),_:1},8,["onClick"])])),toolsRight:g((()=>[m(k,{value:v(_).search,"onUpdate:value":s[0]||(s[0]=e=>v(_).search=e),placeholder:t.$t("Logs.Panel.index_4"),onSearch:v(i)},null,8,["value","placeholder","onSearch"])])),table:g((()=>[m(L,{"checked-row-keys":v(x),"onUpdate:checkedRowKeys":s[1]||(s[1]=e=>f(x)?x.value=e:null),"max-height":800,loading:v(p),data:v(u).data,columns:v(y)},null,8,["checked-row-keys","loading","data","columns"])])),pageRight:g((()=>[m(S,{page:v(_).p,"onUpdate:page":s[2]||(s[2]=e=>v(_).p=e),"page-size":v(_).rows,"onUpdate:pageSize":s[3]||(s[3]=e=>v(_).rows=e),"item-count":v(u).total,onRefresh:v(i)},null,8,["page","page-size","item-count","onRefresh"])])),_:1})])),_:1})])}}});export{S as default};
