import{i as n,c as h}from"./app-DckefXYL.js";import{C as _}from"./app-B2-Q9WJQ.js";import{_ as f}from"./app-CeaP97on.js";import{_ as l}from"./app-DaxonQAh.js";import{L as u}from"./app-DM6WPmnv.js";import{_ as v}from"./app-KcnMuQGX.js";import{_ as y}from"./app-DezwSKU9.js";import{N as k}from"./app-C9iVkiu5.js";import{N as d}from"./app-CUPmXIij.js";import{o as t,c as p,w as a,u as r,g as s,b as o,h as i,f as I,a as g}from"./app-DnroACXc.js";import"./app-DAKlLAys.js";import"./app-xECxwo4T.js";import"./app-BBDtZW3a.js";import"./app-C7P1WxYu.js";import"./app-R-vSvFIF.js";import"./app-HaDoyrq5.js";import"./app-CYYQ_Zep.js";import"./app-Cmxxk_WX.js";import"./app-CF8nmC-F.js";import"./app-B09rlSqG.js";import"./app-Do8DhyKT.js";import"./app-B8VsrFxM.js";import"./app-rBrER_c4.js";import"./app-DFy7dJHP.js";import"./app-yF7sElvF.js";import"./app-CqkleIqs.js";import"./app-uFawAv7F.js";import"./app-BJhJ7lM8.js";import"./app-Dd07dUxy.js";import"./app-Dpl5YSiv.js";import"./app-NVAx7Sc3.js";import"./app-CF0qXH5Q.js";import"./app-BtWF1kMA.js";import"./app-B0NrURRk.js";import"./app-CGj1gg44.js";import"./app-B4bUdtyo.js";import"./app-BeuOvIof.js";import"./app-DSjO_8RR.js";import"./app-CZGZgDLc.js";import"./app-DrIi-dNq.js";import"./app-zueB50zj.js";import"./app-Co2SIBzr.js";import"./app-Cu6FD8m8.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"},xe={__name:"today",setup(m){const e=h(new b);return($,O)=>(t(),p(_,{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(),p(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:c})=>[o(l,{"v-access-log":c,"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{xe as default};
