import{j as e,k as a}from"./logs.js?v=1764233927359";import{cz as s,l as t,n as l,x as o,p as n,d as i,_ as c,u as r}from"./page_layout.js?v=1764233927359";import{d as p,c as u,h as d,b as _}from"./public.js?v=1764233927359";import{k as m,r as g,R as v,V as x,a2 as y,an as f,U as k,F as h,O as j,H as b,a4 as C,e as L,w,a3 as z,W as N,ak as R,j as $,S as U,a0 as S}from"./vue.js?v=1764233927359";import{_ as I}from"./index.vue_vue_type_script_setup_true_lang5.js?v=1764233927359";import{_ as O}from"./index.vue_vue_type_script_setup_true_lang7.js?v=1764233927359";import{_ as P}from"./index.vue_vue_type_script_setup_true_lang8.js?v=1764233927359";import{_ as A}from"./index104.js?v=1764233927359";import{aC as H,dS as W,bJ as B,da as F}from"./naive.js?v=1764233927359";import"./common.js?v=1764233927359";import"./__commonjsHelpers__.js?v=1764233927359";import"./index.vue_vue_type_script_setup_true_lang6.js?v=1764233927359";const J={class:"item w-240px"},K=["onClick"],T=n(m({__name:"index",setup(a){const n=s(),i=g(),c=g([]),{loading:r,setLoading:u}=p();return(async()=>{try{u(!0);const{message:a}=await e();o(a)&&(n.setLogName(a[0].log_file),i.value=a[0].log_file,c.value=a)}finally{u(!1)}})(),(e,a)=>{const s=t;return x(),v("div",J,[k(r)?(x(),y(s,{key:0,height:"36px",text:"",repeat:6})):f("",!0),(x(!0),v(h,null,j(k(c),e=>(x(),v("div",{class:b(["list",{"list-active":k(i)==e.log_file}]),key:e.name,onClick:a=>{return s=e.log_file,n.setLogName(s),void(i.value=s);var s}},C(e.name)+" - "+C(e.title)+"("+C(k(l)(e.size))+") ",11,K))),128))])}}}),[["__scopeId","data-v-3f46a004"]]),V=n(m({__name:"index",setup(e){const t=s(),l=g(!0),{keys:n,table:c,columns:r}=u([]),_=L({p:1,limit:10,search:"",log_name:"",list:[]}),m=g("None"),{loading:v,setLoading:f}=p(),h=async()=>{try{f(!0);const{message:e}=await a(_);o(e)?"string"==typeof e[0]&&(l.value=!0,m.value=e[0]?e.join("\n"):"None"):(l.value=!1,o(e)&&(r.value=Object.keys(e[0]).map(e=>({key:e,title:e})),c.data=e),i(e)&&(r.value=Object.keys(e.data[0]).map(e=>({key:e,title:e})),c.data=e.data,c.total=e.total))}finally{f(!1)}};w(()=>t.logName,e=>{e&&(_.p=1,_.log_name=e,h())});return t.logName&&h(),(e,a)=>{const s=A,t=H,o=P,i=d,p=O,u=I;return k(l)?(x(),y(s,{key:0,loading:k(v),log:k(m),class:"box"},null,8,["loading","log"])):(x(),y(u,{key:1,feedback:!1},{toolsLeft:z(()=>[N(t,{type:"primary",onClick:h},{default:z(()=>[$(C(e.$t("Public.Btn.Refresh")),1)]),_:1})]),toolsRight:z(()=>[N(o,{value:k(_).search,"onUpdate:value":a[0]||(a[0]=e=>k(_).search=e),placeholder:e.$t("Logs.Audit.index_1"),onSearch:h},null,8,["value","placeholder"])]),table:z(()=>[N(i,{"checked-row-keys":k(n),"onUpdate:checkedRowKeys":a[1]||(a[1]=e=>R(n)?n.value=e:null),"row-key":"name","max-height":800,loading:k(v),data:k(c).data,columns:k(r)},null,8,["checked-row-keys","loading","data","columns"])]),pageRight:z(()=>[N(p,{page:k(_).p,"onUpdate:page":a[2]||(a[2]=e=>k(_).p=e),"page-size":k(_).limit,"onUpdate:pageSize":a[3]||(a[3]=e=>k(_).limit=e),"item-count":k(c).total,onRefresh:h},null,8,["page","page-size","item-count"])]),_:1}))}}}),[["__scopeId","data-v-b6c1b665"]]),q={class:"pt-40px pb-40px"},D={class:"mb-24px text-center text-22px font-bold"},E={class:"mb-16px"},G={class:"ul-style"},M={class:"ml-4px"},Q={class:"text-center text-14px color-desc"},X={class:"text-center my-24px"},Y={class:"flex justify-center"},Z={class:"item"},ee=["onClick"],ae=n(m({__name:"conversion",setup(e){const a=g(0),s=["Logs list"],t=()=>{_({source:218})};return(e,l)=>{const o=c,n=H,i=B,r=W;return x(),y(r,null,{default:z(()=>[U("div",q,[U("div",D,C(e.$t("Logs.Conversion.index_1")),1),U("div",E,[U("ul",G,[U("li",null,[N(o,{name:"base-chakan",size:"22"}),U("span",M,C(e.$t("Logs.Conversion.index_2")),1)])])]),U("div",Q,C(e.$t("Logs.Conversion.index_3")),1),U("div",X,[N(n,{type:"primary",class:"h-36px text-14px",onClick:t},{default:z(()=>[$(C(e.$t("WP.Transition.index_7")),1)]),_:1})]),U("div",Y,[U("div",Z,[U("ul",null,[(x(),v(h,null,j(s,(e,s)=>U("li",{class:b({active:k(a)==s}),key:s,onClick:e=>a.value=s},C(e),11,ee)),64))])]),N(i,{width:"100%",src:k("/static/vite/images/logAudit.png")},null,8,["src"])])])]),_:1})}}}),[["__scopeId","data-v-823c6b54"]]),se=m({__name:"index",setup(e){const a=r(),{isPro:s}=S(a);return(e,a)=>{const t=F,l=W;return k(s)?(x(),y(l,{key:0,class:"p-16px"},{default:z(()=>[N(t,null,{default:z(()=>[N(T),N(V,{class:"flex-1"})]),_:1})]),_:1})):(x(),y(ae,{key:1}))}}});export{se as default};
