import{_ as e}from"./index.vue_vue_type_script_setup_true_lang4.js?v=1753954525509";import{_ as a}from"./index.vue_vue_type_script_setup_true_lang5.js?v=1753954525509";import{c as t,d as s,f as o}from"./public.js?v=1753954525509";import{_ as n}from"./index.vue_vue_type_script_setup_true_lang6.js?v=1753954525509";import{c as i,a as l}from"./index99.js?v=1753954525509";import{S as r,P as p,$ as u,k as c,U as _,V as d,Q as m,a2 as g,X as v,j as f,a3 as h,ah as j}from"./vue.js?v=1753954525509";import{Y as x,c as y,Z as k}from"./page_layout.js?v=1753954525509";import{cD as w,ay as L}from"./naive.js?v=1753954525509";import"./index.vue_vue_type_script_setup_true_lang7.js?v=1753954525509";import"./common.js?v=1753954525509";import"./__commonjsHelpers__.js?v=1753954525509";import"./accountState.js?v=1753954525509";import"./index.vue_vue_type_script_setup_true_lang.js?v=1753954525509";import"./quota.js?v=1753954525509";import"./disk.js?v=1753954525509";const b=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=c({__name:"index",setup(t){const{logs:s}=l(),{init:i,onClear:r,loading:p}=b();i();const{table:u,search:c,keys:x,columns:y}=s;return(t,s)=>{const l=L,k=n,b=o,S=a,C=e,P=w;return _(),d("div",null,[m(P,{class:"p-16px mb-16px"},{default:g((()=>[m(C,{feedback:!0,email:!0},{toolsLeft:g((()=>[m(l,{onClick:v(r)},{default:g((()=>[f(h(t.$t("Logs.Panel.index_5")),1)])),_:1},8,["onClick"])])),toolsRight:g((()=>[m(k,{value:v(c).search,"onUpdate:value":s[0]||(s[0]=e=>v(c).search=e),placeholder:t.$t("Logs.Panel.index_4"),onSearch:v(i)},null,8,["value","placeholder","onSearch"])])),table:g((()=>[m(b,{"checked-row-keys":v(x),"onUpdate:checkedRowKeys":s[1]||(s[1]=e=>j(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(c).p,"onUpdate:page":s[2]||(s[2]=e=>v(c).p=e),"page-size":v(c).rows,"onUpdate:pageSize":s[3]||(s[3]=e=>v(c).rows=e),"item-count":v(u).total,onRefresh:v(i)},null,8,["page","page-size","item-count","onRefresh"])])),_:1})])),_:1})])}}});export{S as default};
