import{i as n,c as h}from"./app-a6cKceqE.js";import{C as _}from"./app-CLawzVMq.js";import{_ as f}from"./app-B8JChEZz.js";import{_ as l}from"./app-Bll4Z_Wn.js";import{L as u}from"./app-W_y7sflh.js";import{_ as v}from"./app-BqeukU67.js";import{_ as y}from"./app-uhTxLRnQ.js";import{N as k}from"./app-DCd54JMo.js";import{N as d}from"./app-CabATHnR.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-BYcXwl4U.js";import"./app-BeFNDz9n.js";import"./app-BDgR0DSb.js";import"./app-D7QVa3_6.js";import"./app-CO4sV-Ic.js";import"./app-yt37eDzA.js";import"./app-BG60hdvp.js";import"./app-BQ5ggxk2.js";import"./app-SxAW7vhf.js";import"./app-D3zbrzdO.js";import"./app-iaXXZg9Y.js";import"./app-D2Wz0BUQ.js";import"./app-DwDoXV5j.js";import"./app-VC1SYszA.js";import"./app-yF7sElvF.js";import"./app-CqkleIqs.js";import"./app-CJCAnMrx.js";import"./app-Cp3gmk2J.js";import"./app--MWyBMkA.js";import"./app-CNARLpXE.js";import"./app-D5k1HLu9.js";import"./app-ysQ8KbGS.js";import"./app-Cc2zXvHs.js";import"./app-DPDEogA0.js";import"./app-aSafd0Me.js";import"./app-BHl80pFw.js";import"./app-Btbk6LWy.js";import"./app-CrkKi1Ag.js";import"./app-u5shTDG_.js";import"./app-MrAtUXr3.js";import"./app-BWSI2Z1R.js";import"./app-DxjODhok.js";import"./app-BhzV4gWo.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};
