import{i as n,c as h}from"./app-BT68AfZ-.js";import{C as _}from"./app-P70ZK_FT.js";import{_ as f}from"./app-DQ7IohAF.js";import{_ as l}from"./app-C2peMKJG.js";import{L as u}from"./app-CjSxNKvA.js";import{_ as v}from"./app-Dapk2SAF.js";import{_ as y}from"./app-BWsCS5pa.js";import{N as k}from"./app-scFtFqL8.js";import{N as d}from"./app-BX4pd6U-.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-DA7OTM4Q.js";import"./app-D5twQdhO.js";import"./app-BotiHebp.js";import"./app-D6fSNcLx.js";import"./app-up4gT9D9.js";import"./app-D29bbm9n.js";import"./app-Dxa5h-uG.js";import"./app-B_5dka6q.js";import"./app-BqY8p2gl.js";import"./app-CQwVTjAx.js";import"./app-BQJXgoGu.js";import"./app-BkWUIifj.js";import"./app-DfyWLXQE.js";import"./app-uDv2WI9p.js";import"./app-yF7sElvF.js";import"./app-CqkleIqs.js";import"./app-z_TsLOhk.js";import"./app-C5ROEzFd.js";import"./app-Bnbo6OlJ.js";import"./app-AbPAjGV5.js";import"./app-C-GI59rl.js";import"./app-DSiZNBrr.js";import"./app-DUjqI3OV.js";import"./app-CnGe5nlE.js";import"./app-45ZaIHUI.js";import"./app-KNE_24OY.js";import"./app-SLkqftrw.js";import"./app-BxVwOz69.js";import"./app-WOreqTiW.js";import"./app-DREBJ-ou.js";import"./app-CWBL8eTX.js";import"./app-OC5wWJiS.js";import"./app-Bhreb6Cm.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};
