import{i as n,c as h}from"./app-Ba7ZqSpq.js";import{C as _}from"./app-qhR41k1m.js";import{_ as f}from"./app-rIYFLdeU.js";import{_ as l}from"./app-DqJPA-IS.js";import{L as u}from"./app-Crd12MWL.js";import{_ as v}from"./app-CWnUJ4gg.js";import{_ as y}from"./app-D9UgVOV0.js";import{N as k}from"./app-CL60OiIv.js";import{N as d}from"./app-B2C_dtYI.js";import{o as t,c,w as a,u as r,g as s,b as o,h as i,f as I,a as g}from"./app-SC54XQDl.js";import"./app-CS3AUTAk.js";import"./app-CCkWSX4Q.js";import"./app-B9xxzP2y.js";import"./app-C28obFWS.js";import"./app-CkINxBL9.js";import"./app-PPG0ZS4d.js";import"./app--Lj8zATS.js";import"./app-Ch8j4za4.js";import"./app-C2mBgI5Z.js";import"./app-Ciy_QwIW.js";import"./app-DoVkxbmA.js";import"./app-CukjbZvY.js";import"./app-D3Qbxi9D.js";import"./app-yF7sElvF.js";import"./app-CqkleIqs.js";import"./app-DHsI_tns.js";import"./app-BZGObKCm.js";import"./app-BPIIxVwk.js";import"./app-DgoEZtNT.js";import"./app-Dw0jKdCD.js";import"./app-DnXuoh8P.js";import"./app-C8HFiBxn.js";import"./app-BjSCO7rC.js";import"./app-g-bJrEAS.js";import"./app-DZaelcLs.js";import"./app-D_RBJHM6.js";import"./app-CmrRgGIA.js";import"./app-DyP4Nide.js";import"./app-D9TrJBlL.js";import"./app-_Ovp2dOH.js";import"./app-Dhl-Bw0H.js";import"./app-COidJXl1.js";function b(){n(this);let m=this;this.featureIsOn&&this.accessLogs.forEach(function(e){typeof m.regions[e.remoteAddr]=="string"?e.region=m.regions[e.remoteAddr]:e.region=""})}const x={key:0},E={key:1},N={key:1},w={key:2,class:"mt-4"},C=["href"],q={key:1,class:"disabled"},L=g("span",{class:"disabled"},"  |  ",-1),B=["href"],V={key:3,class:"disabled"},be={__name:"today",setup(m){const e=h(new b);return($,O)=>(t(),c(_,{ctx:r(e),"has-tab":!0},{default:a(()=>[r(e).featureIsOn?i("",!0):(t(),s("div",x,[o(f)])),r(e).featureIsOn?(t(),s("div",E,[o(k,{secondary:""},{tabs:a(()=>[o(d,{href:r(e).path+"?serverId="+r(e).serverId,active:r(e).hasError==0,name:"所有日志"},null,8,["href","active"]),o(d,{href:r(e).path+"?serverId="+r(e).serverId+"&hasError=1",active:r(e).hasError>0,name:"错误日志"},null,8,["href","active"])]),_:1}),r(e).accessLogs.length==0?(t(),c(y,{key:0,"disable-spacing":""},{default:a(()=>[I("今天暂时还没有访问日志。")]),_:1})):i("",!0),r(e).accessLogs.length>0?(t(),s("div",N,[o(u,{items:r(e).accessLogs,dataKey:"requestId"},{default:a(()=>[o(v,{"header-class":"hidden"},{body:a(({data:p})=>[o(l,{"v-access-log":p,"v-keyword":r(e).keyword,"v-show-server-link":!1},null,8,["v-access-log","v-keyword"])]),_:1})]),_:1},8,["items"])])):i("",!0),r(e).accessLogs.length>0?(t(),s("div",w,[r(e).hasPrev?(t(),s("a",{key:0,href:r(e).path+"?serverId="+r(e).serverId+"&requestId="+r(e).lastRequestId+"&hasError="+r(e).hasError},"上一页",8,C)):(t(),s("span",q,"上一页")),L,r(e).hasMore?(t(),s("a",{key:2,href:r(e).path+"?serverId="+r(e).serverId+"&requestId="+r(e).nextRequestId+"&hasError="+r(e).hasError},"下一页",8,B)):(t(),s("span",V,"下一页"))])):i("",!0)])):i("",!0)]),_:1},8,["ctx"]))}};export{be as default};
