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